/* ==========================================================================
   Kart sistemi (css/cards.css) — halka açık beş sayfa
   Fikir: "gökyüzüne karşı levhalar". Kartlar hareketli gökyüzünün ve kuşların
   önünde neredeyse opak kâğıt levhalardır; gökyüzü yalnızca proje kapağındaki
   "pencere"den görünür. Köşe hiyerarşisi: levha 18px › karo 10px › etiket 4px.
   Büyük renkli parlama yok; hover yalnızca tıklanabilir öğelerde ve incedir.
   Cesaret tek yerde: proje levhası imleçle eğilir, kapağı derinlikle kayar ve
   açılırken levha, ortak öğe geçişiyle ayrıntı penceresine dönüşür.
   ========================================================================== */

.public-page {
  --plate-bg: rgba(14, 21, 30, 0.8);
  --plate-bg-quiet: rgba(14, 21, 30, 0.5);
  --plate-tile: rgba(255, 255, 255, 0.035);
  --plate-line: rgba(222, 232, 242, 0.14);
  --plate-line-strong: rgba(233, 241, 247, 0.36);
  --plate-ink: var(--fg);
  --plate-ink-soft: var(--fg-muted);
  --plate-lift: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.28), 0 26px 48px -34px rgba(2, 8, 16, 0.75);
  --plate-blur: 18px;
  --plate-r: 18px;
  --tile-r: 10px;
  --tag-r: 4px;
  --plate-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.light .public-page {
  --plate-bg: rgba(250, 249, 245, 0.86);
  --plate-bg-quiet: rgba(250, 249, 245, 0.56);
  --plate-tile: rgba(37, 52, 68, 0.035);
  --plate-line: rgba(37, 52, 68, 0.14);
  --plate-line-strong: rgba(37, 52, 68, 0.4);
  --plate-lift: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 0 rgba(37, 52, 68, 0.08), 0 24px 44px -34px rgba(37, 52, 68, 0.5);
}

/* Paper temasında gökyüzü de kâğıt rengindedir: levhayı çizgi taşır. */
html[data-atmosphere="paper"] .public-page {
  --plate-bg: rgba(255, 253, 248, 0.9);
  --plate-line: rgba(40, 34, 26, 0.18);
  --plate-line-strong: rgba(40, 34, 26, 0.45);
}

/* --------------------------------------------------------------------------
   0. Eski spotlight / eğilme efektinin etkisizleştirilmesi
   interactive-craft.js her .craft-card ve .bento-cell öğesine "spotlight-surface"
   ekliyor ve imleç altında 420px'lik mavi (#0071e3) bir ışık halesi ile satır içi
   transform yazıyordu. Halka açık sayfalarda bu katman tamamen kapatılır.
   (Kaydırma sahnesi translate/rotate özelliklerini kullandığı için etkilenmez.)
   -------------------------------------------------------------------------- */
.public-page .spotlight-surface {
  transform: none !important;
}
.public-page .spotlight-surface::before,
.public-page .spotlight-surface::after {
  content: none !important;
}
.public-page .bento-cell:hover {
  transform: none;
}

/* --------------------------------------------------------------------------
   1. Levha (plate): bento hücreleri, laboratuvar panelleri, SSS, galeri masası
   -------------------------------------------------------------------------- */
.public-page .plate,
.public-page .home-architecture-grid > .bento-cell,
.public-page .home-laboratory .surface-panel,
.home-page .process-faq {
  border-radius: var(--plate-r);
  border: 1px solid var(--plate-line);
  background: var(--plate-bg);
  box-shadow: var(--plate-lift);
  backdrop-filter: blur(var(--plate-blur)) saturate(115%);
  -webkit-backdrop-filter: blur(var(--plate-blur)) saturate(115%);
}

/* Hiyerarşi: anlatı levhası tam opak ve büyük; konsol levhası "sessiz" ve çerçevesi ince. */
.public-page .home-architecture-grid > .architecture-console {
  background: var(--plate-bg-quiet);
  box-shadow: none;
}
.home-page .architecture-story .section-title {
  letter-spacing: -0.045em;
}
.home-page .architecture-console .eyebrow,
.home-page .architecture-story > div > .eyebrow {
  color: var(--plate-ink-soft);
}

