/* ───────── Tokens ───────── */
:root {
  --bg: #f8f8f7; --ink: #1c1c1c; --txt: #4a4a4a; --mute: #9b9b98; --line: #e8e8e5; --chip: #efefec; --card: #fff;
  --acc: #ff5a1f; --flag: #e30a17;
  --gap: 14px; --radius: 14px; --row: .74;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --curtain-ease: cubic-bezier(.76, 0, .24, 1);
  --page-curtain: var(--ink);
  --sans: Inter, system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif; --story: 'JetBrains Mono', ui-monospace, monospace;
}
[data-theme="dark"] {
  --bg: #101010; --ink: #f1f1ef; --txt: #b3b3af; --mute: #6b6b68; --line: #232322; --chip: #1c1c1b; --card: #171716;
  --page-curtain: var(--line);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--txt); font: 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.mono, .mono-k { font: 11.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.arr { display: inline-block; transition: transform .3s var(--ease); }

.skip { position: fixed; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--bg); padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: .8; }

/* ───────── Açılış: farklı dillerde merhaba ───────── */
.hello { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--bg); display: grid; place-items: center;
  transition: transform 1s var(--curtain-ease); }
.hello.out { transform: translateY(-100%); }
.hello.gone { display: none; }
.hello-word { display: flex; align-items: center; gap: 14px; font: 400 clamp(40px, 7vw, 76px)/1 var(--serif); letter-spacing: -.01em; }
.hello-word span { display: inline-block; animation: hw .25s var(--ease-out); }
@keyframes hw { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.hello-curve { position: absolute; left: 0; top: 100%; width: 100%; height: 14vh; fill: var(--ink); }
.hello-curve path { d: path("M0 0 L1000 0 L1000 0 Q500 100 0 0 Z"); transition: d 1s var(--curtain-ease); }
.hello.out .hello-curve path { d: path("M0 0 L1000 0 L1000 0 Q500 0 0 0 Z"); }
html.hello-on body { overflow: hidden; }

/* ───────── Header (alt çizgi yok) ───────── */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 12px 24px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px) saturate(1.4); transition: transform .5s var(--ease-out); }
.top.hide { transform: translateY(-100%); }
.sig { font: italic 28px/1 var(--serif); color: var(--ink); text-decoration: none; display: inline-block; transition: transform .4s var(--ease); }
.top nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.top nav > a[data-sec] { color: var(--mute); text-decoration: none; position: relative; transition: color .2s; }
.top nav > a[data-sec]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.top nav > a[data-sec]:hover, .top nav > a.on { color: var(--ink); }
.top nav > a[data-sec]:hover::after, .top nav > a.on::after { transform: scaleX(1); transform-origin: left; }
.sep { width: 1px; height: 16px; background: var(--line); margin: 0 -4px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .2s, transform .2s; margin: 0 -8px; }
.icon-btn:hover { background: var(--chip); } .icon-btn:active { transform: scale(.92); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang .cur { font: 500 11.5px var(--mono); letter-spacing: .04em; }
.theme svg { transition: transform .6s var(--ease-out); }
.theme .moon-cut, .theme .sun-core, .theme .rays { transition: all .5s var(--ease-out); transform-origin: center; }
[data-theme="dark"] .theme svg { transform: rotate(-40deg); }
[data-theme="dark"] .theme .moon-cut { cx: 17; cy: 8; }
[data-theme="dark"] .theme .sun-core { r: 8.5; }
[data-theme="dark"] .theme .rays { opacity: 0; transform: scale(.4); }
.cv-btn { margin-left: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 14px; border-radius: 999px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 500; font-size: 13px; transition: transform .3s var(--ease-out); }
.cv-btn:hover svg { animation: drop .9s var(--ease) infinite; }
@keyframes drop { 50% { transform: translateY(3px); } }
.cv-btn:active { transform: scale(.95); }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ───────── Intro kolonu ───────── */
.col { max-width: 580px; margin: auto; padding: 0 24px; }
.intro { padding-top: 140px; }
.avatar { position: relative; width: 64px; height: 64px; border-radius: 50%; display: block; }
.avatar img { width: 100%; border-radius: 50%; }
.avatar .wave { position: absolute; right: -10px; bottom: -4px; font-size: 22px; transform-origin: 70% 80%; opacity: 0; transform: scale(.4); transition: .35s var(--ease-out); }
.avatar.waving .wave { opacity: 1; transform: none; animation: wave 1.1s var(--ease) 1; }
@keyframes wave { 0%,100% { rotate: 0deg } 20% { rotate: 16deg } 40% { rotate: -8deg } 60% { rotate: 14deg } 80% { rotate: -4deg } }
.intro h1 { color: var(--ink); font-size: 16px; font-weight: 500; margin-top: 22px; }
.lead { font-size: 23px; line-height: 1.38; color: var(--ink); letter-spacing: -.018em; font-weight: 500; margin-top: 6px; }
.lead .dim { color: var(--mute); }
.tilde { display: flex; justify-content: center; color: var(--mute); margin: 26px 0; }
.tilde path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.2s calc(var(--start, 120ms) + .8s) var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.badges { line-height: 2.25; }
.bd { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 4px; border-radius: 7px; background: var(--chip); color: var(--ink); font-size: 13.5px; text-decoration: none; white-space: nowrap; line-height: 1.7;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease-out), box-shadow .3s; vertical-align: 1px; }
.bd i { width: 16px; height: 16px; border-radius: 4px; background: var(--c); display: inline-block; transition: transform .45s var(--ease-out); }
.bd:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), 0 6px 14px -8px rgba(0,0,0,.35); }
.bd:hover i { transform: rotate(-12deg) scale(1.1); }

