/* Her proje aynı görsel anlatım bileşenini kullanır. */
.project-page { padding-block: 64px 85px; }
.project-heading { margin-bottom: 34px; gap: 50px; }
.project-heading .page-title { font-size: clamp(2rem, 3.4vw, 3.35rem); line-height: 1.15; }
.project-heading .eyebrow { margin-bottom: 16px; font-size: .72rem; letter-spacing: .15em; }
.project-heading > p { max-width: 395px; font-size: .91rem; }
.project-showcase { overflow: hidden; border: 1px solid #9abed644; border-radius: 18px; background: var(--card-background); box-shadow: 0 24px 80px #4273910c; }
.project-slide-stage { position: relative; }
.project-showcase { --scene-shift: 32px; }
.project-showcase[data-slide-direction="backward"] { --scene-shift: -32px; }
.project-slide { animation: story-panel-in .65s cubic-bezier(.2,.8,.2,1) both; }
.project-slide { display: grid; grid-template-columns: 1fr 1.06fr; min-height: 455px; background: linear-gradient(125deg, #f1f9ff, #ffffff 65%); }
.project-slide[hidden], [data-carousel-controls][hidden] { display: none; }
.project-slide-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 48px 40px; animation: story-copy-in .65s cubic-bezier(.2,.8,.2,1) both; }
.project-slide-kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; color: var(--blue-light); font-size: .77rem; font-weight: 600; }
.project-slide-number { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; border: 1px solid #82b3d066; border-radius: 50%; font-weight: 400; font-size: .7rem; }
.project-slide h2 { max-width: 420px; font-size: clamp(1.8rem, 2.65vw, 2.9rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.13; }
.project-slide-description { margin-top: 26px; color: var(--muted); font-size: .94rem; line-height: 1.9; max-width: 455px; }
.project-slide-detail { margin-top: 32px; color: var(--blue-light); font-size: .64rem; letter-spacing: .14em; line-height: 1.7; }
.project-slide-visual { margin: 0; min-width: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; border-left: 1px solid #a2c8df26; animation: story-image-in .8s ease both; }
.project-slide-visual img { display: block; width: 100%; height: 455px; object-fit: contain; animation: story-image-drift 14s ease-out both; }
.project-carousel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 25px; border-bottom: 1px solid var(--line); }
.project-scene-caption { display: inline-flex; align-items: center; gap: 11px; font-size: .78rem; font-weight: 550; color: var(--muted); }
.scene-signal { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 12px #68c7ff40; }
.project-carousel-actions { display: flex; gap: 8px; align-items: center; }
.project-arrow { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #88b1ca66; border-radius: 9px; background: transparent; color: var(--ink); transition: background .25s, transform .25s, border-color .25s; }
.project-arrow:hover { background: var(--paper); border-color: var(--blue-light); transform: translateY(-2px); }
.project-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.project-source-note { color: var(--muted); font-size: .74rem; line-height: 1.8; margin: 17px 0 0; }
.project-outro { margin-top: 55px; }
.project-outro h2 { font-size: 1.7rem; }
.project-outro p { font-size: .91rem; max-width: 730px; margin-top: 16px; }
#portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
#portfolio-grid .product-card { padding: 0 0 30px; overflow: hidden; border-radius: 13px; background: var(--card-background); }
#portfolio-grid .product-card > img { height: 260px; object-fit: contain; background: #fff; margin-bottom: 27px; border-radius: 0; }
#portfolio-grid .product-card > :not(img) { margin-inline: 28px; }
#portfolio-grid .product-card .text-link { display: inline-block; margin-top: 24px; }
[data-theme="dark"] .project-showcase { box-shadow: 0 25px 80px #0002; border-color: #7398b338; }
[data-theme="dark"] .project-slide { background: linear-gradient(125deg, #152a40, #0e1c2e); }
[data-theme="dark"] .project-slide-visual { border-left-color: #7494ac26; }
[data-theme="dark"] .project-slide-visual img { filter: brightness(.87); }
@keyframes story-copy-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes story-image-in { from { opacity: .3; } to { opacity: 1; } }
@keyframes story-image-drift { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes story-panel-in { from { opacity: .35; transform: translateX(var(--scene-shift)); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  .project-heading { gap: 30px; }
  .project-slide-copy { padding: 35px; }
  .project-slide, .project-slide-visual img { min-height: 430px; }
  .project-slide-visual img { height: 430px; }
}
@media (max-width: 860px) {
  .project-page { padding-top: 45px; }
  .project-heading { gap: 20px; margin-bottom: 27px; }
  .project-heading > p { max-width: 620px; }
  .project-slide { grid-template-columns: 1fr 1fr; }
  .project-slide-copy { padding: 27px; }
  .project-slide h2 { font-size: 1.8rem; }
  .project-slide-description { font-size: .84rem; margin-top: 20px; }
  .project-slide-detail { margin-top: 22px; font-size: .56rem; }
}
@media (max-width: 600px) {
  .project-heading .page-title { font-size: 2rem; }
  .project-heading > p { font-size: .86rem; }
  .project-showcase { border-radius: 12px; }
  .project-slide { display: flex; flex-direction: column-reverse; min-height: 0; }
  .project-slide-visual img { height: 250px; min-height: 0; }
  .project-slide-visual { border-left: 0; border-bottom: 1px solid var(--line); }
  .project-slide-copy { padding: 25px; min-height: 320px; justify-content: flex-start; }
  .project-slide-kicker { margin-bottom: 18px; }
  .project-slide h2 { max-width: 310px; font-size: 1.9rem; }
  .project-slide-description { font-size: .83rem; }
  .project-slide-detail { margin-top: 20px; }
  .project-carousel-toolbar { padding: 12px 17px; }
  .project-carousel-actions { gap: 6px; }
  #portfolio-grid { grid-template-columns: 1fr; }
  #portfolio-grid .product-card > img { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-slide, .project-slide-copy, .project-slide-visual, .project-slide-visual img { animation: none; }
  .project-carousel-actions button:hover { transform: none; }
}
