/* ysk. — kişisel marka sistemi */
/* Yazı tipleri siteden sunulur (tools/yazitiplerini_kucult.py): yalnızca TR/EN karakterleri, OFL lisanslı */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #0c0d0b;
  --ink-2: #141512;
  --ink-3: #1c1d19;
  --paper: #ede8dd;
  --paper-dim: #c9c4b8;
  --muted: #8f8b81;
  --line: rgba(237, 232, 221, 0.12);
  --line-strong: rgba(237, 232, 221, 0.24);
  --accent: #f2b33d;
  --accent-ink: #1a1306;
  --glass: rgba(12, 13, 11, 0.78);
  --track: rgba(237, 232, 221, 0.06);
  --cover-glow: #2a2414;
  --bad: #e8826b;
  --good: #9fd18b;
  /* koyu temada ters (açık) duran TEKNOFEST bölümü */
  --fx-muted: #6d6a62;
  --fx-accent: #b5781a;
  --fx-sub: #3b3a35;
  --fx-body: #2c2b27;
  --fx-label: #5b5952;
  --fx-line: rgba(12, 13, 11, 0.16);
  --fx-line-strong: rgba(12, 13, 11, 0.3);
  --fx-figure: #d8d2c4;
  color-scheme: dark;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* açık tema: theme.js <html data-theme> değerini cihaz ayarından ya da kayıtlı tercihten verir */
:root[data-theme="light"] {
  --ink: #f6f3ec;
  --ink-2: #efeadf;
  --ink-3: #e6e0d2;
  --paper: #15140f;
  --paper-dim: #38352d;
  --muted: #615c51;
  --line: rgba(21, 20, 15, 0.12);
  --line-strong: rgba(21, 20, 15, 0.24);
  --accent: #946005;
  --accent-ink: #ffffff;
  --glass: rgba(246, 243, 236, 0.82);
  --track: rgba(21, 20, 15, 0.07);
  --cover-glow: #f1dfb6;
  --bad: #b5482f;
  --good: #3f7d2a;
  /* açık temada TEKNOFEST bölümü koyu durur */
  --fx-muted: #a39f94;
  --fx-accent: #f2b33d;
  --fx-sub: #c9c4b8;
  --fx-body: #d6d1c5;
  --fx-label: #a39f94;
  --fx-line: rgba(237, 232, 221, 0.16);
  --fx-line-strong: rgba(237, 232, 221, 0.3);
  --fx-figure: #2a2924;
  color-scheme: light;
}
:root[data-theme="light"] body::before { opacity: 0.035; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; } /* <picture> düzene karışmaz; stiller içteki img'ye uygulanır */
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.dot { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -0.04em; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-size: 14px; color: var(--paper-dim); transition: color 0.2s; }
.nav a:hover { color: var(--paper); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; border: 1px solid var(--line-strong); transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { border-color: var(--paper); }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: var(--paper); border-color: var(--paper); }
.btn svg { width: 16px; height: 16px; }
.nav .btn { color: var(--paper); padding: 9px 16px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--paper); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding: 140px 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: var(--paper-dim); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(242, 179, 61, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242, 179, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 179, 61, 0); } }
.hero h1 {
  font-family: var(--f-display); font-weight: 700; margin: 0;
  font-size: clamp(56px, 10.4vw, 168px); line-height: 0.86; letter-spacing: -0.055em;
}
.hero h1 .serif { font-size: 1.04em; letter-spacing: -0.02em; color: var(--accent); }
.hero-lead { max-width: 560px; margin: 36px 0 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--paper-dim); line-height: 1.55; }
.hero-lead strong { color: var(--paper); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.portrait { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.05); transition: filter 0.8s var(--ease), opacity .7s var(--ease); }
.portrait:hover img { filter: grayscale(0); }
.portrait-tag {
  position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px;
}
.portrait-tag b { font-weight: 500; }
.trophy-chip {
  position: absolute; top: 14px; right: 14px; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 7px 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); }
.stat { padding: 28px 24px 32px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.04em; line-height: 1; }
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--ink-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 42s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; color: var(--paper-dim); display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--accent); font-size: 0.6em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 12vw, 168px) 0; }
.section-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); align-items: start; }
.section-index { color: var(--muted); padding-top: 14px; }
.section-index b { color: var(--accent); font-weight: 500; }
.section-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 6vw, 92px); line-height: 0.95; letter-spacing: -0.045em; margin: 0; max-width: 16ch; }
.section-title .serif { color: var(--accent); }
.section-sub { color: var(--paper-dim); max-width: 600px; margin: 24px 0 0; font-size: 18px; }

