


/* ==================== 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;
}

body.dark-mode .project-title,
body.dark-mode .project-description,
body.dark-mode .project-description p,
body.dark-mode .meta-value {
  color: #fff;
}

/* ==================== 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: 1.5em 5.625em 0;
}

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

/* ==================== NOM TITLE ==================== */

/* Mobile: regular text title — HIDDEN on desktop */
.nom-title-mobile {
  font-family: 'PPMori', sans-serif;
  font-size: 3.5em;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.5em;
  letter-spacing: -0.02em;
  width: 100%;
  color: #111;
  display: none !important;
}

body.dark-mode .nom-title-mobile {
  color: #fff;
}

/* Desktop: p5 particle canvas */
.nom-title-canvas {
  width: 100%;
  height: 160px;
  margin-bottom: 0.5em;
  filter: url('#liquid-grain');
}

.nom-title-canvas canvas {
  display: block;
}

/* ==================== PROJECT TEXT + META ==================== */

.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: 1.25em;
  margin-bottom: 60px;
}

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

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

/* Full-width variants */
.grid-item.full-width {
  width: 100%;
  height: 680px;
}

.grid-item.full-width.short {
  height: 320px;
}

.grid-item.full-width.tall {
  height: 680px;
}

/* Default: tall full-width images use contain (no crop) */
.grid-item.full-width.tall img {
  object-fit: contain;
}

/* Cover override for specific items (e.g. gif_revista) */
.grid-item.full-width.tall.cover img {
  object-fit: cover;
}

/* Three-column row */
.grid-row.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25em;
  height: 560px;
}

.grid-row.three-col .grid-item {
  height: 100%;
}

/* Two-column row */
.grid-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25em;
  height: 560px;
}

.grid-row.two-col .grid-item {
  height: 100%;
}

/* ==================== VIDEO FACADE ==================== */

.video-facade {
  position: relative;
  cursor: pointer;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-facade:hover {
  background: #1a1a1a;
}

.video-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.2s ease;
  pointer-events: none;
}

.video-facade:hover .video-play-btn {
  transform: scale(1.12);
  background: #fff;
}

.play-icon {
  font-size: 20px;
  color: #111;
  margin-left: 4px;
  line-height: 1;
}

.video-label {
  position: absolute;
  bottom: 1.25em;
  left: 1.5em;
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 0.5625em;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

/* ==================== 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 — 768px ==================== */

/* ==================== MOBILE — 768px ==================== */

@media (max-width: 768px) {

  /* ---- Title ---- */
  .nom-title-mobile { display: block !important; font-size: 2.5em; margin-bottom: 1em; }
  .nom-title-canvas { display: none !important; }

  /* ---- Layout ---- */
  .project-hero { height: 50vh; padding: 0 1.25em; }

  .project-container { padding: 2em 1.5em 0; }

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

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

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

  .project-meta { gap: 1.25em; }

  /* ---- Photo grid: flatten everything ---- */

  /* All grid rows become vertical stacks */
  .grid-row,
  .grid-row.two-col,
  .grid-row.three-col {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    gap: 0.625em;
  }

  /* Exception: logo GIF row keeps 3 columns */
  .grid-row.three-col.logo-gifs {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    flex-direction: unset !important;
    gap: 0.5em;
  }

  .grid-row.three-col.logo-gifs .grid-item {
    aspect-ratio: 1 / 1;
    height: auto !important;
  }

  .grid-row.three-col.logo-gifs .grid-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* All grid items: full width, let content decide height */
  .grid-item,
  .grid-row .grid-item {
    width: 100% !important;
    height: auto !important;
    flex: unset !important;
    aspect-ratio: unset !important;
  }

  /* All media: natural proportions, no cropping */
  .grid-item img,
  .grid-item video {
    width: 100% !important;
    height: auto !important;
    object-fit: unset !important;
    display: block;
  }

  /* Full-width containers: auto height too */
  .grid-item.full-width,
  .grid-item.full-width.tall,
  .grid-item.full-width.short {
    height: auto !important;
  }

  /* YouTube: fixed 16:9 so it's not a collapsed div */
  .youtube-item {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 180px;
  }

  /* ---- Footer ---- */
  footer { padding: 0 1.5em 20px; height: 150px; }
  .footer-center        { display: none !important; }
  .footer-center-mobile { display: flex !important; }
}

/* ==================== MOBILE — 480px ==================== */

@media (max-width: 480px) {
  .project-container  { padding: 1.75em 1.25em 0; }
  .nom-title-mobile   { font-size: 2em; margin-bottom: 0.75em; }
  .project-description { font-size: 0.875em; }
  .meta-label         { font-size: 0.5625em; }
  .meta-value         { font-size: 0.6875em; }
  .photo-grid         { gap: 0.5em; }

  footer {
    height: auto;
    min-height: 250px;
    padding: 60px 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; }
}