/* ================== PAGE ================== */
.projects-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;

  /* --- ARROWS: position and rotation --- */
  --a1-x: -100px;
  --a1-y: 0px;
  --a1-rot: 30deg;

  --a2-x: -60px;
  --a2-y: 0px;
  --a2-rot: 0deg;

  --a3-x: -100px;
  --a3-y: 0px;
  --a3-rot: 45deg;
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}

.proj-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 1;
  color: var(--maroon, #800000);
}

.back-btn {
  background: var(--maroon, #800000);
  color: #fff;
  padding: 8px 22px;
  border-radius: 4px;
  font-size: 1.1rem;
  transition: background 0.2s;
  text-decoration: none;
}

.back-btn:hover {
  background: #6f2323;
}

.proj-script {
  font-family: "Great Vibes", cursive;
  font-size: 2.6rem;
  margin: 6px 0 28px;
}

/* ================== IMAGES (large and well-proportioned) ================== */
.shot {
  --shot-w: 330px; /* Large and clear image size */
  display: block;
  width: var(--shot-w);
  max-width: 100%;
  aspect-ratio: 9 / 18.5;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

/* ================== TEXT ================== */
.proj-text {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.65;
  max-width: 640px;
}

/* ================== ARROWS (images) ================== */
.arrow {
  --arrow-h: 180px;

  display: block;
  height: var(--arrow-h);
  width: auto;
  max-width: 100%;
  margin: 10px auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: clip-path 1.2s ease-in-out;
}

.js .arrow {
  clip-path: inset(0 100% 0 0);
}

.js .arrow[data-reveal="top"] {
  clip-path: inset(0 0 100% 0);
}

.js .arrow.is-drawn {
  clip-path: inset(0 0 0 0);
}

.arrow.flip-x {
  transform: scaleX(-1);
}

.arrow.flip-y {
  transform: scaleY(-1);
}

.arrow.flip-xy {
  transform: scale(-1, -1);
}

@media (prefers-reduced-motion: reduce) {
  .arrow {
    transition: none;
  }
}

@media (max-width: 800px) {
  .arrow {
    --arrow-h: 120px;
  }
}

/* ================== DESKTOP LAYOUT ================== */
@media (min-width: 801px) {
  .projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .row-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 850px;
    gap: 80px;
    margin: 10px 0;
  }

  /* Row 2: text on the left, image on the right */
  .row-item.reverse {
    flex-direction: row; /* Keeps the HTML order: text on the left, image on the right */
  }

  /* Arrow positioning */
  .arrow-1 {
    margin: 15px auto;
    translate: var(--a1-x) var(--a1-y);
    rotate: var(--a1-rot);
  }

  .arrow-2 {
    margin: 15px auto;
    translate: var(--a2-x) var(--a2-y);
    rotate: var(--a2-rot);
  }

  .arrow-3 {
    margin: 15px auto;
    translate: var(--a3-x) var(--a3-y);
    rotate: var(--a3-rot);
  }
}

/* ================== VIDEO BLOCK ================== */
.video-block {
  --video-w: 340px;
  --box-pad: 35px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--video-w) + var(--box-pad) * 2);
  margin: 40px auto 0;
  padding: var(--box-pad);
  background: #a31f26;
  border-radius: 20px;
}

.video-frame {
  width: var(--video-w);
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.video-block video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.video-controls {
  display: flex;
  justify-content: center;
}

.video-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.video-btn:hover {
  transform: scale(1.08);
}

.video-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background: #a31f26;
  clip-path: polygon(20% 0, 100% 50%, 20% 100%);
  transform: translateX(2px);
}

.video-btn.is-playing::before {
  width: 15px;
  height: 15px;
  clip-path: none;
  border-radius: 3px;
  transform: none;
}
