/* Ortak Vitrin — project page (is/?id=…). Same tokens, type and rhythm as the main page
   (../shared/tokens.css + ../css/ortak-imlec.css for the shared footer). Built by ../js/is.js. */

.ip-body { background: var(--paper); color: var(--ink); overflow-x: clip; }
.ip { padding: 0 var(--gutter); }

/* top bar: the wordmark, Λİ in indigo */
.ip-nav__mark .v3-logo { width: clamp(104px, 9vw, 128px); height: auto; }
.ip-nav__mark .v3-logo .lg-lambda,
.ip-nav__mark .v3-logo .lg-letters .lg-l:last-child { fill: var(--indigo); }
.ip-nav__mark:hover .v3-logo .lg-l { fill: var(--grey-5); }

/* ------------------------------------------------------------ reveal */
.ip-rv { opacity: 0; translate: 0 26px; transition: opacity 0.9s var(--ease-out), translate 1.1s var(--ease-out); }
.ip-rv.is-in { opacity: 1; translate: 0 0; }
.reduced-motion .ip-rv { opacity: 1; translate: none; transition: none; }

/* ------------------------------------------------------------ hero */
.ip-hero { padding: calc(var(--nav-h) + clamp(48px, 10vh, 120px)) 0 clamp(48px, 8vh, 96px); }
.ip-hero__k { margin: 0 0 clamp(18px, 3vh, 28px); color: var(--grey-4); }
.ip-hero__k b { color: var(--indigo); font-weight: 500; }
.ip-hero__name {
  margin: 0;
  font-size: clamp(52px, 10vw, 184px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}
.ip-hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 48px;
  margin-top: clamp(28px, 5vh, 56px);
}
.ip-hero__quote { margin: 0; max-width: 30ch; }
.ip-hero__quote p {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 38px);
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--grey-5);
}
.ip-hero__act { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex: none; }
.ip-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 26px 0 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s;
}
.ip-cta:hover { background: var(--indigo); }
.ip-cta__arr { display: inline-block; transition: transform 0.4s var(--ease-out); }
.ip-cta:hover .ip-cta__arr { transform: translate(2px, -2px); }
.ip-cta--soon { background: transparent; color: inherit; border: 1px dashed currentColor; opacity: .65; cursor: default; }
.ip-cta--soon:hover { background: transparent; }
.ip-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ip-tags li {
  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;
}
.ip-tags li.is-ai { box-shadow: inset 0 0 0 1px var(--indigo); color: var(--indigo); font-weight: 500; }
.ip-mk { height: 11px; width: auto; flex: none; }
.ip-mk .ic-lambda, .ip-mk .ic-i { fill: var(--indigo); }

/* ------------------------------------------------------------ desktop screens in a browser frame */
.ip-shots { display: flex; flex-direction: column; gap: clamp(56px, 12vh, 140px); max-width: var(--maxw); margin: 0 auto; }
.ip-shots--first { margin-bottom: 0; }
.ip-shots:not(.ip-shots--first) { margin-top: clamp(80px, 14vh, 160px); }
.ip-shot { margin: 0; }
.ip-browser {
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(13, 13, 20, 0.1), 0 40px 80px -40px rgba(13, 13, 20, 0.45);
}
.ip-browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: var(--ink-2);
  color: #A3A3B0;
}
.ip-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.ip-browser__bar span {
  margin: 0 auto;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  transform: translateX(-24px);
}
.ip-browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: var(--grey-1); }
.ip-shot figcaption { margin-top: 14px; color: var(--grey-4); }   /* grey-4: AA on paper */
.ip-shot figcaption b { color: var(--indigo); font-weight: 500; }

/* ------------------------------------------------------------ section heads */
.ip-sec__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: clamp(28px, 5vh, 48px);
  border-bottom: 1px solid rgba(13, 13, 20, 0.12);
}
.ip-sec__head .t-label { margin: 0; color: var(--grey-4); }
.ip-sec__head .ip-sec__n { color: var(--grey-4); }