/* ---------- teknofest feature ---------- */
.feature { background: var(--paper); color: var(--ink); }
.feature .section-index, .feature .muted { color: var(--fx-muted); }
.feature .section-index b { color: var(--fx-accent); }
.feature .section-title .serif { color: var(--fx-accent); }
.feature .section-sub { color: var(--fx-sub); }
.feature ::selection { background: var(--ink); color: var(--paper); }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(64px, 7vw, 104px); gap: 12px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; background: var(--fx-figure); cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .7s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute; left: 10px; bottom: 10px; background: rgba(12, 13, 11, 0.78); color: #ede8dd; backdrop-filter: blur(6px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px;
}
.m-b { grid-column: 1 / span 7; grid-row: span 5; }
.m-c { grid-column: 8 / span 5; grid-row: span 5; }
.m-e { grid-column: 1 / span 7; grid-row: span 4; }
.m-d { grid-column: 8 / span 5; grid-row: span 4; }
.m-c img { object-position: center 30%; }
.m-d img { object-position: center 20%; }
.m-e img { object-position: center 40%; }

.feature-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); }
.feature-body p { font-size: 19px; line-height: 1.6; margin: 0 0 18px; color: var(--fx-body); }
.feature-body p:first-child::first-letter { font-family: var(--f-display); font-weight: 700; float: left; font-size: 4.2em; line-height: 0.82; margin: 6px 12px 0 0; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--fx-line); }
.kpi { padding: 24px 0; border-bottom: 1px solid var(--fx-line); }
.kpi:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--fx-line); }
.kpi:nth-child(even) { padding-left: 20px; }
.kpi-num { font-family: var(--f-display); font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.kpi-label { margin-top: 8px; font-size: 14px; color: var(--fx-label); line-height: 1.4; }
.feature .btn { border-color: var(--fx-line-strong); }
.feature .btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ---------- platforms ---------- */
.flagship {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--ink-2); margin-bottom: 24px;
}
.flagship-shot { position: relative; background: #f3f4f6; min-height: 340px; overflow: hidden; }
.flagship-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.flagship:hover .flagship-shot img { transform: scale(1.03); }
.flagship-info { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.role-chip { align-self: flex-start; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 6px 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.flagship h3 { font-family: var(--f-display); font-size: clamp(40px, 4.6vw, 68px); letter-spacing: -0.045em; line-height: 0.95; margin: 22px 0 16px; font-weight: 600; }
.flagship p { color: var(--paper-dim); margin: 0 0 16px; }
.flagship ul { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 10px; }
.flagship li { position: relative; padding-left: 28px; color: var(--paper-dim); font-size: 15px; line-height: 1.5; }
.flagship li::before { content: "→"; color: var(--accent); position: absolute; left: 0; }
.flagship li b { color: var(--paper); font-weight: 500; }
.flagship .link-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--paper-dim); }

.grid-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--ink-2); display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.5s var(--ease); }
.project:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.project-shot { aspect-ratio: 16 / 9; overflow: hidden; background: #e9eaec; position: relative; }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.1s var(--ease); }
.project:hover .project-shot img { transform: scale(1.04); }
.project-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.project h3 { font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -0.035em; margin: 0; line-height: 1.05; }
.project .domain { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.project a.domain:hover { color: var(--accent); }
.project p { margin: 0; color: var(--paper-dim); font-size: 15px; line-height: 1.55; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: auto; padding-top: 16px; }
.mini-stats div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.mini-stats b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -0.03em; }
.mini-stats span { font-size: 12px; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }

/* tipografik kapaklar */
.cover {
  aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; overflow: hidden; container-type: inline-size;
  background: radial-gradient(120% 90% at var(--gx, 20%) var(--gy, 0%), var(--cover-glow) 0%, var(--ink-3) 55%);
  border-bottom: 1px solid var(--line);
}
.cover .word { position: relative; z-index: 1; font-family: var(--f-display); font-weight: 800; font-size: 15cqi; letter-spacing: -0.06em; line-height: 1; white-space: nowrap; transition: transform 0.9s var(--ease); }
.cover .cover-label { position: absolute; top: 16px; left: 18px; color: var(--muted); font-size: 11px; z-index: 1; }
.cover .ring {
  position: absolute; width: 46cqi; height: 46cqi; border-radius: 50%;
  border: 1px solid rgba(242, 179, 61, 0.25); box-shadow: 0 0 0 5cqi rgba(242, 179, 61, 0.04), 0 0 0 10cqi rgba(242, 179, 61, 0.03);
  transition: transform 1.2s var(--ease);
}
.cover.r1 .ring { right: -8cqi; bottom: -14cqi; }
.cover.r2 { --gx: 85%; } .cover.r2 .ring { left: -10cqi; top: -16cqi; }
.cover.r3 { --gx: 50%; --gy: 100%; } .cover.r3 .ring { right: -12cqi; top: -20cqi; }
.cover.r4 { --gx: 10%; --gy: 100%; } .cover.r4 .ring { left: -6cqi; bottom: -22cqi; }
.project:hover .cover .ring, .flagship:hover .cover .ring { transform: scale(1.12); }
.project:hover .cover .word, .flagship:hover .cover .word { transform: translateY(-4px); }
.cover--flag { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--line); }
.cover--flag .word { font-size: 13cqi; }
.project--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.project--wide .cover { border-bottom: 0; border-right: 1px solid var(--line); }

