/* =====================================================================
   Repeat Studio — Projeler (ikinci tasarım): akan vitrin + proje dizini
   ===================================================================== */

/* ---------- giriş: metin + akan vitrin ---------- */
.n-pxh { width: min(100% - 2 * var(--gut), var(--max)); margin: 8px auto 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(18px, 2vw, 28px); align-items: stretch; }
.n-pxh-copy { display: grid; align-content: center; justify-items: start; gap: 22px; padding: clamp(28px, 4vw, 64px) clamp(8px, 2vw, 32px) clamp(28px, 4vw, 64px) clamp(4px, 1vw, 16px); }
.n-pxh-copy .n-kicker, .n-pxh-copy .n-crumbs { margin: 0; }
.n-pxh1 { display: flex; align-items: flex-start; gap: .12em; font: 800 clamp(64px, 9.4vw, 156px)/.86 var(--sans); letter-spacing: -.06em; color: var(--forest); }
.n-pxh1-n { margin-top: .12em; padding: .16em .34em; border-radius: 999px; background: var(--lemon); color: var(--forest); font-size: .22em; line-height: 1; letter-spacing: -.02em; }
.n-pxh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); width: 100%; }
.n-pxh-meta p { color: var(--sage); font-weight: 600; }
.n-pxh-meta b { color: var(--forest); }
.n-pxh-logos { display: flex; }
.n-pxh-logos li { margin-left: -10px; }
.n-pxh-logos li:first-child { margin-left: 0; }
.n-pxh-logos img, .n-pxh-more { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px var(--off); }
.n-pxh-more { display: grid; place-items: center; background: var(--forest); color: var(--lemon); font: 700 13px var(--sans); }

