/* ==========================================================================
   MG GRUP MÜHENDİSLİK — main.css
   Siyah / gri kurumsal sistem. Aksan renk yok; vurgu beyaz, ağırlık,
   ince çizgi ve boşlukla kurulur.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENLAR */
:root {
  /* Ton skalası — saf siyah/beyaz kullanılmaz */
  --black-950: #0B0B0C;
  --black-900: #131315;
  --black-850: #1A1A1D;
  --gray-700:  #3A3B3E;
  --gray-600:  #55575B;
  --gray-500:  #77797E;
  --gray-400:  #9A9CA1;
  --gray-300:  #B9BBC0;
  --gray-200:  #D5D6D9;
  --gray-100:  #E8E9EB;
  --gray-050:  #F2F3F4;
  --white:     #FAFAFB;

  /* Tek istisna aksan: "Devam Eden" rozeti ve form hataları */
  --amber:     #C9782A;
  --amber-dim: rgba(201, 120, 42, .14);
  /* Amber ACIK zeminde metin olarak kullanilamiyor: #C9782A beyaz uzerinde
     2,79:1. Bu koyulastirilmis mürekkep 5,2–6,1:1 veriyor. Rozet dolgusu ve
     koyu zemindeki amber metin --amber ile kalir. */
  --amber-ink: #8F4F16;

  /* Çizgiler */
  --line-dark:  rgba(255, 255, 255, .10);
  --line-dark2: rgba(255, 255, 255, .18);
  --line-light: rgba(11, 11, 12, .12);
  --line-light2:rgba(11, 11, 12, .22);

  /* Tipografi */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Ölçü */
  --shell:   1440px;
  --gutter:  clamp(20px, 5vw, 96px);
  --sec-y:   clamp(72px, 10vw, 160px);
  --head-h:  84px;

  /* Hareket */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .5s;
}

/* ------------------------------------------------------------------ 2. RESET */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black-950);
  color: var(--gray-300);
  font-family: var(--font-body);
  font-size: clamp(15px, .35vw + 14px, 17px);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p  { margin: 0; }
figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--white); color: var(--black-950); }

/* Klavye odağı — her yerde görünür */
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--white);
  color: var(--black-950);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ 3. TİPOGRAFİ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 0 0 20px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.dim  { color: var(--gray-500); }
.prose { max-width: 68ch; }

.prose p + p { margin-top: 1.1em; }

.h-xl { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.h-lg { font-size: clamp(2rem, 3.6vw, 3.4rem);  line-height: 1.06; letter-spacing: -.03em; }
.h-md { font-size: clamp(1.5rem, 2.2vw, 2.1rem);line-height: 1.14; letter-spacing: -.02em; }
.h-sm { font-size: clamp(1.15rem, 1.3vw, 1.35rem); line-height: 1.24; letter-spacing: -.015em; }

.sec-title { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; }

/* --------------------------------------------------------------- 4. DÜZEN */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); }

/* Bölüm ritmi: koyu → açık → koyu. Geçişler sert, degrade yok. */
.section--dark  { background: var(--black-950); color: var(--gray-300); }
.section--dark2 { background: var(--black-900); color: var(--gray-300); border-top: 1px solid var(--line-dark); }
/**
 * .section--light AÇIK ZEMİN BAĞLAMININ TEK KAYNAĞIDIR.
 *
 * Başlıklar, butonlar, kartlar, çizelge ve istatistikler varsayılan olarak
 * KOYU zemin için tanımlı (anasayfa böyle). Açık zeminde bunların hepsi bu
 * sınıfın altındaki kurallarla geri alınır — aşağıda 40'tan fazla yerde.
 *
 * Bu yüzden açık zeminli her bölüm .section--light TAŞIMALIDIR. İç sayfalar
 * bir süre yalnızca .inner-body taşıdı; .inner-body aynı zemini kuruyor ama
 * geri alma kurallarının hiçbirini almıyordu. Sonuç: 15 sayfada 28 başlık
 * #FAFAFB / #E8E9EB ile 1,16:1 kontrastta (pratikte görünmez), form
 * butonları beyaz üstüne beyaz, proje kartları koyu varyantta kaldı.
 */
