/* ============================================================
   UNPLUGGED — page-specific styles
   Scoped entirely to .up-* classes and .up-page; does not affect other pages.
   ============================================================ */

/* ---- NAV: 5-column layout to accommodate LinkedIn link ---- */
@media (width > 82rem) {
  .up-page .content-grid-menu {
    grid-template-columns: 0.7fr 2.2fr 0.5fr 0.2fr;
  }
}

@media (min-width: 55rem) and (max-width: 82rem) {
  .up-page .content-grid-menu {
    grid-template-columns: 0.7fr 2.2fr 0.5fr 0.2fr;
  }
}

.up-linkedin {
  font-family: "Comfortaa", serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #202020;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  align-self: center;
  margin-left: 1.5rem;
  margin-bottom: 0.4rem;
  transition: opacity 0.2s ease;
}

.up-linkedin:hover {
  opacity: 0.6;
}

/* Hide LinkedIn inside the hamburger menu on mobile */
@media (width < 37rem) {
  .up-linkedin {
    display: none;
  }
}

/* ---- HERO ---- */
.up-hero {
  position: relative;
  min-height: 65vh;
  background-image: url("../img/IAT343-project.png");
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: flex-start;
}

/* Dark overlay: sits above image (z-index 1), below content (z-index 2) */
.up-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(32, 32, 32, 0.88);
  z-index: 1;
}

.up-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 5rem 9rem 6rem;
  color: #f1f1f1;
}

.up-hero__subtitle {
  font-size: 1.375rem;
  font-weight: 400;
  color: #f1f1f1;
  margin: 0 0 0.75rem;
}

.up-hero__title {
  font-size: 4rem;
  font-weight: 700;
  text-align: left;
  color: #f1f1f1;
  margin: 0 0 5rem;
  line-height: 1.15;
}

.up-hero__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6rem;
  row-gap: 0;
}

.up-hero__info-col {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.up-hero__info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.up-hero__label {
  font-size: 1.875rem;
  font-weight: 700;
  color: #f1f1f1;
}

.up-hero__value {
  font-size: 1.375rem;
  font-weight: 400;
  color: #f1f1f1;
  line-height: 1.5;
}

/* ---- PROJECT OBJECTIVE ---- */
.up-objective {
  padding: 6rem 0 5rem;
}

.up-objective__content {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 9rem;
}

.up-objective__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #202020;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.up-objective__body {
  font-size: 4rem;
  font-weight: 400;
  font-style: italic;
  color: #202020;
  line-height: 1.5;
  max-width: 100%;
  margin: 0;
}

/* ---- VIDEO ---- */
.up-page .project-overview {
  max-width: 94rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 9rem;
  box-sizing: border-box;
}

.up-page .project-video {
  width: 100%;
  margin-left: 0;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 10px;
}

/* ---- PROJECT BODY (dark section) ---- */
.up-project-body {
  background-color: #202020;
  border-radius: 2.5rem 2.5rem 0 0;
  padding-bottom: 6rem;
  margin-top: 4rem;
  width: 100%;
}

.up-project-overview-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 6rem 9rem 0;
}

.up-project-body h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #f1f1f1;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.up-project-text {
  font-size: 1.375rem;
  font-weight: 400;
  color: #f1f1f1;
  line-height: 1.75;
  max-width: 100%;
  margin: 0;
}

.up-project-text-2 {
  font-size: 1.375rem;
  font-weight: 400;
  color: #f1f1f1;
  line-height: 1.75;
  max-width: 85%;
  margin: 0;
}

.up-project-text + .up-project-text {
  margin-top: 1.5rem;
}

.up-tag {
  display: inline-block;
  width: fit-content;
  background-color: #e8b4c4;
  color: #202020;
  font-size: 1.375rem;
  font-weight: 400;
  padding: 0.3rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
}

/* ---- 03 VISUAL DEVELOPMENT: two-column grid with images ---- */
.up-art-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  margin-top: 0;
}

.up-art-text {
  display: flex;
  flex-direction: column;
  width: 115%;
}

.up-art-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.up-art-figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  width: 65%;
  margin-right: 6rem;
  border-radius: 10px;
}

.up-art-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  will-change: transform;
}

.up-art-figure:hover .up-art-img {
  transform: scale(1.04);
}

