/* Premium project detail v2 — Rayf Teknik */

.page-pd2 {
  --pd2-navy: #071824;
  --pd2-red: #981212;
  --pd2-red-rgb: 152, 18, 18;
  --pd2-paper: #f4f4f1;
  --pd2-muted: #6a7780;
  background: var(--pd2-paper);
}

/* Header: hero üzerinde şeffaf + beyaz; scroll’da beyaz zemin */
.page-pd2 .site-header,
.page-pd2 .site-header.is-sticky {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: transparent;
}

.page-pd2 .site-header.is-on-hero:not(.is-scrolled) {
  background: transparent;
  color: #fff;
  border-bottom-color: transparent;
  box-shadow: none;
}

.page-pd2 .site-header.is-on-hero:not(.is-scrolled) .brand img {
  filter: brightness(0) invert(1);
}

.page-pd2 .site-header.is-on-hero:not(.is-scrolled) .header-rule {
  color: rgba(255, 255, 255, .55);
}

.page-pd2 .site-header.is-on-hero:not(.is-scrolled) .desktop-nav a,
.page-pd2 .site-header.is-on-hero:not(.is-scrolled) .header-cta,
.page-pd2 .site-header.is-on-hero:not(.is-scrolled) .header-meta-item,
.page-pd2 .site-header.is-on-hero:not(.is-scrolled) .header-meta-socials a {
  color: #fff;
}

.page-pd2 .site-header.is-on-hero:not(.is-scrolled) .desktop-nav a.active {
  color: var(--pd2-red);
}

.page-pd2 .site-header.is-on-hero:not(.is-scrolled) .menu-toggle span {
  background: #fff;
}

.page-pd2 .site-header.is-scrolled,
.page-pd2 .site-header.is-sticky.is-scrolled {
  background: rgba(255, 255, 255, .96);
  color: var(--pd2-navy);
  border-bottom-color: rgba(7, 24, 36, .11);
  box-shadow: 0 8px 28px rgba(7, 24, 36, .06);
  backdrop-filter: blur(16px);
}

.page-pd2 .site-header.is-scrolled .brand img {
  filter: none;
}

.page-pd2 .site-header.is-scrolled .header-rule {
  color: rgba(7, 24, 36, .28);
}

.page-pd2 .site-header.is-scrolled .desktop-nav a,
.page-pd2 .site-header.is-scrolled .header-cta,
.page-pd2 .site-header.is-scrolled .header-meta-item,
.page-pd2 .site-header.is-scrolled .header-meta-socials a {
  color: inherit;
}

.page-pd2 .site-header.is-scrolled .desktop-nav a.active {
  color: var(--pd2-red);
}

.page-pd2 .site-header.is-scrolled .menu-toggle span {
  background: var(--pd2-navy);
}

/* —— Hero —— */
.pd2-hero {
  position: relative;
  color: #fff;
  background: var(--pd2-navy);
}

.pd2-hero-stage {
  position: relative;
  height: 80svh;
  min-height: 520px;
  max-height: none;
  overflow: hidden;
}

.pd2-hero-media,
.pd2-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.pd2-hero-media img {
  transform: scale(1.06);
  transform-origin: 50% 40%;
  will-change: transform;
}

.pd2-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 24, 36, .78) 0%, rgba(7, 24, 36, .42) 42%, rgba(7, 24, 36, .18) 70%, rgba(7, 24, 36, .35) 100%),
    linear-gradient(180deg, rgba(7, 24, 36, .28) 0%, transparent 35%, rgba(7, 24, 36, .72) 100%);
  pointer-events: none;
}

.pd2-hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: calc(var(--header-height, 84px) + 24px) 0 44px;
}

.pd2-hero-main {
  max-width: min(640px, 100%);
  font-family: "DM Sans", sans-serif;
}

.pd2-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .58);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  letter-spacing: .02em;
}

.pd2-crumb a { color: inherit; text-decoration: none; }
.pd2-crumb a:hover { color: #fff; }
.pd2-crumb b { color: rgba(255, 255, 255, .88); font-weight: 500; }

.pd2-hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pd2-hero-kicker span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--pd2-red);
}

.pd2-hero-kicker em {
  font-style: normal;
}

.pd2-hero-main h1 {
  max-width: 16ch;
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 500;
  letter-spacing: -.045em;
  word-spacing: .18em;
  line-height: 1.18;
}