.section--light { background: var(--gray-100);  color: var(--gray-700); }
.section--light h1, .section--light h2,
.section--light h3, .section--light h4 { color: var(--black-950); }
.section--light .eyebrow { color: var(--gray-600); }
.section--light .dim     { color: var(--gray-600); }

.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head--center { margin-inline: auto; text-align: center; }
/* Başlık solda, bölüm bağlantısı sağda — her iki anasayfada da kullanılır */
.sec-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .sec-head--split { display: block; }
  .sec-head--split .link-arrow { margin-top: 26px; }
}
.sec-lead { margin-top: 24px; font-size: 1.05em; color: var(--gray-400); max-width: 62ch; }
.section--light .sec-lead { color: var(--gray-600); }

.rule { height: 1px; background: var(--line-dark); border: 0; margin: 0; }
.section--light .rule { background: var(--line-light); }

/* ------------------------------------------------------------- 5. İKONLAR */
.ico { width: 24px; height: 24px; flex: none; stroke: currentColor; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 32px; height: 32px; }

/* ------------------------------------------------------------- 6. BUTONLAR */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: var(--line-dark2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 28px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn .ico { transition: transform .35s var(--ease); }

.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--black-950); border-color: var(--white); }
.btn:hover .ico { transform: translateX(4px); }

.btn--primary {
  --btn-bg: var(--white);
  --btn-fg: var(--black-950);
  --btn-bd: var(--white);
}
.btn--primary::before { background: var(--black-950); }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--white); border-color: var(--white); }

.section--light .btn { --btn-fg: var(--black-950); --btn-bd: var(--line-light2); }
.section--light .btn::before { background: var(--black-950); }
.section--light .btn:hover { color: var(--white); border-color: var(--black-950); }
.section--light .btn--primary { --btn-bg: var(--black-950); --btn-fg: var(--white); --btn-bd: var(--black-950); }
.section--light .btn--primary::before { background: var(--white); }
.section--light .btn--primary:hover { color: var(--black-950); }

.btn--sm { padding: 12px 20px; font-size: 13px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-dark2);
  transition: border-color .3s var(--ease);
}
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover { border-color: var(--white); }
.link-arrow:hover .ico { transform: translateX(4px); }
.section--light .link-arrow { color: var(--black-950); border-color: var(--line-light2); }
.section--light .link-arrow:hover { border-color: var(--black-950); }

/* --------------------------------------------------------------- 7. ROZET */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-dark2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-300);
}
.badge--live {
  color: var(--amber);
  border-color: rgba(201, 120, 42, .45);
  background: var(--amber-dim);
}
.badge--live::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
.section--light .badge { border-color: var(--line-light2); color: var(--gray-700); }

/* ------------------------------------------------------------ 8. GÖRSELLER */
/* Siyah-gri paletle uyum: fotoğraflar hafifçe desatüre, hover'da açılır */
.shot { position: relative; overflow: hidden; background: var(--black-900); }
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.35) contrast(1.05);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.shot--tall  { aspect-ratio: 3 / 4; }
.shot--wide  { aspect-ratio: 16 / 9; }
.shot--card  { aspect-ratio: 4 / 3; }
.shot--sq    { aspect-ratio: 1 / 1; }

a:hover .shot img,
.hoverable:hover .shot img { filter: grayscale(0) contrast(1.02); transform: scale(1.03); }

/* ============================================================ 9. ÜST BAR */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  background: transparent;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-head__inner {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
}
.head-rule {
  height: 1px;
  background: var(--line-dark);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

/* Kaydırıldığında ya da menü açıkken katılaşır */
/* backdrop-filter kaldırıldı: hero'nun üstünde her karede arka planı yeniden
   okuduğu için kaydırmada sıçramaya yol açıyordu. %94 opaklıkta blur'un
   görsel katkısı zaten yok denecek kadar azdı. */
.site-head.is-solid { background: rgba(11, 11, 12, .94); }
.site-head.is-solid .head-rule { opacity: 1; }
.site-head.is-open  { background: var(--black-950); backdrop-filter: none; }

/* Açık zeminli iç sayfa üst barı (sayfa hero'su koyu olduğu için hep beyaz metin) */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  flex: none;
}
/* Kurumsal logo kilidi (amblem + yazı tek SVG'de).
   currentColor kullandığı için üst barın rengini alır; "Mühendislik"
   satırı SVG içinde opacity ile ikincil tonda kalır. */
