/* -------------------------------------------------------------
   Mümkün Mertebe — design through emergence
   Main Stylesheet (Yaşayan Logo & Nested Mimari)
   ------------------------------------------------------------- */

:root {
  --bg-primary: #F9F6F1; /* Kırık beyaz zemin */
  --text-primary: #141416;
  --text-secondary: #585860;
  --text-muted: #8b8b94;
  --logo-bold: #141416;
  --track-light: rgba(20, 20, 22, 0.12);

  --card-bg: #ffffff;
  --card-sub-bg: rgba(249, 246, 241, 0.75);
  --card-border: rgba(20, 20, 22, 0.08);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', -apple-system, monospace;

  --radius-card: 14px;
  --radius-modal: 24px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  width: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ana Çerçeve */
.site-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 5rem;
  background-color: var(--bg-primary);
  position: relative;
}

/* Hero / Merkez Alan */
.hero-center {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto 0;
}

/* -------------------------------------------------------------
   YAŞAYAN LOGO VE KARE DÖNGÜ (HERO EMBLEM)
   ------------------------------------------------------------- */
.living-logo-container {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.square-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 1. Tam Kare Çevrim Rayı (Hafif Kılavuz) */
.track-guide {
  fill: none;
  stroke: var(--track-light);
  stroke-width: 2;
  stroke-linecap: square;
}

/* 2. MÜMKÜN MERTEBE LOGOSUNUN KALIN VE KOYU HATLARI */
.logo-pillar-left {
  stroke: var(--logo-bold);
  stroke-width: 6;
  stroke-linecap: square;
}

.logo-pillar-right {
  stroke: var(--logo-bold);
  stroke-width: 6;
  stroke-linecap: square;
}

.logo-base-line {
  stroke: var(--logo-bold);
  stroke-width: 6;
  stroke-linecap: square;
}

.logo-dot {
  fill: var(--logo-bold);
  transition: transform 0.3s ease;
}

/* 3. DÖNGÜSEL AKIŞ ÇIZGISI (Kare Çevre Boyunca Dönen Enerji) */
.flow-dash {
  fill: none;
  stroke: var(--logo-bold);
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* 4 DÖNGÜ BUTONU (KARENIN 4 KENARINDA) */
.stage-pill {
  position: absolute;
  z-index: 20;
  background: rgba(249, 246, 241, 0.9);
  border: 1px solid rgba(20, 20, 22, 0.12);
  border-radius: 6px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: rgba(20, 20, 22, 0.32); /* Çizgi burada değilken soluk */
  font-weight: 400;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  user-select: none;
  outline: none;
}

.pill-dot {
  width: 5px;
  height: 5px;
  background-color: rgba(20, 20, 22, 0.2);
  border-radius: 50%;
  transition: all 0.22s ease;
  display: inline-block;
}

/* ÇIZGI BU ALANA GIRDIĞINDE: KOYU, BELIRGIN VE VURGULU */
.stage-pill.active {
  color: var(--logo-bold);
  font-weight: 700;
  border-color: var(--logo-bold);
  background: #ffffff;
  box-shadow: 0 6px 20px -2px rgba(20, 20, 22, 0.12);
}

.stage-pill.active .pill-dot {
  background-color: var(--logo-bold);
  transform: scale(1.35);
}

.stage-pill:hover:not(.active) {
  color: rgba(20, 20, 22, 0.7);
  border-color: rgba(20, 20, 22, 0.35);
  background: #ffffff;
}

/* 4 Kenar Konumlandırması (Şekilden Ayrı, Logoyu Kapatmayacak Şekilde) */
.pill-top {
  top: 6px;
  left: 50%;
  transform: translate(-50%, -50%);
}
.pill-top.active {
  transform: translate(-50%, -50%) scale(1.08);
}

.pill-right {
  right: -24px;
  top: 50%;
  transform: translate(50%, -50%);
}
.pill-right.active {
  transform: translate(50%, -50%) scale(1.08);
}

.pill-bottom {
  bottom: 6px;
  left: 50%;
  transform: translate(-50%, 50%);
}
.pill-bottom.active {
  transform: translate(-50%, 50%) scale(1.08);
}

.pill-left {
  left: -24px;
  top: 50%;
  transform: translate(-50%, -50%);
}
.pill-left.active {
  transform: translate(-50%, -50%) scale(1.08);
}

/* -------------------------------------------------------------
   MARKA BAŞLIK ALANI (LOGO ALTI)
   ------------------------------------------------------------- */
.brand-caption-box {
  margin-top: 2rem;
  text-align: center;
}

.brand-title {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

/* "design through emergence" Buton Görünümlü Olmayan Zarif Buton */
.brand-tagline-btn {
  background: none;
  border: none;
  padding: 0.4rem 0.6rem;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: var(--transition-smooth);
}

.tagline-text {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.4vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--text-muted);
  transition: color 0.3s ease, letter-spacing 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.tagline-line {
  display: block;
  width: 0%;
  height: 1px;
  background-color: var(--text-primary);
  margin-top: 4px;
  opacity: 0.35;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.brand-tagline-btn:hover .tagline-text {
  color: var(--text-primary);
  letter-spacing: 0.21em;
}

.brand-tagline-btn:hover .tagline-line {
  width: 100%;
  opacity: 0.8;
}

/* -------------------------------------------------------------
   TAGLINE MODAL (BÜYÜK LOGO YUKARIDA & 3 BAŞLIK BUTONU AŞAĞIDA)
   ------------------------------------------------------------- */
#taglineOverlay .stage-inner {
  justify-content: space-between;
  align-items: center;
  padding: clamp(3.2rem, 7vh, 5.5rem) clamp(1.8rem, 4vw, 3.5rem) clamp(3.8rem, 8vh, 6rem);
  min-height: 100%;
}

#taglineOverlay .stage-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(0.5rem, 2vh, 2rem);
  margin-bottom: 0;
  width: 100%;
}

.tagline-modal-logo {
  max-width: clamp(280px, 38vw, 390px); /* Daha da büyük ve belirgin logo */
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

/* 3 Başlık Butonu Alanı - Aşağıda Konumlanmış */
#taglineOverlay .emerge-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  width: 100%;
  max-width: 920px;
  margin-top: auto;
  margin-bottom: clamp(1rem, 3.5vh, 2.8rem);
  flex-wrap: wrap;
}

/* "design through emergence" Tarzı Buton Görünümlü Olmayan Zarif Butonlar */
.emerge-item-btn {
  background: none;
  border: none;
  padding: 0.6rem 0.8rem;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
}

.emerge-item-text {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.3s ease, letter-spacing 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease;
  display: inline-block;
  white-space: nowrap;
}

.emerge-item-line {
  display: block;
  width: 0%;
  height: 1.5px;
  background-color: var(--text-primary);
  margin-top: 6px;
  opacity: 0.35;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.emerge-item-btn:hover .emerge-item-text,
.emerge-item-btn:active .emerge-item-text {
  color: var(--text-primary);
  letter-spacing: 0.08em;
  transform: translateY(-2px);
}

.emerge-item-btn:hover .emerge-item-line,
.emerge-item-btn:active .emerge-item-line {
  width: 100%;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .emerge-nav {
    flex-direction: column;
    gap: 1.8rem;
  }

  .stage-logo-wrap {
    margin-bottom: 2.2rem;
  }

  .tagline-modal-logo {
    max-width: 220px;
  }
}

/* -------------------------------------------------------------
   SABIT FOOTER ("about" & "contact")
   ------------------------------------------------------------- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.6rem 2rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
  pointer-events: none;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  pointer-events: auto;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
  position: relative;
  padding: 0.25rem 0.2rem;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background-color: var(--text-primary);
  opacity: 0.3;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.footer-link:hover {
  color: var(--text-primary);
  letter-spacing: 0.17em;
}

.footer-link:hover::after {
  width: 100%;
  opacity: 0.8;
}

/* -------------------------------------------------------------
   NESTED ZOOM: AÇILAN SAHNE / MODAL KATMANI
   ------------------------------------------------------------- */
.stage-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 22, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.stage-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Tıklanan Butonun Koordinatlarından Büyüyen Pencere */
.stage-overlay {
  position: fixed;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-modal);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.24);
  z-index: 9988;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: default;
}

/* Seviye 2: Ecosystem Overlay (Üst Katman) */
.ecosystem-overlay {
  z-index: 9998;
}

.stage-inner {
  width: 100%;
  height: 100%;
  padding: 3.5rem 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Modal Başlık Bölümü */
.overlay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  width: 100%;
}

.overlay-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Geri Dön Butonu */
.stage-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0;
  margin-bottom: 0.35rem;
  transition: color 0.22s ease, transform 0.22s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.stage-back-btn:hover {
  color: var(--text-primary);
  transform: translateX(-3px);
}

.overlay-step-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.overlay-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-family: var(--font-mono);
  text-transform: lowercase;
}

