/* ============ ÖZCAN YAYLALI — VOID ============ */
:root {
  --black: #000;
  --ink: #070708;
  --ash: #141416;
  --bone: #e9e6e1;
  --mute: #7a7780;
  --blood: #ff1f3d;
  --violet: #7b2cff;
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; }
body {
  background: var(--black);
  color: var(--bone);
  font-family: 'Syne', sans-serif;
  overflow-x: clip;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; cursor: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
::selection { background: var(--blood); color: #000; }

.mono { font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.serif { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; }
.outline { color: transparent; -webkit-text-stroke: 1px var(--bone); }

/* ============ PRELOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: #000;
  display: grid; place-items: center;
  transition: clip-path 1.2s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader__inner { text-align: center; width: min(420px, 80vw); }
.loader__eye {
  width: 90px; height: 90px; margin: 0 auto 2rem; border-radius: 50%;
  border: 1px solid var(--blood); position: relative;
  animation: eyeSpin 3s linear infinite;
  box-shadow: 0 0 40px rgba(255,31,61,.4), inset 0 0 30px rgba(255,31,61,.3);
}
.loader__eye span {
  position: absolute; inset: 35%; border-radius: 50%; background: var(--blood);
  animation: blink 2.4s infinite;
}
.loader__text { font-family: 'JetBrains Mono', monospace; font-size: .75rem; letter-spacing: .4em; color: var(--mute); }
.loader__count { font-size: clamp(3rem, 10vw, 6rem); font-weight: 800; margin: 1rem 0; }
.loader__bar { height: 1px; background: var(--ash); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--blood); box-shadow: 0 0 12px var(--blood); }
@keyframes eyeSpin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.05); } }

/* ============ GLOBAL FX ============ */
#void { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(4%,-6%); }
  60% { transform: translate(-3%,5%); } 80% { transform: translate(6%,2%); } 100% { transform: translate(0,0); }
}
.scanlines {
  position: fixed; inset: 0; z-index: 89; pointer-events: none; opacity: .25;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.5) 2px 3px);
}
.vignette { position: fixed; inset: 0; z-index: 88; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.85) 100%); }
.flash { position: fixed; inset: 0; z-index: 95; pointer-events: none; background: var(--blood); opacity: 0; mix-blend-mode: difference; }
.flash.on { animation: flash .35s steps(3); }
@keyframes flash { 0% { opacity: .9; } 50% { opacity: 0; } 70% { opacity: .5; } 100% { opacity: 0; } }

/* ============ CURSOR ============ */
.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: absolute; width: 6px; height: 6px; background: #fff; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor__ring {
  position: absolute; width: 40px; height: 40px; border: 1px solid #fff; border-radius: 50%;
  transform: translate(-50%,-50%); transition: width .4s var(--ease-out), height .4s var(--ease-out), background .3s;
}
.cursor.hover .cursor__ring { width: 90px; height: 90px; background: #fff; }
.cursor__label {
  position: absolute; transform: translate(-50%,-50%); font: 700 .7rem 'Syne'; letter-spacing: .15em; color: #000;
  opacity: 0; transition: opacity .3s;
}
.cursor.hover .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } body, a { cursor: auto; } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.2rem, 4vw, 3rem); mix-blend-mode: difference;
}
.nav__logo { font-weight: 800; font-size: 1.4rem; letter-spacing: .05em; }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  position: relative; display: inline-block; overflow: hidden;
}
.nav__links a::after {
  content: attr(data-hover); position: absolute; left: 0; top: 100%; color: var(--blood);
  transition: transform .5s var(--ease-out);
}
.nav__links a span, .nav__links a { transition: color .3s; }
.nav__links a:hover { color: transparent; }
.nav__links a:hover::after { transform: translateY(-100%); }
.nav__status { display: flex; align-items: center; gap: .6rem; font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .15em; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 0 0 var(--blood); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 860px) { .nav__links { display: none; } }

.progress { position: fixed; left: 0; top: 0; bottom: 0; width: 2px; z-index: 85; background: var(--ash); }
.progress span { display: block; width: 100%; height: 0; background: var(--blood); box-shadow: 0 0 10px var(--blood); }