/* ---------- experience ---------- */
.timeline { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 200px minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); transition: background 0.3s; }
.row:hover { background: linear-gradient(90deg, rgba(242, 179, 61, 0.05), transparent 70%); }
.row-date { color: var(--muted); padding-top: 6px; }
.row h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.row .role { color: var(--accent); font-size: 14px; margin-top: 6px; }
.row p { margin: 0; color: var(--paper-dim); font-size: 15px; }
.row p + p { margin-top: 10px; }

/* ---------- research ---------- */
.research { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.r-card { border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 40px); background: var(--ink-2); display: flex; flex-direction: column; gap: 18px; }
.r-card .mono { color: var(--accent); }
.r-card h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.r-card p { color: var(--paper-dim); margin: 0; font-size: 15px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; }
.flow span { border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 10px; }
.flow i { color: var(--accent); font-style: normal; }

/* ---------- writing ---------- */
.posts { border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); position: relative; }
.post h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -0.04em; line-height: 1.02; margin: 0; transition: color 0.3s; }
.post p { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 640px; }
.post .arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background 0.3s, color 0.3s, transform 0.5s var(--ease); }
.post .arrow svg { width: 20px; height: 20px; }
.post:hover h3 { color: var(--accent); }
.post:hover .arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-45deg); }
/* Başlık bağlantısı tüm satırı kaplar; ok döndürülünce (transform) üste çıkıp tıklamayı yutmasın. */
.post a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post .arrow { pointer-events: none; }
.post:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.post:has(a:focus-visible) a:focus-visible { outline: none; }

/* ---------- awards ---------- */
.awards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.award-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.award-list li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.award-list li span:last-child { color: var(--muted); font-family: var(--f-mono); font-size: 12px; white-space: nowrap; padding-top: 4px; }
.award-list li.gold span:first-child::before { content: "★ "; color: var(--accent); }
.list-title { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }

