/* KIFF / DUXNET film festival page - v167 */
body.kiff-page {
  color: #f7f3ea;
  background: #050505;
  overflow-x: hidden;
}

body.kiff-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background: #050505;
}

.kiff-bg-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-Events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.48) 52%, rgba(0,0,0,.76)),
    radial-gradient(circle at 50% 10%, rgba(255, 151, 70, .16), transparent 32%),
    url("kiff-background.webp") center center / cover no-repeat;
  opacity: .98;
}

body.kiff-page .site-header {
  background: rgba(4, 5, 8, .92) !important;
  border-bottom-color: rgba(219, 166, 104, .30) !important;
  backdrop-filter: blur(16px);
}

body.kiff-page .main-nav a::after,
body.kiff-page .main-nav a.is-active::after {
  background: linear-gradient(90deg, #e9c27a, #ff7a18) !important;
}

.kiff-marquee {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 10px 0 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 6, 5, .88), rgba(8, 6, 5, .62)),
    linear-gradient(90deg, rgba(233, 194, 122, .12), transparent 45%, rgba(255, 122, 24, .10));
  border-bottom: 1px solid rgba(233, 194, 122, .18);
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
}

.kiff-marquee__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.kiff-marquee__track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: kiffMarqueeLoop 86s linear infinite;
  will-change: transform;
}

.kiff-marquee__set {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
}

.kiff-marquee:hover .kiff-marquee__track {
  animation-play-state: paused;
}

.kiff-marquee__item {
  flex: 0 0 auto;
  width: 68px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(233, 194, 122, .22);
  box-shadow: 0 8px 22px rgba(0,0,0,.34);
  opacity: .84;
  transition: transform .22s ease, opacity .22s ease, border-color .22s ease;
}

.kiff-marquee__item:hover {
  transform: translateY(-3px) scale(1.035);
  opacity: 1;
  border-color: rgba(255, 220, 150, .62);
}

.kiff-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes kiffMarqueeLoop {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

.kiff-shell {
  position: relative;
  min-height: 100vh;
}

.kiff-hero {
  position: relative;
  min-height: calc(100svh - 84px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(34px, 5vw, 60px) 0 clamp(58px, 7vw, 92px);
}

.kiff-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(255, 176, 85, .18), transparent 31%),
    radial-gradient(circle at 20% 38%, rgba(59, 98, 151, .14), transparent 32%),
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.54) 47%, rgba(0,0,0,.80));
  z-index: 0;
}

.kiff-hero__backdrops {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: .36;
}

.kiff-hero__bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(20px) saturate(1.04) contrast(1.04);
  transform: scale(1.03);
  opacity: 0;
  transition: opacity 1.1s ease;
}

.kiff-hero__bg.is-active { opacity: 1; }

.kiff-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .84fr);
  gap: clamp(24px, 2.2vw, 36px);
  align-items: center;
}

.kiff-hero__copy {
  max-width: 720px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(233, 194, 122, .16);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(5,5,6,.70), rgba(5,5,6,.34));
  box-shadow: 0 28px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}

.kiff-hero__copy h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 6.3vw, 82px);
  line-height: .92;
  letter-spacing: -.065em;
  color: #fff9ef;
  text-shadow: 0 10px 34px rgba(0,0,0,.58);
}

.kiff-hero__copy p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 248, 235, .82);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.66;
}

.kiff-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 26px;
}

.kiff-hero__badges span {
  padding: 9px 12px;
  border: 1px solid rgba(233, 194, 122, .22);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color: rgba(255, 232, 191, .86);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kiff-hero__stage {
  position: relative;
  justify-self: center;
  width: min(470px, 88vw);
}

.kiff-hero__poster-light {
  position: absolute;
  inset: 5% -12% 14% -12%;
  border-radius: 42%;
  background: radial-gradient(circle, rgba(255, 173, 79, .22), transparent 62%);
  filter: blur(24px);
  opacity: .78;
}

.kiff-hero__poster-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(233, 194, 122, .32);
  background: rgba(255,255,255,.04);
  box-shadow: 0 34px 86px rgba(0,0,0,.62), 0 0 0 8px rgba(255,255,255,.025);
}