.links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 24px; font-size: 14px; }
.links #social { display: contents; }
.links a, .links .copy { color: var(--ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  box-shadow: inset 0 -1px 0 var(--line); transition: background-size .35s var(--ease); padding: 0; }
.links a:hover, .links .copy:hover { background-size: 100% 1px; }
.copy { display: inline-flex; align-items: center; gap: 5px; } .copy svg { color: var(--mute); }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--mute); font-size: 13px; }
.status i, .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; position: relative; display: inline-block; }
.status i::after, .dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: #22c55e; opacity: .35; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }

.lbl { font: 11.5px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .07em; margin: 72px 0 8px; display: flex; justify-content: space-between; align-items: center; }
.lbl a { color: var(--mute); text-decoration: none; transition: color .2s; }
.lbl a:hover { color: var(--ink); } .lbl a:hover .arr { transform: translateX(3px); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.row b { color: var(--ink); font-weight: 500; display: block; }
.row small { color: var(--mute); font-size: 13.5px; }
.row .y { color: var(--mute); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.certs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.certs span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--txt); }
.certs span b { font-weight: 400; color: var(--mute); margin-left: 6px; font-variant-numeric: tabular-nums; }

.post { display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; color: var(--ink); text-decoration: none; }
.post span:first-child { position: relative; transition: transform .35s var(--ease); }
.post span:first-child::before { content: '→'; position: absolute; left: -18px; opacity: 0; transform: translateX(-6px); transition: .35s var(--ease); color: var(--mute); }
.post:hover span:first-child { transform: translateX(18px); }
.post:hover span:first-child::before { opacity: 1; transform: none; }
.post span:last-child { color: var(--mute); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ───────── Feed: asimetrik grid ───────── */
.feed { container-type: inline-size; max-width: 1120px; margin: 110px auto 0; padding: 0 24px; }
.feed-head { max-width: 532px; margin: 0 auto 22px; display: flex; justify-content: space-between; align-items: baseline; }
.feed-head .count { font: 12px var(--mono); color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); grid-auto-rows: calc((100cqw - 5 * var(--gap)) / 6 * var(--row)); }
.tile { position: relative; display: block; text-decoration: none; color: #fff; isolation: isolate; }
.tile[data-s="L"] { grid-column: span 4; grid-row: span 4; }
.tile[data-s="T"] { grid-column: span 2; grid-row: span 4; }
.tile[data-s="W"] { grid-column: span 4; grid-row: span 2; }
.tile[data-s="M"] { grid-column: span 3; grid-row: span 3; }
.tile[data-s="S"] { grid-column: span 2; grid-row: span 2; }
/* Bradley tarzı hover: çerçeve içe çekilir, görsel yerinde kalıp hafif yakınlaşır */
.tile .frame { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; background: var(--chip); box-shadow: 0 0 0 1px var(--line);
  transition: transform .7s var(--ease-out), border-radius .7s var(--ease-out); will-change: transform; }
.tile .media { position: absolute; inset: 0; transition: transform .9s var(--ease-out); }
.tile .media img, .tile .media canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-walkthrough { display: block; width: 100%; height: 100%; }
.tile .project-walkthrough { background: #141a16; }
.tile .project-walkthrough img { object-fit: contain; }
.tile .media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0a0c08; }
.tile:hover .frame { transform: scale(.955); border-radius: calc(var(--radius) + 6px); }
.tile:hover .media { transform: scale(1.09); }
.tile .frame::after { content: ''; position: absolute; inset: 0; background: var(--grain); pointer-events: none; mix-blend-mode: overlay; }
.tile .cap { position: absolute; inset: auto 0 0; z-index: 2; padding: 40px 16px 14px; display: flex; justify-content: space-between; align-items: end; gap: 10px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent); opacity: 0; transform: translateY(8px); transition: .5s var(--ease-out); }
.tile .cap b { font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.tile .cap small { font: 11.5px var(--mono); opacity: .8; letter-spacing: .04em; }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; transform: none; }
.tile .tag { position: absolute; left: 12px; top: 12px; z-index: 2; font: 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.85); color: #111; backdrop-filter: blur(6px); }
.tile .tag.live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-right: 6px; vertical-align: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tile.note .frame { background: var(--card); color: var(--txt); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.tile.note .frame::after { display: none; }
.tile.note:hover .frame { transform: none; }
.tile.note b { color: var(--ink); font: italic 400 26px/1 var(--serif); }
.tile.note p { font-size: 14px; line-height: 1.5; margin-top: 8px; }

/* ───────── Hikâye (Bradley'deki mono paragraf fontu) ───────── */
.story { max-width: 1120px; margin: 150px auto 0; padding: 0 24px; display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 48px; position: relative; }
.story-t { color: var(--ink); font: 400 36px/1.08 var(--serif); letter-spacing: -.02em; display: flex; flex-direction: column; gap: 14px; }
.story-p { font: 300 13.5px/1.85 var(--story); letter-spacing: -.05em; color: var(--ink); white-space: pre-line; }

/* ───────── İletişim: saate göre cümle + karıştırılan e-posta ───────── */
.contact { margin-top: 120px; }
.c-sentence { color: var(--ink); font-size: 23px; line-height: 1.38; letter-spacing: -.018em; font-weight: 500; margin-top: 6px; min-height: 2.76em; }
.c-sentence .dim { color: var(--mute); }
.c-sentence .t { font-variant-numeric: tabular-nums; }
.city { color: inherit; font: inherit; padding: 0; text-decoration: underline dotted; text-decoration-color: var(--mute); text-underline-offset: 4px; transition: color .2s; }
.city:hover { color: var(--flag); text-decoration-color: currentColor; }
/* 24 saatlik çizelge: dilimler + şu anki zamanı gösteren nokta */
.c-day { position: relative; display: grid; margin-top: 22px; padding-top: 14px; font: 11px var(--mono); letter-spacing: .03em; color: var(--mute); }
.c-day .seg { position: relative; padding: 10px 8px 0 0; border-top: 1px solid var(--line); line-height: 1.45; transition: color .3s; }
.c-day .seg b { display: block; font-weight: 400; color: var(--mute); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.c-day .seg.on { color: var(--ink); border-top-color: var(--ink); }
.c-day .seg.on b { color: var(--ink); }
.c-day .now { position: absolute; top: 14px; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--acc); }
.c-day .now::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: var(--acc); opacity: .3; animation: ping 2s var(--ease) infinite; }

