/* ==========================================================================
   aykutyurekli.com — Çok Sahneli Sinematik & Kinetik Bakım Deneyimi
   ========================================================================== */

:root {
  --bg-void: #07080a;
  --text-primary: #f5f2eb;
  --text-muted: #9a9892;
  --amber-core: #eb9f42;
  --amber-bright: #ffd089;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinematic: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  user-select: none;
  cursor: crosshair;
}

/* ==========================================================================
   1. Açılış Perdesi (Curtain Wipe + Amber Seam)
   ========================================================================== */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.curtain-half {
  width: 100%;
  height: 50%;
  background-color: #050608;
  transition: transform 1.25s var(--ease-expo);
  will-change: transform;
}

.curtain-seam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  transform: translate(-50%, -50%) scaleX(0);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(235, 159, 66, 0.4) 20%,
    #ffd089 50%,
    rgba(235, 159, 66, 0.4) 80%,
    transparent 100%
  );
  box-shadow: 0 0 24px 2px rgba(235, 159, 66, 0.65);
  animation: seamExpand 0.75s var(--ease-expo) 80ms forwards;
}

@keyframes seamExpand {
  0% {
    transform: translate(-50%, -50%) scaleX(0);
    opacity: 0;
  }
  55% {
    transform: translate(-50%, -50%) scaleX(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scaleX(1.05);
    opacity: 0;
  }
}

body.is-opened .curtain-top {
  transform: translateY(-102%);
}

body.is-opened .curtain-bottom {
  transform: translateY(102%);
}

/* ==========================================================================
   2. Tam Ekran Canlı Kanvas & Atmosfer Katmanları
   ========================================================================== */
#stage-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

.ambient-aurora {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 24%, rgba(7, 8, 10, 0.74) 100%),
    radial-gradient(circle at 74% 32%, rgba(235, 159, 66, 0.08) 0%, transparent 56%);
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.036;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   3. Kinetik Tipografi & Işık Yansıması (Shimmer)
   ========================================================================== */
.stage-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 80px);
  text-align: center;
}

.content-block {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.identity-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(22px, 3.2vh, 34px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--amber-core);
  box-shadow: 0 0 14px 3px rgba(235, 159, 66, 0.68);
  animation: beaconPulse 3s ease-in-out infinite;
}

@keyframes beaconPulse {
  0%, 100% {
    transform: scale(0.88);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.28);
    opacity: 1;
  }
}

.identity {
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-core);
}

.headline {
  font-family: 'Syne', 'Inter', sans-serif;
  font-size: clamp(3rem, 8.4vw, 7.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: clamp(20px, 2.8vh, 32px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.26em;
  filter: drop-shadow(0 20px 55px rgba(0, 0, 0, 0.8));
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
}

.word-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(112%) rotate(1.5deg);
  filter: blur(8px);
  background: linear-gradient(
    115deg,
    #f5f2eb 0%,
    #f5f2eb 42%,
    #ffd79a 50%,
    #f5f2eb 58%,
    #f5f2eb 100%
  );
  background-size: 240% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 1.35s var(--ease-expo), opacity 1.1s var(--ease-expo), filter 1.2s var(--ease-expo);
  transition-delay: calc(420ms + var(--step) * 160ms);
  animation: textShimmer 7.5s ease-in-out infinite;
  animation-delay: 2.2s;
}

body.is-opened .word-inner {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  filter: blur(0);
}

@keyframes textShimmer {
  0%, 68% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.subcopy {
  font-size: clamp(1.02rem, 1.45vw, 1.32rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  max-width: 38ch;
}

.reveal-step {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
  transition: transform 1.25s var(--ease-expo), opacity 1.1s var(--ease-expo), filter 1.1s var(--ease-expo);
  transition-delay: calc(360ms + var(--step) * 200ms);
}

body.is-opened .reveal-step {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ==========================================================================
   4. En Altta Saç Teli İnceliğinde Sahne Geçiş Zaman Çizgisi
   ========================================================================== */
.scene-timeline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.scene-timeline-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(235, 159, 66, 0.25), #eb9f42, #ffd089);
  box-shadow: 0 0 12px rgba(235, 159, 66, 0.7);
  will-change: width;
}

/* ==========================================================================
   Hareketi Azaltma Tercihi (prefers-reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .intro-curtain,
  .scene-timeline {
    display: none !important;
  }

  .word-inner,
  .reveal-step {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  .word-inner {
    color: var(--text-primary) !important;
    background: none !important;
  }

  .pulse-dot {
    animation: none !important;
  }
}
