/* =========================================================================
   LAGOS | Architectural Pulse — styles
   Yapı:
     1. Tokens & reset            6. Kurumsal hero (sabitlenen)
     2. Erişilebilirlik yardımcıları 7. Projeler / Foundations
     3. Preloader & üst ilerleme  8. Harita / Blueprint
     4. Header & drawer           9. İletişim / Footer / Modal
     5. Sinematik sahne + HUD    10. Scroll animasyon sistemi, reduced-motion, responsive
     5b. Geçiş yazıları (film üstü, scroll'a bağlı)
   ========================================================================= */

/* 1. TOKENS & RESET ------------------------------------------------------ */
:root {
  --crimson: #c8102e;
  --crimson-bright: #e11d2a;
  --crimson-deep: #8b0a1e;
  --obsidian: #0d0e11;
  --charcoal: #17191e;
  --paper: #ffffff;
  --stone: #f4f5f7;
  --ink: #121317;
  --muted: #5e636e;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-poster: 'Oswald', 'Arial Narrow', sans-serif;
  --header-h: 78px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--obsidian);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  background-color: var(--obsidian);
  -webkit-font-smoothing: antialiased;
}

html.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

section[id],
div[id='wp-foundations'],
footer[id] {
  scroll-margin-top: calc(var(--header-h) - 8px);
}

/* 2. ACCESSIBILITY HELPERS ----------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  background: var(--crimson);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--crimson-bright);
  outline-offset: 3px;
}

.wp-site:focus {
  outline: none;
}

/* 3. PRELOADER & TOP PROGRESS -------------------------------------------- */
.top-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--crimson), #ff4b57);
  z-index: 1000;
  box-shadow: 0 0 12px rgba(225, 29, 42, 0.8);
  pointer-events: none;
  will-change: transform;
}

.preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1b070b 0%, #090a0d 100%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  width: min(440px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preloader-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pulse-logo-svg {
  width: 52px;
  height: 40px;
  flex-shrink: 0;
}

.preloader-brand {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: var(--font-poster);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 4px;
}

.preloader-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 16px var(--crimson-bright);
  transition: transform 0.2s ease;
}

.preloader-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
}

/* 4. HEADER & DRAWER ------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 56px);
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 500;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.78) 0%, rgba(10, 11, 14, 0) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s ease, border-color 0.35s ease, height 0.3s ease, transform 0.45s var(--ease-out);
}

/* Film oynarken arka plan bulanıklığı her karede yeniden hesaplanmasın */
.site-header.in-journey {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.62) 0%, rgba(10, 11, 14, 0) 100%);
}

.site-header.is-hidden {
  transform: translateY(-105%);
}

.site-header.scrolled-light {
  background: rgba(15, 16, 20, 0.92);
  border-bottom-color: rgba(225, 29, 42, 0.28);
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--crimson-bright);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.55);
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.lang-opt.is-active {
  color: #fff;
}

.lang-btn:hover {
  background: rgba(225, 29, 42, 0.24);
  border-color: var(--crimson-bright);
}

.menu-trigger {
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.menu-trigger span {
  width: 16px;
  height: 1.8px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.menu-trigger:hover,
.menu-trigger[aria-expanded='true'] {
  border-color: var(--crimson-bright);
  background: rgba(225, 29, 42, 0.2);
}

.menu-trigger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(5.8px) rotate(45deg);
}

.menu-trigger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-trigger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-5.8px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(12, 13, 17, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(225, 29, 42, 0.35);
  z-index: 490;
  padding: 36px clamp(24px, 6vw, 80px);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease, visibility 0s linear 0.4s;
}

.nav-drawer.open {
  transform: translateY(0%);
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease, visibility 0s;
}

.nav-drawer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.drawer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #ff5b67;
  margin-bottom: 6px;
}

.drawer-chapter-btn,
.drawer-link {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.drawer-chapter-btn:hover,
.drawer-link:hover {
  background: rgba(200, 16, 46, 0.25);
  border-color: var(--crimson-bright);
  transform: translateX(6px);
}

/* 5. CINEMATIC STAGE + HUD ----------------------------------------------- */
/* Yükseklik ve kamera tempo değerleri app.js → TIMELINE içinde. 1040vh = 940vh film scroll'u
   (dron akışının çok daha sakin, kontrollü ve sinematik ilerlemesi için genişletildi). */
.scroll-journey {
  position: relative;
  height: 1040vh;
  z-index: 30;
  pointer-events: none;
}

.cinema-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh; /* mobilde adres çubuğu açılıp kapanınca tuval yeniden boyutlanmasın */
  overflow: hidden;
  background: transparent;
  z-index: 30;
  pointer-events: none;
  transition: opacity 0.22s linear, visibility 0.22s linear;
}

.cinema-stage.portal-complete {
  opacity: 0;
  visibility: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: block;
  pointer-events: none;
}

.ambient-canvas {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.ambient-canvas.is-on {
  opacity: 1;
}

/* Sinematik vinyet — portal açılırken HUD ile birlikte söner */
.cinema-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 58%, rgba(5, 5, 8, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.28) 0%, transparent 16%, transparent 82%, rgba(5, 5, 8, 0.34) 100%);
  opacity: var(--hud, 1);
}