.c-scr { margin-top: 70px; }
.scr { display: inline-block; color: var(--ink); text-decoration: none; font: 400 clamp(30px, 5.4vw, 50px)/1.1 var(--serif); letter-spacing: -.015em; white-space: nowrap; }
.scr .x { color: var(--acc); font-family: var(--mono); font-size: .62em; letter-spacing: 0; display: inline-block; width: .44em; text-align: center; vertical-align: .1em; }
.scr-hint { display: block; margin-top: 8px; font: 11.5px var(--mono); letter-spacing: .05em; color: var(--mute); }
.c-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; font-size: 14px; color: var(--mute); }
.c-meta a, .c-meta > button { color: var(--ink); text-decoration: none; padding: 0; box-shadow: inset 0 -1px 0 var(--line); }
.c-meta a:hover, .c-meta > button:hover { box-shadow: inset 0 -1px 0 var(--ink); }
@media (max-width: 560px) { .scr { font-size: 26px; } .c-day .seg { font-size: 10px; } }

/* ───────── Alt bilgi: dev isim (Cosmos tarzı) ───────── */
.site-foot { margin-top: 160px; overflow: hidden; }
.sf-bar { max-width: 1160px; margin: auto; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 14px; }
.sf-bar nav { display: flex; gap: 22px; }
.sf-r { justify-content: flex-end; color: var(--mute); }
.sf-bar a { color: var(--mute); text-decoration: none; transition: color .2s; }
.sf-bar a:hover { color: var(--ink); }
.sf-mark i { display: block; width: 46px; height: 36px; background: var(--ink); -webkit-mask: url(assets/monogram.webp) center / contain no-repeat; mask: url(assets/monogram.webp) center / contain no-repeat; }
/* isim: genişliğe sığdırılır (JS), alt kısmı sayfanın kenarında kesilir */
.sf-name { max-width: 1160px; margin: 26px auto 0; padding: 0 24px; height: calc(var(--fs, 160px) * .62); overflow: hidden; }
.sf-name span { display: inline-block; white-space: nowrap; font: 800 var(--fs, 160px)/.8 'Inter Tight', Inter, sans-serif; letter-spacing: -.045em; color: var(--ink);
  transform: translateY(18%); transition: transform 1.2s var(--ease-out); }
.site-foot.in .sf-name span { transform: none; }
@media (max-width: 560px) { .sf-bar { grid-template-columns: auto 1fr; } .sf-bar .sf-l, .sf-r span { display: none; } .sf-mark { order: -1; } .site-foot { margin-top: 110px; } }

