/* Ortak Vitrin — İşler. The stage starts on top of the hero (it overlaps it by one screen) and takes the
   hero's wordmark over in place; clicks pass through to the hero until the text layers need them.
   Built by js/works.js inside <section class="vt">. Layers: bg 0 · canvas 1 · text 2. */
.vt {
  --vt-u: 12;
  --band-x: 40vw;
  --fin-y: 70vh;
  position: relative;
  z-index: 5;
  margin-top: -100vh;
  margin-top: -100svh;
  /* reserve the stage before works.js builds it (--vt-u is set inline by tools/gen-pages.mjs) — no layout shift */
  min-height: calc(var(--vt-u) * 100vh);
  min-height: calc(var(--vt-u) * 100svh);
  pointer-events: none;
}
/* the cinematic's scroll track (featured projects only); "Tüm işler" follows it inside #isler */
.vt__stage {
  position: relative;
  height: calc(var(--vt-u) * 100vh);
  height: calc(var(--vt-u) * 100svh);
}
.vt__view { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; }
.vt__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(60% 50% at 82% 12%, rgba(143, 132, 255, 0.2), rgba(143, 132, 255, 0) 70%),
    radial-gradient(50% 45% at 10% 92%, rgba(91, 77, 255, 0.09), rgba(91, 77, 255, 0) 70%),
    var(--paper);
}
.vt__cv { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }

.vt__head {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  top: clamp(22px, 4vh, 40px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
}
.vt__head .t-label { margin: 0; color: var(--grey-4); }
.vt__head .vt__count b { color: var(--indigo); font-weight: 500; }

/* ------------------------------------------------------------ the project beside its window */
.vt__infos { position: absolute; inset: 0; z-index: 2; }
.vt__info {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  width: calc(var(--band-x) - var(--gutter) - clamp(28px, 3vw, 56px));
  max-width: 440px;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
}
.vt__info.is-live { pointer-events: auto; }
.vt__n { margin: 0 0 16px; color: var(--grey-4); }
.vt__n b { color: var(--indigo); font-weight: 500; }
.vt__name { margin: 0; font-size: clamp(40px, 4.6vw, 80px); line-height: 0.92; font-weight: 700; letter-spacing: -0.055em; }
.vt__sector { margin: 12px 0 0; font-size: 15px; color: var(--grey-4); }
.vt__quote { margin: 18px 0 0; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.3; letter-spacing: -0.015em; color: var(--grey-5); }
.vt__k { margin: 18px 0 8px; color: var(--grey-3); }
.vt__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.vt__k + .vt__tags { margin-top: 0; }
.vt__tags li { font-size: 12.5px; line-height: 1; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(13, 13, 20, 0.14); }
.vt__tags li.is-ai { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.vt__perf { display: flex; gap: 22px; }
.vt__perf div { display: flex; flex-direction: column; gap: 4px; }
.vt__perf span { font-family: var(--font-mono); font-size: 11px; color: var(--grey-4); }
.vt__perf b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.vt__perf s { text-decoration: none; color: var(--grey-3); font-size: 15px; font-weight: 400; margin-right: 4px; }
.vt__src { margin: 8px 0 0; font-family: var(--font-mono); font-size: 10px; line-height: 1.4; color: var(--grey-3); }
.vt__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; margin: 24px 0 0; }
.vt__open { display: inline-flex; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.vt__open:hover { color: var(--indigo); }
/* live: false — site built, not published yet: a quiet status, not a link */
.vt__open--soon { border-bottom-style: dashed; opacity: .6; cursor: default; }
.vt__open--soon:hover { color: inherit; }
/* the quiet way into the project's own page */
.vt__more { display: inline-flex; gap: 6px; font-size: 15px; font-weight: 400; color: var(--grey-4); text-decoration: none; padding-bottom: 4px; }
.vt__more span { display: inline-block; transition: transform 0.35s var(--ease-out); }
.vt__more:hover { color: var(--indigo); }
.vt__more:hover span { transform: translateX(3px); }

.vt__index {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 86px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  max-width: calc(var(--band-x) - var(--gutter) - 24px);
  opacity: 0;
  visibility: hidden;
}
.vt__index button {
  appearance: none;
  display: flex;
  align-items: baseline;
  gap: 7px;
  border: 0;
  background: none;
  padding: 4px 0;
  font: 500 13px/1.1 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--grey-3);
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.25s;
}
.vt__index button span { font-family: var(--font-mono); font-size: 10px; }
.vt__index button:hover, .vt__index button.is-on { color: var(--ink); }
.vt__index button.is-on span { color: var(--indigo); }
.vt__index button i { width: 0; height: 2px; background: var(--indigo); align-self: center; transition: width 0.35s var(--ease-out); }
.vt__index button.is-on i { width: 16px; }

.vt__cap {
  position: absolute;
  z-index: 2;
  left: calc(var(--band-x) + 16px);
  bottom: 22px;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(13, 13, 20, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
}
.vt__cap i { display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--indigo-3); }

.vt__finale {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: var(--fin-y);
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 4.2vw, 68px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.045em;
  opacity: 0;
  visibility: hidden;
}
.vt__finale b { font-weight: 700; color: var(--indigo); }

/* ------------------------------------------------------------ narrow */
@media (max-width: 760px) {
  .vt__info {
    top: auto;
    bottom: 16px;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    max-width: none;
    transform: none;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -24px rgba(13, 13, 20, 0.4);
  }
  .vt__name { font-size: 34px; }
  .vt__quote, .vt__src { display: none; }
  .vt__info > .vt__tags:first-of-type { display: none; }
  .vt__n { margin-bottom: 8px; }
  .vt__k { margin-top: 12px; }
  .vt__links { margin-top: 14px; }
  .vt__perf b { font-size: 18px; }
  .vt__index {
    left: 0;
    right: 0;
    top: calc(clamp(22px, 4vh, 40px) + 26px);
    bottom: auto;
    max-width: none;
    padding: 0 var(--gutter);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    pointer-events: auto;
  }
  .vt__index::-webkit-scrollbar { display: none; }
  .vt__index button i { display: none; }
  .vt__cap { display: none; }
}

/* once the name has been taken over, the rest of the hero steps aside instead of scrolling across it */
#hero .hero__row, #hero .hero__cursors, #hero .replay { transition: opacity 0.35s var(--ease-out); }
#hero.oiv-leaving .hero__row, #hero.oiv-leaving .hero__cursors, #hero.oiv-leaving .replay { opacity: 0 !important; pointer-events: none; }

/* ============================================================ Tüm işler (every project; after the stage) */
.vt-all {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  background: var(--paper);
  padding: clamp(72px, 11vh, 128px) var(--gutter) 0;
}
.vt-all__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 5vh, 52px); }
.vt-all__title { font-weight: 500; }
.vt-all__range { margin: 0 0 0.9em; color: var(--grey-4); }   /* grey-4: AA on paper (grey-3 is 3.2:1) */
.vt-all__note {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(13, 13, 20, 0.28);
  font-size: 14px;
  line-height: 1.45;
  color: var(--grey-4);
}
.vt-all__note b { font-weight: 600; color: var(--ink); }
.vt-all__note a { float: right; margin-left: 16px; color: var(--grey-4); font-size: 13px; }
.vt-all__note a:hover { color: var(--indigo); }