/* Konsol içindeki veritabanı özeti: dolgu yok, yalnızca üst/alt çizgi. */
.home-page .architecture-console .db-summary {
  background: transparent;
  border: 0;
  border-block: 1px solid var(--plate-line);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 16px 0;
  margin-top: 26px;
}
.home-page .db-summary .modal-toolbar { padding-bottom: 12px; border-bottom: 1px dashed var(--plate-line); }
.home-page .db-summary .db-status { color: var(--plate-ink); font-weight: 500; font-size: 12px; }
.home-page .db-summary .db-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--emerald, #34a875);
  vertical-align: 1px;
}
.home-page .db-summary-list { padding-top: 6px; }

/* Kod penceresi levhanın içinde bir karo: köşe 10px, gölge yok. */
.home-page .architecture-story .code-window {
  border-radius: var(--tile-r);
  border: 1px solid var(--plate-line);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   2. Proje levhası (work-card) — anasayfa ve projeler sayfası
   -------------------------------------------------------------------------- */
.work-card {
  --mx: 0;
  --my: 0;
  position: relative;
  min-width: 0;
  perspective: 1100px;
  color: var(--plate-ink);
}

.work-card-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--plate-r);
  border: 1px solid var(--plate-line);
  background: var(--plate-bg);
  box-shadow: var(--plate-lift);
  backdrop-filter: blur(var(--plate-blur)) saturate(115%);
  -webkit-backdrop-filter: blur(var(--plate-blur)) saturate(115%);
  rotate: var(--tilt, 0 0 1 0deg);
  transform-style: preserve-3d;
  transition:
    rotate 0.9s var(--plate-ease),
    border-color 0.3s ease,
    box-shadow 0.5s var(--plate-ease);
}

.work-card.is-tilting .work-card-frame {
  transition:
    rotate 0.14s linear,
    border-color 0.3s ease,
    box-shadow 0.5s var(--plate-ease);
}

.work-card:hover .work-card-frame,
.work-card:focus-within .work-card-frame {
  border-color: var(--plate-line-strong);
}

/* İnce ışık şeridi: imleçle yatayda kayar, renk taşımaz. */
.work-card-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.16) 49%, transparent 60%);
  background-size: 260% 100%;
  background-position: calc(50% - var(--mx) * 45%) 0;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.work-card.is-tilting .work-card-frame::after { opacity: 1; }

/* Kapak: projenin vurgu renginden türetilen bir gökyüzü penceresi. */
.work-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--plate-line);
  background: var(--plate-tile);
}

.work-card-img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  translate: calc(var(--mx) * -10px) calc(var(--my) * -8px);
  transition: translate 0.9s var(--plate-ease);
}

.work-cover {
  --tint: var(--work-tint, #536b80);
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--tint) 62%, #0b1420) 0%,
      color-mix(in oklab, var(--tint) 42%, #c9d6e2) 70%,
      color-mix(in oklab, var(--tint) 22%, #f3e3d4) 100%);
}

.work-cover-initial {
  position: absolute;
  left: 7%;
  bottom: 9%;
  font: italic 400 clamp(120px, 15vw, 210px) / 0.78 var(--font-serif);
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.9);
  translate: calc(var(--mx) * -7px) calc(var(--my) * -5px);
  transition: translate 0.9s var(--plate-ease);
  user-select: none;
}

/* Ufuk: harf ufkun arkasına batmış gibi görünür. */
.work-cover-horizon {
  position: absolute;
  inset: 78% 0 0 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--tint) 30%, #f6ece2) 0%, color-mix(in oklab, var(--tint) 18%, #fbf5ee) 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.55);
  translate: calc(var(--mx) * -3px) 0;
  transition: translate 0.9s var(--plate-ease);
}

.work-cover-flock {
  position: absolute;
  right: 9%;
  top: 14%;
  width: 34%;
  height: auto;
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  translate: calc(var(--mx) * 16px) calc(var(--my) * 12px);
  transition: translate 0.9s var(--plate-ease);
}


.work-card.is-tilting :is(.work-card-img, .work-cover-initial, .work-cover-horizon, .work-cover-flock) {
  transition-duration: 0.14s;
  transition-timing-function: linear;
}

.work-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 24px 26px 22px;
}

.work-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--plate-ink-soft);
  font-variant-numeric: tabular-nums;
}
.work-card-meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.work-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Başlıktaki düğme bütün levhayı tıklanabilir yapar (tek odak noktası). */
.work-card-open {
  all: unset;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.25s ease;
}
.work-card-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: var(--plate-r);
}
.work-card:hover .work-card-open { text-decoration-color: currentColor; }
.work-card-open:focus-visible { outline: none; box-shadow: none; }
.work-card:has(.work-card-open:focus-visible) .work-card-frame {
  outline: 2px solid var(--plate-ink);
  outline-offset: 4px;
}