/* HUD görsel görünür alanın altına sabit (iOS araç çubuğunun üstünde kalır) */
.cinema-minimal-bar {
  position: fixed;
  left: clamp(18px, 3.5vw, 48px);
  right: clamp(18px, 3.5vw, 48px);
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
  opacity: var(--hud, 1);
  transform: translate3d(0, calc((1 - var(--hud, 1)) * 18px), 0);
  transition: opacity 0.2s linear;
}

.cinema-minimal-bar.is-faded {
  pointer-events: none;
}

.cmb-chapters {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 11, 15, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cmb-pill {
  --p: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

/* Bölüm içi ilerleme çizgisi (scroll'a bağlı) */
.cmb-pill::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--crimson-bright);
  transform: scaleX(var(--p));
  transform-origin: 0 50%;
  opacity: 0.9;
}

.cmb-pill .cmb-num {
  color: #ff5b67;
  font-weight: 700;
}

.cmb-pill.active,
.cmb-pill:hover {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.5);
}

.cmb-pill.active::after,
.cmb-pill:hover::after {
  background: rgba(255, 255, 255, 0.85);
}

.cmb-pill.active .cmb-num,
.cmb-pill:hover .cmb-num {
  color: #fff;
}

.cmb-status {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 11, 15, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  min-width: 0;
}

.cmb-part-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmb-frame {
  color: #ff6b75;
  font-weight: 700;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 11, 15, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  transition: opacity 0.4s ease;
}

.scroll-indicator.is-idle {
  opacity: 0.35;
}

.mouse-icon {
  width: 18px;
  height: 28px;
  border: 1.8px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.mouse-wheel {
  width: 2.5px;
  height: 6px;
  background: var(--crimson-bright);
  border-radius: 999px;
  animation: scrollWheel 1.6s infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(9px); opacity: 0; }
}

/* 5b. GEÇİŞ YAZILARI — film üstü, scroll'a bağlı ---------------------------- */
/* app.js her yazıya --in (giriş 0→1), --out (çıkış 0→1), --c (aralık içi konum
   0→1) ve --env (görünürlük) yazar. Bütün hareket bu değişkenlerden türetilir;
   zamanlı CSS geçişi yoktur → yazılar scroll'u birebir izler, geri sarılır. */
.cine-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  color: #fff;
  pointer-events: none;
}

.cine-veil,
.cine-grid,
.cine-scan {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  /* Her perde kendi katmanında: tuval her karede yeniden çizilirken bu katmanlar
     yeniden boyanmaz, yalnızca saydamlıkları değişir (kompozitör işi). */
  will-change: opacity;
}

.cine-veil.is-on,
.cine-grid.is-on,
.cine-scan.is-on {
  visibility: visible;
}

.cine-veil--left {
  background: linear-gradient(90deg, rgba(8, 8, 11, 0.9) 0%, rgba(8, 8, 11, 0.62) 32%, rgba(8, 8, 11, 0.2) 56%, rgba(8, 8, 11, 0) 74%);
}

.cine-veil--full {
  background: radial-gradient(ellipse 78% 72% at 50% 50%, rgba(8, 8, 11, 0.64) 0%, rgba(8, 8, 11, 0.92) 100%);
}

/* Blueprint ızgarası: 192px ana + 24px ara çizgi, kenarlara doğru söner. JS bir kez
   tuvale çizer (sönüm dahil); sonra yalnız saydamlık/ölçek değişir. CSS mask-image ile
   yapılan sürüm, GPU'suz (yazılımsal) çizimde her karede pahalı bir maske geçişi istiyordu. */
.cine-grid {
  --gs: 1;
  width: 100%;
  height: 100%;
  transform: scale(var(--gs));
  will-change: opacity, transform;
}

/* Tarama çizgisi: yazının aralık içi konumuyla (--c) yukarıdan aşağı iner
   (konumu JS yazar; ayrı katman → yalnız taşınır, yeniden boyanmaz) */
.cine-scan {
  bottom: auto;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 70, 82, 0.85) 22%, rgba(255, 70, 82, 0.85) 78%, transparent 100%);
  box-shadow: 0 0 22px 2px rgba(225, 29, 42, 0.5);
  will-change: transform, opacity;
}

.cine-cap {
  --in: 0;
  --out: 0;
  --c: 0;
  --env: 0;
  position: absolute;
  visibility: hidden;
}

.cine-cap.is-live {
  visibility: visible;
}

/* Sol blok — dikey ortalı */
.cap--left {
  left: clamp(24px, 6.2vw, 120px);
  top: 50%;
  width: min(860px, 52vw);
  transform: translate3d(0, -50%, 0);
}

/* Orta blok — sert kesmenin üstünde */
.cap--center {
  left: 50%;
  top: 50%;
  width: min(1200px, 88vw);
  transform: translate3d(-50%, -50%, 0);
  text-align: center;
}

/* Çıkış: blok bütün olarak süzülüp söner */
.cap-body {
  position: relative;
  opacity: calc(1 - var(--out));
  transform: translate3d(calc(var(--out) * -56px), 0, 0);
}

.cap--center .cap-body {
  transform: translate3d(0, calc(var(--out) * -36px), 0) scale(calc(1 - var(--out) * 0.035));
}

