:root {
  --bg: #f3f0ea;
  --paper: #faf8f4;
  --surface: #e8e3da;
  --ink: #1d1c1a;
  --muted: #6b665e;
  --line: #d8d1c5;
  --accent: #2f4a8a;   /* portfolyodaki lacivert vurgu */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Century Gothic", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
body.locked { overflow: hidden; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 300; }
.skip:focus { left: 8px; }

.eyebrow, .num {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400;
}
.num { color: var(--accent); }

/* ---------- Navigasyon ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(243, 240, 234, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-top: 14px; padding-bottom: 14px; border-color: var(--line);
}
.nav__logo { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.nav__logo small { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.nav__links { display: flex; gap: 40px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 34px; height: 26px; position: relative; cursor: pointer; }
.nav__toggle span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 9px; }
.nav__toggle span:last-child { top: 16px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 12.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 12.5px; transform: rotate(-45deg); }

/* ---------- Giriş ---------- */
.hero {
  min-height: 100vh; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: 130px var(--gutter) 72px;
}
.hero__name {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em;
  font-size: clamp(56px, 8.4vw, 128px); line-height: .95; margin: 22px 0 28px;
}
.hero__title { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; max-width: 520px; margin-bottom: 20px; }
.hero__sub { color: var(--muted); max-width: 500px; font-size: 16px; margin-bottom: 40px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { overflow: hidden; background: var(--surface); position: relative; }
.hero__media img { width: 100%; height: auto; animation: heroIn 1.6s var(--ease) both; }
.hero__media figcaption {
  position: absolute; left: 16px; bottom: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
@keyframes heroIn { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px;
  border: 1px solid var(--ink); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Kısa bilgiler ---------- */
.facts {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.fact { border-top: 1px solid var(--ink); padding: 22px 24px 0 0; }
.fact strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; }
.fact span { font-size: 13px; color: var(--muted); }

/* ---------- Bölümler ---------- */
.section { padding: clamp(88px, 11vw, 160px) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.section__head { display: grid; grid-template-columns: 80px 1fr; align-items: baseline; margin-bottom: clamp(40px, 6vw, 80px); }
.section__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.01em; }

/* ---------- Proje listesi ---------- */
.projects { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 140px); }
.pcard { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: end; color: inherit; }
.pcard:nth-child(even) { grid-template-columns: 5fr 7fr; }
.pcard:nth-child(even) .pcard__media { order: 2; }
.pcard__media { overflow: hidden; background: var(--surface); }
.pcard__media img { width: 100%; height: auto; transition: transform 1.1s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.035); }
.pcard__idx { font-family: var(--serif); font-size: 18px; color: var(--accent); display: block; margin-bottom: 18px; }
.pcard__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; margin-bottom: 14px; }
.pcard__meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.pcard__text { color: var(--muted); max-width: 420px; margin-bottom: 30px; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.link-arrow i { font-style: normal; transition: transform .3s var(--ease); }
.pcard:hover .link-arrow i { transform: translateX(6px); }

/* ---------- Hakkımda ---------- */
.about__intro { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 100px); align-items: start; margin-bottom: clamp(64px, 8vw, 110px); }
.about__portrait { overflow: hidden; background: #d0ccc3; }
.about__portrait img { width: 100%; height: auto; }
.about__text p { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 29px); line-height: 1.45; margin-bottom: 22px; }
.about__text p:first-child::first-letter { color: var(--accent); }

.cv { display: grid; grid-template-columns: 1.15fr 1.1fr .9fr; gap: clamp(32px, 4vw, 64px); border-top: 1px solid var(--ink); padding-top: 36px; }
.cv__title { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: 24px; }
.cv__title--spaced { margin-top: 48px; }
.timeline li { position: relative; padding: 0 0 26px 22px; border-left: 1px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline .yil { display: block; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.timeline strong { display: block; font-weight: 400; font-size: 18px; line-height: 1.4; }
.timeline .yer { display: block; color: var(--muted); font-size: 15px; }
.certs li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.certs li:first-child { padding-top: 0; }
.certs strong { display: block; font-weight: 400; line-height: 1.4; }
.certs span { font-size: 14px; color: var(--muted); }
.skills li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.skills li:first-child { padding-top: 0; }
.dots { display: flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); }
.dots i.on { background: var(--ink); }
.cv__note { margin-top: 28px; font-size: 14px; color: var(--muted); font-style: italic; }

/* ---------- İletişim ---------- */
.contact { padding-bottom: clamp(88px, 11vw, 160px); }
.contact__lead { color: var(--muted); margin-bottom: 18px; font-size: 18px; }
.contact__mail {
  font-family: var(--serif); font-size: clamp(30px, 6.2vw, 88px); line-height: 1.1; letter-spacing: -.01em;
  display: inline-block; border-bottom: 1px solid var(--line); transition: color .25s, border-color .25s; overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; border-top: 1px solid var(--line); padding-top: 28px; }
.contact__grid dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact__grid dd { font-size: 18px; }
.contact__grid a { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.contact__grid a:hover { border-color: var(--ink); }

.footer {
  display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter);
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto;
}

/* ---------- Proje sayfası ---------- */
.project {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s;
}
.project.open { opacity: 1; visibility: visible; transform: none; }
.project__bar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter); background: rgba(250, 248, 244, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.project__back:hover { color: var(--accent); }
.project__count { color: var(--muted); }
.project__close { width: 40px; height: 40px; display: grid; place-items: center; font-size: 26px; border: 1px solid var(--line); border-radius: 50%; letter-spacing: 0; }
.project__close:hover { border-color: var(--ink); }
.project__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 100px; }
.p-hero { margin: 32px 0 0; background: var(--surface); display: flex; justify-content: center; }
.p-hero img { width: auto; max-width: 100%; height: auto; max-height: 82vh; }
.p-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); padding: clamp(48px, 6vw, 88px) 0; border-bottom: 1px solid var(--line); }
.p-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 84px); line-height: 1; letter-spacing: -.01em; margin-top: 16px; }
.p-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; align-self: end; }
.p-facts dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.p-facts dd { font-size: 16px; line-height: 1.45; }
.p-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(48px, 6vw, 80px) 0; }
.p-body .lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; }
.p-body .rest p { color: #3d3a35; margin-bottom: 18px; }
.p-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.p-fig { margin: 0; cursor: zoom-in; }
.p-fig.wide { grid-column: 1 / -1; }
.p-fig .frame { background: #fff; overflow: hidden; border: 1px solid #ece7de; display: flex; justify-content: center; }
.p-fig img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .4s; }
.p-fig.wide img { width: auto; max-width: 100%; max-height: 92vh; }
.p-fig:hover img { transform: scale(1.015); }
.p-fig figcaption { display: flex; gap: 12px; font-size: 14px; color: var(--muted); padding-top: 12px; }
.p-fig figcaption b { font-weight: 400; color: var(--accent); font-variant-numeric: tabular-nums; }
.p-next { display: block; margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--ink); padding-top: 28px; }
.p-next span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.p-next strong { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 1.1; margin-top: 8px; transition: color .25s; }
.p-next:hover strong { color: var(--accent); }