.work-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-secondary);
  max-width: 60ch;
}

.work-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--plate-line);
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-card-tags li {
  padding: 3px 7px;
  border-radius: var(--tag-r);
  border: 1px solid var(--plate-line);
  font-size: 11px;
  line-height: 1.4;
  color: var(--plate-ink-soft);
}

.work-card-cta {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 12px;
  color: var(--plate-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.work-card-cta::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--plate-ease);
}
.work-card:hover .work-card-cta::before { width: 30px; }

/* Anasayfa: üç sütun basamaklı yerleşim (eski craft-card kuralının karşılığı). */
@media (min-width: 961px) {
  .home-page #home-projects-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .home-page #home-projects-grid > .work-card:nth-child(2) { margin-top: 56px; }
  .home-page #home-projects-grid > .work-card:nth-child(3) { margin-top: 112px; }
}

/* Projeler sayfası: ilk levha geniş, kapak solda. */
@media (min-width: 1000px) {
  .projects-page #dynamic-projects-grid > .work-card:first-child { grid-column: 1 / -1; }
  .projects-page #dynamic-projects-grid > .work-card:first-child .work-card-frame {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
  }
  .projects-page #dynamic-projects-grid > .work-card:first-child .work-card-media {
    aspect-ratio: auto;
    min-height: 380px;
    border-bottom: 0;
    border-right: 1px solid var(--plate-line);
  }
  .projects-page #dynamic-projects-grid > .work-card:first-child .work-card-body {
    justify-content: center;
    padding: clamp(32px, 4vw, 56px);
  }
  .projects-page #dynamic-projects-grid > .work-card:first-child .work-card-title { font-size: clamp(28px, 2.6vw, 36px); }
}

.work-card.is-filtered-out { display: none; }

/* Filtrede eşleşme yoksa tek satırlık not. */
.work-filter-note {
  grid-column: 1 / -1;
  padding: 28px 0;
  border-top: 1px solid var(--plate-line);
  font-size: 14px;
  color: var(--plate-ink-soft);
}

/* --------------------------------------------------------------------------
   3. Ortak öğe geçişi: levha → ayrıntı penceresi (View Transitions API)
   -------------------------------------------------------------------------- */
::view-transition-group(work-sheet) {
  animation-duration: 0.62s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(work-sheet),
::view-transition-new(work-sheet) {
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}
::view-transition-old(work-sheet) { animation: work-sheet-out 0.3s ease both; }
::view-transition-new(work-sheet) { animation: work-sheet-in 0.42s 0.12s ease both; }
@keyframes work-sheet-out { to { opacity: 0; } }
@keyframes work-sheet-in { from { opacity: 0; } }

/* --------------------------------------------------------------------------
   4. Boş durum levhası
   -------------------------------------------------------------------------- */
.empty-plate {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: var(--plate-r);
  border: 1px dashed var(--plate-line-strong);
  background: var(--plate-bg-quiet);
  backdrop-filter: blur(var(--plate-blur));
  -webkit-backdrop-filter: blur(var(--plate-blur));
  color: var(--plate-ink);
}

.empty-plate-mark {
  width: 100%;
  max-width: 280px;
  height: auto;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.empty-plate-mark path { vector-effect: non-scaling-stroke; }
.empty-plate-mark .empty-horizon { stroke-dasharray: 2 5; opacity: 0.8; }

.empty-plate-title {
  margin: 0;
  font: italic 400 clamp(28px, 3vw, 40px) / 1.1 var(--font-serif);
  letter-spacing: -0.02em;
}
.empty-plate-text {
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-secondary);
}
.empty-plate-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--plate-line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--plate-ink);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.empty-plate-action:hover { background: var(--plate-tile); border-color: var(--plate-ink); }

/* Küçük boş durum: dar alanlar için (klasör özeti, yetenekler, dizin). */
.empty-plate--compact {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 22px;
  border-radius: var(--tile-r);
}
.empty-plate--compact .empty-plate-mark { max-width: 72px; justify-self: start; margin-top: 6px; opacity: 0.85; stroke-width: 1.4; }
.empty-plate--compact .empty-plate-title { font-size: 22px; }
.empty-plate--compact .empty-plate-text { font-size: 13px; margin-top: 8px; }
.empty-plate--compact .empty-plate-action { margin-top: 14px; min-height: 40px; padding: 8px 14px; font-size: 12px; }