/* Müşteri talebi: üst bardaki logo footer'daki kadar büyük olsun.
   Footer 58px; üst bar 84px yüksekliğinde, 54px'te alt/üst 15'er px nefes
   kalıyor — daha büyüğü bara yapışıyor. Mobilde bar 72px'e düşüyor (bkz.
   --head-h), logo da oranını koruyacak şekilde küçülüyor. */
.brand__logo { height: 54px; width: auto; display: block; flex: none; }
@media (max-width: 1023px) { .brand__logo { height: 46px; } }
@media (max-width: 640px)  { .brand__logo { height: 40px; } }

/* ------------------------------------------------------------ 10. MEGA MENÜ */
.mega { margin-inline: auto 0; }
.mega__list { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 30px); }
.mega__item { position: static; }

.mega__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 30px 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--gray-300);
  position: relative;
  transition: color .3s var(--ease);
}
.mega__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.mega__link:hover, .mega__link.is-active,
.mega__item.is-open > .mega__link { color: var(--white); }
.mega__link:hover::after,
.mega__link.is-active::after,
.mega__item.is-open > .mega__link::after { transform: scaleX(1); }

.mega__caret {
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: .5;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mega__item.is-open .mega__caret { transform: rotate(225deg) translate(-2px, -2px); opacity: 1; }

.panel {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--black-950);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mega__item.is-open .panel { opacity: 1; visibility: visible; transform: none; }

.panel__inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.1fr) minmax(220px, .9fr);
  gap: clamp(28px, 4vw, 72px);
  padding-block: 52px 56px;
}
.panel__blurb { color: var(--gray-400); font-size: 15px; max-width: 30ch; margin-bottom: 26px; }

.panel__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  align-content: start;
}
.panel__links a {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid transparent;
  color: var(--gray-300);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.panel__links a:hover,
.panel__links a:focus-visible,
.panel__links a.is-active { border-color: var(--line-dark2); background: var(--black-900); color: var(--white); }
.panel__links .ico { color: var(--gray-500); transition: color .3s var(--ease); margin-top: 1px; }
.panel__links a:hover .ico { color: var(--white); }
.panel__links strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -.01em;
}
.panel__links em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 3px;
}

.panel__media .panel__img { display: block; }
.panel__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(.5) contrast(1.05);
}

/* ---------------------------------------------------------- 11. YAN ÖĞELER */
/* margin-left:auto — mega menü gizlendiğinde (mobil) burger sağda kalsın */
.site-head__aside { display: flex; align-items: center; gap: 20px; flex: none; margin-left: auto; }

.head-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-300);
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.head-phone:hover { color: var(--white); border-color: var(--line-dark2); }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  color: var(--white);
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: top .3s var(--ease), transform .35s var(--ease);
}
.burger span:first-child { top: 19px; }
.burger span:last-child  { top: 25px; }
.burger[aria-expanded="true"] span { top: 22px; }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: rotate(-45deg); }

/* ---------------------------------------------------------- 12. MOBİL MENÜ */
.mnav {
  position: fixed;
  inset: var(--head-h) 0 0;
  z-index: 890;
  background: var(--black-950);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mnav.is-open { opacity: 1; transform: none; }
.mnav__scroll { padding: 8px var(--gutter) 60px; }

.mnav__group { border-bottom: 1px solid var(--line-dark); }
.mnav__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--white);
  text-align: left;
}
.mnav__chev { color: var(--gray-500); transition: transform .3s var(--ease); }
.mnav__top[aria-expanded="true"] .mnav__chev { transform: rotate(90deg); color: var(--white); }