/* ───────── İstanbul sürprizi (egg.js) ───────── */
.ist { position: fixed; inset: 0; z-index: 140; display: flex; align-items: flex-end; pointer-events: auto;
  --ist-sky: #f3c58f; --ist-ink: var(--ink); background: transparent; transition: background .7s ease; }
.ist.on { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.ist.off { background: transparent; }
.ist-day { --ist-sky: #bfe0f3; } .ist-dusk { --ist-sky: #f6b385; } .ist-dawn { --ist-sky: #f8d3b0; } .ist-night { --ist-sky: #1d2a4a; }
.ist svg { width: 100%; height: min(58vh, 460px); display: block; overflow: visible; transform: translateY(40px); opacity: 0; transition: transform 1s cubic-bezier(.16,1,.3,1), opacity .6s ease; }
.ist.on svg { transform: none; opacity: 1; }
.ist.off svg { transform: translateY(30px); opacity: 0; transition-duration: .6s; }
.ist-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.ist.on .ist-line { animation: ist-draw 1.6s cubic-bezier(.45,0,.2,1) forwards; animation-delay: calc(var(--i) * 45ms + .15s); }
.ist-line.thin { stroke-width: 1; opacity: .6; } .ist-line.cable { stroke-width: 1.6; } .ist-line.sea { stroke-width: 1.2; opacity: .35; }
@keyframes ist-draw { to { stroke-dashoffset: 0; } }
.ist-sun { fill: var(--acc); opacity: 0; transform-box: fill-box; transform-origin: center; }
.ist.on .ist-sun { animation: ist-rise 1.8s cubic-bezier(.16,1,.3,1) .5s forwards; }
.ist-dusk .ist-sun, .ist-dawn .ist-sun { fill: #f2643a; }
@keyframes ist-rise { from { opacity: 0; transform: translateY(40px) scale(.8); } to { opacity: .9; transform: none; } }
.ist-moon circle { fill: #f4f1e6; } .ist-moon .cut { fill: var(--bg); }
.ist-moon { opacity: 0; } .ist.on .ist-moon { animation: fade-in 1.4s ease .5s forwards; }
.ist-star { fill: var(--ink); opacity: 0; } .ist.on .ist-star { animation: twinkle 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .8; } }
@keyframes fade-in { to { opacity: 1; } }
.ist-flag { opacity: 0; } .ist.on .ist-flag { animation: fade-in .5s ease 1.7s forwards; }
.ist-flag .cloth { fill: #e30a17; animation: ist-wave 1.4s ease-in-out infinite; transform-origin: 0 15px; }
@keyframes ist-wave { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(4deg) scaleX(.94); } }
.ist-ferry { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; opacity: 0; offset-path: path('M-120 372 L1720 372'); }
.ist-ferry > path:first-child { fill: var(--bg); }
.ist.on .ist-ferry { animation: ist-ferry 16s linear 1.2s forwards; }
@keyframes ist-ferry { 0% { opacity: 1; offset-distance: 0%; } 100% { opacity: 1; offset-distance: 100%; } }
.ist-ferry .smoke { stroke-width: 1.2; opacity: .5; stroke-dasharray: 4 4; animation: smoke 1s linear infinite; }
@keyframes smoke { to { stroke-dashoffset: -8; } }
.ist-gull { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; opacity: 0;
  offset-path: path('M-60 170 C 300 90, 700 220, 1000 120 S 1500 160, 1700 80'); offset-rotate: 0deg; }
.ist.on .ist-gull { animation: ist-gull 11s linear forwards, flap .5s ease-in-out infinite; animation-delay: calc(var(--g) * .7s + .8s), 0s; }
.ist-gull:nth-of-type(2n) { offset-path: path('M-60 230 C 400 150, 800 260, 1200 170 S 1500 140, 1700 200'); }
@keyframes ist-gull { 0% { opacity: .85; offset-distance: 0%; } 100% { opacity: .85; offset-distance: 100%; } }
@keyframes flap { 50% { d: path('M0 0 q6 3 12 0 q6 3 12 0'); } }
.ist-cap { position: absolute; left: 50%; top: 18vh; transform: translate(-50%, 10px); text-align: center; opacity: 0; transition: .8s cubic-bezier(.16,1,.3,1) .9s; }
.ist.on .ist-cap { opacity: 1; transform: translate(-50%, 0); }
.ist.off .ist-cap { opacity: 0; transition-delay: 0s; }
.ist-cap b { display: block; color: var(--ink); font: 400 clamp(34px, 5vw, 58px)/1 var(--serif); letter-spacing: -.02em; }
.ist-cap span { display: block; margin-top: 10px; font: 11.5px var(--mono); letter-spacing: .08em; color: var(--mute); }
.ist-x { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); opacity: 0; transition: opacity .4s ease .8s; }
.ist.on .ist-x { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ist-line { stroke-dashoffset: 0; } .ist-ferry, .ist-gull { display: none; } }

/* ───────── Scroll reveal ───────── */
.reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 90ms + var(--start, 120ms)); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
[data-io] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--delay, 0ms); }
[data-io].in { opacity: 1; transform: none; }
.tile[data-io] { transform: translateY(28px) scale(.97); }
.tile[data-io].in { transform: none; }

/* ───────── Detay (sheet) ───────── */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); } /* backdrop-filter + opaklık animasyonu Chrome’da anlık siyah kare üretiyordu */
.sheet-card { position: relative; width: min(1120px, 100%); max-height: calc(100vh - 48px); display: grid; grid-template-columns: 1.35fr 1fr; background: var(--card);
  border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0,0,0,.45); will-change: transform; }
.sheet-media { position: relative; min-height: 420px; background: var(--chip); }
.sheet-media img, .sheet-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-info { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; }
.sheet-nav { display: flex; gap: 4px; }
.sheet-nav button { width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: var(--chip); transition: background .2s, transform .2s; }
.sheet-nav button:hover { background: var(--line); } .sheet-nav button:active { transform: scale(.92); }
.sheet h3 { color: var(--ink); font: 400 46px/1 var(--serif); letter-spacing: -.02em; margin-top: 18px; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.sheet dt { font: 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding-top: 3px; }
.sheet dd { color: var(--ink); }
.case { margin-top: auto; align-self: flex-start; color: var(--ink); text-decoration: none; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: background .25s; }
.case:hover { background: var(--chip); } .case:hover .arr { transform: translateX(4px); }
.sheet .anim > * { opacity: 0; transform: translateY(10px); animation: rise .6s var(--ease-out) forwards; }
::view-transition-group(hero) { animation-duration: .6s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); border-radius: 14px; overflow: hidden; }
::view-transition-old(hero), ::view-transition-new(hero) { height: 100%; object-fit: cover; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* ───────── Sohbet asistanı ───────── */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 500; font-size: 14px; box-shadow: 0 14px 34px -14px rgba(0,0,0,.55);
  transition: transform .45s var(--ease-out), opacity .3s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab[aria-expanded="true"] { transform: translateY(12px) scale(.9); opacity: 0; pointer-events: none; }
.spark { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 0deg, #ff5a1f, #ffd84a, #5b4bd6, #22c55e, #ff5a1f); animation: spin 4s linear infinite; position: relative; }
.spark::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); }
@keyframes spin { to { transform: rotate(1turn); } }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 75; width: min(390px, calc(100vw - 24px)); height: min(580px, calc(100vh - 100px)); display: flex; flex-direction: column;
  background: var(--card); border-radius: 24px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0,0,0,.5); overflow: hidden; transform-origin: 90% 100%;
  animation: chat-in .5s var(--ease-out); }
