/* ==================== FONT FACES ==================== */
/* Needed here because this page doesn't load index.css */


@font-face {
  font-family: 'MarundTrialCurved';
  src: url('fonts/26A1MarundTrial-3022Curved.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ABCDiatypeMono';
  src: url('fonts/ABCDiatypeSemi-MonoVariable-Trial.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal italic;
}

/* ==================== GLOBAL ==================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PPMori', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  background-color: #ffffff;
  color: #333;
  overflow-x: hidden;
  font-size: 16px;
}

/* ==================== DARK MODE ==================== */

body.dark-mode {
  background-color: #000;
  color: #fff;
}

body.dark-mode .footer-left p,
body.dark-mode .footer-right a {
  color: #fff;
}

body.dark-mode .footer-line,
body.dark-mode .footer-line-mobile {
  background-color: #fff;
}

body.dark-mode .get-in-text-top,
body.dark-mode .get-in-text-bottom,
body.dark-mode .get-in-text-top-mobile,
body.dark-mode .get-in-text-bottom-mobile {
  color: #fff;
}

/* Project content – these need explicit overrides because
   element-level color rules beat body.dark-mode { color } */
body.dark-mode .project-title,
body.dark-mode .project-description,
body.dark-mode .project-description p,
body.dark-mode .meta-value {
  color: #fff;
}

/* ==================== PROJECT HERO ==================== */

.project-hero {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  max-width: 100em;
  margin: 0 auto;
  padding: 0 5.625em;
}

.project-hero img,
.project-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==================== PROJECT CONTENT ==================== */

.project-container {
  max-width: 100em;
  margin: 0 auto;
  padding: 3.75em 5.625em 0;
}

.project-header {
  margin-bottom: 3.75em;
}

.project-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 3.5em;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5em;
  letter-spacing: -0.02em;
  width: 100%;
}

.project-content-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 7.5em;
}

.project-description {
  font-family: 'MarundTrialCurved', sans-serif;
  font-size: 0.875em;
  line-height: 1.65;
  color: #333;
}

.project-description p {
  margin-bottom: 1.25em;
  font-family: 'MarundTrialCurved', sans-serif;
}

.project-description strong { font-weight: 600; }
.project-description em { font-style: italic; }

/* ==================== META ==================== */

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  align-self: start;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.meta-label {
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 0.625em;
  font-weight: 300;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.03125em;
}

.meta-value {
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 0.75em;
  font-weight: 300;
  line-height: 1.6;
  color: #333;
}

/* ==================== PHOTO GRID ==================== */

.photo-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

.grid-item {
  width: 100%;
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-item.large {
  height: 700px;
}

.grid-row {
  display: flex;
  gap: 20px;
  height: 700px;
}

.grid-row .grid-item {
  flex: 1;
  height: 100%;
}

/* ==================== FOOTER ==================== */

footer {
  position: relative;
  height: 200px;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  padding: 0 2.5em 30px;
}

.interactive-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.footer-left p {
  color: #333;
  font-size: 14px;
  font-weight: normal;
  margin: 0;
  font-family: 'ABCDiatypeMono', monospace;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
  transition: opacity 0.2s ease;
  font-family: 'ABCDiatypeMono', monospace;
}

.footer-right a:hover {
  opacity: 0.7;
}

.footer-center {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.footer-line {
  width: 500px;
  height: 5px;
  background-color: #333;
  transition: all 0.2s ease;
}

.get-in-text-top,
.get-in-text-bottom {
  font-size: 64px;
  font-weight: normal;
  color: #333;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  line-height: 1;
  font-family: 'PPNeueMontreal', sans-serif;
}

.footer-center:hover .get-in-text-top,
.footer-center:hover .get-in-text-bottom {
  opacity: 1;
}

.footer-center:hover .footer-line {
  width: 520px;
}

.footer-center-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-bottom: 30px;
  text-decoration: none;
  color: #333;
}

.footer-line-mobile {
  width: 250px;
  height: 3px;
  background-color: #333;
}

.get-in-text-top-mobile,
.get-in-text-bottom-mobile {
  font-size: 40px;
  font-weight: normal;
  color: #333;
  line-height: 1;
  font-family: 'PPNeueMontreal', sans-serif;
}

/* ==================== MOBILE ==================== */

@media (max-width: 768px) {
  .project-hero {
    height: 50vh;
    padding: 0 1.25em;
  }

  .project-container {
    padding: 2.5em 1.875em 0;
  }

  .project-header {
    margin-bottom: 3.75em;
  }

  .project-title {
    font-size: 2.5em;
    margin-bottom: 2em;
  }

  .project-content-grid {
    grid-template-columns: 1fr;
    gap: 3.125em;
  }

  .project-description {
    font-size: 0.9375em;
  }

  .project-meta {
    gap: 1.25em;
  }

  /* Photo grid — remover alturas fixas, empilhar tudo */
  .grid-item.large {
    height: auto;
  }

  .grid-item img {
    height: auto;
    object-fit: contain;
  }

  .grid-row {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }

  .grid-row .grid-item {
    height: auto;
  }

  .photo-grid {
    gap: 12px;
    padding: 0 0 40px;
  }

  footer {
    padding: 0 1.5em 20px;
    height: 150px;
  }

  .footer-center {
    display: none !important;
  }

  .footer-center-mobile {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .project-hero {
    height: 50vh;
  }

  .project-container {
    padding: 2.5em 1.25em 0;
  }

  .project-header {
    margin-bottom: 3.125em;
  }

  .project-title {
    font-size: 2em;
    margin-bottom: 1em;
  }

  .project-content-grid {
    gap: 2.5em;
  }

  .project-description {
    font-size: 0.875em;
  }

  .meta-label {
    font-size: 0.5625em;
  }

  .meta-value {
    font-size: 0.6875em;
  }

  footer {
    height: auto;
    min-height: 250px;
    padding: 60px 20px 20px 20px;
    display: block;
  }

  .interactive-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    justify-content: center;
    padding-top: 20px;
  }

  .footer-center {
    display: none;
  }

  .footer-center-mobile {
    display: flex;
    order: 1;
    margin-bottom: 40px;
  }

  .footer-left {
    order: 3;
  }

  .footer-right {
    order: 4;
    margin-top: 15px;
    justify-content: center;
    gap: 30px;
  }

  .footer-left p,
  .footer-right a {
    font-size: 12px;
  }
}