:root {
  --bg: #0b0b0b;
  --fg: #f2f2f2;
  --g1: #a3a3a3;
  --g2: #5c5c5c;
  --g3: #262626;
  --display: "Anton", Impact, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--fg); color: var(--bg); }

/* Film greni */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  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='.85' 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%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); }
}

/* Özel imleç (sadece fareli cihazlarda) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 101; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
    border: 1px solid #fff; mix-blend-mode: difference;
    transition: width .25s, height .25s, margin .25s, background-color .25s, opacity .2s;
  }
  .cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; }
  .cursor.text { opacity: 0; }
}

/* Header */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad); mix-blend-mode: difference; color: #fff;
  font-family: var(--mono); font-size: 14px;
}
.top nav { display: flex; gap: 24px; }
.top nav a { position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: currentColor; transition: right .25s; }
.top nav a:hover::after { right: 0; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
#ascii { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; width: 100%; padding: 0 var(--pad) clamp(32px, 6vh, 64px); pointer-events: none; }
.hero-meta {
  display: flex; gap: 32px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--g1);
  padding-bottom: 12px; border-bottom: 1px solid var(--g3); margin-bottom: 8px;
}
.hero-meta b { color: var(--fg); font-weight: 500; }
.live { color: var(--fg); font-size: 10px; vertical-align: 1px; margin-right: 4px; }
.giant {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, min(17vw, 27vh), 280px); line-height: .9; letter-spacing: -.01em;
  margin-left: -.04em;
}
.hero-line { margin-top: 20px; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.25; max-width: 30ch; }
.hero-line em { font-style: normal; color: var(--g1); }
.scroll-hint {
  position: absolute; right: var(--pad); bottom: clamp(32px, 6vh, 64px);
  font-family: var(--mono); font-size: 13px; color: var(--g1); writing-mode: vertical-rl;
}

