/* KUN Collective — departman iç sayfaları */

.kun-department-page main {
  background-color: #bc0f10;
}

/* Eski tema 100dvh bırakıyordu → video küçülünce altta boşluk kalıyordu */
.kun-department-page .video-banner-section,
.kun-department-page .video-banner-section.kun-produksiyon-hero,
.kun-department-page .video-banner-section.kun-animasyon-hero,
.kun-department-page .video-banner-section.kun-grafik-hero,
.kun-department-page .video-banner-section.kun-sosyal-hero {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.kun-department-page .video-banner-section .masks-svgs-container {
  display: none !important;
}

.kun-department-page .video-banner-section .video-wrapper {
  overflow: hidden;
  background: #111;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1440 / 450;
}

.kun-department-page .kun-department-hero-image {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 1440 / 450;
}

.kun-department-page .video-banner-section .video-wrapper video,
.kun-department-page .video-banner-section .video-wrapper .video-banner {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1440 / 450;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 767px) {
  .kun-department-page .video-banner-section .video-wrapper {
    aspect-ratio: 1440 / 450;
  }

  .kun-department-page .video-banner-section .video-wrapper video,
  .kun-department-page .kun-department-hero-image {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1440 / 450;
    object-fit: contain;
  }
}

@media (max-width: 1023px) {
  .kun-department-page .video-banner-section,
  .kun-department-page .video-banner-section.kun-produksiyon-hero,
  .kun-department-page .video-banner-section.kun-animasyon-hero,
  .kun-department-page .video-banner-section.kun-grafik-hero,
  .kun-department-page .video-banner-section.kun-sosyal-hero {
    padding-top: max(76px, calc(env(safe-area-inset-top, 0px) + 60px));
  }

  /* Hero yoksa işler bölümü header altına kaymasın */
  .kun-department-page:not(:has(.video-banner-section)) .kun-projects-section {
    padding-top: max(108px, calc(env(safe-area-inset-top, 0px) + 88px));
  }
}

.kun-dept-hero {
  padding: clamp(96px, 14vw, 160px) clamp(20px, 4vw, 80px) clamp(48px, 6vw, 80px);
  color: #fafafa;
}

.kun-dept-hero__inner {
  max-width: min(1200px, 100%);
  margin: 0 auto;
}

.kun-dept-hero__label {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.kun-dept-hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.kun-dept-hero__lead {
  margin: clamp(20px, 3vw, 32px) 0 0;
  max-width: 640px;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.4;
  font-weight: 400;
}

.kun-dept-intro {
  background: transparent;
  color: #fafafa;
  padding: 0 0 clamp(28px, 4vw, 40px);
  margin: 0;
}

.kun-dept-intro__title {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fafafa;
}

.kun-dept-intro__tagline {
  margin: 0 0 clamp(12px, 2vw, 18px);
  max-width: 48ch;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.35;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.92);
}

.kun-dept-intro__description {
  max-width: 62ch;
}

.kun-dept-intro__description p,
.kun-dept-intro__text p {
  margin: 0 0 14px;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(250, 250, 250, 0.9);
}

.kun-dept-intro__description p:last-child,
.kun-dept-intro__text p:last-child {
  margin-bottom: 0;
}

.kun-dept-intro__grid {
  display: block;
  max-width: none;
  margin: 0;
}

.kun-dept-services h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  text-transform: uppercase;
}

.kun-dept-services ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.kun-dept-services li {
  padding: 14px 0;
  border-top: 1px solid rgba(250, 250, 250, 0.28);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.4;
}

.kun-dept-work {
  background: #0f0f0e;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 80px);
}

