/* PASİFİK — tek ekran, siyah, hareketli arka plan */
:root {
  --bg: #050506;
  --ink: #f3f1ec;
  --ink-2: #8e8d89;
  --line: rgba(243, 241, 236, 0.28);
  --cyan: #3ec8f5;
  --violet: #b17cf0;
  --font: "Manrope", "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html, body {
  height: 100%; margin: 0;
  overflow: hidden;                 /* scrollbar yok, sayfa kaymaz */
  overscroll-behavior: none;
}
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Hareketli arka plan */
.bg {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block;
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); }
  60% { transform: translate(-2%,6%); } 80% { transform: translate(5%,-2%); } 100% { transform: translate(0,0); }
}

/* Yerleşim: sol PASİFİK — noktalı çizgi — sağ markalar */
.stage {
  position: fixed; inset: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(24px, 5vw, 80px);
  gap: clamp(32px, 6vw, 120px);
}

.main {
  justify-self: end;
  width: clamp(220px, 26vw, 440px);
}
.main img { width: 100%; height: auto; }

.divider {
  width: 0; height: min(64vh, 560px);
  border-left: 2px dotted var(--line);
  transform: scaleY(0); transform-origin: top;
  animation: grow 1.6s var(--ease) .5s forwards;
}
@keyframes grow { to { transform: scaleY(1); } }

.brands {
  justify-self: start;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: clamp(26px, 5.2vh, 56px);
}
.brands li { --h: clamp(36px, 5.6vh, 60px); }
.brands li:nth-child(1) { --h: clamp(34px, 5.2vh, 56px); }
.brands li:nth-child(4) { --h: clamp(36px, 5.8vh, 62px); }
.brands li:nth-child(5) { --h: clamp(36px, 5.8vh, 62px); }
.brands img {
  height: var(--h); width: auto;
  transition: transform .7s var(--ease), filter .7s;
  filter: drop-shadow(0 0 0 rgba(177,124,240,0));
}
.brands li:hover img {
  transform: translateX(8px);
  filter: drop-shadow(0 0 18px rgba(177,124,240,.35));
}

/* Giriş animasyonu */
.in {
  opacity: 0; transform: translateY(18px);
  animation: in 1.4s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 120ms + 300ms);
}
@keyframes in { to { opacity: 1; transform: none; } }

/* Sağ alt: e-posta */
.mail {
  position: fixed; right: clamp(20px, 3.5vw, 56px); bottom: clamp(18px, 3vw, 40px); z-index: 3;
  font-size: clamp(12px, 1vw, 15px); letter-spacing: 0.08em; color: var(--ink-2);
  padding-bottom: 4px; transition: color .4s;
}
.mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.mail:hover { color: var(--ink); }
.mail:hover::after { transform: scaleX(1); }

/* Mobil: üstte PASİFİK, altta markalar */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .stage {
    grid-template-columns: 1fr; grid-template-rows: auto auto auto;
    justify-items: center; align-content: center;
    gap: clamp(28px, 6vh, 48px); padding-bottom: 72px;
  }
  .main { justify-self: center; width: min(62vw, 300px); }
  .divider { height: 0; width: min(60vw, 260px); border-left: 0; border-top: 2px dotted var(--line); transform: scaleX(0); transform-origin: left; }
  @keyframes grow { to { transform: scale(1); } }
  .brands { justify-self: center; align-items: center; gap: clamp(18px, 3.4vh, 30px); }
  .brands li, .brands li:nth-child(1), .brands li:nth-child(4), .brands li:nth-child(5) { --h: clamp(28px, 4.4vh, 42px); }
  .brands li:hover img { transform: none; }
  .mail { right: 0; left: 0; text-align: center; white-space: nowrap; }
  .mail::after { left: 50%; right: auto; width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .in, .divider { animation-duration: .01ms; animation-delay: 0s; }
  .grain { display: none; }
}
:focus-visible { outline: 1px solid var(--cyan); outline-offset: 4px; }