.mnav__sub { padding-bottom: 16px; }
.mnav__sub a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0 13px 4px;
  font-size: 15px;
  color: var(--gray-400);
}
.mnav__sub a:hover { color: var(--white); }
.mnav__sub .ico { width: 18px; height: 18px; color: var(--gray-600); }
.mnav__all {
  font-family: var(--font-mono);
  font-size: 12px !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500) !important;
}

.mnav__foot { display: grid; gap: 4px; margin-top: 36px; }
.mnav__foot a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14px; color: var(--gray-300);
  padding: 10px 0;
}

/* ============================================================ 13. SAYAÇLAR */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.stat {
  padding: clamp(28px, 3.4vw, 52px) clamp(20px, 2.4vw, 40px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat__suffix { font-size: .42em; letter-spacing: 0; color: var(--gray-400); }
.stat__label {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.005em;
}
.stat__note { margin-top: 8px; font-size: 12.5px; color: var(--gray-500); line-height: 1.5; }

.section--light .stats { border-color: var(--line-light); }
.section--light .stat  { border-color: var(--line-light); }
.section--light .stat__num,
.section--light .stat__label { color: var(--black-950); }
.section--light .stat__suffix { color: var(--gray-600); }
.section--light .stat__note { color: var(--gray-600); }

/* ======================================================= 14. ZAMAN ÇİZELGESİ */
.tl { position: relative; }
.tl__track {
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 1px;
  background: var(--line-dark);
}
.tl__fill {
  position: absolute;
  left: 0; top: 7px;
  height: 1px;
  background: var(--white);
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
}
.tl__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: clamp(24px, 3vw, 48px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 20px;
  scrollbar-width: thin;
}
.tl__item { scroll-snap-align: start; position: relative; padding-top: 40px; }
.tl__item::before {
  content: "";
  position: absolute;
  top: 4px; left: 0;
  width: 7px; height: 7px;
  background: var(--gray-600);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.tl__item.is-on::before { background: var(--white); transform: scale(1.3); }
.tl__item--now::before { background: var(--amber); }

.tl__year {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -.04em;
  color: var(--white);
  line-height: 1;
}
.tl__range { font-family: var(--font-mono); font-size: 12px; color: var(--gray-400); margin-top: 6px; }
.section--light .tl__range { color: var(--gray-600); }
.tl__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-top: 16px;
  letter-spacing: -.01em;
}
.tl__text { margin-top: 10px; font-size: 14px; color: var(--gray-400); line-height: 1.6; }

.section--light .tl__track { background: var(--line-light); }
.section--light .tl__fill  { background: var(--black-950); }
.section--light .tl__item::before { background: var(--gray-300); }
.section--light .tl__item.is-on::before { background: var(--black-950); }
.section--light .tl__year,
.section--light .tl__title { color: var(--black-950); }
.section--light .tl__text  { color: var(--gray-600); }

/* Yatay kaydırma ipucu — iç sayfalarda da kullanılıyor */
.tl__hint { margin-top: 18px; font-size: 11px; letter-spacing: .16em; color: var(--gray-400); text-align: center; }
.section--light .tl__hint { color: var(--gray-600); }

/* ============================================================ 15. PROJELER */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.section--light .proj-grid { background: var(--line-light); border-color: var(--line-light); }

.proj {
  background: var(--black-950);
  display: flex;
  flex-direction: column;
  transition: background .4s var(--ease);
}
.section--light .proj { background: var(--gray-100); }
.proj:hover { background: var(--black-900); }
.section--light .proj:hover { background: var(--white); }

.proj__media { position: relative; }
.proj__badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.proj__body { padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; flex: 1; gap: 14px; }
.proj__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.02em;
  transition: transform .4s var(--ease);
}
.section--light .proj__title { color: var(--black-950); }
.proj:hover .proj__title { transform: translateX(4px); }
.proj__sub { font-size: 14px; color: var(--gray-400); }
.section--light .proj__sub { color: var(--gray-600); }
.proj__meta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 6px;
}
.section--light .proj__meta { border-color: var(--line-light); }
.proj__row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.proj__row dt { color: var(--gray-400); }
.section--light .proj__row dt { color: var(--gray-600); }
.proj__row dd { margin: 0; font-family: var(--font-mono); color: var(--white); text-align: right; }
.section--light .proj__row dd { color: var(--black-950); }

