/* ==========================================================================
   css/sculpture-hero.css — Liquid Particle Hero (Sculpture Hero uyarlaması)
   Kaynak: guglielmogiannattasio.it / 21st.dev bileşen CSS'i; site font ve
   token'larına uyarlandı (Geist→Inter, tema renkleri --bg/--text/--elena-orange).
   Yerleşim mantığı korunur: heykel navbar ile içerik arasındaki banda ortalanır,
   içerik alt kenara hizalanır (grid: başlık 1.7fr / yan sütun 1fr).
   ========================================================================== */

.hero-sculpture {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  transition: background-color 0.6s ease, color 0.6s ease;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.hero-sculpture *,
.hero-sculpture *::before,
.hero-sculpture *::after {
  box-sizing: border-box;
}

/* ── Sahne: WebGL2 tuvali + durağan görsel yedeği ──────────────────── */
.sh-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sh-fallback {
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.5s ease;
}

.hero-sculpture[data-gl='on'] .sh-canvas { opacity: 1; }
.hero-sculpture[data-gl='on'] .sh-fallback { opacity: 0; }

/* görsel takası sırasında tuval çekilir, durağan görsel takası örter */
.hero-sculpture[data-swap='1'] .sh-canvas { opacity: 0; transition-duration: 0.25s; }
.hero-sculpture[data-swap='1'] .sh-fallback { opacity: 0; transition-duration: 0.25s; }

/* ── Dev zemin kelimesi ────────────────────────────────────────────── */
.sh-backdrop {
  position: absolute;
  left: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: color-mix(in srgb, var(--text) 5%, transparent);
}

/* ── Etkileşim ipucu ───────────────────────────────────────────────── */
.sh-hint {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, 0);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.8s ease;
  color: var(--text-2);
}

.sh-hint::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: sh-pulse 2.4s ease-in-out infinite;
}

.hero-sculpture[data-touched='1'] .sh-hint { opacity: 0; }

@keyframes sh-pulse {
  0%, 100% { transform: scale(0.6); opacity: 0.45; }
  50% { transform: scale(1); opacity: 1; }
}

/* ── İçerik ızgarası ───────────────────────────────────────────────── */
.sh-spacer {
  flex: 1 1 auto;
  min-height: 0;
}

.sh-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4cqw, 72px);
  padding: 0 clamp(20px, 3.2cqw, 48px) clamp(28px, 3.4cqw, 52px);
}

.sh-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--elena-orange);
  margin: 0 0 clamp(14px, 1.6cqw, 22px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sh-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.sh-eyebrow .hero__cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.15em;
  animation: sh-cursor 1.1s steps(1) infinite;
}

@keyframes sh-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.sh-h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(40px, min(6.6cqw, 11.5cqh), 124px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}

.sh-h1 .sh-line {
  display: block;
}

.sh-h1 .sh-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--elena-orange);
}

/* Açık temada turuncu koyulaştır: küçük punto üst satır AA geçirsin */
[data-theme='light'] .sh-eyebrow,
[data-theme='light'] .sh-h1 .sh-accent {
  color: #c2410c;
}

.sh-aside {
  max-width: 400px;
  justify-self: end;
  padding-bottom: 0.6em;
}

.sh-body {
  font-size: clamp(15px, 1.1cqw, 17px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--text-2);
  text-wrap: pretty;
}

.sh-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.hero-sculpture a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* ── Sanatçı kaynağı ───────────────────────────────────────────────── */
.sh-credit {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 3.2cqw, 48px);
  bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: inherit;
  opacity: 0.38;
  text-decoration: none;
}

.sh-credit:hover { opacity: 0.8; }

/* ── Duyarlı yerleşim ──────────────────────────────────────────────── */
@container (max-width: 1023px) {
  .sh-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sh-aside {
    justify-self: start;
    max-width: 520px;
    padding-bottom: 0;
  }
  .sh-h1 {
    font-size: clamp(40px, min(9.5cqw, 9cqh), 96px);
  }
}

@container (max-width: 639px) {
  .sh-h1 {
    font-size: clamp(36px, min(12.5cqw, 7.2cqh), 60px);
    line-height: 0.94;
  }
  .sh-body {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .sh-eyebrow {
    font-size: 11px;
  }
  .sh-ctas {
    gap: 18px;
  }
  .sh-content {
    padding-bottom: 40px;
  }
  .sh-credit {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-hint::before { animation: none; }
  .sh-canvas,
  .sh-fallback { transition: none; }
}
