/* ==========================================================================
   KUM PROJE — Kırılım noktaları
   Bootstrap kırılımları temel alınır: 576 / 768 / 992 / 1200 / 1400.
   Masaüstü menü 1200 px'ten itibaren satır içinde görünür; altında tam
   ekran menü kullanılır.
   ========================================================================== */

/* Küçük mobil */
@media (max-width: 380px) {
  :root { --header-h: 72px; }
  .brand img { width: 154px; }
  .menu-toggle__text { display: none; }
  .menu-toggle { padding-left: 0.35rem; }
}

/* Mobil ve tablet */
@media (max-width: 991.98px) {
  .contact-rail { display: none !important; }
  .hs__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .hs__thumb { grid-template-columns: 1fr; padding: 0; height: 28px; border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hs__thumb::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: rgba(242, 240, 235, 0.25); }
  .hs__thumb[aria-current="true"] { background: none; }
  .hs__thumb img, .hs__thumb span { display: none; }
  .hs__thumb::after { height: 3px; }
  .hs__nav { padding-right: 62px; }
  .hs::after { background: linear-gradient(0deg, rgba(8, 9, 10, 0.96) 0%, rgba(8, 9, 10, 0.7) 45%, rgba(8, 9, 10, 0.25) 100%); }
  .build__panel { max-width: none; padding: 1.15rem 1.25rem; }
  .build__step p { font-size: 0.92rem; }
  .build__overlay { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

@media (min-width: 576px) {
  .masonry { columns: 2; }
  .ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .section-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .family { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .approach { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .approach__card:nth-child(2) { margin-top: 3rem; }
  .works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; }
  .works-grid > li:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
  .works-grid > li:nth-child(6n + 4) { grid-column: span 2; }
  .blog-row > a { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.5rem; }
  .more-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-empty { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .talk__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; }
  .portal__cols { flex-direction: row; }
  .portal__col { min-height: 100vh; min-height: 100svh; padding: 3rem clamp(1.5rem, 3vw, 3rem); }
  .portal__col + .portal__col { border-top: 0; border-left: 1px solid var(--color-border-subtle); }
  .portal__cols:hover .portal__col { flex-grow: 0.8; }
  .portal__cols .portal__col:hover, .portal__cols .portal__col:focus-visible { flex-grow: 1.5; }
  .portal__foot { position: absolute; left: 0; right: 0; bottom: 0; border-top: 0; }
}

@media (max-width: 767.98px) {
  .works-grid > li:nth-child(5n + 1) { grid-column: span 2; }
}

@media (min-width: 992px) {
  :root { --header-h: 92px; }
  .contact-rail { display: flex; }
  .contact-fab { display: none; }

  .build__overlay { align-items: center; padding-bottom: 0; }
  .build__meter { display: flex; right: calc(var(--gutter) + 56px); }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
  .service:nth-of-type(even) .service__media { order: 2; }
  .masonry { columns: 3; }
  .menu-panel__body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; }
  .menu-preview { display: block; max-height: 64vh; }

  /* Yatay vitrin: dikey kaydırma yatay harekete çevrilir (JS .is-horizontal ekler) */
  .showcase.is-horizontal .showcase__track { height: var(--track-h, 300vh); }
  .showcase.is-horizontal .showcase__sticky { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; height: 100svh; overflow: hidden; scroll-snap-type: none; }
  .showcase.is-horizontal .showcase__rail { padding-bottom: 0; will-change: transform; }
  .work { width: 44vw; }
  .work:nth-child(even) { width: 32vw; }
  .work:nth-child(even) .work__media { height: 44vh; margin-top: 12vh; }
  .work--all { width: 28vw !important; }
  .work--all > a { height: calc(56vh + 3.2rem); }
}

@media (min-width: 1200px) {
  .main-nav { display: contents; }
  .hs__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 3rem; }
  .menu-toggle, .header-actions { display: none; }
  :root { --header-h: 112px; --header-h-scrolled: 80px; }
  .site-header__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 2.5rem; }
  .main-nav { display: contents; }
  .nav-left { grid-column: 1; grid-row: 1; justify-self: end; }
  .brand { grid-column: 2; grid-row: 1; }
  .nav-right { grid-column: 3; grid-row: 1; justify-self: start; }
  .brand img { width: 224px; }
  .site-header.is-scrolled .brand img { width: 184px; }
  .ref-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { aspect-ratio: 3 / 4.4; }
}

/* Sabit iletişim rayı görünürken içerik onun altında kalmasın */
@media (min-width: 992px) and (max-width: 1679.98px) {
  main .wrap, .site-footer .wrap, .talk .wrap { padding-right: calc(var(--gutter) + 60px); }
}

@media (min-width: 1600px) {
  :root { --container-max: 1560px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hs__title { font-size: 2rem; margin-bottom: 0.75rem; }
  .build__step p { display: none; }
}

/* Blog satırları: görsel sırayla sola/sağa */
@media (min-width: 768px) {
  .blog-row:nth-child(even) .blog-row__media { order: 2; }
}



/* Ekip */
@media (min-width: 992px) {
  .founder-panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; }
  .founder-panel__sign { padding: 0 0 0 3rem; border-top: 0; border-left: 1px solid var(--color-border-subtle); }
  .team-teaser { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
}

/* Proje detay */
@media (max-width: 767.98px) {
  .pager { grid-template-columns: 1fr; }
  .pager a + a { text-align: left; }
}