.cap-kicker {
  --e: clamp(0, calc(var(--in) * 1.6), 1);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(14px, 2.4vh, 26px);
  font-family: var(--font-display);
  font-size: clamp(0.66rem, 0.78vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.26em;
  color: #ff5b67;
  opacity: var(--e);
}

.cap--center .cap-kicker {
  justify-content: center;
}

.cap-rule {
  flex: none;
  width: clamp(36px, 4vw, 64px);
  height: 2px;
  background: var(--crimson-bright);
  box-shadow: 0 0 12px rgba(225, 29, 42, 0.7);
  transform: scaleX(var(--in));
  transform-origin: 0 50%;
}

.cap-rule--end {
  transform-origin: 100% 50%;
}

.cap-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.cap--center .cap-title {
  font-size: clamp(2.3rem, 4.6vw, 5.2rem);
}

/* Satır maskesi: her satır kendi kutusundan sırayla yükselir (--l = satır sırası) */
.cap-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.14em;
  margin: -0.06em 0 -0.14em;
}

.cap-line > span {
  --e: clamp(0, calc(var(--in) * 1.7 - var(--l, 0) * 0.22), 1);
  display: inline-block;
  /* maske kutusu alt harfler için 0.14em uzatıldı → yol %100'ün epey üstünde başlar
     (başlangıçta harf tepeleri maskeden sızmasın) */
  opacity: clamp(0, calc(var(--e) * 5), 1);
  transform: translate3d(0, calc((1 - var(--e)) * 140%), 0) rotate(calc((1 - var(--e)) * 2.5deg));
  transform-origin: 0 100%;
}

.cap-dot {
  font-style: normal;
  color: var(--crimson-bright);
}

.cap-text {
  --e: clamp(0, calc(var(--in) * 1.8 - 0.75), 1);
  max-width: 34em;
  margin-top: clamp(16px, 2.6vh, 28px);
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  opacity: var(--e);
  transform: translate3d(0, calc((1 - var(--e)) * 16px), 0);
}

/* Aralık içi ilerleme çizgisi: yazı sahnedeyken scroll ile dolar */
.cap-meter {
  display: block;
  width: min(240px, 60%);
  height: 1px;
  margin-top: clamp(18px, 3vh, 30px);
  background: rgba(255, 255, 255, 0.18);
  opacity: var(--env);
}

.cap-meter::after {
  content: '';
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(var(--c));
  transform-origin: 0 50%;
}

/* Arka plandaki dev rakam (yalnız kontur) — yazıdan yavaş kayar (paralaks) */
.cap-num {
  position: absolute;
  left: -0.05em;
  bottom: calc(100% - 0.2em);
  font-family: var(--font-display);
  font-size: clamp(7rem, 15vw, 15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.24);
  opacity: calc(var(--env) * 0.9);
  transform: translate3d(0, calc((0.5 - var(--c)) * 90px), 0);
  user-select: none;
}

.cap--center .cap-num {
  left: 50%;
  bottom: calc(100% + 0.02em);
  transform: translate3d(-50%, calc((0.5 - var(--c)) * 60px), 0);
}

/* Sayısal şerit (sayaçlar giriş ile birlikte sayar) */
.cap-stats {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 64px);
  margin-top: clamp(24px, 4vh, 44px);
  list-style: none;
}

.cap-stats li {
  --e: clamp(0, calc(var(--in) * 2.4 - 1 - var(--d, 0)), 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 9.5em;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  opacity: var(--e);
  transform: translate3d(0, calc((1 - var(--e)) * 22px), 0);
}

.cap-stats strong,
.cap-figures strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cap-stats span,
.cap-figures span {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.62);
}

/* Kırmızı karelerin üstünde: kırmızı vurgular beyaza döner (kontrast) */
.cap--on-red .cap-kicker {
  color: rgba(255, 255, 255, 0.9);
}

.cap--on-red .cap-rule,
.cap--on-red .cap-meter::after {
  background: #fff;
  box-shadow: none;
}

.cap--on-red .cap-dot {
  color: #fff;
}

.cap--on-red .cap-figures li {
  border-right-color: rgba(255, 255, 255, 0.85);
}

/* LAGOS afişi: yazı afişin iki yanındaki "duvarlara" yerleşir (yalnız geniş ekran) */
.cap--walls {
  inset: 0;
  display: none;
}

.cap-wall {
  position: absolute;
  top: 50%;
  width: calc(41vw - 29vh);
  transform: translate3d(0, -50%, 0);
}

.cap-wall--l {
  left: 5vw;
}

.cap-wall--r {
  right: 5vw;
  text-align: right;
}

.cap-wall--r .cap-body {
  transform: translate3d(calc(var(--out) * 56px), 0, 0);
}

.cap--walls .cap-title {
  font-size: clamp(1.6rem, 2.3vw, 2.8rem);
}

.cap-figures {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(16px, 3.2vh, 32px);
  list-style: none;
}