/* filter chips (≥ 10 rows) */
.vt-all__filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.vt-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  box-shadow: inset 0 0 0 1px rgba(13, 13, 20, 0.16);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--grey-5);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.vt-chip span { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--grey-3); }
.vt-chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.vt-chip[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.vt-chip[aria-pressed="true"] span { color: #A3A3B0; }
.vt-chip:disabled { opacity: 0.4; cursor: default; box-shadow: inset 0 0 0 1px rgba(13, 13, 20, 0.16); }
.vt-chip__mk { height: 12px; width: auto; }
.vt-chip__mk .ic-lambda, .vt-chip__mk .ic-i { fill: var(--indigo); }
.vt-chip[aria-pressed="true"] .vt-chip__mk .ic-lambda, .vt-chip[aria-pressed="true"] .vt-chip__mk .ic-i { fill: var(--indigo-3); }

/* rows */
.vt-all__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(13, 13, 20, 0.12); }
.vt-row { border-bottom: 1px solid rgba(13, 13, 20, 0.12); }
.vt-row[hidden] { display: none; }
.vt-row__a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.5fr) minmax(0, 1fr) 40px;
  grid-template-areas: "n main tags arr";
  gap: 0 clamp(20px, 2.4vw, 36px);
  align-items: center;
  padding: clamp(18px, 2.4vh, 26px) 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s var(--ease-out);
}
.has-year .vt-row__a { grid-template-columns: 44px minmax(0, 1.5fr) 64px minmax(0, 1fr) 40px; grid-template-areas: "n main year tags arr"; }
.vt-row__n { grid-area: n; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--indigo); }
.vt-row__thumb { display: none; }
.vt-row__main { grid-area: main; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px clamp(14px, 1.6vw, 24px); min-width: 0; }
.vt-row__name {
  display: inline-block;
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  transition: transform 0.45s var(--ease-out);
}
.vt-row__sector { font-size: 15px; line-height: 1.35; color: var(--grey-4); }
.vt-row__year { grid-area: year; font-family: var(--font-mono); font-size: 12px; color: var(--grey-4); }
.vt-row__tags { grid-area: tags; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.vt-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 7px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(13, 13, 20, 0.13);
  font-size: 12.5px;
  line-height: 1;
  color: var(--grey-5);
  white-space: nowrap;
}
.vt-tag--ai { box-shadow: inset 0 0 0 1px var(--indigo); color: var(--indigo); font-weight: 500; }
.vt-tag__mk { height: 11px; width: auto; }
.vt-tag__mk .ic-lambda, .vt-tag__mk .ic-i { fill: var(--indigo); }
.vt-tag--sample { box-shadow: none; background: var(--grey-1); color: var(--grey-4); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.vt-row__arr { grid-area: arr; justify-self: end; font-size: 22px; line-height: 1; color: var(--grey-3); transition: transform 0.45s var(--ease-out), color 0.2s; }

a.vt-row__a:hover .vt-row__arr, a.vt-row__a:focus-visible .vt-row__arr, .is-hot a.vt-row__a .vt-row__arr { color: var(--indigo); transform: translateX(4px); }
a.vt-row__a:hover .vt-row__name, .is-hot a.vt-row__a .vt-row__name { transform: translateX(8px); }
.vt-all__list.is-peeking .vt-row:not(.is-hot) .vt-row__a { opacity: 0.38; }
.vt-row__a:focus-visible { outline-offset: 4px; }

/* sample rows (?ornek=1): unmistakably not real work */
.vt-row.is-sample .vt-row__a { cursor: default; }
.vt-row.is-sample .vt-row__name { color: var(--grey-3); }
.vt-row.is-sample .vt-row__n { color: var(--grey-3); }
.vt-row.is-sample .vt-row__sector { color: var(--grey-3); font-style: italic; }
.vt-row.is-sample .vt-tag:not(.vt-tag--sample) { opacity: 0.6; }
.vt-row.is-sample .vt-tag--ai { color: var(--grey-4); box-shadow: inset 0 0 0 1px var(--grey-2); }
.vt-row.is-sample .vt-tag__mk .ic-lambda, .vt-row.is-sample .vt-tag__mk .ic-i { fill: var(--grey-3); }
.vt-row.is-sample { border-bottom-style: dashed; }
.vt-all__empty { margin: 0; padding: 28px 0; font-size: 15px; color: var(--grey-4); border-bottom: 1px solid rgba(13, 13, 20, 0.12); }

/* the preview window that follows the pointer (fine pointers only) */
.vt-peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: clamp(280px, 25vw, 400px);
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(13, 13, 20, 0.08), 0 30px 60px -24px rgba(13, 13, 20, 0.45);
  pointer-events: none;
  opacity: 0;
  scale: 0.92;
  transition: opacity 0.25s var(--ease-out), scale 0.45s var(--ease-out);
  will-change: transform;
}
.vt-peek.is-on { opacity: 1; scale: 1; }
.vt-peek__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s var(--ease-out); isolation: isolate; }
.vt-peek__layer.is-on { opacity: 1; }
.vt-peek__layer img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* AI projects: indigo duotone that keeps the screen's light (the same treatment as Λİ in the stage) */
.vt-peek__layer.is-ai::before,
.vt-peek__layer.is-ai::after { content: ""; position: absolute; inset: 0; background: var(--indigo); pointer-events: none; }
.vt-peek__layer.is-ai::before { mix-blend-mode: color; }
.vt-peek__layer.is-ai::after { opacity: 0.2; }
.vt-peek__cap {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 13, 20, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
}
.vt-peek__cap i { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--indigo-3); }
.vt-peek__ai {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 10px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--indigo);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.vt-peek.is-ai .vt-peek__ai { display: inline-flex; }
.vt-peek__mk { height: 11px; width: auto; }
.vt-peek__mk .ic-lambda, .vt-peek__mk .ic-i { fill: var(--indigo); }
.vt-peek.is-sample { background: var(--grey-1); }
.vt-peek.is-sample .vt-peek__ai { display: none; }
.vt-peek.is-sample .vt-peek__cap { background: rgba(90, 90, 102, 0.85); }
.vt-peek.is-sample .vt-peek__cap i { background: var(--grey-2); }
/* neutral wireframe for sample rows (no screenshot exists) */
.vt-peek__wire { position: absolute; inset: 0; background: #ECECF0; }
.vt-peek__wire i { position: absolute; display: block; border-radius: 4px; background: var(--grey-2); }
.vt-peek__wire .w-nav { left: 6%; right: 6%; top: 7%; height: 4%; background: var(--grey-1); box-shadow: inset 0 0 0 1px var(--grey-2); }
.vt-peek__wire .w-h1 { left: 6%; top: 24%; width: 46%; height: 9%; }
.vt-peek__wire .w-h2 { left: 6%; top: 36%; width: 34%; height: 9%; }
.vt-peek__wire .w-p { left: 6%; top: 52%; width: 40%; height: 3.5%; box-shadow: 0 2.2em 0 0 var(--grey-2); }
.vt-peek__wire .w-btn { left: 6%; top: 70%; width: 18%; height: 8%; border-radius: 999px; background: #B5B5C0; }
.vt-peek__wire .w-img { right: 6%; top: 24%; width: 36%; height: 54%; background: repeating-linear-gradient(135deg, var(--grey-1) 0 8px, var(--grey-2) 8px 9px); }
.vt-peek__wire span { position: absolute; right: 12px; bottom: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-4); }
.reduced-motion .vt-peek, .reduced-motion .vt-peek__layer { transition: opacity 0.15s linear; scale: 1; }
.reduced-motion .vt-row__name, .reduced-motion .vt-row__arr { transition: none; }

/* touch / narrow: no hover — a small thumbnail sits in each row instead */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .vt-peek { display: none; }
  .vt-row__a, .has-year .vt-row__a {
    grid-template-columns: 28px 76px minmax(0, 1fr) 20px;
    grid-template-areas: "n thumb main arr" "n thumb tags arr";
    gap: 8px 14px;
    align-items: center;
    padding: 16px 0;
  }
  .has-year .vt-row__a { grid-template-areas: "n thumb main arr" "n thumb year arr" "n thumb tags arr"; }
  .vt-row__n { align-self: start; padding-top: 4px; }
  .vt-row__thumb {
    grid-area: thumb;
    display: block;
    position: relative;
    width: 76px;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    isolation: isolate;
    background: var(--grey-1);
    box-shadow: 0 0 0 1px rgba(13, 13, 20, 0.08);
  }
  .vt-row__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  .vt-row__thumb.is-ai::before, .vt-row__thumb.is-ai::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--indigo); }
  .vt-row__thumb.is-ai::before { mix-blend-mode: color; }
  .vt-row__thumb.is-ai::after { opacity: 0.28; }
  .vt-wire { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--grey-1) 0 6px, var(--grey-2) 6px 7px); }
  .vt-wire b { display: none; }
  .vt-row__main { flex-direction: column; gap: 3px; }
  .vt-row__name { font-size: 22px; }
  .vt-row__sector { font-size: 13.5px; }
  .vt-row__tags { justify-content: flex-start; }
  .vt-tag { padding: 5px 8px 6px; font-size: 11.5px; }
  .vt-row__arr { font-size: 18px; }
  a.vt-row__a:hover .vt-row__name { transform: none; }
}
@media (max-width: 760px) {
  .vt-all__head { margin-bottom: 26px; }
  .vt-all__note a { float: none; display: inline-block; margin: 6px 0 0; }
}