main, .footer { position: relative; z-index: 2; }

/* ============ GLITCH ============ */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none;
}
.glitch::before { color: var(--blood); -webkit-text-stroke: 0; }
.glitch::after { color: var(--violet); -webkit-text-stroke: 0; }
.glitch:hover::before, .glitch.active::before { opacity: .85; animation: glitchA .4s steps(2) infinite; }
.glitch:hover::after, .glitch.active::after { opacity: .85; animation: glitchB .35s steps(2) infinite; }
@keyframes glitchA {
  0% { clip-path: inset(10% 0 70% 0); transform: translate(-4px, 2px); }
  50% { clip-path: inset(60% 0 10% 0); transform: translate(4px, -2px); }
  100% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 1px); }
}
@keyframes glitchB {
  0% { clip-path: inset(70% 0 5% 0); transform: translate(4px, -1px); }
  50% { clip-path: inset(5% 0 75% 0); transform: translate(-4px, 2px); }
  100% { clip-path: inset(40% 0 30% 0); transform: translate(3px, 0); }
}

/* ============ HERO ============ */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero__bg { position: absolute; inset: -10% 0; z-index: -1; }
.hero__bg img { opacity: 0; transform: scale(1.3); filter: grayscale(.3) contrast(1.15) brightness(.6); transition: opacity 2.5s ease, transform 3.5s var(--ease-out); }
body.loaded .hero__bg img { opacity: 1; transform: scale(1.05); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4), transparent 30%, transparent 60%, #000); z-index: -1; }
.hero__content { text-align: center; padding: 0 1rem; }
.hero__kicker { color: var(--blood); margin-bottom: 2rem; }
.hero__title { font-weight: 800; font-size: clamp(2.4rem, 10.5vw, 11rem); line-height: .9; white-space: nowrap; letter-spacing: -.04em; }
.hero__title .line { display: block; overflow: hidden; }
.line--outline .glitch { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.split .char { display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; }
body.loaded .split .char { animation: charIn 1.2s var(--ease-out) forwards; animation-delay: calc(var(--i) * .06s + .3s); }
@keyframes charIn { to { transform: translateY(0) rotate(0); opacity: 1; } }
.hero__sub { font-size: clamp(1.2rem, 2.4vw, 2rem); margin-top: 2rem; color: #bdb8b0; }
.hero__sub em { color: var(--blood); }
.hero__scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--mute); }
.hero__scroll i { width: 1px; height: 60px; background: linear-gradient(var(--blood), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__coords { position: absolute; bottom: 2.5rem; right: clamp(1.2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: .3rem; color: var(--mute); text-align: right; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(10px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out), filter 1.2s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ============ MARQUEE ============ */
.marquee { overflow: hidden; border-top: 1px solid var(--ash); border-bottom: 1px solid var(--ash); padding: 1.6rem 0; background: #000; transform: rotate(-2deg) scale(1.05); }
.marquee__track { display: flex; white-space: nowrap; animation: marquee 22s linear infinite; }
.marquee__track span { font-size: clamp(2rem, 6vw, 5rem); font-weight: 800; padding-right: 2rem; color: transparent; -webkit-text-stroke: 1px var(--mute); }
.marquee__track span:nth-child(2) { color: var(--blood); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
section { padding: clamp(6rem, 14vw, 12rem) clamp(1.2rem, 6vw, 6rem); position: relative; }
.section-tag { color: var(--blood); margin-bottom: 3rem; display: flex; align-items: center; gap: 1rem; }
.section-tag::before { content: ''; width: 40px; height: 1px; background: var(--blood); }

.manifesto__text { font-size: clamp(1.6rem, 4vw, 3.6rem); font-weight: 700; line-height: 1.15; max-width: 1300px; letter-spacing: -.02em; }
.manifesto__text .word { display: inline-block; opacity: .12; transition: opacity .4s, color .4s, text-shadow .4s; margin-right: .25em; }
.manifesto__text .word.lit { opacity: 1; }
.manifesto__text .word.hot { color: var(--blood); text-shadow: 0 0 30px rgba(255,31,61,.6); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 6rem; border-top: 1px solid var(--ash); padding-top: 3rem; }
.stat { display: flex; flex-direction: column; gap: .8rem; }
.stat__num { font-size: clamp(3rem, 8vw, 7rem); font-weight: 800; line-height: 1; }
.stat:nth-child(2) .stat__num { color: var(--blood); }
.stat__label { color: var(--mute); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

.big-title { font-size: clamp(2.6rem, 9vw, 9rem); font-weight: 800; line-height: .88; letter-spacing: -.04em; margin-bottom: 5rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; perspective: 1200px; }
.card { background: var(--ink); border: 1px solid var(--ash); transform-style: preserve-3d; transition: transform .2s ease-out, border-color .4s; position: relative; overflow: hidden; }
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,31,61,.18), transparent 40%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(255,31,61,.5); }
.card__img { aspect-ratio: 4/5; overflow: hidden; }
.card__img img { filter: grayscale(1) brightness(.6); transform: scale(1.15); transition: filter .8s, transform 1.4s var(--ease-out); }
.card:hover .card__img img { filter: grayscale(0) brightness(.85); transform: scale(1); }
.card__body { padding: 1.8rem; transform: translateZ(40px); }
.card__body .mono { color: var(--blood); }
.card__body h3 { font-size: 2rem; margin: .6rem 0; }
.card__body p { color: var(--mute); line-height: 1.6; font-size: .95rem; }
.card:nth-child(2) { margin-top: 6rem; }
.card:nth-child(3) { margin-top: 12rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card:nth-child(n) { margin-top: 0; } }

/* ============ DESCENT (horizontal) ============ */
.descent { padding: 0; height: 400vh; }
.descent__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(1.2rem, 6vw, 6rem); }
.descent__track { display: flex; gap: 6vw; will-change: transform; }
.descent__item { flex: 0 0 80vw; max-width: 900px; border-left: 1px solid var(--ash); padding-left: 3vw; }
.descent__n { font-family: 'JetBrains Mono', monospace; color: var(--blood); font-size: .9rem; }
.descent__item h3 { font-size: clamp(2.6rem, 9vw, 10rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--bone); transition: color .6s; }
.descent__item.active h3 { color: var(--bone); text-shadow: 0 0 60px rgba(255,31,61,.35); }
.descent__item p { font-size: clamp(1.2rem, 2.4vw, 2rem); color: var(--mute); margin-top: 1rem; }

/* ============ CONTACT ============ */
.contact { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; overflow: hidden; }
.contact__bg { position: absolute; inset: -20% 0; z-index: -1; opacity: .25; }
.contact__bg img { filter: grayscale(.5); }
.contact::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#000, transparent 30%, transparent 70%, #000); }
.contact__title { font-size: clamp(2.8rem, 10vw, 11rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2.5vw; margin-bottom: 4rem; }
.contact__title .serif { font-size: .35em; color: var(--blood); letter-spacing: 0; }
.btn {
  position: relative; display: inline-flex; padding: 1.6rem 3rem; border: 1px solid var(--bone); border-radius: 100px; overflow: hidden;
  font-size: clamp(1rem, 2.4vw, 1.6rem); font-weight: 700;
}
.btn__text { position: relative; z-index: 2; transition: color .5s; }
.btn__fill { position: absolute; inset: 0; background: var(--blood); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.btn:hover .btn__fill { transform: translateY(0); border-radius: 0; }
.btn:hover .btn__text { color: #000; }
.contact__hint { color: var(--mute); margin-top: 2rem; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem clamp(1.2rem, 4vw, 3rem); border-top: 1px solid var(--ash); color: var(--mute); }
.footer__secret { color: #2a2a2e; transition: color .3s; }
.footer__secret:hover { color: var(--blood); }

/* ============ VOID MODE (easter egg) ============ */
body.void-mode { animation: invertShake .6s steps(4) 3; }
body.void-mode main { filter: invert(1) hue-rotate(180deg); }
@keyframes invertShake { 25% { transform: translate(6px,-4px); } 50% { transform: translate(-6px,4px); } 75% { transform: translate(4px,6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .descent { height: auto; } .descent__sticky { position: relative; height: auto; padding: 6rem 1.2rem; } .descent__track { flex-direction: column; }
}
