/* Bu dosya wordpress/build.mjs tarafından üretilir; düzenlemeleri kaynak dosyalarda yapın. */

/* ===== src/index.css ===== */
/* Koyu tema. Renkler anlamlarına göre adlandırıldı:
   zemin (bg / surface), metin (ink / muted), çizgi (line). */
:root {
  color-scheme: dark;

  --bg: #0a0a0a;
  --surface: #121212; /* gri bantlar */
  --surface-2: #1a1a1a; /* kartlar */
  --surface-3: #242424; /* etiketler, hover zeminleri */
  --line: #262626;

  --ink: #f2f2f2; /* başlıklar ve ana metin */
  --ink-2: #a8a8a8; /* gövde metni */
  --muted: #7a7a7a; /* küçük etiketler */
  --faint: #4a4a4a;
  --on-image: #ffffff; /* görsellerin üzerindeki metin */

  --font-sans: 'ABC Normal', 'Inter', sans-serif;
  --font-slab: 'Montagu Slab', 'Times New Roman', serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Sitenin tek container'ı: içerik en fazla 1352px, kenarlarda 24px boşluk */
  --container: 1352px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* Siyah çizimli SVG logo ve ikonlar koyu zeminde açık renge çevrilir */
.invert-on-dark {
  filter: invert(1);
}

/* ===== src/components/SiteShell.css ===== */
/* Site iskeleti: içerik tam genişlikte akar, üstte sabit bir header.
   Header içeriği sitenin tek container'ında (--container) hizalanır. */

.shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  pointer-events: none;
}

/* ---------- Kademeli blur (Apple tarzı) ----------
   Altı katman üst üste biner; her biri bir öncekinin iki katı blur uygular ve
   maskesiyle yalnızca kendi bandında görünür. Sonuç: en üstte güçlü, aşağı doğru
   kesintisiz azalan bir blur. Header'ın altına biraz taşar ki geçiş sert bitmesin. */
.topbar-blur {
  position: absolute;
  inset: 0 0 -48px;
  z-index: -1;
  pointer-events: none;
  /* Metnin her zeminde okunması için hafif koyu bir perde */
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.6) 55%, rgba(10, 10, 10, 0) 100%);
}

.topbar-blur > span {
  position: absolute;
  inset: 0;
}

.topbar-blur > span:nth-child(1) {
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  mask-image: linear-gradient(to top, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%);
}

.topbar-blur > span:nth-child(2) {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  mask-image: linear-gradient(to top, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%);
  -webkit-mask-image: linear-gradient(to top, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%);
}

.topbar-blur > span:nth-child(3) {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask-image: linear-gradient(to top, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%);
  -webkit-mask-image: linear-gradient(to top, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%);
}

.topbar-blur > span:nth-child(4) {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask-image: linear-gradient(to top, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%);
  -webkit-mask-image: linear-gradient(to top, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%);
}

.topbar-blur > span:nth-child(5) {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to top, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%);
  -webkit-mask-image: linear-gradient(to top, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%);
}

.topbar-blur > span:nth-child(6) {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask-image: linear-gradient(to top, transparent 62.5%, #000 75%);
  -webkit-mask-image: linear-gradient(to top, transparent 62.5%, #000 75%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 14px;
  line-height: 21px;
}

.topbar-logo,
.topbar-link {
  pointer-events: auto;
}

.topbar-logo {
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.topbar-logo:hover {
  opacity: 0.7;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

/* Aktif sayfada linkin önünde küçük kare */
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.topbar-link:hover,
.topbar-link.is-active {
  color: var(--ink);
}

.topbar-link.is-active::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
}

/* Saat menü linkleriyle aynı boyut ve yazı tipinde */
.topbar-clock {
  font-size: 14px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .topbar-inner {
    gap: 16px;
    padding: 0 16px;
  }

  .topbar-nav {
    gap: 14px;
  }

  .topbar-clock {
    display: none;
  }
}

/* ===== src/components/BrandLogos.css ===== */
/* Marka logoları: her yuva sırayla (soldan sağa gecikmeli) bir sonraki logoya döner.
   Eski logo yukarı doğru devrilip bulanıklaşarak çıkar, yenisi aşağıdan dönerek girer. */
.brand-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /* Renkli ya da siyah, tüm logolar koyu zeminde düz beyaz görünür */
  filter: brightness(0) invert(1);
}

/* Eşit genişlikte yuvalar, aralarında eşit boşluk; logolar yuvada ortalanır */
.brand-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 48px;
  perspective: 400px;
}

.brand-logo {
  position: absolute;
  width: auto;
  max-width: 140px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
  backface-visibility: hidden;
}

.brand-logo--enter {
  animation: brand-logo-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms) both;
}