/* ---------- contact ---------- */
.contact { padding: clamp(96px, 12vw, 168px) 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.contact h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(52px, 10vw, 160px); letter-spacing: -0.055em; line-height: 0.88; margin: 0; }
.contact h2 .serif { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
/* tüm sayfalarda ortak alt bilgi (partials/site_footer.html) */
.site-footer { margin-top: clamp(80px, 10vw, 140px); padding-bottom: 64px; }
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-city { justify-self: end; }
/* Website Carbon sonucu: resmi rozet betiği yerine statik bağlantı (CSP'ye uyar, fazladan istek yok) */
.carbon-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--paper-dim); transition: border-color 0.25s, color 0.25s;
}
.carbon-badge:hover { border-color: var(--good); color: var(--paper); }
.carbon-grade { display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--good); color: var(--ink); font: 700 12px var(--f-display); }
.carbon-badge[data-grade^="B"] .carbon-grade, .carbon-badge[data-grade^="C"] .carbon-grade { background: var(--accent); }
.carbon-badge[data-grade^="D"] .carbon-grade, .carbon-badge[data-grade^="E"] .carbon-grade, .carbon-badge[data-grade^="F"] .carbon-grade { background: var(--bad); }
.carbon-src { color: var(--muted); font-family: var(--f-mono); font-size: 12px; }
@media (max-width: 760px) {
  .site-footer { padding-bottom: 96px; } /* sabit "başa dön" düğmesi rozetin üstüne binmesin */
  .footer { grid-template-columns: 1fr auto; row-gap: 20px; }
  .carbon-badge { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 90vh; }
.lightbox::backdrop { background: rgba(8, 8, 7, 0.9); backdrop-filter: blur(6px); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; object-fit: contain; transition: filter .4s var(--ease); }
.lightbox.is-loading img { filter: blur(8px) saturate(.8); } /* önce küçük kopya, orijinal inince netleşir */
.lightbox button { position: fixed; top: 18px; right: 18px; background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; padding: 10px 16px; font: 500 14px var(--f-body); cursor: pointer; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.12em; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.loaded .line-mask > span { transform: none; }
.loaded .line-mask:nth-child(2) > span { transition-delay: 0.09s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .line-mask > span { transform: none; }
}

/* ---------- article ---------- */
.article-hero { padding: 150px 0 56px; border-bottom: 1px solid var(--line); }
.article-hero .back { display: inline-flex; gap: 8px; color: var(--muted); margin-bottom: 40px; font-size: 14px; }
.article-hero .back:hover { color: var(--accent); }
.article-hero h1 { font-family: var(--f-display); font-weight: 650; font-size: clamp(40px, 6.4vw, 96px); letter-spacing: -0.05em; line-height: 0.95; margin: 18px 0 0; max-width: 18ch; }
.article-hero h1 .serif { color: var(--accent); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; color: var(--muted); }
.article-cover { margin: 56px 0 0; border-radius: 16px; overflow: hidden; }
.article-cover img { width: 100%; max-height: 640px; object-fit: cover; }
.prose { max-width: 700px; margin: 0 auto; padding: 72px 0 120px; font-size: 19px; line-height: 1.75; color: var(--paper-dim); }
.prose p { margin: 0 0 1.3em; }
.prose h2 { font-family: var(--f-display); font-weight: 600; color: var(--paper); font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.035em; line-height: 1.1; margin: 2.2em 0 0.7em; }
.prose strong { color: var(--paper); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 2em 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent); font-family: var(--f-serif); font-style: italic; font-size: 1.45em; line-height: 1.35; color: var(--paper); }
.prose figure { margin: 2.2em 0; }
.prose figure img { border-radius: 12px; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; font-family: var(--f-mono); letter-spacing: 0.03em; }
.prose code { font-family: var(--f-mono); font-size: 0.82em; background: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; color: var(--paper); }
.callout { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; margin: 2em 0; overflow: hidden; }
.callout div { padding: 20px; }
.callout div + div { border-left: 1px solid var(--line); }
.callout b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 32px; letter-spacing: -0.03em; color: var(--paper); line-height: 1.1; }
.callout span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }
.next-post { border-top: 1px solid var(--line); padding: 56px 0 72px; }
.next-post a { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.04em; line-height: 1; margin-top: 12px; transition: color 0.25s; }
.next-post a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; aspect-ratio: 4 / 4.4; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-index { padding-top: 0; }
  .flagship { grid-template-columns: 1fr; }
  .cover--flag { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-body, .awards { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .post { grid-template-columns: 1fr auto; }
  .post .mono { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--ink); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.45s var(--ease); }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; font-size: 20px; width: 100%; border-bottom: 1px solid var(--line); color: var(--paper); }
  .nav .btn { margin-top: 18px; border-bottom: 1px solid var(--line-strong); width: auto; font-size: 15px; }
  .menu-toggle { display: inline-block; }
  .nav.nav-simple { position: static; transform: none; flex-direction: row; padding: 0; border: 0; background: none; }
  .nav.nav-simple .btn { margin-top: 0; width: auto; padding: 9px 16px; font-size: 14px; border: 1px solid var(--line-strong); }
  .hero { padding-top: 112px; }
  .grid-projects, .research { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .m-b { grid-column: span 2; grid-row: span 2; }
  .m-c { grid-column: span 1; grid-row: span 3; }
  .m-d { grid-column: span 1; grid-row: span 3; }
  .m-e { grid-column: span 2; grid-row: span 2; order: 1; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 20px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat-num { font-size: 34px; }
  .stat-label { margin-top: 0; }
  .post .arrow { width: 44px; height: 44px; }
  .callout { grid-template-columns: 1fr; }
  .callout div + div { border-left: 0; border-top: 1px solid var(--line); }
  .prose { font-size: 17px; padding-top: 48px; }
  .mini-stats b { font-size: 20px; }
  .project-top { flex-direction: column; gap: 6px; }
  .project--wide { display: flex; }
  .project--wide .cover { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* =========================================================
   Blog v2 — yazı sayfası, içindekiler, infografikler
   ========================================================= */
.article-dek { max-width: 680px; margin: 28px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--paper-dim); }
.article-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-bar .article-meta { margin-top: 0; }
.article-meta .views { display: inline-flex; align-items: center; gap: 6px; color: var(--paper-dim); }
.article-meta .views svg { width: 15px; height: 15px; color: var(--accent); }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.draft-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.list-hero h1 { max-width: none; }
.posts-more { margin-top: 32px; }
.post-views { display: block; margin-top: 10px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 72px; }
.article-layout .prose { max-width: 720px; margin: 0; }
.toc { display: none; }
@media (min-width: 1240px) {
  .article-layout:has(.toc) { grid-template-columns: 240px minmax(0, 720px); justify-content: center; }
  .toc { display: block; position: sticky; top: 104px; align-self: start; padding-top: 80px; max-height: calc(100vh - 120px); overflow: auto; }
  .toc ol { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: t; }
  .toc li { counter-increment: t; }
  .toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 0; font-size: 14px; line-height: 1.35; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; transition: color .2s, border-color .2s; }
  .toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; padding-top: 2px; }
  .toc a:hover { color: var(--paper); }
  .toc a.active { color: var(--accent); border-left-color: var(--accent); }
}
.article-end { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }

