/* ═══════════════════════════════════════════════════════════
   PROJE DÜNYALARI — önizleme katmanı
   Kural: iskelet aynı kalır; yalnızca atmosfer değişir.
   Dinlenme %20 · Hover %60 · Modal %100
   ═══════════════════════════════════════════════════════════ */

.world-layer {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.project-card-image .card-mockup {
  position: relative;
  z-index: 1;
  transition: box-shadow 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-image {
  transition: background 0.6s ease;
}


/* ─────────────────────────────────────────────
   🌙 MASALAI — "Uyku öncesi"
   ───────────────────────────────────────────── */
.project-card[data-project="social"] .project-card-image {
  background: linear-gradient(180deg, #e3dcf7 0%, #efedfa 62%);
}

.w-night {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, #2c2f62 0%, #1b1d42 55%, #111330 100%);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.w-stars {
  position: absolute;
  inset: 0;
}

.w-stars i {
  position: absolute;
  border-radius: 50%;
  background: #8b74e0;
  opacity: 0.35;
  transition: background 0.6s ease, opacity 0.6s ease;
}

.w-moon {
  position: absolute;
  top: 16px;
  right: 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 6px -4px 0 0 #f6e4ab;
  filter: drop-shadow(0 0 8px rgba(246, 228, 171, 0.55));
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease 0.1s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.w-shoot {
  position: absolute;
  top: 12%;
  left: -18%;
  width: 74px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  opacity: 0;
  transform: rotate(18deg) translateX(0);
}

.project-card[data-project="social"]:is(:hover, :focus-visible, .is-world-live) .w-night { opacity: 1; }
.project-card[data-project="social"]:is(:hover, :focus-visible, .is-world-live) .w-stars i {
  background: #fff;
  animation: w-twinkle 2.6s ease-in-out var(--d) infinite;
}
.project-card[data-project="social"]:is(:hover, :focus-visible, .is-world-live) .w-moon {
  opacity: 1;
  transform: none;
}
.project-card[data-project="social"]:is(:hover, :focus-visible, .is-world-live) .w-shoot {
  animation: w-shoot 1.3s ease-out 0.45s 1 both;
}
.project-card[data-project="social"]:is(:hover, :focus-visible, .is-world-live) .card-mockup {
  box-shadow: 0 24px 50px rgba(8, 9, 30, 0.5), 0 0 36px rgba(200, 205, 255, 0.12);
}
.project-card[data-project="social"]:is(:hover, :focus-visible) .project-card-cta {
  background: #1d1f3d;
  border-color: #1d1f3d;
}

@keyframes w-twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.95; }
}

@keyframes w-shoot {
  0% { opacity: 0; transform: rotate(18deg) translateX(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: rotate(18deg) translateX(340px); }
}


/* ─────────────────────────────────────────────
   🗺️ PAYDAŞ — "Mahalle haritası"
   ───────────────────────────────────────────── */
.project-card[data-project="fitness"] .project-card-image {
  background: #e8f2e6;
}

.w-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  transition: opacity 0.6s ease;
}

.w-map .street { fill: none; stroke: rgba(47, 110, 75, 0.2); stroke-width: 4; }
.w-map .lane { fill: none; stroke: rgba(47, 110, 75, 0.13); stroke-width: 1.6; }
.w-map .river { fill: none; stroke: rgba(80, 150, 170, 0.22); stroke-width: 14; stroke-linecap: round; }
.w-map .park { fill: rgba(77, 156, 112, 0.16); }

.w-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.55s;
}

.w-route path {
  fill: none;
  stroke: #2f8a5b;
  stroke-width: 2;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.w-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 16px;
  height: 16px;
  margin: -20px 0 0 -8px;
  opacity: 0;
  transform: translateY(-18px);
}

.w-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 0;
  background: #2f8a5b;
  transform: rotate(-45deg);
  box-shadow: -2px 3px 8px rgba(31, 80, 50, 0.28);
}

.w-pin::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.project-card[data-project="fitness"]:is(:hover, :focus-visible, .is-world-live) .w-map { opacity: 1; }
.project-card[data-project="fitness"]:is(:hover, :focus-visible, .is-world-live) .w-route { clip-path: inset(0 0 0 0); }
.project-card[data-project="fitness"]:is(:hover, :focus-visible, .is-world-live) .w-pin {
  animation: w-pin-drop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) var(--d) both;
}
.project-card[data-project="fitness"]:is(:hover, :focus-visible) .project-card-cta {
  background: #2f8a5b;
  border-color: #2f8a5b;
}

@keyframes w-pin-drop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}


/* ─────────────────────────────────────────────
   📰 ÖZET — "Modern gazete"
   ───────────────────────────────────────────── */