/* ------------------------------------------------------------ Ne yaptık / Öne çıkanlar */
.ip-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px clamp(32px, 6vw, 112px);
  max-width: var(--maxw);
  margin: clamp(96px, 16vh, 180px) auto 0;
}
.ip-notes__k { margin: 0 0 22px; color: var(--grey-4); }
.ip-role, .ip-tech { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(13, 13, 20, 0.12); }
.ip-role li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0 17px;
  border-bottom: 1px solid rgba(13, 13, 20, 0.12);
  font-size: clamp(22px, 2.25vw, 34px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.ip-role li span { flex: none; width: 28px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--indigo); }
.ip-tech li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0 19px;
  border-bottom: 1px solid rgba(13, 13, 20, 0.12);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--grey-5);
}
.ip-tech li > i { flex: none; width: 14px; height: 2px; margin-bottom: 0.35em; background: var(--grey-2); }
.ip-tech li.is-ai { color: var(--indigo); font-weight: 500; }
.ip-tech li.is-ai .ip-mk { height: 13px; width: 14px; }

/* ------------------------------------------------------------ İçindeki Aİ (indigo, like the Λİ in the logo) */
.ip-ai {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px clamp(32px, 5vw, 80px);
  max-width: var(--maxw);
  margin: clamp(72px, 12vh, 140px) auto 0;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 22px;
  background:
    radial-gradient(70% 90% at 90% 0%, rgba(143, 132, 255, 0.45), rgba(143, 132, 255, 0) 70%),
    var(--indigo);
  color: var(--white);
}
.ip-ai__svg { height: clamp(72px, 9vw, 132px); width: auto; }
.ip-ai__svg .ic-lambda, .ip-ai__svg .ic-i { fill: var(--white); }
.ip-ai__body .t-label { margin: 0 0 18px; color: var(--lilac); }
.ip-ai__list { list-style: none; margin: 0; padding: 0; }
.ip-ai__list li {
  padding: 12px 0 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ------------------------------------------------------------ phones */
.ip-phones { max-width: var(--maxw); margin: clamp(96px, 16vh, 180px) auto 0; }
.ip-phones__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 40px);
}
.ip-phone { margin: 0; }
.ip-phone__body {
  padding: 7px;
  border-radius: clamp(26px, 2.8vw, 40px);
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(13, 13, 20, 0.5);
}
.ip-phone__body img {
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1688;
  object-fit: cover;
  border-radius: clamp(20px, 2.3vw, 33px);
  background: var(--ink-2);
}
.ip-phones__row .ip-phone:nth-child(even) { translate: 0 clamp(24px, 6vh, 64px); }

