﻿:root {
  --projects-page-rise-distance: 40px;
  --projects-page-rise-duration: 900ms;
  --projects-page-rise-delay: 120ms;
  --projects-page-rise-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --projects-mark-size: clamp(92px, 14vw, 195px);
  --projects-mark-color: #ff3b30;
  --projects-mark-opacity: 0.5;
  --projects-mark-letter-spacing: -0.05em;
  --projects-heading-min-height: calc(var(--projects-mark-size) * 0.9);
}

.projects-shell,
.projects-page .site-footer {
  opacity: 0;
  transform: translateY(var(--projects-page-rise-distance));
  animation: projects-page-rise var(--projects-page-rise-duration) var(--projects-page-rise-ease) var(--projects-page-rise-delay) forwards;
  will-change: transform, opacity;
}

.projects-shell {
  position: relative;
  width: 100%;
  max-width: var(--site-width);
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-panel {
  width: 100%;
  padding: 6px 0 44px;
}

.projects-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--projects-heading-min-height);
  text-align: center;
  margin-bottom: 28px;
}

.projects-heading-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--projects-mark-size);
  font-weight: 900;
  pointer-events: none;
  z-index: 0;
  letter-spacing: var(--projects-mark-letter-spacing);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.projects-heading-mark {
  width: 100vw; 
  left: 50%; 
  transform: translateX(-50%); 
}

.projects-mark-marquee {
  display: inline-block;
  padding-right: 0;
  animation: projects-marquee-loop 60s steps(480) infinite;
  will-change: transform;
  opacity: var(--projects-mark-opacity);

  
  background: repeating-linear-gradient(
    45deg,
    var(--projects-mark-color) 0px 2px,
    rgba(0, 0, 0, 0.5) 2px 4px
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-title { display: none; }

.page-lead {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  margin: 0;
  opacity: 0.8;
}

.project-category-label {
  font-size: 24px;
  font-weight: 800; 
  line-height: 1.05;
  letter-spacing: 0.05em;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 10px; 
  text-transform: uppercase;
  text-align: left; 
}



.projects-controls {
  margin-top: 36px;
}

.projects-filter-list {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.projects-filter-list .filter-chip {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 0 0 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  opacity: 0.6;
}

.projects-filter-list .filter-chip:hover,
.projects-filter-list .filter-chip.is-active {
  opacity: 1;
  border-bottom-color: var(--text);
}

.gallery-divider {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .gallery-divider {
  border-top-color: rgba(0, 0, 0, 0.14);
}

.projects-content {
  margin-top: 22px; 
  width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 88px; 
  max-width: 800px;
  margin-inline: auto;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 18px; 
}

.project-media-and-description {
  display: flex;
  flex-direction: column;
  gap: 10px; 
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px; 
}

.project-item[data-category="zine"] .project-media-and-description {
  width: 53.28%; 
  margin-inline: auto;
}

.project-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.project-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-image {
  width: 100%;
  background: var(--frame-bg);
}

.project-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-title {
  font-size: 24px; 
  font-weight: 800; 
  letter-spacing: 0.05em;
  margin-bottom: 0; 
  text-align: center;
  font-style: italic; 
}

.project-description-block {
  width: 100%;
  text-align: center; 
  font-style: italic; 
}

.project-cast {
  display: table; 
  margin: 0 auto; 
  margin-bottom: 18px; 
  text-align: left; 
  font-size: 14px;
  font-weight: 200; 
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-style: italic; 
}

.project-body {
  text-align: center; 
  font-size: 14px;
  font-weight: 200; 
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-style: italic; 
}


@media (min-width: 821px) {
  .project-item[data-category="zine"] {
    align-items: center;
  }
  .project-item[data-category="zine"] .project-title {
    text-align: center;
  }
  .project-item[data-category="zine"] .project-media-and-description {
    width: 53.28%;
    margin-inline: auto;
  }
  .project-item[data-category="zine"] .project-description-block {
    text-align: center;
  }
  .project-item[data-category="zine"] .project-price-block {
    text-align: left;
  }
  .project-item[data-category="zine"] .project-category-label {
    text-align: center;
  }
}


.project-visual-group {
  position: relative;
  width: 100%;
}

.project-price-block {
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

.project-price {
  display: inline-block;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--text);
}

@keyframes projects-page-rise { to { transform: translateY(0); opacity: 1; } }
@keyframes projects-marquee-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 820px) {
  :root {
    --projects-page-rise-distance: 84px;
    --projects-mark-size: clamp(88px, 18vw, 180px);
    --projects-heading-min-height: calc(var(--projects-mark-size) * 0.86);
  }

  .project-item {
    gap: 16px;
  }

  .projects-controls {
    margin-top: 30px;
  }

  .projects-filter-list {
    gap: 14px;
  }

  .projects-grid {
    gap: 64px;
  }

  .project-item[data-category="zine"] {
    align-items: center;
  }

  .project-item[data-category="zine"] .project-title {
    font-size: 18px;
    text-align: center;
    opacity: 1;
  }

  .project-item[data-category="zine"] .project-media-and-description {
    width: 80%;
  }

  .project-item[data-category="zine"] .project-description-block {
    text-align: center;
  }

  .project-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
  }

  .project-cast,
  .project-body {
    font-size: 13px;
  }

  .project-category-label {
    font-size: 18px;
    text-align: center;
  }
}


.project-video-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
  width: 100%;
}

.project-video-card {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  text-align: left;
}

.project-video-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.project-video-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.82);
  transition: filter 180ms ease, transform 180ms ease;
}