/* Satır listesi (index B ve projeler sayfası) */
.proj-rows { border-top: 1px solid var(--line-dark); }
.section--light .proj-rows { border-color: var(--line-light); }

.prow {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr .8fr auto;
  align-items: center;
  gap: clamp(16px, 2vw, 40px);
  padding: clamp(22px, 2.2vw, 32px) 0;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  transition: padding-left .4s var(--ease);
}
.section--light .prow { border-color: var(--line-light); }
.prow:hover { padding-left: 12px; }

.prow__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.02em;
}
.section--light .prow__name { color: var(--black-950); }
.prow__sub { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--gray-500); margin-top: 5px; letter-spacing: 0; }
.prow__cell { font-size: 14px; color: var(--gray-400); }
.section--light .prow__cell { color: var(--gray-600); }
.prow__vol { font-family: var(--font-mono); color: var(--white); font-size: 14px; }
.section--light .prow__vol { color: var(--black-950); }

.prow__peek {
  position: absolute;
  right: 96px; top: 50%;
  width: 132px;
  aspect-ratio: 4 / 3;
  transform: translateY(-50%) scale(.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  overflow: hidden;
}
.prow:hover .prow__peek { opacity: 1; transform: translateY(-50%) scale(1); }
.prow__peek img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }

.prow__go { color: var(--gray-500); transition: transform .35s var(--ease), color .35s var(--ease); }
.prow:hover .prow__go { transform: translateX(5px); color: var(--white); }
.section--light .prow:hover .prow__go { color: var(--black-950); }

/* ======================================================= 16. FAALİYET KARTI */
.act-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); }
.act {
  position: relative;
  background: var(--black-950);
  padding: clamp(32px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  min-height: clamp(340px, 40vw, 520px);
  overflow: hidden;
}
.act__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.act__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.85) contrast(1.1) brightness(.42);
  transition: filter .7s var(--ease), transform 1s var(--ease);
}
.act:hover .act__bg img { filter: grayscale(.4) contrast(1.05) brightness(.5); transform: scale(1.04); }
.act > *:not(.act__bg) { position: relative; z-index: 1; }

.act__no { font-family: var(--font-mono); font-size: 12px; color: var(--gray-400); letter-spacing: .1em; }
.act__title {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.03em;
  transition: transform .5s var(--ease);
}
.act:hover .act__title { transform: translateX(6px); }
.act__claim { margin-top: 14px; color: var(--gray-300); max-width: 34ch; }
.act__list { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.act__list li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--gray-400);
  border: 1px solid var(--line-dark2);
  padding: 5px 10px;
}
.act__cta { margin-top: 30px; }

/* ============================================================= 17. KURUCU */
.founder { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder__year {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.06em;
  color: var(--white);
}
.section--light .founder__year { color: var(--black-950); }
.founder__sig {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  display: inline-block;
}
.section--light .founder__sig { border-color: var(--line-light); }
.founder__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--white); letter-spacing: -.01em; }
.section--light .founder__name { color: var(--black-950); }
.founder__role { font-family: var(--font-mono); font-size: 12px; color: var(--gray-400); margin-top: 6px; letter-spacing: .04em; }
.section--light .founder__role { color: var(--gray-600); }

/* ========================================================== 18. REFERANSLAR */
/* 3 kolon: 6 referans logosu tam iki satir dolduruyor. Logo sayisi
 degisirse bu bolme de gozden gecirilmeli — cizgili izgarada yarim kalan
 satirin bos hucreleri kenarliksiz kaliyor. */
