/* =========================================================
   Projeler — liste + detay
   ========================================================= */

/* ---------- Liste: proje kartları ---------- */
.plist { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(96px, 11vw, 150px); }
.project-switcher { display: grid; justify-items: center; gap: 14px; margin-bottom: clamp(42px, 6vw, 72px); text-align: center; }
.project-switch {
  display: flex; width: max-content; max-width: 100%; padding: 5px; border-radius: 999px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(23,23,24,.12);
}
.project-switch button {
  min-width: clamp(132px, 18vw, 176px); padding: 12px 24px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(255,255,255,.68); cursor: pointer;
  font: 600 .9rem var(--font-head); transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .2s ease;
}
.project-switch button:hover { color: #fff; }
.project-switch button:active { transform: scale(.98); }
.project-switch button[aria-pressed="true"] {
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 5px 16px rgba(227,171,0,.25);
}
.project-switch button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.project-switcher > p { max-width: 560px; color: var(--grey-2); font-size: .94rem; }
.project-empty {
  max-width: 620px; margin: 0 auto; padding: clamp(42px, 7vw, 72px) clamp(24px, 5vw, 52px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); text-align: center;
  background: linear-gradient(145deg, #fff 0%, var(--yellow-wash) 100%);
}
.project-empty[hidden] { display: none; }
.project-empty > span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 1.15rem; }
.project-empty h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.project-empty p { max-width: 440px; margin: 12px auto 0; color: var(--grey-2); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 40px); }
.pcard { position: relative; display: block; text-decoration: none; color: var(--ink); }
.pcard:nth-child(even) { margin-top: clamp(0px, 6vw, 80px); }
.pcard__img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: #e6e4de; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.pcard:hover .pcard__img img { transform: scale(1.045); }
.pcard__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px 0; }
.pcard h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.025em; }
.pcard p { margin-top: 4px; font: 500 .84rem var(--font-head); color: var(--grey); }
.pcard__go {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #efede7; color: var(--ink);
  transition: background .3s ease, transform .4s cubic-bezier(.3, 1.3, .5, 1);
}
.pcard:hover .pcard__go { background: var(--yellow); transform: rotate(-45deg); }
.pcard__tag {
  position: absolute; left: 16px; top: 16px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 .7rem var(--font-head); letter-spacing: .04em;
}
.pcard:focus-visible { outline: none; }
.pcard:focus-visible .pcard__img { outline: 2px solid var(--yellow-d); outline-offset: 4px; }

/* ---------- Detay: başlık ---------- */
.crumb { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; font: 600 .8rem var(--font-head); color: rgba(29,29,31,.55); }
.crumb a { text-decoration: none; color: inherit; }
.crumb a:hover { color: var(--ink); }
.pmeta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; margin: 30px auto 0; padding: 0;
}
.pmeta div { padding: 0 clamp(14px, 2.4vw, 28px); text-align: center; }
.pmeta div + div { border-left: 1px solid rgba(29,29,31,.14); }
.pmeta dt { font: 600 .66rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: rgba(29,29,31,.5); }
.pmeta dd { margin: 4px 0 0; font: 600 .95rem var(--font-title); color: var(--ink); }

/* ---------- Detay: sekmeler ---------- */
.pdetail { padding-top: clamp(72px, 9vw, 120px); }
.tabs {
  position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto;
  padding: 5px; border-radius: 999px; background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(23,23,24,.12);
}
.tabs.is-single { display: none; }
.tabs__knob {
  position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 999px; background: var(--yellow);
  box-shadow: 0 5px 16px rgba(227,171,0,.25);
  transition: transform .5s var(--ease), width .5s var(--ease);
}
.tabs button {
  all: unset; position: relative; z-index: 1; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px clamp(18px, 3vw, 28px); border-radius: 999px;
  font: 600 .88rem var(--font-head); color: rgba(255,255,255,.68); transition: color .3s ease;
}
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.tabs small { font: 600 .68rem var(--font-head); color: rgba(255,255,255,.5); }
.tabs button[aria-selected="true"] small { color: rgba(23,23,24,.62); }

.tabpanel { margin-top: clamp(28px, 4vw, 44px); }
.tabpanel__note { text-align: center; font: 500 .84rem var(--font-head); color: var(--grey); margin-bottom: clamp(24px, 3vw, 36px); }
.pgal { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.pgal__item {
  all: unset; position: relative; cursor: zoom-in; overflow: hidden; border-radius: 20px;
  aspect-ratio: 4 / 3; background: #e6e4de;
}
.pgal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.pgal__item:hover img { transform: scale(1.03); }
.pgal__item:focus-visible { outline: 2px solid var(--yellow-d); outline-offset: 3px; }
.pvideo { overflow: hidden; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }
.pvideo video { width: 100%; height: 100%; object-fit: contain; }   /* dikey videolar da kırpılmadan görünür */

/* ---------- Detay: sonraki proje ---------- */
.pnext { padding-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(96px, 11vw, 150px); }
.pnext__link {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px;
  padding: clamp(24px, 3vw, 32px); border-radius: calc(var(--radius) + 8px); background: #fff;
  text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -40px rgba(0,0,0,.2);
}
.pnext__text { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); min-width: 0; }
.pnext__img { flex: none; width: clamp(96px, 16vw, 200px); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; }
.pnext__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.pnext__link:hover .pnext__img img { transform: scale(1.06); }
.pnext small { display: block; font: 600 .7rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.pnext b { display: block; margin: 6px 0 2px; font: 600 clamp(1.4rem, 3vw, 2.2rem)/1.1 var(--font-title); letter-spacing: -.03em; }
.pnext span[data-n="meta"] { font: 500 .84rem var(--font-head); color: var(--grey); }
.pnext .pcard__go { width: 52px; height: 52px; }
.pnext__link:hover .pcard__go { background: var(--yellow); transform: rotate(-45deg); }
.pnext__all { display: block; width: max-content; margin: 26px auto 0; font: 600 .88rem var(--font-body); color: var(--grey-2); text-decoration: none; border-bottom: 1.5px solid var(--line); padding-bottom: 3px; transition: color .25s ease, border-color .25s ease; }
.pnext__all:hover { color: var(--ink); border-color: var(--yellow); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard:nth-child(even) { margin-top: 0; }
  .pmeta div { padding: 0 14px; }
  .pgal { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .project-switch { width: 100%; }
  .project-switch button { flex: 1; min-width: 0; padding-inline: 12px; }
  .pmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .pmeta div, .pmeta div + div { border: 0; padding: 0; }
  .pnext__link { grid-template-columns: 1fr; }
  .pnext .pcard__go { display: none; }
  .pnext__img { width: 96px; }
}