.chat[hidden] { display: none; }
.chat.closing { animation: chat-in .3s var(--ease) reverse forwards; }
@keyframes chat-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.chat-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.chat-id { display: flex; gap: 10px; align-items: center; }
.chat-id img { width: 34px; height: 34px; border-radius: 50%; }
.chat-id b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1.2; }
.chat-id small { color: var(--mute); font-size: 12px; }
.chat-h .icon-btn { margin: 0; font-size: 13px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; font-size: 14px; line-height: 1.55; animation: msg .45s var(--ease-out); white-space: pre-line; }
@keyframes msg { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { color: var(--ink); align-self: flex-start; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--bg); padding: 9px 13px; border-radius: 16px 16px 4px 16px; }
.msg a { color: inherit; }
.typing { display: inline-flex; gap: 4px; padding: 8px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-sugs { display: flex; gap: 6px; padding: 0 16px 10px; flex-wrap: wrap; }
.chat-sugs button { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--txt); transition: background .2s, color .2s; }
.chat-sugs button:hover { background: var(--chip); color: var(--ink); }
.chat-in { display: flex; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); }
.chat-in input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; color: var(--ink); min-width: 0; }
.chat-in button { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform .2s; }
.chat-in button:active { transform: scale(.9); }
.chat-note { text-align: center; color: var(--mute); font-size: 11px; padding: 8px 0 10px; }