.refs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.section--light .refs { border-color: var(--line-light); }
.ref {
  display: grid;
  place-items: center;
  padding: clamp(24px, 3vw, 44px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  min-height: 130px;
}
.section--light .ref { border-color: var(--line-light); }
/* Logolar tek renk ve şeffaf üretildi (scripts/build-refs.php);
   CSS filtresi yok — yalnızca opaklıkla sakinleştiriliyor. */
.ref img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  opacity: .55;
  transition: opacity .4s var(--ease);
}
.ref:hover img { opacity: 1; }
.section--light .ref img { opacity: .6; }
.section--light .ref:hover img { opacity: 1; }

/* Logo dosyası henüz gelmemiş kurum — adıyla basılıyor (bkz. refLogo()).
   Logonun yerini tutmalı: aynı sakinlikte, aynı hizada, aynı hover'da.
   Marka dosyası kurumun kendisinden gelir; internetten logo indirilmiyor. */
.ref__name {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  color: var(--white);
  opacity: .5;
  transition: opacity .4s var(--ease);
}
.ref:hover .ref__name { opacity: 1; }
.section--light .ref__name { color: var(--black-950); opacity: .6; }
.section--light .ref:hover .ref__name { opacity: 1; }

/* ================================================================= 19. CTA */
.cta { background: var(--white); color: var(--black-950); padding-block: clamp(56px, 7vw, 104px); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta .eyebrow { color: var(--gray-600); }
.cta__title { font-size: clamp(1.8rem, 3.4vw, 3rem); color: var(--black-950); letter-spacing: -.03em; line-height: 1.1; }
.cta__title .dim { color: var(--gray-500); }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta .btn { --btn-fg: var(--black-950); --btn-bd: var(--line-light2); }
.cta .btn::before { background: var(--black-950); }
.cta .btn:hover { color: var(--white); border-color: var(--black-950); }
.cta .btn--primary { --btn-bg: var(--black-950); --btn-fg: var(--white); --btn-bd: var(--black-950); }
.cta .btn--primary::before { background: transparent; }
.cta .btn--primary:hover { color: var(--white); }

/* ============================================================== 20. FOOTER */
.site-foot { background: var(--black-950); border-top: 1px solid var(--line-dark); padding-block: clamp(56px, 6vw, 88px) 32px; }

.foot-top {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: clamp(36px, 5vw, 80px);
  padding-bottom: 56px;
}
.foot-brand > a { display: flex; align-items: center; gap: 14px; color: var(--white); }
.foot-logo { height: 58px; width: auto; display: block; }



.foot-legal { margin-top: 26px; font-size: 13px; color: var(--gray-500); line-height: 1.6; max-width: 34ch; }
.foot-note  { margin-top: 16px; font-size: 12px; color: var(--gray-400); }

/* 150px'te 7 sütun 5+2 sarılıp sağda büyük boşluk bırakıyordu; 180px ile 4+3 dengeli */
.foot-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px);
  row-gap: clamp(32px, 3.4vw, 48px);
}
.foot-col h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 18px;
}
/* Künye sütununda ikinci başlık (Şantiye) — ilkiyle aynı dil, üstünde ayırıcı */
.foot-col__sub { margin-top: 22px; }
.foot-col li + li { margin-top: 10px; }
.foot-col a, .foot-col span { font-size: 13.5px; color: var(--gray-400); transition: color .25s var(--ease); }
.foot-col a:hover { color: var(--white); }
.foot-col address { font-style: normal; font-size: 13.5px; color: var(--gray-400); line-height: 1.65; margin-bottom: 16px; }

.foot-kvkk { border-top: 1px solid var(--line-dark); padding-top: 26px; }
.foot-kvkk ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-kvkk a { font-size: 12.5px; color: var(--gray-400); transition: color .25s var(--ease); }
.foot-kvkk a:hover { color: var(--white); }

.foot-bottom {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--gray-400);
}

/* ========================================================== 21. ÇEREZ BANDI */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  background: var(--black-900);
  border-top: 1px solid var(--line-dark2);
  transform: translateY(100%);
  transition: transform .5s var(--ease);
}
.cookie.is-in { transform: none; }
.cookie__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: 20px;
  flex-wrap: wrap;
}
.cookie__text { font-size: 13px; color: var(--gray-400); flex: 1 1 420px; line-height: 1.6; }
.cookie__text a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; flex: none; }

