/* React Bits, ScrollExpand (vanilla port) */

.scroll-expand {
  position: relative;
  width: 100%;
  height: 100%;
  background: #071b22;
  color: #fcfcf9;
}

.scroll-expand--scroller {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.scroll-expand--scroller::-webkit-scrollbar {
  display: none;
}

.scroll-expand__track {
  position: relative;
  width: 100%;
}

.scroll-expand__stage {
  position: sticky;
  top: 0;
  width: 100%;
  overflow: hidden;
  --se-title-size: 4rem;
  background: #071b22;
}

.scroll-expand__frame {
  position: absolute;
  inset: 0;
  clip-path: inset(21% 29% 21% 29% round 24px);
  /* will-change yalnızca kaydırma sırasında; kalıcı katman VRAM yer. */
}

.scroll-expand__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 4:3 saha fotoğrafları ve portrait iş kareleri için ortak, az kırpma */
  object-position: center 42%;
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.scroll-expand.is-scrubbing .scroll-expand__frame {
  will-change: clip-path;
}
.scroll-expand.is-scrubbing .scroll-expand__media,
.scroll-expand.is-scrubbing .scroll-expand__title,
.scroll-expand.is-scrubbing .scroll-expand__hint,
.scroll-expand.is-scrubbing .scroll-expand__overlay {
  will-change: transform, opacity;
}

.scroll-expand__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(7, 27, 34, 0.82),
    rgba(7, 27, 34, 0.18) 45%,
    rgba(7, 27, 34, 0.42)
  );
  opacity: 0;
}

.scroll-expand__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: clamp(5.5rem, 10vw, 7rem) var(--pad, 1.5rem) clamp(2rem, 4vw, 3rem);
  opacity: 0;
  pointer-events: none;
}

.scroll-expand__overlay.is-live {
  pointer-events: auto;
}

.scroll-expand__overlay .esik {
  color: #5B9BC4;
  margin: 0 0 0.45rem;
}

.scroll-expand__overlay > p:not(.esik) {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--display, "Masal Display", Georgia, serif);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 48, "WONK" 0;
}

.scroll-expand__overlay .scroll-expand__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 1.25rem;
}

.scroll-expand__overlay .text-link {
  color: rgba(255, 255, 255, 0.86);
}

.scroll-expand__overlay .text-link:hover {
  color: #5B9BC4;
}

.scroll-expand__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 6%;
  text-align: center;
  font-family: var(--display, "Masal Display", Georgia, serif);
  font-size: var(--se-title-size);
  font-weight: 590;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  font-variation-settings: "SOFT" 48, "WONK" 0;
}

.scroll-expand__title--logo {
  text-shadow: none;
  font-size: 0;
  line-height: 0;
}

.scroll-expand__title--logo img {
  display: block;
  width: min(72vw, 22rem);
  height: auto;
  max-height: min(18vw, 5.5rem);
  object-fit: contain;
  filter: drop-shadow(0 4px 28px rgba(0, 0, 0, 0.45));
}

.scroll-expand__hint {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  z-index: 10;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(7, 27, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fcfcf9;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  animation: scrollHintBounce 2s ease-in-out infinite;
}

.scroll-expand__hint svg {
  display: block;
  flex-shrink: 0;
  color: #64b5f6;
  animation: scrollHintArrow 2s ease-in-out infinite;
}

@keyframes scrollHintBounce {
  0%, 100% {
    transform: translate3d(-50%, 0, 0);
  }
  50% {
    transform: translate3d(-50%, 6px, 0);
  }
}

@keyframes scrollHintArrow {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 3px, 0);
  }
}

/* Tek tipografi sayfası, uçtan uca canvas kolaj */
.scroll-expand__field.se-page{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  overflow:hidden;
  background:#071b22;
}
.scroll-expand.is-scrubbing .scroll-expand__field.se-page{
  will-change:opacity;
}
.se-page__canvas{
  display:block;
  width:100%;
  height:100%;
}

.scroll-expand__title{z-index:3}
.scroll-expand__frame{z-index:2}

@media (prefers-reduced-motion: reduce) {
  .scroll-expand__frame,
  .scroll-expand__media,
  .scroll-expand__title,
  .scroll-expand__hint,
  .scroll-expand__overlay,
  .scroll-expand__field {
    will-change: auto;
  }
}