.cap-figures li {
  --e: clamp(0, calc(var(--in) * 2.2 - 0.7 - var(--d, 0)), 1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-right: 18px;
  border-right: 2px solid var(--crimson-bright);
  opacity: var(--e);
  transform: translate3d(calc((1 - var(--e)) * 28px), 0, 0);
}

@media (min-aspect-ratio: 3/2) and (min-width: 1100px) {
  .cap--walls {
    display: block;
  }
}

/* Etkin yazının her karede değişen parçaları kendi katmanında (yalnız sahnedeyken):
   yazı katmanı her scroll adımında yeniden boyanmaz, parçalar yalnızca taşınır/söner. */
.cine-cap.is-live .cap-body,
.cine-cap.is-live .cap-line > span,
.cine-cap.is-live .cap-num,
.cine-cap.is-live .cap-kicker,
.cine-cap.is-live .cap-text,
.cine-cap.is-live .cap-stats li,
.cine-cap.is-live .cap-figures li,
.cine-cap.is-live .cap-meter,
.cine-cap.is-live .cap-meter::after {
  will-change: transform, opacity;
}

@media (max-width: 1024px) {
  .cap--left {
    width: min(620px, 74vw);
  }
}

/* Debug paneli (?debug) */
.debug-hud {
  position: fixed;
  top: 84px;
  right: 12px;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.78);
  color: #9effa8;
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 8px 10px;
  border-radius: 8px;
  pointer-events: none;
  white-space: pre;
}

/* 6. KURUMSAL SİTE + SABİT HERO ------------------------------------------ */
.wp-site {
  position: relative;
  z-index: 10;
  margin-top: -155vh; /* JS bunu portal başlangıcına göre piksel olarak hesaplar */
  background: var(--paper);
}

.wp-container {
  width: min(1260px, 92vw);
  margin: 0 auto;
}

.wp-hero-pin-wrapper {
  position: relative;
  height: 185vh; /* JS: sabitlenme + portal + bekleme süresi */
}

.wp-hero-section {
  --hp: 1; /* hero ilerlemesi: portal açılırken 0 → 1 */
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 110px 0 56px;
  background: linear-gradient(180deg, #6e0c18 0%, #16171b 72%, #ffffff 100%);
  overflow: hidden;
}

.wp-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wp-hero-img {
  width: 100%;
  height: 88%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transform: scale(calc(1.14 - var(--hp) * 0.14));
  transform-origin: 50% 40%;
  will-change: transform;
}

.wp-hero-red-mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 62%, rgba(215, 24, 42, 0.42) 0%, transparent 55%),
    linear-gradient(180deg, rgba(12, 13, 17, 0.25) 0%, rgba(12, 13, 17, 0.1) 55%, #ffffff 94%);
}

.wp-hero-cards-wrap {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* Kartlar portal açılırken yükselir (scroll'a bağlı, --hp) */
.hero-rise {
  --rise: clamp(0, calc(var(--hp) * 1.35 - var(--i, 0) * 0.18), 1);
  transform: translate3d(0, calc((1 - var(--rise)) * 70px), 0);
  opacity: calc(0.15 + var(--rise) * 0.85);
}

.vision-card {
  background: #ffffff;
  border-radius: 26px;
  padding: clamp(28px, 3.8vw, 46px);
  box-shadow: 0 28px 70px rgba(14, 16, 21, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vision-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.vision-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--crimson);
  display: block;
  margin-bottom: 4px;
}

.vision-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.vision-ring-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.vision-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(200, 16, 46, 0.14);
  stroke-width: 5;
}

.ring-fill {
  fill: none;
  stroke: var(--crimson);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s ease;
}

.vision-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--crimson);
  font-variant-numeric: tabular-nums;
}