/* ───────── Agent görünümü ───────── */
html[data-view="agent"] .human, html[data-view="agent"] .chat-fab, html[data-view="agent"] .chat { display: none; }
html[data-view="agent"] .agent { display: block; }
.agent { max-width: 860px; margin: auto; padding: 100px 24px 80px; font: 13.5px/1.75 var(--mono); color: var(--ink); }
.agent[hidden] { display: none; }
.agent .banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--txt); }
.agent .banner div { display: flex; gap: 6px; }
.agent .banner button { padding: 5px 11px; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--ink); }
.agent .banner button:hover { background: var(--ink); color: var(--bg); }
.agent h1 { font: 500 22px/1.3 var(--mono); margin: 36px 0 4px; letter-spacing: -.02em; }
.agent h2 { font: 500 13.5px var(--mono); margin: 34px 0 10px; color: var(--acc); }
.agent h2::before { content: '## '; color: var(--mute); }
.agent p { color: var(--txt); }
.agent .ag-hello { margin-top: 18px; color: var(--ink); }
.agent .ag-dim { color: var(--mute); font-size: 12.5px; margin-top: 8px; }
.agent #ag-guests[hidden] { display: none; }
.agent table { width: 100%; border-collapse: collapse; }
.agent td, .agent th { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.agent th { color: var(--mute); font-weight: 400; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.agent .kv { display: grid; grid-template-columns: 150px 1fr; gap: 2px 16px; }
.agent .kv dt { color: var(--mute); } .agent .kv dd { margin: 0; }
.agent pre { background: var(--chip); padding: 16px; border-radius: 12px; overflow: auto; font-size: 12px; line-height: 1.6; box-shadow: inset 0 0 0 1px var(--line); max-height: 420px; }
.agent .enter > * { opacity: 0; animation: rise .5s var(--ease-out) forwards; }

/* ───────── Özel imleç (yuvarlak köşeli ok + isim etiketi) ───────── */
html.has-pointer, html.has-pointer * { cursor: none !important; }
html.has-pointer input, html.has-pointer textarea { cursor: text !important; }
.pointer { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
html.has-pointer .pointer.on { opacity: 1; }
.pointer svg { display: block; transform: translate(-4.6px, -4.6px); transform-origin: 4.6px 4.6px; transition: transform .2s var(--ease-out); filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.pointer path { fill: var(--ink); stroke: var(--bg); stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s; }
.pointer.down svg { transform: translate(-4.6px, -4.6px) scale(.86); }
.pointer.link path, .pointer.tagged path { fill: var(--acc); }
.pointer .tag { position: absolute; left: 18px; top: 18px; padding: 4px 10px; border-radius: 4px 999px 999px 999px; background: var(--acc); color: #fff; font: 500 12px var(--sans);
  white-space: nowrap; transform: scale(0); transform-origin: 0 0; transition: transform .3s var(--ease-out); }
.pointer.tagged .tag { transform: scale(1); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 13.5px; transition: .45s var(--ease-out); pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast { display: inline-flex; align-items: center; gap: 8px; }
html[data-view="agent"] .top nav > a[data-sec], html[data-view="agent"] .sep { display: none; }

/* ───────── Responsive ───────── */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc((100cqw - 3 * var(--gap)) / 4 * var(--row)); grid-auto-flow: dense; }
  .tile[data-s="L"] { grid-column: span 4; grid-row: span 3; }
  .tile[data-s="W"] { grid-column: span 4; grid-row: span 2; }
  .tile[data-s="M"] { grid-column: span 2; grid-row: span 2; }
  .tile.note { grid-column: 1 / -1; }
  .story { grid-template-columns: 1fr 1fr; } .story-t { grid-column: 1 / -1; } .scribble { grid-column: 2; }
  .contact-card { grid-template-columns: 1fr; } .letter { border-left: 0; border-top: 1px solid var(--line); }
  .sheet-card { grid-template-columns: 1fr; } .sheet-media { min-height: 46vh; }
}
@media (max-width: 560px) {
  :root { --gap: 10px; }
  .top { padding: 10px 12px 10px 18px; } .top nav { gap: 14px; } .top nav > a[data-sec] { display: none; } .sep { display: none; }
  .col, .feed, .story, .contact { padding-left: 18px; padding-right: 18px; }
  .intro { padding-top: 110px; } .lead { font-size: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100cqw - var(--gap)) / 2 * var(--row)); }
  .tile[data-s="L"], .tile[data-s="W"] { grid-column: span 2; grid-row: span 1; }
  .tile[data-s="L"] { grid-row: span 2; }
  .tile[data-s="T"] { grid-column: span 1; grid-row: span 2; }
  .tile[data-s="M"], .tile[data-s="S"] { grid-column: span 1; grid-row: span 1; }
  .tile.note { grid-column: 1 / -1; }
  .story { grid-template-columns: 1fr; gap: 24px; } .scribble { grid-column: 1; }
  .c-left, .letter { padding: 26px; }
  .social-rows a { font-size: 24px; }
  .status { margin-left: 0; width: 100%; }
  .sheet { padding: 0; place-items: end stretch; } .sheet-card { border-radius: 22px 22px 0 0; max-height: 92vh; } .sheet h3 { font-size: 36px; }
  .chat { right: 0; bottom: 0; width: 100%; height: 82vh; border-radius: 22px 22px 0 0; }
  .chat-fab { right: 14px; bottom: 14px; }
  .agent .kv { grid-template-columns: 1fr; }
}
@media (hover: none) { .tile .cap { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .reveal, [data-io], .tile[data-io] { opacity: 1; transform: none; filter: none; }
}

/* ───────── CV linki (e-posta / GitHub satırında) ───────── */
.links .cv-link { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; background: var(--ink); color: var(--bg);
  box-shadow: none; background-image: none; font-weight: 500; font-size: 13px; transition: transform .3s var(--ease-out); }
.links .cv-link:hover { transform: translateY(-1px); background-size: 0; }
.links .cv-link:hover svg { animation: drop .9s var(--ease) infinite; }

/* ───────── Yetenekler ───────── */
.skill-g { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.skill-g dt { color: var(--ink); font-weight: 500; font-size: 14px; }
.skill-g dd { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-g dd span { font-size: 12.5px; padding: 2px 9px; border-radius: 6px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
  transition: background .2s, color .2s; }
.skill-g dd span:hover { background: var(--ink); color: var(--bg); }

/* ───────── Sertifikalar ───────── */
.cert { padding: 13px 0; border-bottom: 1px solid var(--line); }
.cert .top-l { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.cert b { color: var(--ink); font-weight: 500; }
.cert small { display: block; color: var(--mute); font-size: 13.5px; }
.cert p { font-size: 13px; color: var(--txt); margin-top: 4px; line-height: 1.55; }

/* ───────── Detay: teknoloji + aksiyonlar ───────── */
.sheet-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.sheet-stack span { font: 11.5px var(--mono); padding: 3px 9px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.sheet-act { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-act a, .sheet-act button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; font-size: 14px; text-decoration: none; transition: background .25s, transform .25s; }
.sheet-act .pri { background: var(--ink); color: var(--bg); }
.sheet-act .sec { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.sheet-act .sec:hover { background: var(--chip); }
.sheet-act .pri:hover .arr, .sheet-act .sec:hover .arr { transform: translateX(3px); }
.sheet-act .muted { color: var(--mute); font-size: 13px; padding: 10px 0; }

/* ───────── Sohbet: aksiyon butonları + README alıntısı ───────── */
.msg .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg .acts a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; text-decoration: none;
  background: var(--ink); color: var(--bg); transition: transform .2s; animation: msg .45s var(--ease-out) backwards; }
.msg .acts a.sec { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.msg .acts a:hover { transform: translateY(-1px); }
.msg .src { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line);
  font: 12.5px/1.6 var(--mono); color: var(--txt); white-space: pre-line; max-height: 220px; overflow: auto; }
.msg .src-h { display: block; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin-top: 10px; }
@media (max-width: 560px) { .skill-g { grid-template-columns: 1fr; gap: 6px; } }

/* görünüm geçişi perdesi */
.veil { position: fixed; inset: 0; z-index: 150; background: var(--bg); pointer-events: none; }
/* giriş animasyonları bir kez oynadıktan sonra tekrar etmesin (agent görünümünden dönüşte) */
html.settled .reveal { animation: none; opacity: 1; transform: none; filter: none; }
html.settled .tilde path { animation: none; stroke-dashoffset: 0; }

/* ───────── İmza logosu (renk temaya uyar: maske + --ink) ───────── */
.sig-img { display: block; background: var(--ink); -webkit-mask: url(assets/signature.webp) center / contain no-repeat; mask: url(assets/signature.webp) center / contain no-repeat; }
.sig .sig-img { width: 150px; aspect-ratio: 1400 / 375; }

/* ───────── Rozet ikonları (gerçek logolar) ───────── */
.bd i.m { background: var(--c); -webkit-mask: var(--m) center / 78% no-repeat; mask: var(--m) center / 78% no-repeat; border-radius: 0; }
.bd i.img { background: #fff center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.bd i.t { background: var(--c); display: inline-grid; place-items: center; font: 600 10px/1 var(--sans); }
.avatar img { object-fit: cover; aspect-ratio: 1; box-shadow: 0 0 0 1px var(--line); }
.chat-id img { object-fit: cover; }

/* ───────── Nokta dalgası (yazısız, sürekli) ───────── */
.wave-dots { display: flex; justify-content: center; align-items: center; gap: 7px; height: 22px; margin: 26px 0; }
.wave-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--mute); opacity: .55; animation: bob 2.4s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--i) * 110ms); }
.wave-dots i:nth-child(7) { background: var(--acc); opacity: 1; }
@keyframes bob { 0%, 100% { transform: translateY(5px) scale(.8); opacity: .35; } 50% { transform: translateY(-5px) scale(1.15); opacity: .9; } }


/* Açılıştaki perde gibi, örtü yukarı çıkarken yeni sayfayı açar. */
html.page-leaving::after, html.page-revealing::after {
  content: ''; position: fixed; inset: 0; z-index: 400; background: var(--page-curtain); pointer-events: none;
}
html.page-leaving::after { animation: curtain-cover .28s var(--curtain-ease) both; }
html.page-revealing::after { animation: curtain-reveal .36s var(--curtain-ease) both; }
@keyframes curtain-cover {
  from { clip-path: ellipse(150% 180% at 50% 282%); }
  to { clip-path: ellipse(150% 180% at 50% 160%); }
}
@keyframes curtain-reveal {
  from { clip-path: ellipse(150% 180% at 50% -60%); }
  to { clip-path: ellipse(150% 180% at 50% -182%); }
}
@media (prefers-reduced-motion: reduce) { html.page-leaving::after, html.page-revealing::after { display: none; } }
/* Perde büyük ölçüde açıldığında normal bileşen girişleri başlar. */
html.page-arrival { --start: 300ms; }

/* ───────── Proje sayfası (proje.html) ───────── */
.pj-page .top { display: grid; grid-template-columns: 1fr auto 1fr; }
.pj-page .top nav { justify-self: end; gap: 18px; }
.back { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); text-decoration: none; font-size: 13.5px; background: var(--card); transition: background .2s; }
.back:hover { background: var(--chip); } .back:hover .arr { transform: translateX(-3px); }
.pj { max-width: 1120px; margin: auto; padding: 0 24px; }
.pj-head { max-width: 760px; padding-top: 150px; }
.pj-kicker { display: flex; gap: 8px; font: 11.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.pj-title { color: var(--ink); font: 400 clamp(56px, 9vw, 112px)/.95 var(--serif); letter-spacing: -.03em; margin-top: 18px; }
.pj-lead { color: var(--ink); font-size: 20px; line-height: 1.55; letter-spacing: -.012em; margin-top: 26px; max-width: 62ch; }
.pj-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 34px; border-top: 1px solid var(--line); }
.pj-meta > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pj-meta > div.wide { grid-column: 1 / -1; }
.pj-meta b { color: var(--ink); font-weight: 500; font-size: 14.5px; }
.pj-meta .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pj-meta .chips span { font: 12px var(--mono); padding: 3px 9px; border-radius: 999px; background: var(--chip); font-weight: 400; }
.pj-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pj-acts a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; font-size: 14px; text-decoration: none; }
.pj-acts .pri { background: var(--ink); color: var(--bg); } .pj-acts .sec { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.pj-acts a:hover .arr { transform: translate(2px, -2px); }
.pj-acts .muted { color: var(--mute); font-size: 13.5px; padding: 10px 0; }
.pj-hero { margin-top: 64px; }
.pj-hero .frame { border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--chip); aspect-ratio: 16 / 9; }
.pj-hero img { width: 100%; height: 100%; object-fit: cover; }
.pj-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.pj-shot { margin: 0; }
.pj-shot:first-child:nth-last-child(odd), .pj-shot:last-child:nth-child(even), .pj-shot.anim { grid-column: 1 / -1; }
.pj-shot .frame { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--chip); }
.pj-shot img { display: block; width: 100%; height: auto; }
.pj-shot figcaption { margin-top: 10px; font: 400 12.5px/1.4 var(--mono); color: var(--mute); }
@media (max-width: 860px) { .pj-gallery { grid-template-columns: minmax(0, 1fr); } }
.pj-story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-top: 110px; }
.pj-story[hidden] { display: none; }
.pj-side { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 8px; }
.pj-side small { color: var(--mute); font-size: 12.5px; line-height: 1.5; }
.pj-md { min-width: 0; max-width: 680px; overflow-wrap: anywhere; color: var(--txt); font-size: 16px; line-height: 1.75; }
.pj-md > * + * { margin-top: 16px; }
.pj-md h3 { color: var(--ink); font: 400 30px/1.15 var(--serif); letter-spacing: -.01em; margin-top: 44px; }
.pj-md h3:first-child { margin-top: 0; }
.pj-md p:first-child { color: var(--ink); font-size: 19px; line-height: 1.55; }
.pj-md ul { padding-left: 0; list-style: none; }
.pj-md li { position: relative; padding-left: 20px; }
.pj-md li + li { margin-top: 6px; }
.pj-md li::before { content: ''; position: absolute; left: 2px; top: .75em; width: 8px; height: 1px; background: var(--mute); }
.pj-md b { color: var(--ink); font-weight: 500; }
.pj-md a { color: var(--ink); }
.pj-md code { font: 13px var(--mono); padding: 1px 6px; border-radius: 5px; background: var(--chip); }
.pj-md pre { padding: 16px 18px; border-radius: 12px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; overflow-wrap: normal; }
.pj-md pre code { padding: 0; background: none; font-size: 12.5px; line-height: 1.6; }
.pj-next { margin-top: 140px; }
.pj-card { display: block; text-decoration: none; color: inherit; position: relative; }
.pj-card .frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--chip); aspect-ratio: 4 / 3; transition: transform .7s var(--ease-out), border-radius .7s var(--ease-out); }
.pj-card .media { position: absolute; inset: 0; transition: transform .9s var(--ease-out); }
.pj-card img { width: 100%; height: 100%; object-fit: cover; }
.pj-card:hover .frame { transform: scale(.97); border-radius: calc(var(--radius) + 6px); }
.pj-card:hover .media { transform: scale(1.08); }
.pj-card-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 2px 0; }
.pj-card-t b { color: var(--ink); font-weight: 500; }
.pj-card-t small { color: var(--mute); font: 12px var(--mono); }
.pj-card.big { margin-top: 16px; }
.pj-card.big .frame { aspect-ratio: 21 / 9; }
.pj-card.big .pj-card-t b { font: 400 40px/1.1 var(--serif); letter-spacing: -.02em; }
.pj-others-k { display: block; margin-top: 70px; }
.pj-others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.pj-page .site-foot { margin-top: 140px; }
@media (max-width: 860px) {
  .pj-story { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pj-side { position: static; }
  .pj-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pj { padding-inline: 18px; }
  .pj-head { padding-top: 92px; }
  .pj-kicker { flex-wrap: wrap; }
  .pj-lead { font-size: 17px; margin-top: 20px; }
  .pj-meta { grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
  .pj-acts { margin-top: 20px; }
  .pj-hero { margin-top: 36px; }
  .pj-story, .pj-next { margin-top: 68px; }
  .pj-others-k { margin-top: 40px; }
  .pj-card-t { flex-wrap: wrap; row-gap: 4px; }
  .pj-card.big .frame { aspect-ratio: 4 / 3; }
  .pj-card.big .pj-card-t b { font-size: 28px; }
  .back span:not(.arr) { display: none; }
  .sig-center .sig-img { width: 120px; }
}

/* ───────── Ses düğmesi ───────── */
.sound[aria-pressed="true"] .w1 { animation: sw 1.6s ease-in-out infinite; }
.sound[aria-pressed="true"] .w2 { animation: sw 1.6s ease-in-out .25s infinite; }
@keyframes sw { 50% { opacity: .25; } }

/* ───────── Müzik oynatıcı (sol alt) ───────── */
.mp { position: fixed; left: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 10px 28px -16px rgba(0,0,0,.4); text-align: left;
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.mp.ready { opacity: 1; transform: none; }
.mp-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 16px; }
.mp-bars i { flex: 1; height: 3px; border-radius: 1px; background: var(--ink); transition: height .3s; }
.mp.playing .mp-bars i { animation: bars 1s ease-in-out infinite; }
.mp.playing .mp-bars i:nth-child(2) { animation-delay: -.3s; } .mp.playing .mp-bars i:nth-child(3) { animation-delay: -.6s; } .mp.playing .mp-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.mp-txt { display: flex; flex-direction: column; line-height: 1.15; }
.mp-txt small { font: 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.mp-txt b { font-weight: 500; font-size: 12.5px; }
@media (max-width: 560px) { .mp-txt { display: none; } .mp { padding: 10px; left: 14px; bottom: 14px; } }

/* ───────── Fotoğraflar sayfası ───────── */
.ph-page { min-height: 100dvh; display: flex; flex-direction: column; }
.ph { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ph-head { max-width: 680px; padding-top: 150px; }
.ph-grid { columns: 3 300px; column-gap: 14px; margin-top: 64px; }
.ph-item { display: block; width: 100%; break-inside: avoid; margin-bottom: 14px; position: relative; padding: 0; border-radius: 10px; overflow: hidden;
  aspect-ratio: var(--ar); background: var(--chip); box-shadow: 0 0 0 1px var(--line); opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(min(var(--d), 6) * 60ms); }
.ph-item.in { opacity: 1; transform: none; }
.ph-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; filter: saturate(.92); }
.ph-item:hover img { transform: scale(1.035); filter: none; }
.ph-cap { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; padding: 30px 14px 12px; color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent); opacity: 0; transition: opacity .4s; }
.ph-item:hover .ph-cap, .ph-item:focus-visible .ph-cap { opacity: 1; }
.ph-cap b { font-weight: 500; font-size: 13.5px; } .ph-cap small { font: 11px var(--mono); opacity: .8; }
.ph-empty { color: var(--mute); }
.lb { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: color-mix(in srgb, var(--bg) 96%, transparent); padding: 24px 0; }
.lb[hidden] { display: none; }
.lb figure { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; max-height: 100%; }
.lb img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.lb figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; align-items: baseline; font-size: 14px; color: var(--ink); padding: 0 12px; }
.lb figcaption span, .lb figcaption a { font: 11.5px var(--mono); color: var(--mute); }
.lb figcaption a:hover, .lb figcaption a:focus-visible { color: var(--ink); }
.lb-x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--chip); color: var(--ink); }
.lb-nav { justify-self: center; width: 44px; height: 44px; border-radius: 50%; background: var(--chip); color: var(--ink); transition: background .2s; }
.lb-nav:hover, .lb-x:hover { background: var(--line); }
@media (max-width: 560px) { .ph-head { padding-top: 110px; } .ph-grid { columns: 2 140px; column-gap: 8px; } .ph-item { margin-bottom: 8px; } .lb { grid-template-columns: 1fr; } .lb-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .ph-item { opacity: 1; transform: none; } }