/* Marquee */
.marquee { border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); overflow: hidden; background: var(--fg); color: var(--bg); }
.marquee-track { display: flex; gap: 28px; width: max-content; padding: 14px 0; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: clamp(24px, 3vw, 40px); text-transform: uppercase; line-height: 1; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Ortak */
section:not(.hero) { padding: clamp(72px, 12vw, 160px) var(--pad) 0; }
.label { font-family: var(--mono); font-size: 13px; color: var(--g1); margin-bottom: 32px; }

/* Hakkımda */
.manifesto { font-size: clamp(26px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; max-width: 22ch; color: var(--g2); }
.manifesto s { text-decoration-thickness: 3px; }
.manifesto .hl { color: var(--fg); }

/* İşler */
.work-list { list-style: none; border-top: 1px solid var(--g3); }
.work-list li { border-bottom: 1px solid var(--g3); }
.work-list a {
  display: grid; grid-template-columns: 60px 1fr minmax(0, 360px) 40px; align-items: center; gap: 24px;
  padding: clamp(18px, 3vw, 36px) 0; position: relative; transition: color .3s;
}
.w-no { font-family: var(--mono); font-size: 13px; color: var(--g2); }
.w-title {
  font-family: var(--display); text-transform: uppercase; font-size: clamp(48px, 9vw, 140px); line-height: .9;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), color .3s;
}
.w-info { color: var(--g1); font-size: 15px; }
.w-arrow { font-size: 28px; text-align: right; transition: transform .3s; }
.work-list:hover a { color: var(--g2); }
.work-list:hover a .w-info { color: var(--g2); }
.work-list a:hover { color: var(--fg); }
.work-list a:hover .w-info { color: var(--g1); }
.work-list a:hover .w-title { transform: translateX(24px); }
.work-list a:hover .w-arrow { transform: rotate(45deg); }

/* Önizleme */
.preview {
  position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none;
  width: 300px; height: 200px; background: var(--fg); color: var(--bg);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s;
  display: grid; place-items: center; overflow: hidden;
}
.preview.on { opacity: 1; transform: scale(1); }
.pv { display: none; width: 100%; padding: 22px; }
.pv.on { display: block; }
.pv pre { font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.pv-dim { color: #777; }
.pv-souls { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-family: var(--mono); font-size: 12px; }
.pv-souls b { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 40px; letter-spacing: .12em; color: #000; }
.pv-chat { font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.pv-chat small { font-family: var(--mono); font-size: 9px; background: #0b0b0b; color: #fff; padding: 1px 4px; margin-right: 4px; }
.pv-chat b { margin-right: 6px; }

/* Hizmetler */
.svc { list-style: none; counter-reset: s; }
.svc li {
  counter-increment: s; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding: 18px 0; border-bottom: 1px solid var(--g3);
}
.svc li::before { content: "0" counter(s); font-family: var(--mono); font-size: 13px; color: var(--g2); width: 40px; }
.svc span { font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -.03em; font-weight: 500; transition: letter-spacing .3s; }
.svc small { font-family: var(--mono); font-size: 13px; color: var(--g1); margin-left: auto; }
.svc li:hover span { letter-spacing: .01em; }

/* Terminal */
.term { border: 1px solid var(--g2); background: #0e0e0e; max-width: 900px; font-family: var(--mono); font-size: 14px; }
.term-bar { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--g3); color: var(--g1); font-size: 12px; }
.term-body { padding: 16px; height: 340px; overflow-y: auto; }
.term-out div { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.term-out .cmd { color: var(--g1); }
.term-out .dim { color: var(--g2); }
.term-out a { text-decoration: underline; text-underline-offset: 3px; }
.term-out .died { font-family: Georgia, serif; font-size: clamp(32px, 6vw, 56px); letter-spacing: .15em; line-height: 1.3; animation: fadein 2s ease; }
@keyframes fadein { from { opacity: 0; letter-spacing: .5em; } }
.term-line { display: flex; gap: 10px; align-items: center; }
.prompt { color: var(--g1); white-space: nowrap; }
.term-line input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; caret-color: var(--fg); }
.snake { font-family: var(--mono); font-size: 13px; color: var(--fg); user-select: none; }
.snake-head { white-space: pre; }
.snake-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.snake-x { background: none; border: 1px solid var(--g2); color: var(--fg); font: inherit; font-size: 12px; padding: 2px 10px; cursor: pointer; }
.snake-x:hover { background: var(--fg); color: var(--bg); }
.snake canvas { display: block; border: 1px solid var(--g2); touch-action: none; }
.snake-hint { margin-top: 10px; color: var(--g1); font-size: 12px; }
.term-hint { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--g2); }
.term-hint code { color: var(--g1); }

/* İletişim */
.contact { padding-bottom: 48px !important; }
.say-hi { position: relative; display: block; font-family: var(--display); text-transform: uppercase; font-size: clamp(72px, 19vw, 300px); line-height: .85; }
.say-hi .outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.say-hi .fill { position: absolute; left: 0; top: 0; color: var(--fg); clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.7,0,.2,1); }
.say-hi:hover .fill { clip-path: inset(0 0 0 0); }
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--g3); }
.contact-row > * {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 20px 0; font: inherit; font-size: clamp(16px, 1.6vw, 20px); color: var(--fg);
  background: none; border: 0; transition: padding .25s;
}
.contact-row > * + * { padding-left: 20px; border-left: 1px solid var(--g3); }
.contact-row > *:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-row small { font-family: var(--mono); font-size: 12px; color: var(--g1); }
.contact-row small i { font-style: normal; }

/* Footer */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 24px var(--pad); border-top: 1px solid var(--g3);
  font-family: var(--mono); font-size: 12px; color: var(--g2);
}

/* Responsive */
@media (max-width: 860px) {
  .work-list a { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .w-no { grid-column: 1 / -1; }
  .w-info { grid-column: 1; }
  .w-arrow { grid-row: 2; grid-column: 2; }
  .preview { display: none; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-row > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--g3); }
}
@media (max-width: 600px) {
  .top nav { gap: 16px; }
  .hero-meta { gap: 6px 20px; font-size: 12px; }
  .scroll-hint { display: none; }
  .svc small { margin-left: 60px; width: 100%; }
  .term-body { height: 300px; font-size: 13px; }
  .prompt { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee-track, .blink { animation: none; }
}