.vision-slide {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.vision-slide.is-swapping {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

.vision-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
}

.vision-body {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 26px;
}

.vision-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.vision-bars {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.v-bar {
  height: 4px;
  flex: 1;
  max-width: 48px;
  background: #e3e5ea;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background 0.25s ease, max-width 0.25s ease;
}

/* tıklama alanını büyüt (4px çubuk dokunmatikte zor) */
.v-bar::before {
  content: '';
  position: absolute;
  inset: -10px -2px;
}

.v-bar.active {
  background: var(--crimson);
  max-width: 68px;
}

.vision-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vision-counter {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.vision-next-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(200, 16, 46, 0.25);
  background: rgba(200, 16, 46, 0.06);
  color: var(--crimson);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.vision-next-btn:hover {
  background: var(--crimson);
  color: #fff;
}

.telemetry-card {
  background: linear-gradient(180deg, rgba(46, 36, 39, 0.82) 0%, rgba(255, 255, 255, 0.95) 62%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  padding: clamp(26px, 3.2vw, 38px);
  box-shadow: 0 28px 70px rgba(14, 16, 21, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.telemetry-title {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
}

.telemetry-live-dot {
  background: rgba(225, 29, 42, 0.9);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.12em;
  animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 42, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(225, 29, 42, 0); }
}

.telemetry-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.telemetry-item:first-child {
  color: #fff;
}

.telemetry-item:last-child {
  color: var(--ink);
  padding-top: 12px;
}

.t-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.78;
  display: block;
  margin-bottom: 6px;
}

.t-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.t-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.t-sub-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.t-progress {
  height: 4px;
  background: rgba(128, 128, 128, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.t-progress-bar {
  height: 100%;
  background: var(--crimson-bright);
  border-radius: 999px;
}

/* Scroll'a bağlı dolum çubukları — JS genişliği %100 yapıp transform: scaleX() yazar
   (JS yoksa HTML'deki inline genişlik geçerli kalır) */
[data-bar] {
  transform-origin: 0 50%;
  will-change: transform;
}

/* 7. PROJELER / FOUNDATIONS ---------------------------------------------- */
.wp-projects-section {
  padding: 96px 0 110px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    #ffffff;
  background-size: 64px 64px;
}

.wp-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.wp-red-kicker {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--crimson);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.wp-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.wp-section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: #f2f3f6;
  border: 1px solid transparent;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.28);
}

.bento-projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(290px, auto);
  grid-auto-flow: dense;
  gap: 24px;
  margin-bottom: 110px;
}

.bento-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(15, 17, 22, 0.09);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, opacity 0.35s ease;
  background: #fff;
}

.bento-card:hover,
.bento-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(200, 16, 46, 0.18);
}

.bento-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.bento-tall {
  grid-column: span 5;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 7;
  grid-row: span 1;
}

.bento-red-feature {
  grid-column: span 7;
  grid-row: span 2;
}

.bento-spec-card {
  grid-column: span 4;
  grid-row: span 1;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.bento-crimson-box {
  grid-column: span 4;
  grid-row: span 1;
}

.bento-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

/* Paralaks: JS --py yazar; hover ölçeği ayrı değişkende */
.bento-img-wrap img {
  --py: 0px;
  --zoom: 1.1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate3d(0, var(--py), 0) scale(var(--zoom));
  transition: --zoom 0.6s var(--ease-out);
  will-change: transform;
}

@property --zoom {
  syntax: '<number>';
  inherits: false;
  initial-value: 1.1;
}

.bento-card:hover .bento-img-wrap img,
.bento-card:focus-visible .bento-img-wrap img {
  --zoom: 1.16;
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 15, 0.15) 0%, rgba(10, 11, 15, 0.05) 45%, rgba(10, 11, 15, 0.86) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.bento-tag {
  align-self: flex-start;
  background: rgba(15, 16, 20, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.bento-bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.bento-bottom-bar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bento-bottom-bar p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
}

.bento-corner-arrow {
  width: 48px;
  height: 48px;
  background: var(--crimson);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.5);
  transition: transform 0.25s ease, background 0.25s ease;
}

.bento-card:hover .bento-corner-arrow {
  transform: translate(3px, -3px);
  background: var(--crimson-bright);
}

.bento-spec-img {
  height: 220px;
  overflow: hidden;
}

.bento-spec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-spec-img img {
  transform: scale(1.06);
}

.bento-spec-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.spec-kicker {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--crimson);
}

.bento-spec-body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
  font-size: 0.83rem;
  color: var(--muted);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  padding-bottom: 5px;
}

.spec-list strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.foundations-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.winding-road-col {
  position: relative;
}

.winding-road-artwork {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(200, 16, 46, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.winding-road-img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  /* görselin üst-sağındaki gömülü (yapay metinli) kart kadraj dışında kalsın */
  object-position: left 78%;
  display: block;
}

.floating-road-card {
  position: absolute;
  right: -18px;
  top: 28px;
  background: #ffffff;
  padding: 22px 24px;
  border-radius: 20px;
  box-shadow: 0 24px 55px rgba(15, 17, 22, 0.16);
  max-width: 290px;
  border-left: 4px solid var(--crimson);
}

.frc-kicker {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--crimson);
}

.floating-road-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 6px 0 4px;
  color: var(--ink);
}

.floating-road-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.frc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.frc-stats small {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
}

.frc-stats strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--ink);
}

.foundations-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 18px;
}

.foundations-desc {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--muted);
  margin-bottom: 28px;
  min-height: 5.04em; /* faz metni değişirken içerik zıplamasın */
}

.foundations-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  margin-bottom: 28px;
}

.fc-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.fc-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.dark-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 14px 30px rgba(18, 19, 23, 0.22);
}

.dark-pill-btn:hover {
  background: var(--crimson);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(200, 16, 46, 0.35);
}

.phase-timeline {
  margin: 34px 0 28px;
}

.phase-progress-track {
  height: 4px;
  background: #e5e7ec;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.phase-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--crimson-deep), var(--crimson-bright));
  transform: scaleX(0.25);
  transform-origin: 0 50%;
  will-change: transform;
}

.phase-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.phase-tab {
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 4px;
  transition: color 0.2s ease;
}

.phase-tab.done {
  color: var(--ink);
}

.phase-tab.active,
.phase-tab:hover {
  color: var(--crimson);
  font-weight: 700;
}

.cad-sketch-card {
  background: #fafbfc;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 18px;
  padding: 18px 20px;
}

.cad-sketch-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 8px;
}

.cad-scale {
  color: var(--crimson);
  white-space: nowrap;
}

.cad-wireframe-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* 8. HARİTA / BLUEPRINT -------------------------------------------------- */
.wp-map-section {
  position: relative;
  padding: 84px 0 96px;
  background: #101216;
  color: #fff;
  overflow: hidden;
}

/* Paralaks arka planlar: boşluk kalmaması için taşma payı */
.wp-map-bg,
.wp-blueprint-bg {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--bgy, 0px), 0);
  will-change: transform;
}