.pd2-hero-lead {
  max-width: 44ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .74);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.pd2-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--pd2-red);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}

.pd2-hero-cta:hover {
  background: #b01818;
  transform: translateY(-1px);
}

.pd2-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px 40px;
  margin-top: 36px;
  max-width: none;
}

.pd2-hero-stat {
  display: grid;
  grid-template-columns: auto minmax(0, max-content);
  gap: 10px;
  align-items: start;
  flex: 0 0 auto;
  min-width: 0;
}

.pd2-hero-stat i {
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
  opacity: .9;
}

.pd2-hero-stat div {
  min-width: 0;
}

.pd2-hero-stat b {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.pd2-hero-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .55);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  letter-spacing: .04em;
}

.pd2-hero-slogan {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-height, 84px) + 48px);
  right: max(64px, calc((100% - var(--container, 1520px)) / 2 + 64px));
  margin: 0;
  max-width: 11ch;
  color: rgba(255, 255, 255, .72);
  font-family: "Caveat", cursive;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  text-align: right;
  transform: rotate(-8deg);
}

.pd2-hero-index {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-height, 84px) + 28px);
  right: max(16px, calc((100% - var(--container, 1520px)) / 2 - 8px));
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
}

.pd2-hero-index b { color: var(--pd2-red); font-weight: 600; }
.pd2-hero-index i {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, .35);
}
.pd2-hero-index span { color: rgba(255, 255, 255, .7); }

.pd2-hero-scroll {
  position: absolute;
  z-index: 2;
  right: max(28px, calc((100% - var(--container, 1520px)) / 2 + 28px));
  bottom: 28px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.pd2-hero-scroll-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  transition: background .25s, border-color .25s;
  font-size: 14px;
}

.pd2-hero-scroll:hover .pd2-hero-scroll-icon {
  background: var(--pd2-red);
  border-color: var(--pd2-red);
}

.pd2-hero-scroll em {
  font-style: normal;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

/* —— Stagger gallery (21st stagger-testimonials layout) —— */
.pd2-gallery {
  position: relative;
  padding: 96px 0 48px;
  background: #F7F7F4;
  color: var(--pd2-navy);
  overflow: hidden;
}

.pd2-gallery-intro { margin-bottom: 28px; }
.pd2-gallery-intro .eyebrow { color: var(--pd2-red); }
.pd2-gallery-intro .section-title { color: var(--pd2-navy); }

.pd2-gallery-wrap {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
}

.pd2-gallery-stage {
  position: absolute;
  inset: 0;
}

.pd2-stagger-card {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #10202c;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .5s ease-in-out, opacity .5s ease-in-out, background .5s ease-in-out;
  will-change: transform, opacity;
}

.pd2-stagger-card.is-center {
  z-index: 10;
  box-shadow: none;
}

.pd2-stagger-card:not(.is-center) {
  background: #0c1a24;
}

.pd2-stagger-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd2-gallery-nav {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 16px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.pd2-gallery-nav button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(7, 24, 36, .18);
  border-radius: 8px;
  color: var(--pd2-navy);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: background .2s, border-color .2s, color .2s;
}

.pd2-gallery-nav button:hover {
  background: var(--pd2-navy);
  border-color: var(--pd2-navy);
  color: #fff;
}

@media (max-width: 640px) {
  .pd2-gallery-wrap { height: 560px; }
  .pd2-gallery-nav button { width: 48px; height: 48px; }
}

/* —— Circular testimonials —— */
.pd2-circular {
  padding: 96px 0 100px;
  background: #F7F7F4;
}

.pd2-circular-intro { margin-bottom: 48px; }

.pd2-circular-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.pd2-circular-images {
  position: relative;
  width: 100%;
  height: min(58vh, 520px);
  perspective: 1400px;
  transform-style: preserve-3d;
  isolation: isolate;
}

.pd2-circular-images img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(94%, 460px);
  height: min(94%, 460px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 22px 52px rgba(7, 24, 36, .18);
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  opacity: 0;
  z-index: 1;
}

.pd2-circular-copy h3 {
  margin: 0;
  font-family: var(--font-display, Outfit, Arial, sans-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--pd2-navy);
}

.pd2-circular-role {
  margin: 8px 0 24px;
  color: var(--pd2-muted);
  font-size: 15px;
}

.pd2-circular-quote {
  margin: 0;
  max-width: 42ch;
  color: #2a3640;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.75;
}

.pd2-circular-quote .word {
  display: inline-block;
}

.pd2-circular-arrows {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.pd2-circular-arrows button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--pd2-navy);
  cursor: pointer;
  transition: background .25s;
}