/* =========================================================== 22. REVEAL */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}
.is-revealed [data-reveal],
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ============================================================ 23. RESPONSIVE */
@media (max-width: 1180px) {
  .panel__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); }
  .panel__media { display: none; }
  .head-phone { display: none; }
}

@media (max-width: 1023px) {
  :root { --head-h: 72px; }
  .mega { display: none; }
  .burger { display: block; }
  .mega, .panel { display: none; }
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 1fr auto; gap: 12px 20px; }
  .prow__cell, .prow__vol { grid-column: 1; font-size: 13px; }
  .prow__peek { display: none; }
  .prow__go { grid-row: 1; grid-column: 2; }
}

@media (max-width: 720px) {
  .proj-grid { grid-template-columns: 1fr; }
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__inner { display: block; }
  .cta__actions { margin-top: 34px; }
  .cta .btn { width: 100%; justify-content: center; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .stats { grid-template-columns: 1fr; }
}

/* ================================================== 24. HAREKET TERCİHİ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ======================================================== 25. YAZDIRMA */
@media print {
  .site-head, .mnav, .cookie, .cta, .site-foot { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   26. DÜZELTME: <picture> sarmalayıcısı
   <picture> araya girdiği için img'in height:100% değeri auto yüksekliğe
   çözülüyor ve object-fit:cover devre dışı kalıyordu (kartlarda siyah bant).
   Doldurma gereken her kapta picture'ı da kutunun tamamına yay.
   ========================================================================== */
.shot > picture,
.act__bg > picture,
.split__bg > picture,
.fleet__bg > picture,
.hero-a__media > picture,
.hero-b__media > picture,
.panel__media > picture,
.prow__peek > picture,
.page-hero__media > picture,
.fill > picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Yatay çizelgede taşmanın görünür olması için sağ kenar maskesi */
@media (min-width: 721px) {
  .tl__list {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 90px), transparent 100%);
            mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 90px), transparent 100%);
  }
}

/* ==========================================================================
   27. GENİŞ FAALİYET KARTI
   Anasayfa ve /faaliyet/ sayfası ortak kullanır.
   ========================================================================== */
/* ═════════════════════════════════════════════════════ GENİŞ FAALİYET KARTI */
.wcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-light); }
.wcard { background: var(--gray-100); display: flex; flex-direction: column; }

.wcard__media { position: relative; display: block; }
.wcard__no {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--white);
  background: rgba(11, 11, 12, .7);
  padding: 6px 11px;
  backdrop-filter: blur(4px);
}

.wcard__body { padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; flex: 1; }
.wcard__title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--black-950);
}
.wcard__title a { transition: opacity .3s var(--ease); }
.wcard__title a:hover { opacity: .62; }
.wcard__lead { margin-top: 18px; color: var(--gray-600); max-width: 46ch; }

.wcard__list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.wcard__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  background: var(--gray-100);
  font-size: 13.5px;
  color: var(--gray-700);
}
.wcard__list .ico { color: var(--gray-500); width: 13px; height: 13px; }
.wcard__go { margin-top: auto; padding-top: 32px; align-self: flex-start; }

@media (max-width: 1023px) { .wcards { grid-template-columns: 1fr; } }
@media (max-width: 720px)  { .wcard__list { grid-template-columns: 1fr; } }

/* href taşımayan <a> öğeleri (varsa) tıklanabilir sözü vermesin */
a:not([href]) { cursor: default; }

/* Faaliyet kapakları (müşteri görselleri) zaten tek renk — .shot'ın genel
   grayscale filtresine girmesinler. Filtre büyük görsellerde ayrı bir
   rasterizasyon geçişi demek ve kaydırmada kare düşürüyor. */
.wcard__media .shot img { filter: none; }
.wcard:hover .wcard__media .shot img { filter: none; }