.wp-map-bg {
  opacity: 0.85;
}

.wp-map-grid-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 30%, rgba(10, 12, 16, 0.85) 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}

.wp-map-inner {
  position: relative;
  z-index: 2;
}

.wp-map-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.map-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

.map-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 12px var(--crimson-bright);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.76);
}

.pin-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

.pin-dot.active {
  background: var(--crimson-bright);
  box-shadow: 0 0 8px var(--crimson-bright);
}

.pin-dot.done {
  background: #fff;
}

.tactical-map-stage {
  position: relative;
  height: clamp(420px, 56vw, 580px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 14, 18, 0.35);
  overflow: hidden;
}

/* Radar taraması (yalnızca transform → kompozitörde döner) */
.radar-sweep {
  position: absolute;
  left: 47%;
  top: 61%;
  width: 150%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(225, 29, 42, 0.16), rgba(225, 29, 42, 0) 16%, rgba(225, 29, 42, 0) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

.tactical-map-stage.is-in .radar-sweep {
  opacity: 1;
  animation: radarSpin 7s linear infinite;
}

@keyframes radarSpin {
  to { rotate: 360deg; }
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  z-index: 3;
}

/* Pinler harita görünür olunca sırayla düşer */
html.js .tactical-map-stage .map-pin {
  opacity: 0;
  translate: 0 -14px;
  transition: opacity 0.5s ease, translate 0.6s var(--ease-out);
  transition-delay: calc(0.25s + var(--i, 0) * 0.12s);
}

html.js .tactical-map-stage.is-in .map-pin {
  opacity: 1;
  translate: 0 0;
}

.pin-pulse {
  position: absolute;
  left: 7px;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(225, 29, 42, 0.38);
  animation: radarPulse 2.1s infinite ease-out;
  pointer-events: none;
}

@keyframes radarPulse {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
}

.pin-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--crimson-bright);
  box-shadow: 0 0 16px var(--crimson-bright);
  position: relative;
  z-index: 2;
}

.map-pin.active .pin-core {
  width: 18px;
  height: 18px;
  background: var(--crimson-bright);
  border-color: #fff;
}

.pin-label {
  background: rgba(12, 13, 17, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.map-pin.active .pin-label,
.map-pin:hover .pin-label {
  background: var(--crimson);
  border-color: #ff858f;
}

.map-telemetry-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(360px, 88%);
  background: rgba(14, 15, 20, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(225, 29, 42, 0.45);
  border-radius: 18px;
  padding: 22px 24px;
  z-index: 4;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.map-telemetry-panel.is-swapping {
  opacity: 0.25;
  transform: translate3d(0, 6px, 0);
}

.mtp-badge {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff6b75;
}

.map-telemetry-panel h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin: 6px 0 8px;
}

.map-telemetry-panel p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
  margin-bottom: 14px;
}

.mtp-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mtp-metrics small {
  display: block;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
}

.mtp-metrics strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.wp-blueprint-section {
  position: relative;
  padding: 96px 0 110px;
  background: #4e0913;
  color: #fff;
  overflow: hidden;
}

.wp-blueprint-bg {
  filter: contrast(1.08);
}

.wp-blueprint-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(95, 10, 22, 0.72) 0%, rgba(28, 7, 11, 0.68) 100%);
}

.wp-blueprint-inner {
  position: relative;
  z-index: 2;
}

.bp-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.bp-kicker {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ff9aa1;
  display: block;
  margin-bottom: 6px;
}

.bp-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
}

.bp-node-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bp-node-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bp-node-btn.active,
.bp-node-btn:hover {
  background: #fff;
  color: var(--crimson-deep);
}

.bp-stage {
  position: relative;
  min-height: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: end;
}

.bp-cad-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bp-hotspots circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: hotspotBeat 2.4s ease-in-out infinite;
}

.bp-hotspots circle:nth-child(2) { animation-delay: 0.4s; }
.bp-hotspots circle:nth-child(3) { animation-delay: 0.8s; }
.bp-hotspots circle:nth-child(4) { animation-delay: 1.2s; }

@keyframes hotspotBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.bp-left-cards,
.bp-right-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bp-glass-card,
.bp-metric-card {
  background: rgba(32, 12, 16, 0.68);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 20px 22px;
}

.bp-card-tag {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff8a93;
}

.bp-glass-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 6px 0 8px;
}

.bp-glass-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.bp-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bp-mini-grid small {
  display: block;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.6);
}

.bp-mini-grid strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
}

.bpm-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.bpm-top strong {
  font-size: 1.25rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.bp-metric-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 10px;
}

.bpm-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.bpm-bar div {
  height: 100%;
  background: var(--crimson-bright);
  box-shadow: 0 0 10px var(--crimson-bright);
}

/* 9. İLETİŞİM / FOOTER / MODAL ------------------------------------------- */
.wp-contact-white-strip {
  background: #ffffff;
  padding: 54px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.white-strip-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr auto;
  gap: 36px;
  align-items: center;
}

.ws-left h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.ws-left p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.ws-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ws-bar-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.ws-bar-head strong {
  font-variant-numeric: tabular-nums;
}