.pd2-circular-arrows button:hover {
  background: var(--pd2-red);
}

/* —— KPI (legacy unused, keep safe) —— */
.pd2-kpi { display: none; }

/* —— Meta —— */
.pd2-meta {
  background: #fff;
  border-bottom: 1px solid rgba(7, 24, 36, .08);
}

.pd2-meta-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.pd2-meta-item {
  padding: 28px 24px 28px 0;
  border-right: 1px solid rgba(7, 24, 36, .08);
}

.pd2-meta-item:last-child { border-right: 0; }

.pd2-meta-item em {
  display: block;
  margin-bottom: 8px;
  color: var(--pd2-red);
  font-family: var(--font-display, Outfit, Arial, sans-serif);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.pd2-meta-item strong {
  display: block;
  font-family: var(--font-display, Outfit, Arial, sans-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--pd2-navy);
}

.pd2-meta-item span {
  display: block;
  margin-top: 4px;
  color: var(--pd2-muted);
  font-size: 13px;
}

/* —— Project about (from proje-detay) —— */
.page-pd2 .project-about {
  padding: 88px 0 64px;
  background: #fff;
}

.page-pd2 .project-about-copy {
  width: 100%;
  max-width: none;
}

.page-pd2 .project-about .section-title {
  max-width: none;
  margin-bottom: 40px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
  color: var(--pd2-navy);
}

.page-pd2 .project-about-text {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.page-pd2 .project-about-text p {
  margin: 0 0 18px;
  color: var(--pd2-muted);
  font-size: 16px;
  line-height: 1.85;
}

.page-pd2 .project-about-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .page-pd2 .project-about { padding: 64px 0 40px; }
}

.page-pd2 .arc-flow {
  --arc-muted: rgba(7, 24, 36, .58);
  padding: 96px 0 80px;
  color: var(--pd2-navy, #071824);
  background: #F7F7F4;
}

.page-pd2 .arc-flow__nav {
  border-color: rgba(7, 24, 36, .12);
  box-shadow: 0 10px 28px rgba(7, 24, 36, .12);
}

.page-pd2 .arc-flow__hint {
  color: rgba(7, 24, 36, .42);
}

/* —— Yaklaşım / process-scroll (proje-detay #yaklasim) —— */
.page-pd2 .process {
  padding: 0;
}

.page-pd2 .process-scroll {
  height: 150vh;
}

.page-pd2 .process-scroll .process-sticky {
  align-items: flex-start;
  min-height: 0;
  height: auto;
}

.page-pd2 .process-scroll .process-inner {
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: clamp(20px, 3vh, 36px);
}

.page-pd2 .process-scroll .process-head {
  grid-template-columns: 1fr;
  margin-bottom: clamp(28px, 4vh, 48px);
}

@media (max-width: 720px) {
  .page-pd2 .process-scroll { height: 165vh; }
  .page-pd2 .process-scroll .process-inner {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 24px;
  }
  .page-pd2 .process-head .section-title {
    max-width: none;
    font-size: clamp(24px, 7vw, 30px);
  }
}

/* —— Horizontal gallery —— */
.pd2-hscroll {
  background: var(--pd2-navy);
  color: #fff;
  overflow: hidden;
}

.pd2-hscroll-pin { padding: 72px 0 40px; }

.pd2-hscroll-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: end;
  margin-bottom: 36px;
}

.pd2-hscroll-head h2 {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-display, Outfit, Arial, sans-serif);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -.045em;
}

.pd2-hscroll-head p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pd2-hscroll-track {
  display: flex;
  gap: 18px;
  padding: 0 max(20px, calc((100vw - var(--container, 1520px)) / 2 + 20px)) 48px;
  width: max-content;
  will-change: transform;
}

.pd2-hscroll-card {
  flex: 0 0 min(72vw, 520px);
  overflow: hidden;
  border-radius: 16px;
  background: #10202c;
}

.pd2-hscroll-card img {
  display: block;
  width: 100%;
  height: min(58vh, 420px);
  object-fit: cover;
}

.pd2-hscroll-card figcaption {
  padding: 14px 4px 0;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
}