/* ------------------------------------------------------------ measurement */
.ip-perf { max-width: var(--maxw); margin: clamp(120px, 18vh, 200px) auto 0; }
.ip-perf__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.ip-perf__m { margin: 0; }
.ip-perf__m dt { font-family: var(--font-mono); font-size: 12px; color: var(--grey-4); }
.ip-perf__m dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; margin: 10px 0 0; }
.ip-perf__m s { text-decoration: none; font-size: clamp(20px, 2vw, 30px); color: var(--grey-3); letter-spacing: -0.02em; }
.ip-perf__m dd > span { font-size: clamp(20px, 2vw, 30px); color: var(--grey-3); }
.ip-perf__m b { font-size: clamp(44px, 5.4vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.ip-perf__src { margin: clamp(28px, 4vh, 40px) 0 0; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--grey-4); }
.ip-perf__note { margin: 4px 0 0; font-size: 13.5px; color: var(--grey-4); }

/* ------------------------------------------------------------ next project */
.ip-next { max-width: var(--maxw); margin: clamp(120px, 18vh, 200px) auto 0; padding-bottom: clamp(80px, 12vh, 140px); }
.ip-next__a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  grid-template-areas: "k img" "name img" "sector img";
  align-content: center;
  gap: 0 clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vh, 44px) 0;
  border-top: 1px solid rgba(13, 13, 20, 0.12);
  border-bottom: 1px solid rgba(13, 13, 20, 0.12);
  text-decoration: none;
  color: inherit;
}
.ip-next__k { grid-area: k; align-self: end; color: var(--grey-4); }
.ip-next__name {
  grid-area: name;
  margin-top: 14px;
  font-size: clamp(40px, 6vw, 104px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.ip-next__arr { display: inline-block; margin-left: 0.18em; color: var(--indigo); transition: transform 0.45s var(--ease-out); }
.ip-next__a:hover .ip-next__arr { transform: translateX(10px); }
.ip-next__sector { grid-area: sector; margin-top: 14px; font-size: 15px; color: var(--grey-4); }
.ip-next__img {
  grid-area: img;
  position: relative;
  align-self: center;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(13, 13, 20, 0.08), 0 30px 60px -30px rgba(13, 13, 20, 0.45);
  transition: transform 0.6s var(--ease-out);
}
.ip-next__img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.ip-next__img.is-ai::before, .ip-next__img.is-ai::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--indigo); }
.ip-next__img.is-ai::before { mix-blend-mode: color; }
.ip-next__img.is-ai::after { opacity: 0.2; }
.ip-next__a:hover .ip-next__img { transform: scale(1.02); }
.ip-back {
  display: inline-flex;
  gap: 6px;
  margin-top: 26px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.ip-back:hover { color: var(--indigo); }
.reduced-motion .ip-next__img, .reduced-motion .ip-next__arr, .reduced-motion .ip-cta__arr { transition: none; }

/* ------------------------------------------------------------ 404 */
.ip-404 .ip { min-height: calc(100svh - 40px); }
.ip-nf__h { margin: 0; font-size: clamp(48px, 8vw, 140px); line-height: 0.95; font-weight: 700; letter-spacing: -0.05em; }
.ip-nf__p { margin: clamp(20px, 3vh, 32px) 0 clamp(28px, 4vh, 40px); max-width: 34ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: var(--grey-4); }

/* footer: the current project is marked */
.ip-foot .foot__list a[aria-current="page"] { color: var(--indigo-3); }

/* ------------------------------------------------------------ narrow */
@media (max-width: 860px) {
  .ip-hero__row { flex-direction: column; align-items: flex-start; }
  .ip-hero__act { align-items: flex-start; }
  .ip-tags { justify-content: flex-start; }
  .ip-notes { grid-template-columns: minmax(0, 1fr); }
  .ip-ai { grid-template-columns: minmax(0, 1fr); }
  .ip-perf__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ip-next__a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "k" "name" "sector"; }
  .ip-next__k { margin-top: 24px; }
}
@media (max-width: 760px) {
  .ip-hero { padding-top: calc(var(--nav-h) + 40px); }
  .ip-cta { height: 52px; padding: 0 22px 0 24px; font-size: 15px; }
  .ip-browser { border-radius: 10px; }
  .ip-browser__bar { height: 28px; padding: 0 10px; gap: 5px; }
  .ip-browser__bar i { width: 7px; height: 7px; }
  .ip-browser__bar span { font-size: 9.5px; padding: 3px 10px; transform: none; }
  .ip-role li { font-size: 22px; padding: 14px 0 15px; }
  .ip-ai { border-radius: 18px; }
  /* phones: a swipeable row that stays inside the page */
  .ip-phones__row {
    display: flex;
    gap: 14px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .ip-phones__row::-webkit-scrollbar { display: none; }
  .ip-phone { flex: 0 0 58%; scroll-snap-align: start; }
  .ip-phones__row .ip-phone:nth-child(even) { translate: none; }
  .ip-phone__body { border-radius: 30px; padding: 6px; }
  .ip-phone__body img { border-radius: 24px; }
}

/* until js/is.js has built the page, hold the footer below the fold (no layout shift when the content lands) */
.ip:empty { min-height: 100vh; min-height: 100svh; }

/* narrow screens: the project page nav keeps only "Tüm işler / All work" + TR/EN — four links collided with the logo */
.ip-nav .site-nav__links a { white-space: nowrap; }
@media (max-width: 600px) {
  .ip-nav .site-nav__links a:not(:first-child) { display: none; }
}