.ws-track {
  height: 5px;
  background: #e5e7ec;
  border-radius: 999px;
  overflow: hidden;
}

.ws-track div {
  height: 100%;
  background: var(--crimson);
}

.ws-circle-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.3rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ws-circle-arrow:hover {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}

.wp-contact-dark {
  position: relative;
  background: #121316;
  padding: 96px 0 72px;
  color: #fff;
  overflow: hidden;
}

.contact-pulse-svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  width: 100%;
  height: 220px;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 14px rgba(225, 29, 42, 0.85));
  opacity: 0.72;
  pointer-events: none;
}

.contact-dark-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.contact-dark-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-dark-sub {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  margin-bottom: 34px;
}

.pulse-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pill-input,
.pill-textarea {
  width: 100%;
  background: rgba(42, 44, 50, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 20px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pill-input::placeholder,
.pill-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.pill-textarea {
  border-radius: 28px;
  resize: vertical;
}

.pill-input:focus,
.pill-textarea:focus {
  border-color: var(--crimson-bright);
  box-shadow: 0 0 24px rgba(225, 29, 42, 0.32);
}

.pill-input[aria-invalid='true'],
.pill-textarea[aria-invalid='true'] {
  border-color: #ff6b75;
  box-shadow: 0 0 0 1px #ff6b75;
}

.form-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.pill-phone {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.white-glow-btn {
  background: #ffffff;
  color: #111215;
  border: none;
  padding: 20px 42px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.42);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.white-glow-btn:hover {
  background: var(--crimson-bright);
  color: #fff;
  box-shadow: 0 0 40px rgba(225, 29, 42, 0.75);
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  cursor: pointer;
}

.form-checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--crimson-bright);
}

.form-checkbox-row.is-invalid span {
  color: #ff8a93;
}

.form-feedback {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid #22c55e;
  color: #bbf7d0;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.form-feedback.is-error {
  background: rgba(225, 29, 42, 0.16);
  border-color: #ff6b75;
  color: #ffd1d5;
}

.contact-quick-links {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-quick-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.contact-quick-links a:hover {
  color: var(--crimson-bright);
}

.wp-crimson-footer {
  background: linear-gradient(180deg, #a51c24 0%, #92151d 100%);
  color: #ffffff;
  padding: 84px 0 44px;
  padding-bottom: calc(44px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: end;
}

.footer-tower-svg {
  width: min(340px, 82vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.social-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #a51c24;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.social-circle:hover {
  transform: translateY(-4px) scale(1.06);
  background: #111215;
  color: #fff;
}

.footer-giant-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-giant-links a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.footer-giant-links a:hover {
  transform: translateX(10px);
  opacity: 0.85;
}

.footer-spacer {
  height: 18px;
}

.footer-bottom {
  margin-top: 18px;
  text-align: center;
}

.footer-baseline {
  height: 2px;
  background: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
  transform: scaleX(var(--p, 1));
}

.footer-bottom p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* açılışta anında görünür (odak alabilsin), kapanışta önce söner sonra gizlenir */
.project-modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 15, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.project-modal-dialog {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 26px;
  width: min(920px, 94vw);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  padding: clamp(24px, 3.5vw, 40px);
  transform: translate3d(0, 24px, 0) scale(0.98);
  transition: transform 0.4s var(--ease-out);
}

.project-modal.open .project-modal-dialog {
  transform: none;
}

.project-modal-dialog:focus {
  outline: none;
}

.pm-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}

.pm-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.pm-img-col img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 18px;
}

.pm-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--crimson);
}

.pm-info-col h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 6px 0 12px;
}

.pm-info-col p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pm-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.pm-spec-box {
  background: #f5f6f8;
  padding: 12px 14px;
  border-radius: 12px;
}

.pm-spec-box small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

.pm-spec-box strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--ink);
}

/* 10. SCROLL ANİMASYON SİSTEMİ ------------------------------------------- */
/* .reveal: görünür alana girince bir kez yükselir (IntersectionObserver).
   --i ile sıralı gecikme verilir. JS yoksa içerik zaten görünür. */
html.js .reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.95s var(--ease-out),
    box-shadow 0.35s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Reveal bitince JS .reveal sınıfını kaldırır; böylece kartın kendi hover
   geçişleri gecikmesiz çalışır. Henüz açılmamış kart filtrelenirse: */
html.js .bento-card.reveal.is-filtered-out {
  opacity: 0;
  transform: scale(0.96);
  transition-delay: 0s;
}

/* CAD katmanları: faz ilerledikçe JS stroke-dashoffset/opacity yazar */
[data-phase-layer] text {
  transition: opacity 0.4s ease;
}

/* JS yokken: film devre dışı, kurumsal site normal akışta */
html.no-js .scroll-journey,
html.no-js .preloader {
  display: none;
}

html.no-js .wp-site {
  margin-top: 0;
}

html.no-js .wp-hero-pin-wrapper {
  height: auto;
}

html.no-js .wp-hero-section {
  position: relative;
}