/* Galeri masasındaki boş durum: masanın kendisi zaten levha, boş durum çerçevesiz. */
.empty-plate--desk {
  border: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(8px, 3vw, 32px);
}
.empty-plate--desk .empty-plate-mark { max-width: 300px; opacity: 0.8; }
.empty-plate--desk .empty-folder-back { stroke-dasharray: 3 5; }
.empty-plate--desk .empty-folder-front { fill: var(--plate-bg-quiet); }

/* --------------------------------------------------------------------------
   5. Anasayfa laboratuvar panelleri: karo bağlantılar ve klasör rafı
   -------------------------------------------------------------------------- */
.public-page .home-laboratory .surface-panel { padding: clamp(24px, 3vw, 36px); }
.home-page .home-laboratory .stack-list { gap: 0; }

.public-page .home-laboratory .resource-link,
.shelf-folder {
  position: relative;
  display: block;
  padding: 18px 4px 18px 0;
  border: 0;
  border-top: 1px solid var(--plate-line);
  border-radius: 0;
  background: transparent;
  color: var(--plate-ink);
}
.public-page .home-laboratory .resource-link:hover,
.shelf-folder:hover {
  background: transparent;
}
.public-page .home-laboratory .resource-link .card-meta,
.shelf-folder-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--plate-ink-soft);
}
.public-page .home-laboratory .resource-heading,
.shelf-folder-title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.25s ease;
}
.public-page .home-laboratory .resource-link:hover .resource-heading,
.public-page .home-laboratory .resource-link:focus-visible .resource-heading,
.shelf-folder:hover .shelf-folder-title,
.shelf-folder:focus-visible .shelf-folder-title {
  text-decoration-color: currentColor;
}