/* ───────── Şu sıralar dinlediğim (Spotify) — minimal ───────── */
.sp { position: fixed; left: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px;
  opacity: 0; transition: opacity .6s var(--ease-out); }
.sp.ready { opacity: 1; }
.sp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--card); color: var(--ink); text-align: left;
  box-shadow: 0 0 0 1px var(--line); transition: background .2s; }
.sp-pill:hover { background: var(--chip); }
.sp-pill img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; animation: spin 9s linear infinite; animation-play-state: paused; }
.sp-pill:hover img, .sp.open .sp-pill img { animation-play-state: running; }
.sp-name { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.sp-name b { font-weight: 500; font-size: 12px; }
.sp-name small { font-size: 11px; color: var(--mute); }
.sp-panel { width: min(300px, calc(100vw - 36px)); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(0,0,0,.45); animation: chat-in .4s var(--ease-out); }
.sp-panel[hidden] { display: none; }
.sp-frame iframe { display: block; border: 0; }

/* ───────── 404 ───────── */
.nf-page { min-height: 100dvh; display: flex; flex-direction: column; }
.nf { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 150px 24px 80px; }
.nf-term { margin-top: 36px; padding: 16px 18px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font: 13px/1.7 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.nf-p { color: var(--mute); } .nf-err { color: var(--acc); } .nf-dim { color: var(--mute); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nf-links .back { padding: 7px 14px; }
@media (max-width: 640px) { .nf { padding: 120px 18px 60px; } .nf-links .back span { display: inline; } }
.nf-redact { color: var(--ink); letter-spacing: -.05em; user-select: none; }
.nf-flag { font-size: 14.5px; }
.nf-note { margin-top: 22px; max-width: 62ch; font-size: 14.5px; }