.project-card[data-project="finance"] .project-card-image {
  background: #f3efe6;
}

.project-card[data-project="finance"] .card-mockup {
  margin-top: 58px;
}

/* newsprint grain + fold crease */
.w-paper {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.w-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  height: 7px;
  background: linear-gradient(180deg, rgba(70, 58, 35, 0.09), rgba(255, 255, 255, 0.7) 45%, transparent);
}

/* masthead: ear · nameplate · ear */
.w-mast {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #161a21;
}

.w-logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.3px;
}

.w-ear {
  justify-self: start;
  display: flex;
  flex-direction: column;
  padding: 2px 5px;
  border: 1px solid rgba(22, 26, 33, 0.5);
  color: #4a505a;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.35;
}

.w-ear b {
  color: #161a21;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 9px;
  letter-spacing: 0;
}

.w-ear-r {
  justify-self: end;
  text-align: right;
}

.w-dateline {
  position: absolute;
  top: 39px;
  left: 12px;
  right: 12px;
  padding: 2px 0;
  border-top: 1px solid #161a21;
  border-bottom: 1px solid #161a21;
  color: #4a505a;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* columns either side of the phone */
.w-col {
  position: absolute;
  top: 68px;
  width: calc(21% - 20px);
  min-width: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(22, 26, 33, 0.35);
}

.w-col-l { left: 12px; }
.w-col-r { right: 12px; }

.w-col h6 {
  margin: 0 0 3px;
  color: #161a21;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
}

.w-col i {
  display: block;
  height: 2.5px;
  border-radius: 1px;
  background: rgba(22, 26, 33, 0.2);
}

.w-col i.short { width: 58%; }

.w-breaking {
  align-self: flex-start;
  margin-bottom: 2px;
  padding: 2px 4px;
  color: #fff;
  background: #c8102e;
  font-size: 5.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* "printing": ink settles from blurry/light to crisp, top to bottom */
.w-col > * {
  opacity: 0;
  filter: blur(1.4px);
  transform: translateY(2px);
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.w-col > .w-breaking {
  transform: scale(0.6);
  transition-timing-function: cubic-bezier(0.3, 1.6, 0.5, 1);
}

.project-card[data-project="finance"]:is(:hover, :focus-visible, .is-world-live) .w-col > * {
  opacity: 1;
  filter: none;
  transform: none;
}

.project-card[data-project="finance"]:is(:hover, :focus-visible) .project-card-cta {
  background: #161a21;
  border-color: #161a21;
}


/* ═══════════════════════════════════════════════════════════
   KARTIN DIŞ KISMI — dünyanın küçük işaretleri
   Yerleşim aynı; değişen: işaret şekli, ayraç çizgisi,
   isim fontu, etiket tonu ve hover gölgesi.
   ═══════════════════════════════════════════════════════════ */
.project-card[data-project] .project-role-text::before {
  box-shadow: none;
}
.project-card[data-project] .project-card-cta::after {
  transition: color 0.25s ease;
}

/* 🌙 MasalAI — yıldız işareti, yıldız tozu ayraç, masal fontu */
.project-card[data-project="social"] .project-role-text::before {
  content: "✦";
  width: auto;
  height: auto;
  flex-basis: auto;
  margin-top: -1px;
  background: none;
  color: #7c63d8;
  font-size: 9px;
  line-height: 1;
}
.project-card[data-project="social"] .project-card-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.project-card[data-project="social"] .project-card-footer {
  border-top: 0;
  background: radial-gradient(circle, rgba(124, 99, 216, 0.5) 1px, transparent 1.6px) top left / 9px 3px repeat-x;
}
.project-card[data-project="social"] .tag {
  color: #5b45c4;
  background: rgba(124, 99, 216, 0.06);
  border-color: rgba(124, 99, 216, 0.18);
}
.project-card[data-project="social"] .project-card-cta::after { color: #7c63d8; }
.project-card[data-project="social"]:is(:hover, :focus-visible) {
  background: linear-gradient(180deg, #fff 60%, #f9f8fd);
  border-color: rgba(31, 30, 70, 0.16);
  box-shadow: 0 26px 64px rgba(25, 26, 55, 0.13);
}
.project-card[data-project="social"]:is(:hover, :focus-visible) .project-card-cta::after { color: #f6e4ab; }

/* 🗺️ Paydaş — konum pini işareti, kesik çizgili rota ayraç */
.project-card[data-project="fitness"] .project-role-text::before {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
  margin-top: 2px;
  border-radius: 50% 50% 50% 0;
  background: #2f8a5b;
  transform: rotate(-45deg);
}
.project-card[data-project="fitness"] .project-card-footer {
  border-top: 1.5px dashed rgba(47, 138, 91, 0.4);
}
.project-card[data-project="fitness"] .tag {
  color: #2a7a51;
  background: rgba(47, 138, 91, 0.06);
  border-color: rgba(47, 138, 91, 0.18);
}
.project-card[data-project="fitness"] .project-card-cta::after { color: #2f8a5b; }
.project-card[data-project="fitness"]:is(:hover, :focus-visible) {
  background: linear-gradient(180deg, #fff 55%, #f3f8f1);
  border-color: rgba(47, 138, 91, 0.28);
  box-shadow: 0 26px 64px rgba(31, 80, 50, 0.14);
}
.project-card[data-project="fitness"]:is(:hover, :focus-visible) .project-card-cta::after { color: #fff; }

/* 📰 Özet — kâğıt zemin, kırmızı kare, çift çizgi, gazete manşeti */
.project-card[data-project="finance"] {
  background: #fbf9f3;
}
.project-card[data-project="finance"] .project-role-text::before {
  border-radius: 0;
  background: #c8102e;
}
.project-card[data-project="finance"] .project-card-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.project-card[data-project="finance"] .project-card-sub {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13px;
  font-style: italic;
}
.project-card[data-project="finance"] .project-card-footer {
  border-top: 3px double rgba(22, 26, 33, 0.35);
}
.project-card[data-project="finance"] .tag {
  color: #3a4048;
  background: transparent;
  border-color: rgba(22, 26, 33, 0.3);
  border-radius: 2px;
}
.project-card[data-project="finance"] .project-card-cta {
  border-radius: 2px;
}
.project-card[data-project="finance"] .project-card-cta::after { color: #c8102e; }
.project-card[data-project="finance"]:is(:hover, :focus-visible) {
  border-color: rgba(22, 26, 33, 0.3);
  box-shadow: 0 26px 60px rgba(70, 58, 35, 0.15);
}
.project-card[data-project="finance"]:is(:hover, :focus-visible) .project-card-cta::after { color: #fff; }


/* ═══════════════════════════════════════════════════════════
   MODAL — o projenin dünyasına bürünür
   (sağ panel okunur kalır; atmosfer sol panelde ve vurgularda)
   ═══════════════════════════════════════════════════════════ */
#projectModal .modal-mockups { isolation: isolate; transition: background 0.4s ease; }
#projectModal .mockup-scroll,
#projectModal .mockup-nav { position: relative; z-index: 1; }

/* MasalAI */
#projectModal[data-world="social"] .modal-mockups {
  background: radial-gradient(120% 75% at 50% 0%, #3b3080 0%, #1f1c4b 55%, #131433 100%);
  border-right-color: rgba(255, 255, 255, 0.06);
}
#projectModal[data-world="social"] .w-stars i {
  background: #fff;
  animation: w-twinkle 3s ease-in-out var(--d) infinite;
}
#projectModal[data-world="social"] .w-moon {
  top: 26px;
  left: 30px;
  right: auto;
  width: 30px;
  height: 30px;
  box-shadow: 8px -5px 0 0 #f6e4ab;
  opacity: 1;
  transform: none;
}
#projectModal[data-world="social"] .slider-mockup {
  border-color: #0d0d24;
  box-shadow: 0 30px 60px rgba(5, 4, 25, 0.6), 0 0 60px rgba(167, 139, 250, 0.28);
}
#projectModal[data-world="social"] .mockup-nav-btn {
  color: #e9e4ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
#projectModal[data-world="social"] .mockup-nav-btn:hover { background: rgba(255, 255, 255, 0.18); }
#projectModal[data-world="social"] .mockup-dot { background: rgba(255, 255, 255, 0.25); }
#projectModal[data-world="social"] .mockup-dot.active { background: #f6e4ab; }
#projectModal[data-world="social"] .modal-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: #1f1c4b;
}
#projectModal[data-world="social"] .modal-badge {
  color: #5b45c4;
  background: rgba(124, 99, 216, 0.09);
  border-color: rgba(124, 99, 216, 0.2);
}
#projectModal[data-world="social"] .detail-label { color: #7c63d8; }
#projectModal[data-world="social"] .features-list li::before { content: "✦"; color: #b59a3a; }

/* Paydaş */
#projectModal[data-world="fitness"] .modal-mockups { background: #e8f2e6; }
#projectModal[data-world="fitness"] .w-map { opacity: 0.85; }
#projectModal[data-world="fitness"] .w-route { clip-path: inset(0 0 0 0); transition-delay: 0.3s; }
#projectModal[data-world="fitness"] .w-pin { animation: w-pin-drop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--d) + 0.2s) both; }
#projectModal[data-world="fitness"] .mockup-dot.active { background: #2f8a5b; }
#projectModal[data-world="fitness"] .modal-badge {
  color: #2a7a51;
  background: rgba(47, 138, 91, 0.08);
  border-color: rgba(47, 138, 91, 0.2);
}
#projectModal[data-world="fitness"] .detail-label { color: #2f8a5b; }
#projectModal[data-world="fitness"] .features-list li::before { content: "●"; font-size: 8px; margin-top: 4px; color: #2f8a5b; }

/* Özet — gazete makalesi */
#projectModal[data-world="finance"] .modal-mockups {
  padding-top: 92px;
  padding-bottom: 26px;
  background: #f3efe6;
}
#projectModal[data-world="finance"] .slider-mockup { height: min(488px, calc(92vh - 250px)); }
#projectModal[data-world="finance"] .mockup-nav { margin-top: 14px; }
#projectModal[data-world="finance"] .w-mast.w-lg { top: 20px; left: 28px; right: 28px; }
#projectModal[data-world="finance"] .w-mast.w-lg .w-logo { font-size: 34px; }
#projectModal[data-world="finance"] .w-mast.w-lg .w-ear { padding: 3px 8px; font-size: 7px; }
#projectModal[data-world="finance"] .w-mast.w-lg .w-ear b { font-size: 13px; }
#projectModal[data-world="finance"] .w-dateline.w-lg { top: 64px; left: 28px; right: 28px; padding: 3px 0; font-size: 7.5px; letter-spacing: 1.6px; }
#projectModal[data-world="finance"] .w-paper::after { top: 50%; }
.w-page {
  position: absolute;
  right: 26px;
  bottom: 18px;
  color: #6a707a;
  font: italic 11px "Source Serif 4", Georgia, serif;
}
.w-caption {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin: 12px auto 0;
  padding-top: 8px;
  border-top: 1px solid rgba(22, 26, 33, 0.18);
  color: #4a505a;
  font: italic 12.5px/1.45 "Source Serif 4", Georgia, serif;
  text-align: center;
}
.w-caption b {
  margin-right: 4px;
  color: #161a21;
  font: normal 700 8px "Inter", sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
#projectModal[data-world="finance"] .slider-mockup { box-shadow: 0 18px 34px rgba(60, 48, 25, 0.18); }
#projectModal[data-world="finance"] .mockup-dot.active { background: #161a21; }
#projectModal[data-world="finance"] .mockup-nav-btn { background: #fbf9f3; }

#projectModal[data-world="finance"] .modal-details { background: #fbf9f3; }
#projectModal[data-world="finance"] .modal-badge {
  color: #c8102e;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 9px;
  letter-spacing: 2px;
}
#projectModal[data-world="finance"] .modal-title {
  margin-bottom: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.02;
}
.w-deck {
  margin: 0 0 16px;
  color: #2c3138;
  font: italic 18px/1.45 "Source Serif 4", Georgia, serif;
}
.w-byline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 7px 0;
  border-top: 1px solid #161a21;
  border-bottom: 1px solid rgba(22, 26, 33, 0.18);
  color: #5d6470;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.w-byline b { color: #161a21; }
#projectModal[data-world="finance"] .modal-description {
  color: #2c3138;
  font: 15px/1.7 "Source Serif 4", Georgia, serif;
}
#projectModal[data-world="finance"] .modal-description::first-letter {
  float: left;
  margin: 7px 8px 0 0;
  color: #161a21;
  font: 800 58px/0.8 "Playfair Display", Georgia, serif;
}
#projectModal[data-world="finance"] .detail-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 8px;
  border-top: 2px solid #161a21;
  color: #161a21;
  font-size: 9px;
  letter-spacing: 2px;
}
#projectModal[data-world="finance"] .detail-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #c8102e;
}
#projectModal[data-world="finance"] .detail-text {
  color: #3a4048;
  font: 14px/1.7 "Source Serif 4", Georgia, serif;
}
.w-pull {
  margin: 4px 0 28px;
  padding: 16px 0 14px;
  border-top: 1px solid #161a21;
  border-bottom: 1px solid #161a21;
  color: #161a21;
  font: italic 500 22px/1.32 "Playfair Display", Georgia, serif;
}
#projectModal[data-world="finance"] .tech-grid { gap: 0; }
#projectModal[data-world="finance"] .tech-chip {
  padding: 0;
  border: 0;
  background: none;
  color: #3a4048;
  font: italic 14px "Source Serif 4", Georgia, serif;
}
#projectModal[data-world="finance"] .tech-chip + .tech-chip::before { content: "·"; margin: 0 9px; font-style: normal; }
#projectModal[data-world="finance"] .tech-chip-dot { display: none; }
#projectModal[data-world="finance"] .features-list li {
  color: #3a4048;
  font: 13.5px/1.6 "Source Serif 4", Georgia, serif;
}
#projectModal[data-world="finance"] .features-list li::before { content: "—"; color: #161a21; }