.shelf-folder { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 16px; align-items: start; }
.shelf-folder-icon {
  grid-row: span 3;
  width: 34px;
  height: 28px;
  margin-top: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
  opacity: 0.75;
}
.shelf-folder-meta { display: flex; justify-content: space-between; gap: 12px; }
.shelf-folder-files {
  margin-top: 4px;
  font-size: 12px;
  color: var(--plate-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   6. Çalışma süreci adımları ve SSS (yapı scroll-scenes.js için korunur)
   -------------------------------------------------------------------------- */
.home-page .workflow-grid > .workflow-step {
  padding: 24px 0;
  border-top: 1px solid var(--plate-line-strong);
  background: transparent;
}
.home-page .workflow-step .item-heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.home-page .workflow-step .workflow-description { margin-top: 8px; font-size: 13px; line-height: 1.75; }

.home-page .process-faq { padding: clamp(24px, 3vw, 36px); }
.home-page .process-faq .apple-faq details { border-bottom-color: var(--plate-line); }
.home-page .process-faq .apple-faq details:last-child { border-bottom: 0; }
.home-page .process-faq .apple-faq summary { cursor: pointer; }
.home-page .process-faq .apple-faq summary:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* --------------------------------------------------------------------------
   7. Hakkımda: yetenekler, özgüllük paneli, tablo — aynı levha dili
   -------------------------------------------------------------------------- */
.about-page .specificity-panel,
.about-page .table-wrapper {
  border: 1px solid var(--plate-line);
  background: var(--plate-bg);
  box-shadow: var(--plate-lift);
}
.about-page .specificity-panel { border-radius: var(--plate-r); }
.about-page .table-wrapper { border-radius: var(--tile-r); }
.about-page .skill-list .empty-plate { margin-top: 4px; }

/* --------------------------------------------------------------------------
   8. Galeri: masa, dizin levhaları ve dosya satırları
   -------------------------------------------------------------------------- */
.gallery-page .gf-desk {
  border-radius: var(--plate-r);
  border-color: var(--plate-line);
  background: var(--plate-bg-quiet);
  box-shadow: var(--plate-lift);
}
.gallery-page .gf-desk[data-empty="true"] .gf-caption { display: none; }
.gallery-page .gf-desk[data-empty="true"] .gf-grid { display: block; padding: 0; }

.archive-card {
  min-width: 0;
  padding: 22px 24px 10px;
  border-radius: var(--plate-r);
  border: 1px solid var(--plate-line);
  background: var(--plate-bg);
  box-shadow: var(--plate-lift);
  backdrop-filter: blur(var(--plate-blur));
  -webkit-backdrop-filter: blur(var(--plate-blur));
}
.archive-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}
.archive-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.archive-card-count { flex-shrink: 0; font-size: 12px; color: var(--plate-ink-soft); font-variant-numeric: tabular-nums; }
.archive-list { margin: 0; padding: 0; list-style: none; }
.archive-row-btn {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  width: 100%;
  padding: 13px 0;
  border-top: 1px solid var(--plate-line);
  cursor: pointer;
  color: var(--plate-ink);
}
.archive-row-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-row-meta { grid-column: 1; font-size: 12px; color: var(--plate-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-row-cta {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 12px;
  color: var(--plate-ink-soft);
  transition: color 0.2s ease;
}
.archive-row-btn:hover .archive-row-name,
.archive-row-btn:focus-visible .archive-row-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.archive-row-btn:hover .archive-row-cta { color: var(--plate-ink); }
.archive-row-btn:focus-visible { outline: 2px solid var(--plate-ink); outline-offset: 2px; border-radius: 4px; }
.archive-empty { padding: 14px 0 16px; border-top: 1px solid var(--plate-line); font-size: 13px; color: var(--plate-ink-soft); }
.gf-index-grid > :is(.empty-plate, .archive-empty) { grid-column: 1 / -1; }
/* Proje yokken etiket satırı ile boş levha arasında nefes payı (filtre çipleri gizli). */
.projects-page .projects-collection[data-empty="true"] + .projects-gallery { margin-top: 24px; }

/* --------------------------------------------------------------------------
   9. İletişim: harita levhası ve kanal satırları
   -------------------------------------------------------------------------- */
.contact-page .map-frame { border-radius: var(--tile-r); border-color: var(--plate-line); }
.contact-page .channel { border-bottom-color: var(--plate-line); }
.contact-page .map-pin { background: var(--fg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--fg) 14%, transparent); }

/* --------------------------------------------------------------------------
   10. Duyarlılık, azaltılmış hareket, zorunlu renkler
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .empty-plate { grid-template-columns: 1fr; text-align: left; }
  .empty-plate-mark { max-width: 200px; justify-self: start; }
  .empty-plate--compact { grid-template-columns: 56px minmax(0, 1fr); }
  .empty-plate--compact .empty-plate-mark { max-width: 56px; }
  .empty-plate--desk .empty-plate-mark { max-width: 220px; }
  .work-card-body { padding: 20px 20px 18px; }
  .work-card-foot { flex-wrap: wrap; }
  .archive-card { padding: 18px 18px 6px; }
}

@media (hover: none) {
  .work-card-frame { rotate: none; }
}

@media (prefers-reduced-motion: reduce) {
  .work-card-frame,
  .work-card-img,
  .work-cover-initial,
  .work-cover-horizon,
  .work-cover-flock { rotate: none !important; translate: none !important; transition: none !important; }
  .work-card-frame::after { display: none; }
  ::view-transition-group(work-sheet),
  ::view-transition-old(work-sheet),
  ::view-transition-new(work-sheet) { animation: none !important; }
}

@media (forced-colors: active) {
  .work-card-frame, .empty-plate, .archive-card, .public-page .plate { border-color: CanvasText; }
  .work-card:has(.work-card-open:focus-visible) .work-card-frame { outline-color: Highlight; }
}

/* Proje yoksa anasayfadaki "Tüm projeler" bağlantısı gizlenir (.btn display'ini ezer). */
#home-projects-count-link[hidden] { display: none; }
/* Proje yokken filtre çipleri ve onları anlatan ipucu gizlenir. */
.projects-page .projects-collection[data-empty="true"] .projects-filters,
.projects-page .projects-collection[data-empty="true"] .projects-collection-heading > span:last-child { display: none; }

/* Proje kartı: canlı site bağlantısı (kartı açan görünmez katmanın üstünde durur) */
.work-card-live { position: relative; z-index: 2; flex-shrink: 0; margin-left: auto; padding: 5px 11px; border-radius: 99px; border: 1px solid currentColor; font-size: 12px; color: var(--plate-ink); text-decoration: none; transition: background .25s, color .25s; }
.work-card-live:hover { background: var(--plate-ink); color: var(--plate-paper, #fff); }
.work-card-live + .work-card-cta { margin-left: 12px; }
.modal-live-link { display: inline-flex; margin-bottom: 14px; }