/* ---------- Görsel büyütme ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 19, 17, .96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb__fig { max-width: calc(100vw - 160px); max-height: 100vh; padding: 48px 0; display: flex; flex-direction: column; align-items: center; }
.lb__fig img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: #fff; }
.lb__fig figcaption { color: #cfc9be; font-size: 14px; padding-top: 14px; text-align: center; }
.lb__btn { position: absolute; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s; }
.lb__btn:hover { background: rgba(255,255,255,.12); }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Animasyon ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; }
  .hero__media { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .pcard, .pcard:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .pcard:nth-child(even) .pcard__media { order: 0; }
  .about__intro { grid-template-columns: 1fr; }
  .about__portrait { max-width: 380px; }
  .cv { grid-template-columns: 1fr 1fr; }
  .cv__block:last-child { grid-column: 1 / -1; }
  .p-head, .p-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; align-items: center; gap: 30px;
    font-family: var(--serif); font-size: 36px; letter-spacing: 0; text-transform: none;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: -1;
  }
  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__logo small { display: none; }
  .section__head { grid-template-columns: 1fr; gap: 10px; }
  .cv, .contact__grid { grid-template-columns: 1fr; }
  .p-hero { margin-top: 16px; }
  .p-facts { grid-template-columns: 1fr 1fr; }
  .p-gallery { grid-template-columns: 1fr; }
  .project__count { display: none; }
  .lb__fig { max-width: 100vw; padding: 64px 0 80px; }
  .lb__prev, .lb__next { top: auto; bottom: 16px; transform: none; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
}