/* prose ekleri */
.prose h2 { scroll-margin-top: 96px; }
.prose h3 { font-family: var(--f-display); font-weight: 600; color: var(--paper); font-size: 24px; letter-spacing: -0.025em; line-height: 1.2; margin: 2.4em 0 0.6em; scroll-margin-top: 96px; display: flex; align-items: baseline; gap: 14px; }
.prose h3 .n { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 3px 7px; flex: none; transform: translateY(-3px); }
.prose a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose pre { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 1.6em 0; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: var(--paper-dim); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15px; line-height: 1.45; }
.prose th { text-align: left; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-strong); }
.prose td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td:first-child { color: var(--paper); }
.prose .lead { font-size: 1.15em; color: var(--paper); line-height: 1.6; }

/* karşılaştırma: yapay zekâ ne yapar / sen ne yapmalısın */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 1.4em 0 1.6em; font-size: 15.5px; line-height: 1.55; }
.vs > div { background: var(--ink); padding: 18px 20px; }
.vs .label { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.vs .bad .label { color: var(--bad); }
.vs .good .label { color: var(--good); }
.vs .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.vs p { margin: 0; }

.prompt { position: relative; margin: 1.4em 0 2em; padding: 16px 20px 16px 20px; border: 1px dashed rgba(242,179,61,.45); border-radius: 12px; background: rgba(242,179,61,.05); font-family: var(--f-mono); font-size: 13.5px; line-height: 1.6; color: var(--paper); }
.prompt::before { content: "Prompt'a ekle"; display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* ---------- infografik çerçevesi ---------- */
.ig { margin: 2.4em 0; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); padding: 24px; color: var(--paper-dim); font-size: 15px; line-height: 1.5; }
.ig-head { margin-bottom: 20px; }
.ig-head .mono { color: var(--accent); }
.ig-head strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.025em; line-height: 1.2; color: var(--paper); margin-top: 6px; }
.ig-src { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }

/* büyük sayılar */
.ig-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.ig-stats > div { background: var(--ink-2); padding: 18px 16px; }
.ig-stats.two { grid-template-columns: repeat(2, 1fr); }
.ig-stats b { display: block; font-family: var(--f-display); font-weight: 650; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.045em; line-height: 1; color: var(--paper); }
.ig-stats b.hot { color: var(--accent); }
.ig-stats span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--paper-dim); }
.ig-stats small { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* yatay çubuklar: tek seri, tek renk */
.ig-bars { display: grid; gap: 14px; }
.ig-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 68px; align-items: center; gap: 14px; }
.ig-row .k { font-size: 14px; color: var(--paper); line-height: 1.3; }
.ig-row .k small { display: block; color: var(--muted); font-size: 12px; }
.ig-track { height: 14px; background: var(--track); border-radius: 0 4px 4px 0; position: relative; }
.ig-track i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.ig-track i.dim { background: var(--paper-dim); opacity: .55; }
.ig-row .v { font-family: var(--f-mono); font-size: 14px; color: var(--paper); text-align: right; white-space: nowrap; }