/* ─── Hareket azaltma: atmosfer kalır, hareket gider ─── */
@media (prefers-reduced-motion: reduce) {
  .world-layer *,
  .world-layer *::before { animation: none !important; transition: none !important; }
  .project-card:is(:hover, :focus-visible, .is-world-live) .w-pin,
  #projectModal .w-pin { opacity: 1; transform: none; }
  .w-shoot { display: none; }
}


/* ─────────────────────────────────────────────
   🏘️ SOSYO-BEL — "Mahalle akşamı"
   Hane ziyaretleri: hava kararır, pencereler tek tek yanar,
   bir çatının üstünde başvurunun kurula gittiğini gösteren onay belirir.
   ───────────────────────────────────────────── */
.project-card[data-project="sosyobel"] .project-card-image {
  background: #ecebfb;
}

.w-dusk {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #3629b7 0%, #5b4fd2 52%, #b9b2ef 100%);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.w-town {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 46%;
}

.w-town .home {
  fill: rgba(54, 41, 183, 0.1);
  transition: fill 0.7s ease;
}

.w-town .ground { fill: rgba(54, 41, 183, 0.18); }

.w-town .win {
  fill: rgba(54, 41, 183, 0.16);
  transition: fill 0.35s ease;
}

.w-town .w-check {
  opacity: 0;
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
}
.w-town .w-check circle { fill: #22a06b; stroke: #fff; stroke-width: 1.4; }
.w-town .w-check path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.project-card[data-project="sosyobel"]:is(:hover, :focus-visible, .is-world-live) .w-dusk { opacity: 1; }
.project-card[data-project="sosyobel"]:is(:hover, :focus-visible, .is-world-live) .w-town .home { fill: rgba(24, 17, 92, 0.72); }
.project-card[data-project="sosyobel"]:is(:hover, :focus-visible, .is-world-live) .w-town .win {
  fill: #ffd27a;
  transition-delay: calc(0.35s + var(--i) * 70ms);
}
.project-card[data-project="sosyobel"]:is(:hover, :focus-visible, .is-world-live) .w-town .w-check {
  animation: w-check-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.45s both;
}
.project-card[data-project="sosyobel"]:is(:hover, :focus-visible, .is-world-live) .card-mockup {
  box-shadow: 0 24px 50px rgba(22, 14, 90, 0.42);
}
.project-card[data-project="sosyobel"]:is(:hover, :focus-visible) .project-card-cta {
  background: #3629b7;
  border-color: #3629b7;
}

@keyframes w-check-pop {
  from { opacity: 0; transform: scale(0.3) translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Kartın dış kısmı: ev işareti, mor ayraç ve etiketler */
.project-card[data-project="sosyobel"] .project-role-text::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-basis: 8px;
  margin-top: 1px;
  border-radius: 1px;
  background: #3629b7;
  clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%);
}
.project-card[data-project="sosyobel"] .project-card-footer {
  border-top: 1.5px solid rgba(54, 41, 183, 0.16);
}
.project-card[data-project="sosyobel"] .tag {
  color: #3629b7;
  background: rgba(54, 41, 183, 0.06);
  border-color: rgba(54, 41, 183, 0.16);
}
.project-card[data-project="sosyobel"] .project-card-cta::after { color: #3629b7; }
.project-card[data-project="sosyobel"]:is(:hover, :focus-visible) {
  background: linear-gradient(180deg, #fff 55%, #f4f3fd);
  border-color: rgba(54, 41, 183, 0.24);
  box-shadow: 0 26px 64px rgba(30, 22, 110, 0.14);
}
.project-card[data-project="sosyobel"]:is(:hover, :focus-visible) .project-card-cta::after { color: #ffd27a; }

/* Modal: alacakaranlık gökyüzü, ışıkları yanmış mahalle */
#projectModal[data-world="sosyobel"] .modal-mockups {
  background: linear-gradient(180deg, #2c2196 0%, #4b3fc4 55%, #8f86e3 100%);
  border-right-color: rgba(255, 255, 255, 0.06);
}
#projectModal[data-world="sosyobel"] .w-town { height: 70px; }
#projectModal[data-world="sosyobel"] .modal-mockups { padding-bottom: 84px; }
#projectModal[data-world="sosyobel"] .mockup-nav { z-index: 2; }
#projectModal[data-world="sosyobel"] .w-town .home { fill: rgba(20, 14, 80, 0.7); }
#projectModal[data-world="sosyobel"] .w-town .ground { fill: rgba(255, 255, 255, 0.18); }
#projectModal[data-world="sosyobel"] .w-town .win {
  animation: w-win-on 0.4s ease calc(0.3s + var(--i) * 60ms) both;
}
#projectModal[data-world="sosyobel"] .w-town .w-check {
  animation: w-check-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.3s both;
}
#projectModal[data-world="sosyobel"] .slider-mockup {
  border-color: #140e50;
  box-shadow: 0 30px 60px rgba(14, 8, 60, 0.5), 0 0 50px rgba(255, 210, 122, 0.16);
}
#projectModal[data-world="sosyobel"] .mockup-nav-btn {
  color: #f1efff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}
#projectModal[data-world="sosyobel"] .mockup-nav-btn:hover { background: rgba(255, 255, 255, 0.2); }
#projectModal[data-world="sosyobel"] .mockup-dot { background: rgba(255, 255, 255, 0.28); }
#projectModal[data-world="sosyobel"] .mockup-dot.active { background: #ffd27a; }
#projectModal[data-world="sosyobel"] .modal-badge {
  color: #3629b7;
  background: rgba(54, 41, 183, 0.08);
  border-color: rgba(54, 41, 183, 0.2);
}
#projectModal[data-world="sosyobel"] .detail-label { color: #3629b7; }
#projectModal[data-world="sosyobel"] .features-list li::before { content: "✓"; font-weight: 800; color: #22a06b; }