.up-art-caption {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(241, 241, 241, 0.6);
  font-style: italic;
  padding: 0.5rem 0 0;
  line-height: 1.5;
}

.up-art-below {
  margin-top: 3rem;
}

/* Offset images to align with tag level */
.up-vd-images {
  padding-top: 5rem;
}

/* Non-clickable image */
.up-art-img.no-lightbox {
  cursor: default;
}

/* ---- 03 CHARACTER DESIGN: 3-up image row ---- */
.up-char-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.up-char-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.up-char-figure .up-art-img {
  width: 100%;
  height: auto;
  margin-right: 0;
}

.up-char-figure:hover .up-art-img {
  transform: scale(1.04);
}

/* ---- 03 CHARACTER DESIGN: storyboard row (80% centred) ---- */
.up-storyboard-row {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.up-storyboard-figure {
  width: 80%;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.up-storyboard-figure .up-art-img {
  width: 100%;
  height: auto;
  margin-right: 0;
}

.up-storyboard-figure:hover .up-art-img {
  transform: scale(1.04);
}

/* ---- 04 3D MODELING: images left, text right ---- */
.up-modeling-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: start;
}

.up-modeling-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
}

.up-modeling-images .up-art-img {
  width: 100%;
  margin-right: 0;
}

.up-modeling-text {
  display: flex;
  flex-direction: column;
}

.up-modeling-text .up-project-text + .up-project-text {
  margin-top: 1.5rem;
}

/* ---- 05 ENVIRONMENT DESIGN: text on top, two images side by side below ---- */
.up-env-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.up-env-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.up-env-figure .up-art-img {
  width: 100%;
  height: auto;
  margin-right: 0;
}

.up-env-figure:hover .up-art-img {
  transform: scale(1.04);
}

/* ---- 06 SCENE ASSEMBLY: single centred image at 80% width ---- */
.up-scene-row {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.up-scene-figure {
  width: 80%;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.up-scene-figure .up-art-img {
  width: 100%;
  height: auto;
  margin-right: 0;
}

.up-scene-figure:hover .up-art-img {
  transform: scale(1.04);
}

/* ---- 08 KEY TAKEAWAYS 2×2 grid ---- */
.up-takeaways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 6rem;
}

.up-takeaway {
  display: flex;
  flex-direction: column;
}

/* ---- LIGHTBOX ---- */
.up-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(20, 20, 20, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.up-lightbox--open {
  display: flex;
}

.up-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 0 4rem rgba(0, 0, 0, 0.6);
}

.up-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #f1f1f1;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.up-lightbox__close:hover {
  opacity: 1;
}

/* ---- Tablet ---- */
@media (max-width: 55rem) {
  .up-hero__content {
    padding: 4rem 4rem 5rem;
  }

  .up-hero__title {
    font-size: 3rem;
    margin-bottom: 3.5rem;
  }

  .up-hero__label {
    font-size: 1.5rem;
  }

  .up-hero__value {
    font-size: 1.125rem;
  }

  .up-art-grid {
    grid-template-columns: 1fr;
  }

  .up-art-img {
    width: 100%;
  }

  .up-takeaways-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Mobile ---- */
@media (max-width: 37rem) {
  .up-hero {
    min-height: 0;
  }

  .up-hero__content {
    padding: 3.5rem 1.75rem 3.5rem;
  }

  .up-hero__title {
    font-size: 2.75rem;
    margin-bottom: 2.5rem;
  }

  .up-hero__info {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .up-hero__info-col {
    gap: 2.5rem;
  }

  .up-hero__label {
    font-size: 1.1rem;
  }

  .up-hero__title {
    text-align: left;
  }

  .up-objective__content {
    padding: 0 1.75rem;
  }

  .up-objective__body {
    font-size: 2rem;
  }

  .up-page .project-overview {
    padding: 0 1.75rem;
  }

  .up-project-overview-inner {
    padding: 3.5rem 1.75rem 0;
  }

  .up-project-body h2 {
    text-align: left;
    margin: 0 0 1.5rem;
  }

  .up-objective__title {
    text-align: left;
  }

  .up-project-text-2 {
    max-width: 100%;
  }

  .up-art-text {
    width: 100%;
  }

  .up-art-figure {
    width: 100%;
    margin-right: 0;
  }
}