/* Hareketi azalt tercihi: dekoratif döngüler ve geçişler kapatılır,
   scroll'a bağlı içerik son hâlinde gösterilir (JS de buna uyar). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal,
  .hero-rise {
    opacity: 1;
    transform: none;
  }

  /* Geçiş yazıları yalnız solarak girer/çıkar (konum değişmez) */
  .cap-body,
  .cap--center .cap-body,
  .cap-wall--r .cap-body,
  .cap-line > span,
  .cap-text,
  .cap-stats li,
  .cap-figures li,
  .cine-grid {
    transform: none !important;
  }

  .cap-line > span {
    opacity: var(--e);
  }

  .cap-num,
  .cine-scan {
    display: none;
  }

  .tactical-map-stage.is-in .radar-sweep {
    animation: none;
    opacity: 0;
  }
}

/* RESPONSIVE -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  /* minmax(0, 1fr): içerik (ör. nowrap etiketler) sütunu ekrandan taşıramasın */
  .wp-hero-cards-wrap,
  .foundations-showcase,
  .bp-stage,
  .white-strip-inner,
  .footer-grid,
  .pm-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-tall,
  .bento-wide,
  .bento-red-feature,
  .bento-spec-card,
  .bento-crimson-box {
    grid-column: span 6;
    grid-row: span 1;
  }

  .cmb-status {
    display: none;
  }

  .bp-cad-svg {
    opacity: 0.45;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 64px;
  }

  .site-header.scrolled-light {
    height: 60px;
  }

  .bento-tall,
  .bento-wide,
  .bento-red-feature,
  .bento-spec-card,
  .bento-crimson-box {
    grid-column: span 12;
  }

  .bento-img-wrap {
    min-height: 300px;
  }

  .scroll-indicator {
    display: none;
  }

  .form-bottom-row {
    grid-template-columns: 1fr;
  }

  .phase-tabs {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .phase-tab {
    font-size: 0.72rem;
  }

  /* Kompakt HUD: yalnız aktif bölümün adı açık */
  .cinema-minimal-bar {
    left: 12px;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    justify-content: center;
  }

  .cmb-chapters {
    gap: 4px;
    padding: 5px;
    max-width: 100%;
    /* mobilde her kare değişiminde bulanıklık maliyeti yüksek */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(10, 11, 15, 0.84);
  }

  .cmb-pill {
    padding: 8px 11px;
    font-size: 0.68rem;
  }

  .cmb-pill .cmb-name {
    display: none;
  }

  .cmb-pill.active .cmb-name {
    display: inline;
  }

  /* Geçiş yazıları: ekranın alt bölümünde, HUD'un üstünde; perde aşağıdan */
  .cap--left,
  .cap--center {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: auto;
    transform: none;
    text-align: left;
  }

  .cap--center .cap-body {
    transform: translate3d(0, calc(var(--out) * -28px), 0);
  }

  .cap--center .cap-kicker {
    justify-content: flex-start;
  }

  .cap-rule--end {
    display: none;
  }

  .cap-title,
  .cap--center .cap-title {
    font-size: clamp(1.7rem, 7.6vw, 2.3rem);
  }

  .cap-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .cap-num,
  .cap--center .cap-num {
    left: -0.04em;
    bottom: calc(100% - 0.2em);
    font-size: 36vw;
    transform: translate3d(0, calc((0.5 - var(--c)) * 60px), 0);
  }

  .cap-stats {
    justify-content: flex-start;
    gap: 14px;
  }

  .cap-stats li {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
  }

  .cap-stats strong {
    font-size: 1.15rem;
  }

  .cap-stats span {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .cine-veil--left {
    background: linear-gradient(0deg, rgba(8, 8, 11, 0.92) 0%, rgba(8, 8, 11, 0.7) 32%, rgba(8, 8, 11, 0.18) 58%, rgba(8, 8, 11, 0) 72%);
  }

  /* Hero kartları küçük ekrana sığsın */
  .wp-hero-section {
    padding: 84px 0 22px;
  }

  .wp-hero-cards-wrap {
    gap: 14px;
  }

  .vision-card {
    padding: 22px 22px 18px;
    border-radius: 22px;
  }

  .vision-card-top {
    margin-bottom: 10px;
  }

  .vision-body {
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .telemetry-card {
    padding: 18px 20px;
    border-radius: 22px;
  }

  .telemetry-header {
    margin-bottom: 12px;
  }

  .telemetry-grid {
    flex-direction: row;
    gap: 16px;
  }

  .telemetry-item {
    flex: 1;
    min-width: 0;
  }

  .telemetry-item:last-child {
    padding-top: 0;
    color: #fff;
  }

  .telemetry-card {
    background: linear-gradient(180deg, rgba(46, 36, 39, 0.9) 0%, rgba(30, 24, 26, 0.92) 100%);
  }

  .t-label {
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .t-value {
    font-size: 1.5rem;
  }

  .t-sub-val {
    font-size: 0.95rem;
  }

  /* Kart, görseldeki gömülü (yapay) bilgi kutusunu örtmeye devam etsin */
  .floating-road-card {
    right: -6px;
    top: 8px;
    max-width: 80%;
    padding: 16px 18px;
  }

  .map-telemetry-panel {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 16px 18px;
  }

  .tactical-map-stage {
    height: 520px;
  }

  .pm-img-col img {
    height: 240px;
  }
}

@media (max-width: 680px) and (max-height: 720px) {
  .telemetry-card {
    display: none;
  }
}