.n-pxw { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; height: clamp(540px, 46vw, 820px); padding: 0 16px; border-radius: var(--r-xl); background: var(--forest); }
.n-pxw-col { position: relative; z-index: 1; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 70%, transparent 86%); mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 70%, transparent 86%); }
.n-pxw-col ul { display: grid; gap: 14px; animation: n-pxw 46s linear infinite; }
.n-pxw-c1 ul { animation-direction: reverse; animation-duration: 54s; }
.n-pxw-c2 ul { animation-duration: 40s; }
@keyframes n-pxw { to { transform: translateY(calc(-50% - 7px)); } }
.n-pxw:hover ul { animation-play-state: paused; }
.n-pxw li { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--leaf); }
.n-pxw li img { width: 100%; height: 100%; object-fit: cover; }
.n-pxw li span { position: absolute; left: 10px; bottom: 10px; padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--forest); font: 700 12.5px/1 var(--sans); }
.n-pxw-rb { position: absolute; inset: auto 0 0 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.n-pxw-rb .n-rb { stroke-width: 30; }
.js-anim .n-pxw-rb .n-rb { stroke-dashoffset: 1; animation: n-draw 1.1s cubic-bezier(.55, 0, .3, 1) .2s forwards; }
@keyframes n-draw { to { stroke-dashoffset: 0; } }

/* ---------- dizin başlığı, görünüm ve süzgeç ---------- */
.n-pxi-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.n-pxi-view { display: inline-flex; padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.n-pxi-view button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--sage); font: 700 14px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.n-pxi-view button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.n-pxi-view button[aria-pressed="true"] .ic { color: var(--lemon); }
.n-pxf { display: flex; flex-wrap: wrap; gap: 8px; }
.n-pxcount { margin: 18px 0 8px; font-size: 14px; color: var(--sage); }
.n-pxcount b { color: var(--forest); }

/* ---------- dizin: liste görünümü ---------- */
.n-pxl { counter-reset: px; border-top: 1.5px solid var(--forest); }
.n-pxr { counter-increment: px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0 18px; border-bottom: 1px solid var(--line); }
.n-pxr[hidden] { display: none; }
.n-pxr::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .38s cubic-bezier(.22, 1, .36, 1); }
.n-pxl { position: relative; isolation: isolate; }
.n-pxr-a { display: grid; grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) 52px; align-items: center; gap: 18px; padding: 22px 0 22px 4px; color: var(--forest); text-decoration: none; min-width: 0; }
.n-pxr-a::before { content: counter(px, decimal-leading-zero); font: 700 14px var(--sans); letter-spacing: .08em; color: var(--sage); transition: color .25s; }
.n-pxr-th { display: none; }
.n-pxr-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.n-pxr-id img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s; }
.n-pxr-id > span { display: grid; gap: 4px; min-width: 0; }
.n-pxr-name { font: 700 clamp(26px, 2.5vw, 46px)/1 var(--sans); letter-spacing: -.035em; transition: color .25s, transform .4s cubic-bezier(.22, 1, .36, 1); }
.n-pxr-id small { font: 700 11.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); transition: color .25s; }
.n-pxr-tag { font: 500 clamp(16px, 1.15vw, 19px)/1.35 var(--sans); color: var(--sage); transition: color .25s; }
.n-pxr-go { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .25s, box-shadow .25s, transform .35s cubic-bezier(.22, 1, .36, 1); }
.n-pxr-works { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 280px; }
.n-pxr-works li { padding: 6px 11px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font: 600 12.5px/1.2 var(--sans); color: var(--forest); transition: background .25s, color .25s, box-shadow .25s; }
.n-pxr .n-pxr-qv { position: static; opacity: 1; transform: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; margin-right: 4px; border-radius: 999px; border: 0; background: var(--sprout); color: var(--forest); font: 700 13.5px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.n-pxr .n-pxr-qv span { max-width: none; overflow: visible; }
.n-pxr .n-pxr-qv:hover { background: var(--lemon); }
@media (hover: hover) {
  .n-pxl:not(.is-grid) .n-pxr:hover::after, .n-pxl:not(.is-grid) .n-pxr:focus-within::after { transform: scaleY(1); }
  .n-pxl:not(.is-grid) .n-pxr:hover .n-pxr-name, .n-pxl:not(.is-grid) .n-pxr:focus-within .n-pxr-name { color: #fff; transform: translateX(8px); }
  .n-pxl:not(.is-grid) .n-pxr:hover .n-pxr-tag, .n-pxl:not(.is-grid) .n-pxr:hover .n-pxr-id small, .n-pxl:not(.is-grid) .n-pxr:hover .n-pxr-a::before { color: var(--sprout); }
  .n-pxl:not(.is-grid) .n-pxr:hover .n-pxr-id img { box-shadow: 0 0 0 3px var(--lemon); }
  .n-pxl:not(.is-grid) .n-pxr:hover .n-pxr-go { background: var(--lemon); box-shadow: none; transform: rotate(-45deg); }
  .n-pxl:not(.is-grid) .n-pxr:hover .n-pxr-works li { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
}
.n-pxr-a:focus-visible { outline: 3px solid var(--lemon); outline-offset: -3px; border-radius: 12px; }

/* imleci izleyen önizleme */
.n-pxp { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(220px, 17vw, 320px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-999px, 0, 0); box-shadow: 0 40px 80px -40px rgba(7, 42, 24, .75), 0 0 0 4px var(--lemon); transition: opacity .25s; background: var(--leaf); }
.n-pxp.on { opacity: 1; }
.n-pxp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.n-pxp img + img { opacity: 0; }
.n-pxp.alt img + img { opacity: 1; }

/* ---------- dizin: ızgara görünümü ---------- */
.n-pxl.is-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); border-top: 0; padding-top: 8px; }
.n-pxl.is-grid .n-pxr { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 10px 14px; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, transform .45s cubic-bezier(.22, 1, .36, 1); }
.n-pxl.is-grid .n-pxr::after { display: none; }
.n-pxl.is-grid .n-pxr:hover { box-shadow: 0 0 0 2px var(--lemon), 0 34px 60px -40px rgba(11, 61, 36, .6); transform: translateY(-4px); }
.n-pxl.is-grid .n-pxr-a { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: auto auto 1fr; align-items: center; gap: 14px 10px; padding: 0; }
.n-pxl.is-grid .n-pxr-a::before { position: absolute; z-index: 2; left: 22px; top: 22px; padding: 7px 10px; border-radius: 999px; background: var(--forest); color: var(--lemon); font-size: 12px; }
.n-pxl.is-grid .n-pxr-th { grid-column: 1 / -1; grid-row: 1; position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--off); }
.n-pxl.is-grid .n-pxr-th img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.n-pxl.is-grid .n-pxr:hover .n-pxr-th img { transform: scale(1.05); }
.n-pxl.is-grid .n-pxr-id { grid-column: 1; grid-row: 2; padding-left: 6px; gap: 12px; }
.n-pxl.is-grid .n-pxr-id img { display: block; width: 40px; height: 40px; }
.n-pxl.is-grid .n-pxr-name { font-size: clamp(21px, 1.6vw, 27px); }
.n-pxl.is-grid .n-pxr-go { grid-column: 2; grid-row: 2; width: 44px; height: 44px; background: var(--lemon); box-shadow: none; }
.n-pxl.is-grid .n-pxr-tag { grid-column: 1 / -1; grid-row: 3; align-self: start; padding: 0 6px; font-size: 15.5px; }
.n-pxl.is-grid .n-pxr-works { display: none; }
.n-pxl.is-grid .n-pxr .n-pxr-qv { align-self: flex-start; height: 38px; padding: 0 13px; margin: 2px 0 0 6px; }
@media (min-width: 1920px) { .n-pxl.is-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .n-pxl.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- dizin sonu çağrısı ---------- */
.n-pxi-cta { margin-top: clamp(22px, 2.6vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: clamp(22px, 2.6vw, 36px) clamp(22px, 3vw, 44px); border-radius: var(--r-xl); background: var(--lemon); color: var(--forest); text-decoration: none; }
.n-pxi-cta-g .n-glyph { width: 64px; height: 30px; stroke: var(--forest); }
.n-pxi-cta-t { flex: 1 1 320px; font: 700 clamp(26px, 2.6vw, 44px)/1.05 var(--sans); letter-spacing: -.035em; }
.n-pxi-cta .n-btn-main { background: var(--forest); color: #fff; }
.n-pxi-cta:hover .n-btn-main { background: var(--deep); }

/* ---------- duyarlı ---------- */
@media (max-width: 1200px) {
  .n-pxr-works { display: none; }
}
@media (max-width: 1000px) {
  .n-pxh { grid-template-columns: minmax(0, 1fr); }
  .n-pxh-copy { padding: clamp(20px, 5vw, 40px) 4px 8px; }
  .n-pxw { height: 440px; }
  .n-pxl.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .n-pxw { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 380px; padding: 0 12px; gap: 10px; }
  .n-pxw-c2 { display: none; }
  .n-pxw-col ul { gap: 10px; }
  .n-pxr { grid-template-columns: minmax(0, 1fr); }
  .n-pxr-a { grid-template-columns: 76px minmax(0, 1fr) 40px; gap: 6px 14px; padding: 14px 0; }
  .n-pxr-a::before { display: none; }
  .n-pxr-th { display: block; grid-row: 1 / span 2; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--sprout); }
  .n-pxr-th img { width: 100%; height: 100%; object-fit: cover; }
  .n-pxr-id { grid-column: 2; }
  .n-pxr-id img { display: none; }
  .n-pxr-name { font-size: 24px; }
  .n-pxr-tag { grid-column: 2; font-size: 15px; }
  .n-pxr-go { grid-column: 3; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .n-pxr .n-pxr-qv { display: none; }
  .n-pxl.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .n-pxl.is-grid .n-pxr { padding: 6px 6px 10px; }
  .n-pxl.is-grid .n-pxr-a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .n-pxl.is-grid .n-pxr-th { grid-row: auto; grid-column: 1; }
  .n-pxl.is-grid .n-pxr-id { grid-column: 1; grid-row: auto; padding-left: 4px; }
  .n-pxl.is-grid .n-pxr-id img, .n-pxl.is-grid .n-pxr-go, .n-pxl.is-grid .n-pxr-tag, .n-pxl.is-grid .n-pxr-a::before { display: none; }
  .n-pxl.is-grid .n-pxr-name { font-size: 18px; }
  .n-pxl.is-grid .n-pxr-id small { font-size: 10px; letter-spacing: .08em; }
  .n-pxl.is-grid .n-pxr .n-pxr-qv { display: none; }
  .n-pxi-view span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .n-pxw-col ul { animation: none; } .n-pxp { display: none; } }