/* -------------------------------------------------------------
   SEVIYE 2: ECOSYSTEM PROJECT (THEORY & PRACTICE GRID)
   ------------------------------------------------------------- */
.ecosystem-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  width: 100%;
  margin-top: 2rem;
  align-items: flex-start;
}

.eco-col {
  display: flex;
  flex-direction: column;
}

.eco-section-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(20, 20, 22, 0.12);
  margin-bottom: 1.6rem;
}

/* Theory & Practice Kutuları */
.eco-theory-box,
.eco-practice-box {
  background: var(--card-sub-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2.2rem 2rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.eco-theory-box:hover,
.eco-practice-box:hover {
  background: #ffffff;
  border-color: rgba(20, 20, 22, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.06);
}

.eco-theory-statement {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Practice Kutusu Içeriği */
.eco-box-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: block;
}

.eco-box-title {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* "A Living Ecosystem" Alt Butonu */
.eco-sublink-wrap {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  padding-left: 0.2rem;
}

.eco-sublink-wrap .emerge-item-btn {
  padding: 0.4rem 0;
  align-items: flex-start;
}

.eco-sublink-wrap .emerge-item-text {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   SEVIYE 3: LIVING ECOSYSTEM MODAL (GENTLE ROOTS MARKALARI)
   ------------------------------------------------------------- */
.living-eco-overlay {
  z-index: 10005;
}

.living-eco-inner {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.living-eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  width: 100%;
  margin-top: 2rem;
}

.brand-entity-card {
  background: var(--card-sub-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.3s ease, 
              background 0.3s ease, 
              box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  position: relative;
  text-align: left;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.brand-entity-card:hover {
  background: #ffffff;
  border-color: rgba(20, 20, 22, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.08);
}

.brand-entity-card:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.brand-entity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.9rem;
}

.brand-entity-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.brand-entity-arrow {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.brand-entity-card:hover .brand-entity-arrow {
  color: var(--text-primary);
  transform: translateX(4px);
}

.brand-entity-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.brand-entity-title {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.brand-entity-card:hover .brand-entity-title {
  color: #000000;
}

.brand-entity-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   SEVIYE 4: BRAND DETAIL MODAL (MARKA DETAYLARI & LOGO)
   ------------------------------------------------------------- */
.brand-detail-overlay {
  z-index: 10015;
}

.brand-detail-header {
  align-items: center;
  min-height: 44px;
  margin-bottom: 0.8rem;
}

.brand-detail-inner {
  max-width: 1040px;
  max-height: min(88vh, 780px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.brand-detail-content {
  width: 100%;
  margin-top: 1.2rem;
}

.brand-detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 2.8rem;
  align-items: start;
  width: 100%;
}

.brand-detail-media-col {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.brand-logo-frame {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 240px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.05);
}

.brand-detail-logo {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05));
  transition: transform 0.4s ease;
}

.brand-logo-frame:hover .brand-detail-logo {
  transform: scale(1.03);
}

.brand-detail-specs {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--card-sub-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.4rem;
}

.brand-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-spec-item:not(:last-child) {
  border-bottom: 1px solid rgba(20, 20, 22, 0.06);
  padding-bottom: 0.75rem;
}

.brand-spec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.brand-spec-value {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-primary);
}

/* Brand Identity & Kit PDF Butonu */
.brand-pdf-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 0.95rem 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.04);
  -webkit-tap-highlight-color: transparent;
}

.brand-pdf-btn:hover {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12);
}

.brand-pdf-icon {
  flex-shrink: 0;
  color: #8C435A;
  transition: color 0.2s ease;
}

.brand-pdf-btn:hover .brand-pdf-icon {
  color: #ffffff;
}

.brand-pdf-text {
  flex-grow: 1;
  text-align: left;
  letter-spacing: -0.01em;
}

.brand-pdf-arrow {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: transform 0.22s ease, color 0.22s ease;
}

.brand-pdf-btn:hover .brand-pdf-arrow {
  color: #ffffff;
  transform: translate(2px, -2px);
}

.brand-detail-body-col {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.brand-detail-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8C435A;
  margin-bottom: 0.5rem;
}

.brand-detail-name {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.brand-detail-tagline {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.brand-detail-divider {
  width: 50px;
  height: 2px;
  background: rgba(20, 20, 22, 0.15);
  margin-bottom: 1.4rem;
}

.brand-detail-narrative {
  font-size: clamp(0.94rem, 1.15vw, 1.04rem);
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 2.2rem;
}

/* Navigasyon Alt Barı */
.brand-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  padding-top: 1.4rem;
  margin-top: auto;
  gap: 0.8rem;
}

.brand-nav-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.brand-nav-btn:hover {
  background: #ffffff;
  border-color: rgba(20, 20, 22, 0.3);
  transform: translateY(-1px);
}

.brand-nav-arrow {
  font-size: 1rem;
  line-height: 1;
}

.brand-nav-back-list {
  background: var(--text-primary);
  border: none;
  border-radius: 999px;
  padding: 0.58rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.brand-nav-back-list:hover {
  background: #000000;
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .ecosystem-content-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .living-eco-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .brand-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .brand-logo-frame {
    max-height: 180px;
    padding: 1.4rem;
  }

  .brand-detail-logo {
    max-height: 130px;
  }

  .brand-nav-footer {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-nav-back-list {
    order: -1;
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Kapat Butonu (Sağ Üst Köşede Sabit) */
.stage-close-btn {
  position: absolute;
  top: clamp(1.2rem, 3vh, 2.2rem);
  right: clamp(1.2rem, 3vw, 2.2rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: transform 0.2s, background 0.2s;
  z-index: 50;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.stage-close-btn:hover {
  background: #333338;
  transform: scale(1.08);
}

/* Modal Açıklama Metni */
.overlay-summary {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 2.8rem;
}

/* -------------------------------------------------------------
   NESTED KÜÇÜK KUTUCUKLAR (SUB-CARDS GRID)
   ------------------------------------------------------------- */
.nested-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  width: 100%;
  margin-top: auto;
}

.nested-card {
  background: var(--card-sub-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: default;
}

.nested-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.08);
  border-color: rgba(20, 20, 22, 0.22);
  background: #ffffff;
}

.nested-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.nested-card-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nested-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.2);
  transition: background-color 0.3s ease;
}

.nested-card:hover .nested-card-dot {
  background: var(--text-primary);
}

.nested-card-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.nested-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   RESPONSIVE UYARLAMALAR (TABLET & MOBIL)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .living-logo-container {
    width: 360px;
    height: 360px;
  }

  .pill-left { left: -18px; }
  .pill-right { right: -18px; }

  .nested-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-inner {
    padding: 3rem 2.5rem 3.2rem;
  }
}

@media (max-width: 768px) {
  #taglineOverlay .emerge-nav {
    flex-direction: column;
    gap: 1.8rem;
  }

  .tagline-modal-logo {
    max-width: 230px;
  }

  .nested-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-wrapper {
    padding: 1.5rem 1rem 4.5rem;
  }

  .living-logo-container {
    width: clamp(270px, 78vw, 300px);
    height: clamp(270px, 78vw, 300px);
  }

  .pill-top { top: 4px; }
  .pill-right { right: -8px; }
  .pill-bottom { bottom: 4px; }
  .pill-left { left: -8px; }

  .stage-pill {
    font-size: 0.74rem;
    padding: 0.35rem 0.65rem;
  }

  .brand-caption-box {
    margin-top: 1.6rem;
  }

  .brand-title {
    font-size: 1.25rem;
  }

  .tagline-text {
    font-size: 0.8rem;
  }

  .nested-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .nested-card {
    min-height: auto;
    padding: 1.3rem;
  }

  .stage-inner {
    padding: 2.2rem 1.4rem 2.4rem;
  }

  .overlay-title {
    font-size: 1.95rem;
  }

  .stage-close-btn {
    width: 38px;
    height: 38px;
    top: 1.2rem;
    right: 1.2rem;
  }

  .site-footer {
    padding-bottom: 1.2rem;
  }

  .footer-nav {
    gap: 2.2rem;
  }
}

/* Dar Ekranlı Telefonlar (iPhone SE / 320px - 360px) */
@media (max-width: 380px) {
  .living-logo-container {
    width: 250px;
    height: 250px;
  }

  .pill-left { left: -4px; }
  .pill-right { right: -4px; }
  .pill-top { top: 2px; }
  .pill-bottom { bottom: 2px; }

  .stage-pill {
    font-size: 0.68rem;
    padding: 0.3rem 0.5rem;
  }
}

/* Yatay Mod (Landscape Mobile) */
@media (max-height: 520px) and (orientation: landscape) {
  .site-wrapper {
    padding: 1rem 1rem 3rem;
  }

  .living-logo-container {
    width: 220px;
    height: 220px;
  }

  .stage-inner {
    padding: 1.8rem 1.4rem 2rem;
  }
}