.kiff-hero__poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-Events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.11), transparent 24%, transparent 72%, rgba(255,204,122,.08));
  mix-blend-mode: screen;
}

.kiff-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  background: #050505;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1.2s ease;
}

.kiff-hero__poster.is-active {
  opacity: 1;
  transform: scale(1);
}

.kiff-hero__poster-info {
  position: relative;
  width: calc(100% - 34px);
  margin: -22px auto 0;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(233, 194, 122, .22);
  background: rgba(5,5,6,.84);
  text-align: center;
  box-shadow: 0 20px 42px rgba(0,0,0,.46);
  backdrop-filter: blur(10px);
}

.kiff-hero__poster-info strong,
.kiff-hero__poster-info span {
  display: block;
}

.kiff-hero__poster-info strong {
  color: #fff8e8;
  font-size: 20px;
  letter-spacing: -.01em;
}

.kiff-hero__poster-info span {
  margin-top: 4px;
  color: rgba(233, 194, 122, .82);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.kiff-team,
.kiff-gallery,
.kiff-about {
  position: relative;
  z-index: 2;
}

.kiff-team {
  padding: clamp(44px, 6vw, 82px) 0;
}

body.kiff-page .section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

body.kiff-page .section-head h2,
.kiff-about__panel h2 {
  color: #fff9ed;
}

.kiff-team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.kiff-team__card,
.kiff-gallery__card,
.kiff-about__panel {
  border: 1px solid rgba(233, 194, 122, .16);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(8,8,9,.72), rgba(13,10,8,.46));
  box-shadow: 0 22px 60px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.kiff-team__card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.kiff-team__body {
  padding: 20px 20px 22px;
}

.kiff-team__eyebrow {
  color: rgba(233, 194, 122, .88);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.kiff-team__body h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #fffaf0;
  letter-spacing: -.03em;
}

.kiff-team__body p,
.kiff-about__content p {
  margin: 0;
  color: rgba(255, 246, 232, .76);
  line-height: 1.72;
}

.kiff-about {
  padding: 0 0 clamp(38px, 5vw, 68px);
}

.kiff-about__panel {
  padding: clamp(24px, 3vw, 38px);
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: 28px;
}

.kiff-about__content {
  display: grid;
  gap: 16px;
}

.kiff-gallery {
  padding: clamp(20px, 2vw, 28px) 0 clamp(72px, 9vw, 128px);
}

.kiff-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.kiff-gallery__card a {
  display: block;
}

.kiff-gallery__card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.kiff-gallery__caption {
  padding: 16px 18px 18px;
}

.kiff-gallery__caption strong,
.kiff-gallery__caption span {
  display: block;
}

.kiff-gallery__caption strong {
  color: #fff8e8;
  font-size: 18px;
}

.kiff-gallery__caption span {
  color: rgba(233, 194, 122, .82);
  margin-top: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 1180px) {
  .kiff-team__grid,
  .kiff-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .kiff-hero__inner,
  .kiff-about__panel {
    grid-template-columns: 1fr;
  }

  .kiff-hero__stage {
    width: min(420px, 92vw);
  }
}

@media (max-width: 700px) {
  .kiff-marquee {
    padding: 8px 0 10px;
  }

  .kiff-marquee__track,
  .kiff-marquee__set {
    gap: 10px;
  }

  .kiff-marquee__item {
    width: 58px;
    height: 82px;
    border-radius: 10px;
  }

  .kiff-hero {
    min-height: auto;
    padding-top: 30px;
  }

  .kiff-hero__copy {
    padding: 20px;
    border-radius: 24px;
  }

  .kiff-hero__copy h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .kiff-team__grid,
  .kiff-gallery__grid {
    grid-template-columns: 1fr;
  }
}
