/* ============ Kerem Kınık — Global Styles ============ */
:root {
  --red: #C8102E;
  --red-dark: #8F0F22;
  --ink: #171921;
  --ink-soft: #3d4051;
  --muted: #6b6e80;
  --cream: #FAF7F2;
  --paper: #ffffff;
  --line: #e8e3da;
  --gold: #C9A227;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 10px 40px -12px rgba(23, 25, 33, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand .mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .5px;
}
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; line-height: 1.15; }
.brand .sub { font-size: .68rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: #fff; color: var(--red); }
.nav a.active { color: var(--red); font-weight: 600; }
.lang-switch {
  margin-left: 8px; font-size: .8rem; font-weight: 700;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 5px 12px; color: var(--ink-soft); background: #fff;
}
.lang-switch:hover { border-color: var(--red); color: var(--red); }

.menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1d1f2a 0%, #2a1218 55%, #451019 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 78% 30%, rgba(200,16,46,.28), transparent 55%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hero .kicker {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: #e5b8c0; margin-bottom: 18px; font-weight: 600;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08; font-weight: 600; margin-bottom: 14px;
}
.hero .titles { color: #d8cfc6; font-size: 1.05rem; margin-bottom: 22px; }
.hero .slogan {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--gold); margin-bottom: 30px;
}
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff !important; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff !important; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border: 1.5px solid var(--red); color: var(--red) !important; background: #fff; }

.hero .portrait {
  position: relative; justify-self: end;
}
.hero .portrait img {
  width: min(380px, 100%); aspect-ratio: 4/5; object-fit: cover;
  border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.15);
}
.hero .portrait .badge {
  position: absolute; left: -18px; bottom: 24px;
  background: #fff; color: var(--ink); border-radius: 12px;
  padding: 10px 16px; font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow);
}
.hero .portrait .badge span { color: var(--red); }

/* ---------- Metrics strip ---------- */
.metrics { background: var(--ink); color: #fff; }
.metrics .wrap {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-top: 26px; padding-bottom: 26px; gap: 12px; text-align: center;
}
.metrics .num { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: #fff; }
.metrics .lbl { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600;
}
.sec-head h2 .dot { color: var(--red); }
.sec-head .more { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.sec-sub { color: var(--muted); margin-top: -28px; margin-bottom: 32px; max-width: 640px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); background: #fbe9ec; border-radius: 999px; padding: 4px 10px;
}
.card h3 { font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; font-weight: 600; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--red); }
.card .meta { font-size: .8rem; color: var(--muted); margin-top: auto; }
.card p.excerpt { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Publications list ---------- */
.pub-list { display: flex; flex-direction: column; gap: 14px; }
.pub {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center;
}
.pub .year {
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--red);
  text-align: center; border-right: 2px solid var(--line); padding-right: 14px;
}
.pub h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.pub .journal { font-size: .84rem; color: var(--muted); font-style: italic; margin-top: 4px; }
.pub .authors { font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
.pub .doi { font-size: .8rem; font-weight: 700; white-space: nowrap; }

/* ---------- Gallery ---------- */
.masonry { columns: 3; column-gap: 18px; }
.masonry figure {
  break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius);
  overflow: hidden; position: relative; background: var(--paper);
  border: 1px solid var(--line);
}
.masonry img { width: 100%; transition: transform .3s ease; }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption { padding: 10px 14px; font-size: .82rem; color: var(--ink-soft); }

/* ---------- Video ---------- */
.video-frame {
  aspect-ratio: 16/9; width: 100%; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); background: #000;
}
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Social ---------- */
.social-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.social-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 8px; color: var(--ink);
}
.social-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.social-card .icon { font-size: 1.6rem; }
.social-card h3 { font-size: 1.05rem; font-weight: 700; }
.social-card p { font-size: .85rem; color: var(--muted); }
.social-card .handle { color: var(--red); font-weight: 600; font-size: .9rem; }

/* ---------- Prose (article body) ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.06rem; color: var(--ink-soft); }
.prose h1, .prose h2, .prose h3 { font-family: var(--serif); color: var(--ink); margin: 1.6em 0 .6em; line-height: 1.25; }
.prose p { margin-bottom: 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.4em; }
.prose blockquote {
  border-left: 4px solid var(--red); background: #fff;
  padding: 16px 22px; margin: 1.4em 0; font-family: var(--serif); font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.article-hero { max-width: 760px; margin: 0 auto 40px; }
.article-hero .tag { color: var(--red); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.article-hero h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin: 12px 0; }
.article-hero .meta { color: var(--muted); font-size: .9rem; }
.article-hero img.cover { border-radius: var(--radius); margin-top: 28px; box-shadow: var(--shadow); }

/* ---------- Page head ---------- */
.page-head { background: linear-gradient(150deg, #1d1f2a, #3a121c); color: #fff; padding: 64px 0 52px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; }
.page-head p { color: #d8cfc6; margin-top: 10px; max-width: 640px; }
.crumbs { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #e5b8c0; margin-bottom: 14px; font-weight: 600; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.chip.active, .chip:hover { border-color: var(--red); color: var(--red); background: #fbe9ec; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 12px; }
.contact-info .row { display: flex; gap: 12px; margin-bottom: 14px; align-items: center; font-size: .95rem; }
form.contact label { display: block; font-size: .85rem; font-weight: 600; margin: 16px 0 6px; }
form.contact input, form.contact textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: .95rem; background: #fff;
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
form.contact button { margin-top: 20px; border: 0; cursor: pointer; }

/* ---------- Timeline (biography) ---------- */
.timeline { position: relative; margin-left: 10px; padding-left: 34px; border-left: 2px solid var(--line); }
.timeline .item { position: relative; padding-bottom: 34px; }
.timeline .item::before {
  content: ""; position: absolute; left: -43px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--cream);
}
.timeline .years { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--red); text-transform: uppercase; }
.timeline h3 { font-family: var(--serif); font-size: 1.15rem; margin: 4px 0; }
.timeline p { color: var(--ink-soft); font-size: .95rem; max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9bcc9; margin-top: 0; }
.site-footer .wrap { padding: 56px 24px 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 14px; }
.site-footer a { color: #b9bcc9; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: .9rem; }
.foot-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3a3d4d;
  display: grid; place-items: center; font-size: .95rem;
}
.foot-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.copyright { border-top: 1px solid #2b2e3b; padding-top: 22px; font-size: .8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero .portrait { justify-self: start; }
  .grid-3, .video-grid, .social-cards { grid-template-columns: repeat(2, 1fr); }
  .metrics .wrap { grid-template-columns: repeat(3, 1fr); }
  .masonry { columns: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .grid-3, .grid-2, .video-grid, .social-cards { grid-template-columns: 1fr; }
  .metrics .wrap { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 1; }
  .pub { grid-template-columns: 1fr; gap: 8px; }
  .pub .year { text-align: left; border-right: 0; padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