.kun-dept-work__header {
  max-width: min(1200px, 100%);
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.kun-dept-work__header h2 {
  margin: 0;
  color: #fafafa;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.kun-dept-work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  max-width: min(1200px, 100%);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .kun-dept-work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .kun-dept-work__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kun-dept-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.kun-dept-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: #1a1a1a;
}

.kun-dept-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.kun-dept-card:hover .kun-dept-card__image img {
  transform: scale(1.04);
}

.kun-dept-card__body {
  padding: 18px 0 0;
}

.kun-dept-card__body h3 {
  margin: 0 0 8px;
  color: #fafafa;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
}

.kun-dept-card__body p {
  margin: 0;
  color: rgba(250, 250, 250, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

.kun-dept-cta {
  background: #0f0f0e;
  padding: 0 clamp(20px, 4vw, 80px) clamp(64px, 8vw, 96px);
  text-align: center;
}

.kun-dept-cta .primary-button {
  min-width: min(100%, 280px);
}

.kun-dept-nav {
  background: #0f0f0e;
  padding: 0 clamp(20px, 4vw, 80px) clamp(48px, 6vw, 72px);
  border-top: 1px solid rgba(250, 250, 250, 0.12);
}

.kun-dept-nav__inner {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.kun-dept-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(250, 250, 250, 0.28);
  border-radius: 999px;
  color: #fafafa;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.kun-dept-nav a:hover,
.kun-dept-nav a.is-active {
  background: #bc0f10;
  border-color: #bc0f10;
  color: #fafafa;
}

.header-content-container .menu-container .nav-info-container .nav-container .sub-menu .current-menu-item > a {
  color: #bc0f10;
}

/* ── Departman işlerimiz (prodüksiyon, animasyon, grafik, sosyal) ── */
.kun-produksiyon-page main.kun-produksiyon-main,
.kun-animasyon-page main.kun-animasyon-main,
.kun-grafik-page main.kun-grafik-main,
.kun-sosyal-page main.kun-sosyal-main {
  background: #bc0f10;
}

.kun-produksiyon-page .kun-produksiyon-hero,
.kun-animasyon-page .kun-animasyon-hero,
.kun-grafik-page .kun-grafik-hero,
.kun-sosyal-page .kun-sosyal-hero {
  position: relative;
  z-index: 1;
}

.kun-produksiyon-page .kun-projects-section,
.kun-animasyon-page .kun-projects-section,
.kun-grafik-page .kun-projects-section,
.kun-sosyal-page .kun-projects-section {
  position: relative;
  z-index: 2;
  background: #bc0f10;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 48px) clamp(48px, 6vw, 72px);
}

.kun-produksiyon-page .kun-projects-section__inner,
.kun-animasyon-page .kun-projects-section__inner,
.kun-grafik-page .kun-projects-section__inner,
.kun-sosyal-page .kun-projects-section__inner {
  max-width: min(1440px, 100%);
  margin: 0 auto;
}

.kun-projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: 16px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(250, 250, 250, 0.22);
}

.kun-projects-toolbar__left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #fafafa;
}

.kun-projects-toolbar__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kun-projects-toolbar__count {
  font-size: 13px;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.85);
}

.kun-projects-search {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .kun-projects-search {
    flex: 1 1 360px;
    max-width: 480px;
    margin-left: auto;
    width: auto;
  }
}

.kun-projects-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(250, 250, 250, 0.35);
  border-radius: 0;
  background: #fff;
  color: #0f0f0e;
  font-family: Outfit, sans-serif;
  font-size: 15px;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.kun-projects-search__input::placeholder {
  color: #888;
}

.kun-projects-search__input:focus {
  outline: none;
  border-color: #0f0f0e;
}

.kun-projects-search__btn,
.kun-projects-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(250, 250, 250, 0.35);
  background: #fff;
  color: #0f0f0e;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kun-projects-search__btn:hover,
.kun-projects-search__clear:hover {
  background: #f0f0f0;
  border-color: #0f0f0e;
}

.kun-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .kun-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .kun-projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.kun-project-card[hidden] {
  display: none !important;
}

.kun-project-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.kun-project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd;
  border-radius: 20px;
}

.kun-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.kun-project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 20px;
  background: rgba(15, 15, 14, 0.42);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kun-project-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.kun-project-card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(15, 15, 14, 0) 0%, rgba(15, 15, 14, 0.82) 68%);
  color: #fafafa;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: left;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.kun-project-card__link:hover .kun-project-card__overlay,
.kun-project-card__link:focus-visible .kun-project-card__overlay {
  opacity: 1;
}

.kun-project-card__link:hover .kun-project-card__media img,
.kun-project-card__link:focus-visible .kun-project-card__media img {
  transform: scale(1.03);
}

.kun-project-card__link:hover .kun-project-card__play,
.kun-project-card__link:focus-visible .kun-project-card__play {
  transform: translateY(0);
}

.kun-project-card__link:hover .kun-project-card__title,
.kun-project-card__link:focus-visible .kun-project-card__title {
  transform: translateY(0);
  opacity: 1;
}

.kun-projects-empty {
  margin: 32px 0 0;
  text-align: center;
  color: #fafafa;
  font-size: 16px;
}

.kun-projects-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 8px;
}

.kun-projects-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(250, 250, 250, 0.45);
  background: transparent;
  color: #fafafa;
  font-family: Outfit, sans-serif;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kun-projects-pagination__btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.15);
  border-color: #fafafa;
}

.kun-projects-pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.kun-projects-pagination__info {
  color: #fafafa;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  min-width: 72px;
  text-align: center;
}

.kun-produksiyon-page .kun-dept-nav,
.kun-animasyon-page .kun-dept-nav,
.kun-grafik-page .kun-dept-nav,
.kun-sosyal-page .kun-dept-nav {
  background: #0f0f0e;
  position: relative;
  z-index: 2;
}

