/* Project-detail layout and Webflow animation hooks are retained from:
   https://masoniq-template.webflow.io/projects/the-forge-tower */
.journal-detail .project-detail-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-detail .project-detail-hero-title {
  max-width: 1050px;
  padding-inline: 24px;
  font-family: var(--serif);
  font-size: clamp(48px, 6.6vw, 100px);
  line-height: 1.05;
  text-transform: none;
  text-wrap: balance;
}
.journal-detail .project-detail-hero-badge {
  padding-inline: 20px;
}
.journal-detail .project-detail-hero-info-value a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.journal-detail .project-detail-overview-card-title {
  font-size: clamp(28px, 3vw, 40px);
  text-transform: none;
}
.journal-detail .project-detail-overview-card-text {
  font-size: 17px;
  line-height: 1.75;
}
.journal-detail .project-detail-overview-card {
  gap: 28px;
}
.journal-detail .project-detail-overview-card-hud {
  margin-bottom: 24px;
}
.journal-detail .project-detail-gallery-img,
.journal-detail .workflow-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-detail .raw-structure-image,
.journal-detail .final-render-image {
  width: 100vw;
  height: 100%;
  object-fit: cover;
}
.journal-detail .section-title,
.journal-detail .workflow-title,
.journal-detail .project-detail-features-card-title {
  text-transform: none;
}
.journal-detail .project-detail-features-card-title {
  font-size: 30px;
}
/* The template sizes the 44px block but never the icon inside it. An inline
   SVG carrying only a viewBox has no intrinsic size, so as a flex item it
   collapses to nothing and the icon never appears. */
.journal-detail .project-detail-features-card-icon,
.journal-detail .project-detail-features-card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.journal-detail .workflow-title {
  font-size: clamp(28px, 3vw, 42px);
}
.journal-detail .workflow-summary {
  line-height: 1.6;
}
.journal-detail .transformation-title {
  font-size: clamp(28px, 4vw, 58px);
  text-transform: none;
}
.journal-detail .transformation-summary {
  max-width: 680px;
}
.journal-detail .cta-title {
  max-width: 950px;
  /* The letter reveal masks each character to exactly one line box, so the
     template's 1.1 cuts the tail off g and y once the uppercase is dropped.
     Cormorant needs 1.213 to hold its font box; 1.35 matches the sign-in
     title and keeps clear of sub-pixel rounding at the mobile size. */
  line-height: 1.35;
  text-transform: none;
}
@media (max-width: 767px) {
  .journal-detail .project-detail-hero {
    height: 660px;
    min-height: 85svh;
  }
  .journal-detail .project-detail-hero-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journal-detail .project-detail-hero-info-item {
    padding: 24px 18px;
  }
  .journal-detail .project-detail-hero-info-item:last-child {
    grid-column: 1 / -1;
  }
  .journal-detail .project-detail-overview-card {
    padding: 32px 24px;
  }
  .journal-detail .project-detail-overview-card-text {
    font-size: 16px;
  }
  .journal-detail .project-detail-gallery-label {
    left: 12px;
    bottom: 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journal-detail .workflow-animation-trigger {
    height: auto;
  }
  .journal-detail .workflow-sticky {
    position: static;
    height: auto;
  }
  .journal-detail .workflow-card-main {
    height: auto;
    display: grid;
    gap: 24px;
  }
  .journal-detail .workflow-card {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .journal-detail .workflow-menu {
    display: none;
  }
  .journal-detail .project-detail-overview-card {
    position: relative;
    top: auto;
  }
}