/* zaman çizelgesi */
.ig-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ig-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.ig-timeline li { position: relative; padding: 0 0 22px 34px; margin: 0; }
.ig-timeline li:last-child { padding-bottom: 0; }
.ig-timeline li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--accent); }
.ig-timeline .when { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ig-timeline b { display: block; color: var(--paper); font-weight: 600; font-size: 16px; margin: 2px 0 4px; }
.ig-timeline p { margin: 0; font-size: 14.5px; }
.ig-timeline .tag { display: inline-block; margin-top: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(242,179,61,.35); border-radius: 999px; padding: 3px 9px; }

/* katman haritası */
.ig-layers { display: grid; gap: 8px; }
.ig-layer { display: grid; grid-template-columns: 44px 170px 1fr; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); }
.ig-layer .no { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--accent); letter-spacing: -0.04em; }
.ig-layer .name { color: var(--paper); font-weight: 600; font-size: 15px; line-height: 1.25; }
.ig-layer .name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12.5px; color: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 10px; background: var(--ink-2); }

/* OWASP ızgarası */
.ig-owasp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ig-owasp > div { display: grid; grid-template-columns: 46px 1fr; gap: 4px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); }
.ig-owasp .code { grid-row: span 2; font-family: var(--f-mono); font-size: 13px; color: var(--accent); padding-top: 1px; }
.ig-owasp b { color: var(--paper); font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.ig-owasp span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* akış */
.ig-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.ig-flow > div { flex: 1 1 120px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); position: relative; }
.ig-flow > div b { display: block; color: var(--paper); font-size: 14.5px; margin-bottom: 4px; }
.ig-flow > div span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
.ig-flow > div .mono { color: var(--accent); font-size: 10.5px; margin-bottom: 6px; display: block; }
.ig-flow > div.stop { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.ig-flow > div.stop .mono { color: var(--bad); }

/* 3-2-1 */
.ig-321 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ig-321 > div { border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; background: var(--ink); }
.ig-321 b { display: block; font-family: var(--f-display); font-size: 56px; font-weight: 700; line-height: .9; letter-spacing: -0.05em; color: var(--accent); }
.ig-321 strong { display: block; color: var(--paper); margin: 10px 0 4px; font-size: 15px; }
.ig-321 span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }

/* kontrol listesi */
.ig-check { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ig-check > div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--ink); }
.ig-check .when { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ig-check strong { display: block; color: var(--paper); font-size: 16px; margin: 4px 0 12px; }
.ig-check ul { list-style: none; margin: 0; padding: 0; }
.ig-check li { position: relative; padding-left: 22px; margin: 0 0 8px; font-size: 13.5px; line-height: 1.4; color: var(--paper-dim); }
.ig-check li::before { content: ""; position: absolute; left: 0; top: 2px; width: 12px; height: 12px; border: 1.5px solid var(--line-strong); border-radius: 3px; }

/* iki grup karşılaştırması */
.ig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ig-pair > div { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--ink); }
.ig-pair > div.hl { border-color: rgba(242,179,61,.5); }
.ig-pair .mono { color: var(--muted); }
.ig-pair .hl .mono { color: var(--accent); }
.ig-pair ul { margin: 10px 0 0; padding-left: 1.1em; }
.ig-pair li { font-size: 14px; margin-bottom: 6px; }

/* kaynaklar */
.sources { font-size: 14px; line-height: 1.55; color: var(--muted); padding-left: 1.4em; }
.sources li { margin-bottom: 8px; }
.sources a { color: var(--paper-dim); }