/* İş detay + galeri sayfalarında full-bleed departman barı */
.kun-project-main:has(.kun-dept-nav),
.kun-fotograf-main:has(.kun-dept-nav) {
  padding-bottom: 0;
}

.kun-project-main .kun-dept-nav,
.kun-fotograf-main .kun-dept-nav {
  margin-left: calc(-1 * clamp(20px, 4vw, 80px));
  margin-right: calc(-1 * clamp(20px, 4vw, 80px));
  margin-top: clamp(48px, 6vw, 72px);
  background: #0f0f0e;
  position: relative;
  z-index: 2;
}

/* main dışında (iş detay / galeri) full-width siyah bar */
.kun-project-page > .kun-dept-nav,
.kun-fotograf-page > .kun-dept-nav,
.kun-whitebox-page > .kun-dept-nav,
.kun-backstage-page > .kun-dept-nav,
.kun-fotograf-main + .kun-dept-nav {
  background: #0f0f0e;
  padding: clamp(40px, 5vw, 56px) clamp(20px, 4vw, 80px) clamp(48px, 6vw, 72px);
  border-top: none;
  position: relative;
  z-index: 2;
}

.kun-project-page .kun-project-main,
.kun-fotograf-page .kun-fotograf-main {
  padding-bottom: clamp(48px, 6vw, 72px);
}

.kun-projects-brand-filter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.kun-projects-brand-filter__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.kun-projects-brand-filter__controls .kun-projects-toolbar__count {
  flex-shrink: 0;
  white-space: nowrap;
}

.kun-projects-brand-select {
  flex: 0 1 auto;
  width: auto;
  min-width: 200px;
  max-width: min(320px, 100%);
  height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(250, 250, 250, 0.35);
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230f0f0e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #0f0f0e;
  font-family: Outfit, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.kun-projects-brand-select:focus {
  outline: 2px solid rgba(250, 250, 250, 0.6);
  outline-offset: 2px;
}

@media (max-width: 639px) {
  .kun-projects-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .kun-projects-search {
    max-width: none;
    margin-left: 0;
  }
}

@media (hover: none) {
  .kun-project-card__overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(15, 15, 14, 0) 45%, rgba(15, 15, 14, 0.72) 100%);
  }

  .kun-project-card__play {
    display: none;
  }

  .kun-project-card__title {
    opacity: 1;
    transform: none;
  }
}

.kun-sosyal-page .kun-projects-grid {
  align-items: start;
}

@media (min-width: 1024px) {
  .kun-sosyal-page .kun-projects-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kun-project-card--reels .kun-project-card__media,
.kun-sosyal-page .kun-project-card--image .kun-project-card__media {
  border-radius: 14px;
}

.kun-project-card--reels .kun-project-card__media {
  aspect-ratio: 9 / 16;
  background: #111;
}

.kun-sosyal-page .kun-project-card--image .kun-project-card__media {
  aspect-ratio: 4 / 5;
}

.kun-project-card__reels-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.kun-project-card--image .kun-project-card__play {
  transform: translateY(6px) scale(0.94);
}

.kun-project-card--image .kun-project-card__link:hover .kun-project-card__play,
.kun-project-card--image .kun-project-card__link:focus-visible .kun-project-card__play {
  transform: translateY(0) scale(1);
}

.kun-project-card__image-icon {
  display: block;
}

.kun-grafik-page .kun-projects-grid,
.kun-sosyal-page .kun-projects-grid {
  align-items: start;
}

@media (min-width: 1024px) {
  .kun-grafik-page .kun-projects-grid,
  .kun-sosyal-page .kun-projects-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kun-grafik-page .kun-project-card--image .kun-project-card__media {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
}

.kun-project-card--visual .kun-project-card__link {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
  font: inherit;
  color: inherit;
}

.kun-project-card--reels .kun-project-card__link {
  cursor: pointer;
}

.kun-visual-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.kun-visual-lightbox[hidden] {
  display: none !important;
}

.kun-visual-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 14, 0.88);
}

.kun-visual-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kun-visual-lightbox__stage {
  max-width: 100%;
  max-height: 92vh;
}

.kun-visual-lightbox__stage img {
  display: block;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
}

.kun-visual-lightbox__reels {
  width: min(420px, 86vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.kun-visual-lightbox__reels video,
.kun-visual-lightbox__reels iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

.kun-visual-lightbox__close,
.kun-visual-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.kun-visual-lightbox__close {
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.kun-visual-lightbox__nav {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.kun-visual-lightbox__nav--prev {
  left: 0;
}

.kun-visual-lightbox__nav--next {
  right: 0;
}

.kun-visual-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: -36px;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

body.kun-visual-lightbox-open {
  overflow: hidden;
}