.brand-logo--leave {
  animation: brand-logo-out 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms) both;
}

@keyframes brand-logo-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(60%) rotateX(-90deg);
  }
  to {
    opacity: 0.85;
    filter: blur(0);
    transform: translateY(0) rotateX(0);
  }
}

@keyframes brand-logo-out {
  from {
    opacity: 0.85;
    filter: blur(0);
    transform: translateY(0) rotateX(0);
  }
  to {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(-60%) rotateX(90deg);
  }
}

@media (max-width: 960px) {
  .brand-strip {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .brand-slot {
    width: 33.33%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo--enter,
  .brand-logo--leave {
    animation: none;
  }
}

/* ===== src/pages/Hero.css ===== */
/* Anasayfa hero'su: ekran yüksekliğinin %40'ı. İçerik (sola hizalı başlık ve altında
   dönen marka logoları) header'ın altında kalan alanda dikey olarak ortalanır. */
.hero {
  display: flex;
  align-items: center;
  min-height: 40vh;
  min-height: 40svh;
  padding: 88px var(--gutter) 32px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  text-align: left;
}

.hero .brand-strip {
  margin-top: 40px;
}

@media (max-width: 960px) {
  .hero {
    min-height: 0;
    padding-top: 120px;
  }
}

/* ===== src/pages/HomeSections.css ===== */
/* Section'lar ve sayfalar arasında ortak stiller — koyu tema.
   Bantlar: zemin (--bg) ve biraz daha açık gri (--surface). */

.home-sections {
  container: home / inline-size;
  font-family: var(--font-sans);
}

.home-sections :where(h1, h2, h3, p) {
  margin: 0;
  font-weight: 400;
}

/* ---------- Bantlar ---------- */
.home-section {
  --section-bg: var(--bg);

  position: relative;
  padding: 120px var(--gutter);
  background: var(--section-bg);
  color: var(--ink);
}

.home-section--gray {
  --section-bg: var(--surface);
}

.home-inner {
  max-width: var(--container);
  margin: 0 auto;
}

/* Ortak küçük etiket */
.home-label {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Başlıklar (soluk ilk satır + ana satır) ---------- */
.heading {
  display: flex;
  flex-direction: column;
  letter-spacing: -0.03em;
}

.heading-muted {
  color: var(--muted);
}

.heading-main {
  color: var(--ink);
}

.heading--section {
  margin-bottom: 64px;
  font-size: clamp(30px, 4.4cqi, 44px);
  line-height: 1.1;
}

.heading--page {
  font-size: clamp(40px, 4.4cqi, 60px);
  line-height: 1.05;
}

/* Sayfa üst alanı (Works, Projects, About, Services) */
.page-hero {
  padding: 180px var(--gutter) 80px;
}

.page-hero-intro {
  max-width: 620px;
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

.page-hero + .home-section {
  padding-top: 0;
}

/* ---------- Selected work ---------- */
.sw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* Koyu kart, ortada logo. Kapak görseli olan kartlarda üzerine gelince
   logo bulanıklaşıp kaybolur, proje görseli belirir. */
.sw-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--ink);
}

/* Öne çıkan proje: görsel her zaman açık, hover değişimi yok */
.sw-card-featured {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  background: #e8e8e8;
  color: #0a0a0a;
}

.sw-card-feature-image,
.sw-card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logolar küçük SVG'ler: kartı kaplamak yerine ortada durur */
.sw-card-logo {
  position: absolute;
  inset: 0;
  width: 120px;
  max-width: 40%;
  height: 40px;
  margin: auto;
  object-fit: contain;
  /* Renkli logolar da (ör. Startupfon, Hirize) düz beyaz görünür */
  filter: brightness(0) invert(1);
}

.sw-card-logo,
.sw-card-cover {
  transition:
    opacity 0.6s ease,
    filter 0.6s ease,
    transform 0.6s ease;
}

.sw-card-cover {
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.06);
}

.sw-card--has-cover:hover .sw-card-logo,
.sw-card--has-cover:focus-visible .sw-card-logo {
  opacity: 0;
  filter: brightness(0) invert(1) blur(16px);
  transform: scale(0.94);
}

.sw-card--has-cover:hover .sw-card-cover,
.sw-card--has-cover:focus-visible .sw-card-cover {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* Görsel üzerindeyken yazılar okunur kalsın diye üst ve alttan koyu perde */
.sw-card--photo::after,
.sw-card--has-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.55),
    transparent 30%,
    transparent 60%,
    rgba(10, 10, 10, 0.75)
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.sw-card--has-cover:hover::after,
.sw-card--has-cover:focus-visible::after {
  opacity: 1;
}

/* Logosu olmayan kart: görsel her zaman açık, perde ve açık renk yazılar sürekli */
.sw-card--photo::after {
  opacity: 1;
}

.sw-card--photo .sw-card-title {
  color: var(--on-image);
}

.sw-card--photo .sw-card-desc {
  color: rgba(255, 255, 255, 0.75);
}

.sw-card--photo .sw-card-feature-image {
  transition: transform 0.6s ease;
}

.sw-card--photo:hover .sw-card-feature-image {
  transform: scale(1.03);
}

.sw-card-title,
.sw-card-desc {
  position: absolute;
  z-index: 1;
  left: 24px;
  transition: color 0.6s ease;
}

.sw-card-title {
  top: 24px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sw-card-desc {
  right: 24px;
  bottom: 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* Açık renkli Kahuna görseli üzerinde yazılar koyu */
.sw-card-featured .sw-card-desc {
  color: #525252;
}

/* Yapılan işler: üzerine gelince açıklamanın yerine sırayla belirir */
.sw-card-tags {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.sw-card-tags li {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--on-image);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    filter 0.45s ease,
    transform 0.45s ease;
  transition-delay: calc(var(--i, 0) * 50ms);
}

.sw-card-featured .sw-card-tags li {
  background: rgba(10, 10, 10, 0.08);
  color: #0a0a0a;
}

.sw-card--has-tags .sw-card-desc {
  transition:
    color 0.6s ease,
    opacity 0.3s ease;
}

.sw-card--has-tags:hover .sw-card-desc,
.sw-card--has-tags:focus-visible .sw-card-desc {
  opacity: 0;
}

.sw-card--has-tags:hover .sw-card-tags li,
.sw-card--has-tags:focus-visible .sw-card-tags li {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.sw-card--has-cover:hover .sw-card-title,
.sw-card--has-cover:focus-visible .sw-card-title {
  color: var(--on-image);
}

/* ---------- Alt çizgili, ok ikonlu bağlantı ---------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-image);
}

.arrow-link-label {
  font-size: 14px;
  line-height: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s ease;
}

.arrow-link:hover .arrow-link-label {
  border-color: var(--on-image);
}

.arrow-link-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.arrow-link-icon img {
  width: 6px;
  height: 6px;
}

/* ---------- Projects ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--ink);
  transition: background-color 0.3s ease;
}

a.post-card:hover {
  background: var(--surface-3);
}

.post-body {
  padding: 20px 20px 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--muted);
}

.post-title {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: pre-line;
}

.post-media {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 16px;
}

/* Görsel ve (varsa) TV çerçevesi aynı kutuya ortalanır, kırpılmaz */
.post-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- About ---------- */
.about-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  color: var(--ink);
}

.about-feature-media {
  position: relative;
  aspect-ratio: 1 / 1;
}

/* Zemini olmayan portre; göğüs kısmı alta doğru section zeminine erir */
.about-feature-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000000 70%, transparent);
}

.about-feature-body {
  max-width: 480px;
}

.about-feature-title {
  margin-bottom: 24px;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.about-feature-title-muted {
  color: var(--muted);
}

.about-feature-text {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.about-feature-closing {
  margin: 24px 0 32px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about-feature-inline-link {
  padding: 0 4px;
  border-radius: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  transition: background 0.2s ease;
}

.about-feature-inline-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Liste (Release notes, SSS) ---------- */
.release-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.release-list > li {
  border-bottom: 1px solid var(--line);
}

.release-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  color: var(--ink);
  transition:
    padding 0.35s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
}

/* Liste üzerindeyken diğer satırlar bulanıklaşıp soluklaşır, üzerine gelinen içeri kayar */
.release-list:hover .release-item {
  opacity: 0.35;
  filter: blur(3px);
}

.release-list .release-item:hover,
.release-list .release-item:focus-visible {
  padding-left: 20px;
  padding-right: 20px;
  opacity: 1;
  filter: blur(0);
}

.release-item-title {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.release-item-arrow {
  width: 12px;
  height: 12px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.release-item:hover .release-item-arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .sw-card-logo,
  .sw-card-cover,
  .sw-card--has-cover::after,
  .sw-card-title,
  .sw-card-desc,
  .sw-card-tags li,
  .release-item {
    transition: none;
  }
}

/* ---------- Responsive (içerik alanının genişliğine göre) ---------- */
@container home (max-width: 860px) {
  .about-feature {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-feature-media {
    max-width: 480px;
  }

  .about-feature-body {
    max-width: none;
  }

  /* Mobil ve tablette proje kartları tek sütun */
  .sw-grid,
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container home (max-width: 600px) {
  .home-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .heading--section {
    margin-bottom: 40px;
  }

  .page-hero {
    padding-top: 120px;
    padding-bottom: 56px;
  }

  .sw-card-featured {
    aspect-ratio: 4 / 5;
  }

  .post-title,
  .release-item-title {
    font-size: 18px;
  }
}

/* ===== src/pages/CaseStudy.css ===== */
/* Case sayfası — kluestudio.com case sayfalarının yerleşimi, sitenin teması ile */

.case {
  color: var(--ink);
  font-family: 'ABC Normal', 'Inter', sans-serif;
}

/* ---------- Başlık alanı ---------- */
.case-header {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 180px var(--gutter) 96px;
}

.case-title {
  margin: 0 0 32px;
  font-size: clamp(34px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.case-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 160px;
  justify-content: space-between;
  gap: 48px;
}

.case-intro {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}

.case-services {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}

.case-meta dt {
  margin-bottom: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.case-meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.case-meta a {
  border-bottom: 1px solid var(--faint);
  transition: border-color 0.2s ease;
}

.case-meta a:hover {
  border-color: var(--ink);
}

/* ---------- Gövde ---------- */
.case-body {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 128px;
}

.case-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.case-media img,
.case-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Kendi siyah zemini olan ekran görüntüleri (ör. TapAI) kırpılmadan ortalanır */
.case-media--contain {
  background: #000000;
}

.case-media--contain img {
  object-fit: contain;
}

.case-media--square {
  aspect-ratio: 1 / 1;
}

.case-media--soft {
  border: none;
  background: var(--surface-2);
}

.case-media .case-media-contain {
  object-fit: contain;
}

.case-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Metin blokları ortada dar bir sütunda; öncesinde biraz daha fazla boşluk */
.case-text {
  width: 100%;
  max-width: 760px;
  margin: 16px auto 0;
}

.case-text h2 {
  margin: 0 0 24px;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.case-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Slider */
.case-slider-track-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
}

.case-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-out;
}

.case-slider-track img {
  flex-shrink: 0;
}

.case-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.case-slider-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.25);
  transition: background-color 0.2s ease;
}

.case-slider-dots button.is-active {
  background: #0a0a0a;
}

/* Önce / sonra karşılaştırması */
.case-compare-area {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}

.case-compare-area img {
  position: absolute;
  inset: 0;
}

.case-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(-50%);
  pointer-events: none;
}

.case-compare-area:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* ---------- Dar ekranlar ---------- */
@media (max-width: 960px) {
  .case-header {
    padding-top: 64px;
  }

  .case-header-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 40px;
  }

  .case-body {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .case-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* ===== src/pages/LabArticle.css ===== */
/* Side project yazı sayfası — sitenin teması: ABC Normal gövde, Montagu Slab vurgu,
   büyük harfli 12px etiketler, koyu tema.
   Solda sabit içindekiler, sağda kapak ve makale. */

.article {
  --font-abc: 'ABC Normal', 'Inter', sans-serif;
  --font-slab: 'Montagu Slab', 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: clamp(40px, 6vw, 96px);
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 160px var(--gutter) 120px;
  color: var(--ink);
  font-family: var(--font-abc);
}

/* .home-label rengi --muted değişkeninden gelir; o değişken yalnızca section'larda tanımlı olduğu için burada netleştirilir */
.article .home-label {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Başlık ---------- */
.article-header {
  grid-column: 2;
  margin-bottom: 72px;
}

.article .article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.article-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.article-title {
  max-width: 900px;
  margin: 0 0 32px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.article-tags span {
  padding: 6px 10px;
  background: var(--surface-2);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.article-tags .article-tag-primary {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- İçindekiler ---------- */
.article-aside {
  grid-column: 1;
  grid-row: 2 / span 2;
}

.article-aside-inner {
  position: sticky;
  top: 160px;
}

.article-toc {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--muted);
  transition: color 0.2s ease;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--ink);
}

/* Aktif başlığın çizgisi uzar ve koyulaşır */
.article-toc-line {
  width: 8px;
  height: 1px;
  flex-shrink: 0;
  background: var(--faint);
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

.article-toc a.is-active .article-toc-line {
  width: 32px;
  background: var(--ink);
}

.article-aside-explore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Yapay zekâ servisleri: logolu kare butonlar */
.article-explore-links {
  display: flex;
  gap: 6px;
}

.article-explore-links a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--surface-2);
  transition: background-color 0.2s ease;
}

.article-explore-links a:hover {
  background: var(--line);
}

.article-explore-links img {
  width: 14px;
  height: 14px;
}

/* ---------- Kapak ve gövde ---------- */
.article-cover {
  grid-column: 2;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
}

.article-figure {
  margin: 32px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.article-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  grid-column: 2;
  width: 100%;
  max-width: 720px;
  margin: 120px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Kapak görseli olmayan yazılar (Release notes) */
.article--no-cover .article-body {
  margin-top: 0;
}

.article-section {
  scroll-margin-top: 120px;
}

.article-section + .article-section {
  margin-top: 88px;
}

/* Bölüm başlıkları, anasayfadaki section başlıklarının ince (slab) satırıyla aynı */
.article-h2 {
  margin: 0 0 28px;
  font-family: var(--font-slab);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.article-h3 {
  margin: 48px 0 16px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article-p {
  margin: 0 0 24px;
}

.article-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--faint);
  transition: border-color 0.2s ease;
}

.article-body a:hover {
  border-color: var(--ink);
}

.article-body strong {
  font-weight: 400;
  color: var(--ink);
}

.article-body :not(pre) > code {
  padding: 2px 6px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--ink);
}

/* Madde listesi */
.article-list {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}

.article-list li {
  position: relative;
  padding-left: 24px;
}

.article-list li::before {
  content: '';
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
}

/* Numaralı öncelik listesi */
.article-steps {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.article-steps li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.article-steps-number {
  flex-shrink: 0;
  width: 24px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* Kod bloğu */
.article-code {
  margin: 0 0 32px;
  background: var(--surface-2);
}

.article-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-code-copy {
  padding: 4px 10px;
  border: none;
  background: var(--bg);
  font-family: var(--font-abc);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background-color 0.2s ease;
}

.article-code-copy:hover {
  background: var(--line);
}

.article-code pre {
  max-height: 480px;
  margin: 0;
  padding: 16px 0;
  overflow: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
}

.article-code-line {
  display: block;
  padding-right: 24px;
  white-space: pre;
  color: var(--ink);
}

.article-code-number {
  display: inline-block;
  width: 56px;
  padding-right: 24px;
  text-align: right;
  color: var(--faint);
  user-select: none;
}

/* "Explore with AI" satırı */
.article-explore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 88px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Dar ekranlar ---------- */
@media (max-width: 1024px) {
  .article {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 120px;
  }

  .article-header,
  .article-cover,
  .article-body {
    grid-column: 1;
  }

  .article-aside {
    display: none;
  }

  .article-body {
    margin-top: 72px;
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .article {
    padding-top: 48px;
  }
}

/* ===== src/pages/Pages.css (About) ===== */
/* ---------- About ----------
   Sade bir metin, büyük portre ve etiket solda / içerik sağda satırlar. */
.about-page {
  padding-top: 0;
}

.about-intro,
.about-prose p {
  max-width: 760px;
  color: var(--ink);
}

.about-intro {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.about-portrait {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 72px 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--surface-2);
}

.about-portrait img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}

.about-prose p {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
}

.about-rows {
  margin-top: 96px;
  border-top: 1px solid var(--line);
}

.about-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.about-row-label {
  padding-top: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-row-content {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

.about-dash-list,
.about-achievements,
.about-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-dash-list li::before {
  content: '· ';
  color: var(--muted);
}

/* Deneyim: soldaki çizgi ve noktalar şirketler arası geçişi gösterir */
.about-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
}

.about-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  width: 1px;
  background: var(--line);
}

.about-timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.about-timeline-item:last-child {
  padding-bottom: 0;
}

.about-timeline-item::before {
  content: '';
  position: absolute;
  top: 8px;
  left: -28px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink-2);
  background: var(--bg);
}

.about-timeline-item:first-child::before {
  border-color: var(--ink);
  background: var(--ink);
}

.about-timeline-period,
.about-timeline-meta {
  font-size: 13px;
  color: var(--muted);
}

.about-timeline-title {
  margin: 4px 0 2px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.about-timeline-title span {
  margin-left: 6px;
  color: var(--ink-2);
}

.about-timeline-text {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.about-achievements {
  display: grid;
  gap: 24px;
}

.about-achievements .about-timeline-text {
  margin-top: 2px;
}

.about-contact li + li {
  border-top: 1px solid var(--line);
}

.about-contact a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  color: var(--ink);
  transition: color 0.2s ease;
}

.about-contact a:hover {
  color: var(--ink-2);
}

.about-contact-value {
  color: var(--muted);
}

@container home (max-width: 760px) {
  .about-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-portrait {
    aspect-ratio: 4 / 5;
  }
}

/* ===== wordpress/overrides.css ===== */
/* WordPress'e özel düzeltmeler. React sitesinin stilleri olduğu gibi alınır; burada yalnızca
   çekirdek blokların varsayılanları ve blok işaretlemesinin farklı olduğu yerler ayarlanır. */

/* ---------- Genel ---------- */
.wp-site-blocks {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.wp-site-blocks > * + *,
.is-layout-flow > * + * {
  margin-block-start: 0;
}

.wp-site-blocks :where(figure) {
  margin: 0;
}

/* Blok başlıklarının tarayıcı varsayılan boyutu yerine kapsayıcının boyutu */
.heading > *,
.post-title,
.release-item-title,
.about-row-label,
.about-timeline-title {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.heading--section .heading-main,
.heading--page .heading-main {
  font-weight: 400;
}

/* ---------- Header (site başlığı ve navigasyon blokları) ---------- */
.admin-bar .topbar {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.topbar-logo {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
}

.topbar-logo a {
  color: var(--ink);
  text-decoration: none;
}

.topbar-nav {
  --wp--style--block-gap: 28px;
}

.topbar-nav .wp-block-navigation__container {
  gap: 28px;
}

.topbar .topbar-link .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar .topbar-link .wp-block-navigation-item__content:hover,
.topbar .topbar-link.is-active .wp-block-navigation-item__content {
  color: var(--ink);
}

.topbar .topbar-link.is-active .wp-block-navigation-item__content::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
}

.topbar-link.is-active::before {
  content: none;
}

@media (max-width: 640px) {
  .topbar-nav .wp-block-navigation__container {
    gap: 14px;
  }
}

/* ---------- Case sayfası (post-content içindeki bloklar) ---------- */
.wp-block-post-content.case-body > * {
  margin: 0;
}

.case-text .wp-block-heading {
  margin: 0 0 24px;
}

/* ---------- Anasayfa "About me" (çekirdek görsel bloğu) ---------- */
.wp-block-image.about-feature-media {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
}

.wp-block-image.about-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000000 70%, transparent);
}

.about-feature-title em {
  font-style: normal;
  color: var(--muted);
}

.arrow-link {
  margin: 0;
}

.arrow-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
  text-decoration: none;
}

.arrow-link a::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3) url('../media/icons/arrow-up-right.svg') center / 6px no-repeat;
}

.arrow-link a {
  background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: calc(100% - 24px) 1px;
}

/* ---------- About sayfası (çekirdek bloklarla) ---------- */
.about-page .wp-block-post-content > * {
  margin-block-start: 0;
}

.wp-block-image.about-portrait {
  margin: 72px 0;
}

.wp-block-image.about-portrait img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}

.about-row-label {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.about-row-content > * + * {
  margin-top: 16px;
}

.about-row-content p {
  margin: 0;
}

.about-timeline-title em {
  margin-left: 6px;
  font-style: normal;
  color: var(--ink-2);
}

.about-entry .about-timeline-title,
.about-achievements .about-timeline-title {
  font-size: 20px;
}

.about-dash-list li::before {
  content: '· ';
}

.about-contact a em {
  font-style: normal;
  color: var(--muted);
}

/* ---------- Proje / not yazıları (çekirdek bloklarla) ---------- */
.article-body > .wp-block-group + .wp-block-group {
  margin-top: 88px;
}

.article-steps {
  counter-reset: melih-step;
}

.article-steps li {
  counter-increment: melih-step;
}

.article-steps li::before {
  content: counter(melih-step);
  flex: none;
  font-family: var(--font-slab);
  color: var(--muted);
}

.article-body .wp-block-image.article-figure img {
  height: auto;
}

/* ---------- Editör ---------- */
.editor-styles-wrapper .topbar {
  position: relative;
}