.project-video-card:hover .project-video-card-media img {
  filter: grayscale(0.35) contrast(1.05) brightness(0.95);
  transform: scale(1.025);
}

.project-video-card-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.project-video-card-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #111;
}

.project-video-card-title {
  display: block;
  font-size: 12px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-video-modal[hidden] {
  display: none;
}

.project-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-video-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.project-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  transition: opacity 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-video-modal__card {
  position: relative;
  width: min(860px, 92vw);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: clamp(28px, 5vw, 54px);
  background: rgba(13, 12, 12, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  touch-action: pan-y;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 460ms cubic-bezier(0.22, 1, 0.36, 1), transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-video-modal.is-open .project-video-modal__card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.project-video-modal.is-closing .project-video-modal__card {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.project-video-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.project-item--video-modal {
  gap: 18px;
}

.project-item--video-modal .project-media-and-description {
  width: 100%;
}

body.is-project-video-modal-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .project-video-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
  }

  .project-video-card-title {
    font-size: 10px;
  }

  .project-video-modal {
    padding: 18px;
  }

  .project-video-modal__card {
    width: min(560px, 94vw);
    padding: 34px 18px 24px;
  }
}

.project-video-modal__card {
  overflow: hidden !important;
  max-height: none !important;
}

.project-video-modal__content {
  max-height: none;
  overflow: visible;
}

.project-item--video-modal .project-title {
  font-size: clamp(18px, 2.2vw, 24px);
}

.project-item--video-modal .project-cast,
.project-item--video-modal .project-body {
  font-size: clamp(11px, 1.1vw, 14px);
}

@media (max-height: 760px) and (min-width: 821px) {
  .project-video-modal__card {
    width: min(760px, 90vw);
    padding: 28px 40px;
  }

  .project-item--video-modal {
    gap: 12px;
  }

  .project-item--video-modal .project-title {
    font-size: 20px;
  }

  .project-item--video-modal .project-cast,
  .project-item--video-modal .project-body {
    font-size: 11px;
    line-height: 1.65;
  }
}

.project-video-modal__card {
  color: var(--text);
  background: rgba(13, 12, 12, 0.96);
}

body[data-theme="light"] .project-video-modal__backdrop {
  background: rgba(250, 248, 243, 0.72);
}

body[data-theme="light"] .project-video-modal__card {
  color: #111;
  background: rgba(250, 248, 243, 0.97);
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.22);
}

body[data-theme="light"] .project-video-modal__close,
body[data-theme="light"] .project-item--video-modal .project-title {
  color: #111;
}

body[data-theme="light"] .project-item--video-modal .project-cast,
body[data-theme="light"] .project-item--video-modal .project-body {
  color: rgba(17, 17, 17, 0.62);
}

body[data-theme="light"] .project-video-card-media {
  background: #f4f0e7;
}

body[data-theme="light"] .project-video-card-media img {
  filter: grayscale(1) contrast(1.02) brightness(0.94);
}

body[data-theme="light"] .project-video-card:hover .project-video-card-media img {
  filter: grayscale(0.2) contrast(1.02) brightness(1);
}