@media (max-width: 760px) {
  .vs, .ig-pair, .ig-owasp, .ig-321, .ig-check { grid-template-columns: 1fr; }
  .ig-stats { grid-template-columns: 1fr; }
  .ig-stats.two { grid-template-columns: 1fr 1fr; }
  .ig { padding: 18px 16px; }
  .ig-row { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .ig-row .k { grid-column: 1 / -1; }
  .ig-layer { grid-template-columns: 34px 1fr; }
  .ig-layer .chips { grid-column: 1 / -1; }
  .article-bar .btn { width: 100%; justify-content: center; }
  .draft-banner { white-space: normal; text-align: center; width: calc(100% - 32px); }
}

/* iki yönlü çubuk: sol = olumsuz, sağ = olumlu */
.ig-div { display: grid; gap: 12px; }
.ig-div .axis { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 68px; gap: 14px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ig-div .axis span:nth-child(2) { display: flex; justify-content: space-between; }
.ig-drow { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 68px; align-items: center; gap: 14px; }
.ig-drow .k { font-size: 14px; color: var(--paper); line-height: 1.3; }
.ig-drow .k small { display: block; color: var(--muted); font-size: 12px; }
.ig-drow .v { font-family: var(--f-mono); font-size: 14px; color: var(--paper); text-align: right; white-space: nowrap; }
.dtrack { display: grid; grid-template-columns: 1fr 1fr; height: 14px; }
.dtrack .l { display: flex; justify-content: flex-end; background: var(--track); }
.dtrack .r { display: flex; justify-content: flex-start; background: var(--track); border-left: 1px solid var(--line-strong); }
.dtrack .l i { display: block; height: 100%; background: var(--bad); border-radius: 4px 0 0 4px; }
.dtrack .r i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
@media (max-width: 760px) {
  .ig-drow, .ig-div .axis { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .ig-drow .k { grid-column: 1 / -1; }
  .ig-div .axis > span:first-child { display: none; }
}

/* başa dön oku */
.to-top {
  position: fixed; right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 65;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--glass); color: var(--accent); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s, color .2s, border-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.to-top:active { transform: scale(.94); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .to-top { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  body:has(.draft-banner) .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* hata sayfaları */
.error-hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 72px; border-bottom: 1px solid var(--line); }
.error-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.error-code {
  display: flex; align-items: center; justify-content: center; gap: 0.02em;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(120px, 21vw, 300px); line-height: .8; letter-spacing: -0.07em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); user-select: none;
}
.error-code .zero { position: relative; color: var(--accent); -webkit-text-stroke: 0; }
.error-code .ring {
  position: absolute; left: 50%; top: 50%; width: 1.25em; height: 1.25em; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(242,179,61,.3);
  box-shadow: 0 0 0 .14em rgba(242,179,61,.05), 0 0 0 .3em rgba(242,179,61,.03);
  animation: ring-pulse 4s var(--ease) infinite;
}
@keyframes ring-pulse { 50% { transform: translate(-50%, -50%) scale(1.06); opacity: .6; } }
.error-copy h1 { font-family: var(--f-display); font-weight: 650; font-size: clamp(40px, 5.6vw, 80px); letter-spacing: -0.05em; line-height: .95; margin: 18px 0 0; }
.error-copy h1 .serif { color: var(--accent); }
.error-copy .hero-cta { margin-top: 32px; }
.error-path { font-family: var(--f-mono); font-size: .8em; color: var(--paper); background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; word-break: break-all; }
.error-suggest { padding-top: 64px; }
.error-suggest .posts { margin-top: 20px; }
@media (max-width: 1020px) {
  .error-grid { grid-template-columns: 1fr; }
  .error-code { justify-content: flex-start; font-size: clamp(110px, 34vw, 220px); }
}

/* <button> olarak kullanılan .btn */
button.btn { font-family: inherit; cursor: pointer; }
button.btn:not(.btn-accent) { background: transparent; color: var(--paper); }
.print-brand { display: none; }

/* başlıktaki dil ve tema düğmeleri */
.site-header .wrap { gap: 12px; }
.site-header .logo { margin-right: auto; }
.nav { margin-right: 10px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang-switch {
  height: 38px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--paper); cursor: pointer; transition: border-color .2s, color .2s, transform .25s var(--ease);
}
.icon-btn { width: 38px; padding: 0; }
.lang-switch { padding: 0 12px; font-size: 11.5px; }
.icon-btn:hover, .lang-switch:hover { border-color: var(--paper); }
.icon-btn:active, .lang-switch:active { transform: scale(.94); }
.icon-btn svg { width: 17px; height: 17px; }
/* koyu temada güneş (açığa geç), açık temada ay (koyuya geç) */
.theme-toggle .i-moon, :root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
body, .site-header.scrolled, .ig, .project, .flagship, .r-card { transition: background-color .35s var(--ease), color .35s var(--ease); }
@media (max-width: 760px) {
  .nav { margin-right: 0; }
  .site-header .wrap { gap: 8px; }
  .nav.nav-simple .btn { padding: 9px 13px; font-size: 13px; }
}

/* İngilizce sayfada Türkçe kalan yazı için not */
.lang-note { display: flex; gap: 10px; align-items: baseline; margin-top: 28px; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--paper-dim); font-size: 15px; max-width: 680px; }
.lang-note .mono { color: var(--accent); flex: none; }
:lang(en) .prompt::before { content: "Add to your prompt"; }

/* dil değişirken (arka planda yükleme) içerik hafifçe söner */
main, .contact, .site-footer { transition: opacity .2s var(--ease); }
.lang-switching main, .lang-switching .contact, .lang-switching .site-footer { opacity: .55; }
.lang-switching .lang-switch { pointer-events: none; }

/* iletişim sayfası */
.contact-hero { border-bottom: 0; padding: 112px 0 0; }
.contact-hero h1 { max-width: none; }
.contact-page { padding-top: 56px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-aside .article-dek { margin-top: 0; }
.contact-points { list-style: none; margin: 32px 0; padding: 0; border-top: 1px solid var(--line); }
.contact-points li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--paper-dim); }
.contact-points .mono { color: var(--accent); }
.contact-aside .socials { margin-top: 0; }
.contact-card { border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); padding: clamp(20px, 3.4vw, 40px); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--paper); background: var(--ink); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:hover, .field textarea:hover { border-color: var(--paper-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error input, .field.has-error textarea { border-color: var(--bad); }
.field-error { margin: 0; font-size: 13.5px; color: var(--bad); }
.field-count { position: absolute; right: 0; top: 0; font-size: 11px; color: var(--muted); }
.form-alert { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.form-alert p { margin: 0; font-size: 15px; color: var(--paper); }
.form-alert--ok { border-color: color-mix(in srgb, var(--good) 50%, transparent); background: color-mix(in srgb, var(--good) 8%, transparent); }
.form-alert svg { width: 20px; height: 20px; flex: none; color: var(--good); margin-top: 1px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-note { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 40ch; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
/* bot tuzağı: ekranda ve ekran okuyucuda yok */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* tek sütunda form başlığın hemen altına gelir; tanıtım metni ve bağlantılar formun altına iner */
@media (max-width: 1020px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-card { order: -1; }
  .contact-page { padding-top: 32px; }
}
@media (max-width: 760px) {
  .contact-hero { padding-top: 100px; }
  .contact-hero h1 { margin-top: 12px; }
  .contact-page { padding-top: 24px; }
  .contact-form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: center; }
}

/* telefon: ülke seçimi + numara */
.phone-group { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.phone-country { position: relative; }
.phone-country-face {
  display: flex; align-items: center; gap: 8px; height: 100%; min-height: 50px; padding: 0 34px 0 14px; white-space: nowrap;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ink); color: var(--paper); font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s;
}
.phone-country-face::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
}
.phone-country-face .flag { font-size: 18px; line-height: 1; }
/* gerçek <select> görünmez ama üstte: klavye, ekran okuyucu ve mobil seçici olduğu gibi çalışır */
.phone-country select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.phone-country:hover .phone-country-face { border-color: var(--paper-dim); }
.phone-country:has(select:focus-visible) .phone-country-face { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error .phone-country-face { border-color: var(--line-strong); }

/* fotoğraflar: kaydırdıkça yüklenir; yüklenirken parlayan yer tutucu, sonra yumuşak geçiş (yalnızca JS varken) */
:root.js .mosaic img:not(.is-loaded), :root.js .portrait img:not(.is-loaded) { opacity: 0; }
.mosaic figure:has(img:not(.is-loaded))::before, .portrait:has(img:not(.is-loaded))::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--fx-muted) 18%, transparent) 50%, transparent 70%) var(--fx-figure);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
}
.portrait:has(img:not(.is-loaded))::before { background-color: var(--ink-3); }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* yüksek çözünürlük düğmesi */
.zoom-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(237, 232, 221, 0.25); border-radius: 50%; background: rgba(12, 13, 11, 0.62); color: #ede8dd;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer;
  opacity: .85; transition: opacity .2s, background .2s, transform .25s var(--ease);
}
.zoom-btn svg { width: 16px; height: 16px; }
.zoom-btn:hover, .zoom-btn:focus-visible { opacity: 1; background: var(--accent); color: var(--accent-ink); border-color: transparent; transform: scale(1.06); }
@media (hover: hover) { .mosaic figure:not(:hover) .zoom-btn:not(:focus-visible) { opacity: .7; } }