@keyframes w-win-on {
  from { fill: rgba(255, 255, 255, 0.12); }
  to { fill: #ffd27a; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card[data-project="sosyobel"]:is(:hover, :focus-visible, .is-world-live) .w-town .w-check,
  #projectModal[data-world="sosyobel"] .w-town .w-check { opacity: 1; transform: none; }
  #projectModal[data-world="sosyobel"] .w-town .win { fill: #ffd27a; }
}


/* ─────────────────────────────────────────────
   💬 KÜÇÜK KONUŞMA — "İki dakika"
   Geri sayım halkası dolar, iki yanda sohbet balonları sırayla belirir.
   ───────────────────────────────────────────── */
.project-card[data-project="smalltalk"] .project-card-image {
  background: #fbefea;
}

.w-ring {
  position: absolute;
  top: 7%;
  right: 6%;
  width: 46px;
  height: 46px;
  opacity: .55;
  transition: opacity .5s ease;
}
.w-ring .track { fill: #fff; stroke: rgba(211, 74, 50, 0.16); stroke-width: 4; }
.w-ring .fill {
  fill: none;
  stroke: #d34a32;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  transform: rotate(-90deg);
  transform-origin: 22px 22px;
}
.w-ring text { fill: #d34a32; font: 700 9.5px ui-monospace, Menlo, Consolas, monospace; }

.w-bub {
  position: absolute;
  top: var(--t);
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px) scale(.85);
}
.w-bub.l { left: 4%; transform-origin: left center; }
.w-bub.r { right: 4%; transform-origin: right center; }
.w-bub i { width: 9px; height: 9px; border-radius: 50%; background: #2f6fdc; }
.w-bub b {
  display: block;
  width: 44px;
  height: 17px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(120, 50, 30, 0.12);
}
.w-bub.r b { width: 50px; background: #d34a32; }
.w-bub b.dots { display: flex; align-items: center; justify-content: center; gap: 3px; width: 34px; }
.w-bub b.dots u {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b9a59e;
  animation: w-typing 1.1s ease-in-out infinite;
}
.w-bub b.dots u:nth-child(2) { animation-delay: .15s; }
.w-bub b.dots u:nth-child(3) { animation-delay: .3s; }

@keyframes w-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@keyframes w-ring-fill {
  from { stroke-dashoffset: 113; }
  to { stroke-dashoffset: 28; }
}
@keyframes w-bub-pop {
  from { opacity: 0; transform: translateY(8px) scale(.85); }
  to { opacity: 1; transform: none; }
}

.project-card[data-project="smalltalk"]:is(:hover, :focus-visible, .is-world-live) .project-card-image {
  background: radial-gradient(120% 90% at 50% 0%, #fde4da 0%, #f7d2c3 100%);
}
.project-card[data-project="smalltalk"]:is(:hover, :focus-visible, .is-world-live) .w-ring { opacity: 1; }
.project-card[data-project="smalltalk"]:is(:hover, :focus-visible, .is-world-live) .w-ring .fill {
  animation: w-ring-fill 2s cubic-bezier(.4, 0, .2, 1) .2s both;
}
.project-card[data-project="smalltalk"]:is(:hover, :focus-visible, .is-world-live) .w-bub {
  animation: w-bub-pop .45s cubic-bezier(.3, 1.5, .5, 1) var(--d) both;
}
.project-card[data-project="smalltalk"]:is(:hover, :focus-visible, .is-world-live) .card-mockup {
  box-shadow: 0 24px 50px rgba(150, 50, 30, 0.25);
}
.project-card[data-project="smalltalk"]:is(:hover, :focus-visible) .project-card-cta {
  background: #d34a32;
  border-color: #d34a32;
}

/* Kartın dış kısmı: konuşma balonu işareti, mercan ayraç */
.project-card[data-project="smalltalk"] .project-role-text::before {
  width: 9px;
  height: 7px;
  flex-basis: 9px;
  margin-top: 1px;
  border-radius: 4px 4px 4px 1px;
  background: #d34a32;
}
.project-card[data-project="smalltalk"] .project-card-footer {
  border-top: 1.5px solid rgba(211, 74, 50, 0.18);
}
.project-card[data-project="smalltalk"] .tag {
  color: #b23a24;
  background: rgba(211, 74, 50, 0.06);
  border-color: rgba(211, 74, 50, 0.18);
}
.project-card[data-project="smalltalk"] .project-card-cta::after { color: #d34a32; }
.project-card[data-project="smalltalk"]:is(:hover, :focus-visible) {
  background: linear-gradient(180deg, #fff 55%, #fdf3ef);
  border-color: rgba(211, 74, 50, 0.24);
  box-shadow: 0 26px 64px rgba(120, 45, 25, 0.13);
}
.project-card[data-project="smalltalk"]:is(:hover, :focus-visible) .project-card-cta::after { color: #fff; }

/* Modal */
#projectModal[data-world="smalltalk"] .modal-mockups {
  background: radial-gradient(120% 80% at 50% 0%, #fde4da 0%, #f6cfbf 100%);
}
#projectModal[data-world="smalltalk"] .w-ring.w-lg { top: 26px; right: 28px; width: 58px; height: 58px; opacity: 1; }
#projectModal[data-world="smalltalk"] .w-ring .fill { animation: w-ring-fill 2.4s cubic-bezier(.4, 0, .2, 1) .3s both; }
#projectModal[data-world="smalltalk"] .w-bub { animation: w-bub-pop .45s cubic-bezier(.3, 1.5, .5, 1) calc(var(--d) + .2s) both; }
#projectModal[data-world="smalltalk"] .w-bub.l { left: 5%; }
#projectModal[data-world="smalltalk"] .w-bub.r { right: 5%; }
#projectModal[data-world="smalltalk"] .mockup-dot.active { background: #d34a32; }
#projectModal[data-world="smalltalk"] .modal-badge {
  color: #b23a24;
  background: rgba(211, 74, 50, 0.08);
  border-color: rgba(211, 74, 50, 0.2);
}
#projectModal[data-world="smalltalk"] .detail-label { color: #d34a32; }
#projectModal[data-world="smalltalk"] .features-list li::before {
  content: "";
  width: 8px;
  height: 6px;
  margin-top: 7px;
  border-radius: 4px 4px 4px 1px;
  background: #d34a32;
}


/* ─────────────────────────────────────────────
   📖 TOMAR — "Okuma köşesi"
   Zemin koyu yeşile döner, büyük tırnak belirir, ayraç iner,
   iki yandaki satırların altı altın renkli kalemle çizilir.
   ───────────────────────────────────────────── */
.project-card[data-project="tomar"] .project-card-image {
  background: #efede6;
}

.w-lamp {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 30% 20%, #34433b 0%, #222b26 60%, #1a211d 100%);
  opacity: 0;
  transition: opacity .7s ease;
}

.w-quote {
  position: absolute;
  top: 2%;
  left: 6%;
  color: rgba(34, 43, 38, 0.12);
  font: 600 92px/1 "Source Serif 4", Georgia, serif;
  transition: color .7s ease, transform .7s ease;
}

.w-ribbon {
  position: absolute;
  top: -8px;
  right: 11%;
  width: 16px;
  height: 64px;
  background: #b0823f;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  transform: translateY(-62px);
  transition: transform .7s cubic-bezier(.3, 1.3, .5, 1) .25s;
}

.w-lines {
  position: absolute;
  top: 36%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 15%;
}
.w-lines.l { left: 3%; }
.w-lines.r { right: 3%; align-items: flex-end; }
.w-lines i {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(34, 43, 38, 0.14);
  transition: background .7s ease;
}
.w-lines i.short { width: 62%; }
.w-lines i.mark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #c79a55;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s ease calc(.6s + var(--i) * .12s);
}
.w-lines.r i.mark::after { transform-origin: right; }

.project-card[data-project="tomar"]:is(:hover, :focus-visible, .is-world-live) .w-lamp { opacity: 1; }
.project-card[data-project="tomar"]:is(:hover, :focus-visible, .is-world-live) .w-quote {
  color: rgba(199, 154, 85, 0.55);
  transform: translateY(4px);
}
.project-card[data-project="tomar"]:is(:hover, :focus-visible, .is-world-live) .w-ribbon { transform: none; }
.project-card[data-project="tomar"]:is(:hover, :focus-visible, .is-world-live) .w-lines i { background: rgba(251, 250, 247, 0.16); }
.project-card[data-project="tomar"]:is(:hover, :focus-visible, .is-world-live) .w-lines i.mark::after { transform: scaleX(1); }
.project-card[data-project="tomar"]:is(:hover, :focus-visible, .is-world-live) .card-mockup {
  box-shadow: 0 24px 50px rgba(10, 16, 12, 0.5), 0 0 40px rgba(199, 154, 85, 0.12);
}
.project-card[data-project="tomar"]:is(:hover, :focus-visible) .project-card-cta {
  background: #222b26;
  border-color: #222b26;
}

/* Kartın dış kısmı: ayraç işareti, serif başlık, ince çizgi */
.project-card[data-project="tomar"] .project-role-text::before {
  width: 6px;
  height: 9px;
  flex-basis: 6px;
  margin-top: 0;
  border-radius: 0;
  background: #b0823f;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}
.project-card[data-project="tomar"] .project-card-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}
.project-card[data-project="tomar"] .project-card-footer {
  border-top: 1px solid rgba(34, 43, 38, 0.16);
}
.project-card[data-project="tomar"] .tag {
  color: #2f3b34;
  background: rgba(34, 43, 38, 0.04);
  border-color: rgba(34, 43, 38, 0.14);
}
.project-card[data-project="tomar"] .project-card-cta::after { color: #b0823f; }
.project-card[data-project="tomar"]:is(:hover, :focus-visible) {
  background: linear-gradient(180deg, #fff 55%, #f7f5ef);
  border-color: rgba(34, 43, 38, 0.2);
  box-shadow: 0 26px 64px rgba(20, 28, 24, 0.14);
}
.project-card[data-project="tomar"]:is(:hover, :focus-visible) .project-card-cta::after { color: #e2c08a; }

/* Modal */
#projectModal[data-world="tomar"] .modal-mockups {
  background: radial-gradient(90% 70% at 30% 15%, #34433b 0%, #222b26 60%, #1a211d 100%);
  border-right-color: rgba(255, 255, 255, 0.06);
}
#projectModal[data-world="tomar"] .w-lamp { opacity: 0; }
#projectModal[data-world="tomar"] .w-quote { top: 18px; left: 26px; font-size: 120px; color: rgba(199, 154, 85, 0.5); }
#projectModal[data-world="tomar"] .w-ribbon { right: 34px; height: 84px; transform: none; animation: w-ribbon-drop .7s cubic-bezier(.3, 1.3, .5, 1) .2s both; }
#projectModal[data-world="tomar"] .w-lines { display: none; }
#projectModal[data-world="tomar"] .slider-mockup {
  border-color: #121815;
  box-shadow: 0 30px 60px rgba(5, 10, 8, 0.55), 0 0 50px rgba(199, 154, 85, 0.14);
}
#projectModal[data-world="tomar"] .mockup-nav-btn {
  color: #f1ede3;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
#projectModal[data-world="tomar"] .mockup-nav-btn:hover { background: rgba(255, 255, 255, 0.18); }
#projectModal[data-world="tomar"] .mockup-dot { background: rgba(255, 255, 255, 0.25); }
#projectModal[data-world="tomar"] .mockup-dot.active { background: #c79a55; }
#projectModal[data-world="tomar"] .modal-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #222b26;
}
#projectModal[data-world="tomar"] .modal-badge {
  color: #8a6530;
  background: rgba(176, 130, 63, 0.09);
  border-color: rgba(176, 130, 63, 0.24);
}
#projectModal[data-world="tomar"] .detail-label { color: #9a7444; }
#projectModal[data-world="tomar"] .features-list li::before { content: "¶"; color: #b0823f; font-family: "Source Serif 4", Georgia, serif; }

@keyframes w-ribbon-drop {
  from { transform: translateY(-84px); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card[data-project="smalltalk"]:is(:hover, :focus-visible, .is-world-live) .w-bub,
  #projectModal[data-world="smalltalk"] .w-bub { opacity: 1; transform: none; }
  .project-card[data-project="smalltalk"]:is(:hover, :focus-visible, .is-world-live) .w-ring .fill,
  #projectModal[data-world="smalltalk"] .w-ring .fill { stroke-dashoffset: 28; }
}
