/* ============================================================
   THE LAST COG — page-specific styles
   Scoped entirely to .tlc-* classes and .tlc-page; does not affect other pages.
   ============================================================ */

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

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

.tlc-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;
}

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

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

/* ---- HERO ---- */
.tlc-hero {
  position: relative;
  min-height: 65vh;
  background-image: url("../img/IAT312-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) */
.tlc-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(32, 32, 32, 0.88);
  z-index: 1;
}

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

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

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

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

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

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

/* Labels match Figma: large, bold, white — not small uppercase caps */
.tlc-hero__label {
  font-size: 1.875rem;
  font-weight: 700;
  color: #f1f1f1;
}

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

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

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

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

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

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

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

/* ---- 01 PROJECT OVERVIEW (dark section — mirrors project.html pattern) ---- */
.tlc-project-body {
  background-color: #202020;
  border-radius: 2.5rem 2.5rem 0 0;
  padding-bottom: 6rem;
  margin-top: 4rem;
  width: 100%;
}

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

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

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

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

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

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

.tlc-section-divider {
  max-width: 76rem;
  margin: 4rem auto;
  padding: 0 9rem;
  box-sizing: border-box;
}

.tlc-section-divider::after {
  content: "";
  display: block;
  height: 1px;
  background-color: rgba(241, 241, 241, 0.2);
}

.tlc-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 ART DIRECTION two-column grid ---- */
.tlc-art-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  margin-top: 0;
}

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

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

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

.tlc-art-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.tlc-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;
}

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

/* 03 Art Direction: start images at "Visual Storytelling" level, not at h2 */
.tlc-ad-images {
  padding-top: 5rem;
}

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

/* 04 UI Design: push images to the right edge of their column */
.tlc-ui-images .tlc-art-figure {
  align-self: flex-end;
  margin-right: 0;
}

/* ---- 05 KEY TAKEAWAYS 2x2 grid ---- */
.tlc-takeaways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 6rem;
}

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

/* ---- LIGHTBOX ---- */
.tlc-art-img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
  will-change: transform;
}

.tlc-art-figure:not(.tlc-ui-speech):hover .tlc-art-img {
  transform: scale(1.04);
}

.tlc-ui-speech .tlc-art-img {
  cursor: default;
}

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

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

.tlc-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);
}

.tlc-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;
}

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

/* Speech bubble: smaller, pulled up to overlap bottom-left of image 1 */
.tlc-ui-speech {
  position: relative;
  margin-top: -8.7rem;
  margin-left: -6rem;
  margin-bottom: 4rem;
  z-index: 1;
  width: 80%;
  transform: translate(50px, 0);
}

.tlc-ui-speech .tlc-art-img {
  width: 55%;
  margin-left: 0;
}

/* Note image: vertically centered alongside paragraph 3 */
.tlc-ui-note {
  display: flex;
  align-items: center;
  flex: 1;
}

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

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

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

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

  .tlc-objective__content {
    padding: 0 4rem;
  }

  .tlc-objective__body {
    font-size: 2.5rem;
  }

  .tlc-page .project-overview {
    padding: 0 4rem;
  }

  .tlc-project-overview-inner {
    padding: 4rem 4rem 0;
  }

  .tlc-art-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

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

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

  .tlc-hero__title {
    font-size: 2.75rem;
    margin-bottom: 2.5rem;
    text-align: left;
  }

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

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

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

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

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

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

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

  /* Less space: art images sit closer to the 02 Ideation text above */
  /* Targets only the 03 Art Direction section (unique .tlc-ad-images), not 04 UI Design */
  .tlc-project-overview-inner:has(.tlc-ad-images) {
    padding-top: 0;
    margin-top: -1.2rem;
  }

  /* More gap: art-direction-4 breathes before the "03 Art Direction" h2 */
  .tlc-art-grid {
    gap: 3.5rem;
  }

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

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

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

  /* Speech bubble: overlap ui-design-1 on mobile like on desktop */
  .tlc-ui-speech {
    margin-top: -5rem;
    margin-left: 0;
    margin-bottom: -4rem;
    transform: translate(-20px, -50px);
  }

  .tlc-ui-speech .tlc-art-img {
    width: 60%;
  }

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

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