/* —— Specs —— */
.pd2-specs {
  padding: 96px 0 80px;
  background: #fff;
}

.pd2-specs-lead {
  max-width: 62ch;
  margin: 0 0 36px;
  color: var(--pd2-muted);
  font-size: 16px;
  line-height: 1.75;
}

.pd2-specs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.pd2-specs-media {
  margin: 0;
  min-height: 360px;
  overflow: hidden;
  border-radius: 14px;
  background: #10202c;
}

.pd2-specs-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd2-spec-table { --spec-pad-x: 0; }

.pd2-spec-head,
.pd2-spec-row {
  display: grid;
  grid-template-columns: 42px minmax(0, .42fr) minmax(0, 1fr);
  gap: 12px 20px;
  align-items: center;
  padding: 16px 0;
}

.pd2-spec-head {
  color: var(--pd2-navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(7, 24, 36, .08);
}

.pd2-spec-head em,
.pd2-spec-row em {
  color: var(--pd2-red);
  font-family: var(--font-display, Outfit, Arial, sans-serif);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.pd2-spec-head em { opacity: .55; }

.pd2-spec-row {
  position: relative;
  border-bottom: 1px solid rgba(7, 24, 36, .07);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .28s ease;
}

.pd2-spec-row:last-child { border-bottom: 0; }

.pd2-spec-row::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 22%;
  bottom: 22%;
  width: 2px;
  border-radius: 2px;
  background: var(--pd2-red);
  opacity: 0;
  transform: scaleY(.35);
  transition: opacity .28s ease, transform .28s ease;
}

.pd2-spec-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pd2-muted);
  font-size: 15px;
  transition: color .25s ease;
}
.pd2-spec-row span i { color: var(--pd2-red); font-size: 12px; width: 14px; text-align: center; }
.pd2-spec-row b {
  font-family: var(--font-display, Outfit, Arial, sans-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
  transition: color .25s ease;
}

@media (hover: hover) {
  .pd2-spec-row:hover {
    transform: translateX(10px) scale(1.02);
    border-color: transparent;
  }
  .pd2-spec-row:hover::before { opacity: 1; transform: scaleY(1); }
  .pd2-spec-row:hover span { color: var(--pd2-navy); }
  .pd2-spec-row:hover b { color: var(--pd2-red); }
}

/* —— Motion / mobile —— */
@media (max-width: 980px) {
  .pd2-meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd2-meta-item:nth-child(2) { border-right: 0; }
  .pd2-hscroll-head { grid-template-columns: 1fr; }
  .pd2-hscroll-head p:last-child { grid-column: 1; grid-row: auto; }
  .pd2-circular-grid { grid-template-columns: 1fr; }
  .pd2-circular-images { height: 400px; max-width: 460px; margin: 0 auto; }
  .pd2-circular-images img { width: min(92%, 380px); height: min(92%, 380px); }
  .pd2-specs-layout { grid-template-columns: 1fr; }
  .pd2-specs-media { min-height: 280px; }
  .pd2-hero-index { display: none; }
  .pd2-hero-slogan {
    top: auto;
    right: 20px;
    bottom: 120px;
    font-size: 28px;
  }
}

@media (max-width: 720px) {
  .pd2-hero-stage { min-height: 480px; height: 80svh; max-height: none; }
  .pd2-hero-layout { padding: calc(var(--header-height, 70px) + 18px) 0 28px; }
  .pd2-hero-stats { gap: 16px 28px; margin-top: 24px; }
  .pd2-hero-main h1 { font-size: clamp(30px, 8vw, 42px); }
  .pd2-hero-scroll { display: none; }
  .pd2-hero-slogan { display: none; }
  .pd2-meta-item { padding-right: 16px; }
  .pd2-spec-head,
  .pd2-spec-row { grid-template-columns: 32px minmax(0, .5fr) minmax(0, 1fr); gap: 8px; }
  .pd2-hscroll { overflow-x: auto; }
  .pd2-hscroll-track { width: max-content; padding-bottom: 28px; }
  .pd2-hscroll-card { flex-basis: 82vw; }
}

@media (prefers-reduced-motion: reduce) {
  .pd2-hero-media img,
  .pd2-hscroll-track,
  .pd2-spec-row { transition: none !important; }
  .pd2-hero-media img { transform: none; }
  .pd2-hscroll { overflow-x: auto; }
}
