/* PROTOCOL NIGHTMARE — composição exclusiva da página de projeto. */
.project-detail-page {
  background: var(--color-section);
}

.project-hero {
  position: relative;
  display: grid;
  min-height: 640px;
  overflow: hidden;
  place-items: center;
  background: var(--color-card-dark);
}

.project-hero-bg,
.project-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-hero-bg {
  object-fit: cover;
  object-position: center;
}

.project-hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .90), rgba(0, 0, 0, .42) 53%, rgba(0, 0, 0, .72)),
    linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .76));
}

.project-hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--project-max-width), calc(100% - var(--site-side-gap)));
  padding: 126px 0 78px;
  color: var(--color-white);
}

.project-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: 42px;
  color: rgba(255, 255, 255, .72);
  font-size: var(--font-size-small);
}

.project-breadcrumb a:hover {
  color: var(--color-white);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-3);
  color: var(--color-red-bright);
  font-family: var(--font-section);
  font-size: var(--font-size-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red-bright);
  box-shadow: 0 0 16px rgba(209, 25, 43, .85);
}

.project-hero h1 {
  max-width: 540px;
  text-shadow: 0 6px 28px rgba(0, 0, 0, .75);
}

.project-hero-copy {
  max-width: 540px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, .82);
}

.project-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.project-meta-section {
  position: relative;
  z-index: 2;
  border-block: 1px solid rgba(255, 255, 255, .08);
  background: #0b0b0b;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.project-meta-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 118px;
  gap: var(--space-1);
  padding: 28px 26px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.project-meta-grid > div:first-child {
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.project-meta-grid span {
  color: var(--color-red-bright);
  font-family: var(--font-section);
  font-size: var(--font-size-label);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-meta-grid strong {
  color: var(--color-white);
  font-family: var(--font-title);
  font-size: var(--font-size-small);
  font-weight: 500;
}

.project-overview,
.project-gallery-section {
  background: #101010;
}

.project-systems-section,
.project-challenges-section {
  background: var(--color-bg-deep);
}

.project-development-section,
.project-contact-section {
  background: var(--color-section);
}

.project-outcome-section {
  border-block: 1px solid rgba(209, 25, 43, .22);
  background: linear-gradient(115deg, #17090a, #080808 58%);
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(46px, 8vw, 124px);
}

.project-section-copy .section-title,
.project-heading .section-title,
.project-outcome .section-title {
  margin-bottom: var(--section-title-subtitle-gap);
}

.project-section-copy .section-subtitle,
.project-heading .section-subtitle,
.project-outcome .section-subtitle {
  max-width: 860px;
}

.project-feature-image {
  min-height: 400px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  background: var(--color-card);
}

.project-feature-image img {
  width: 100%;
  min-height: 400px;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.project-feature-image:hover img {
  transform: scale(1.035);
}

.project-heading {
  max-width: 860px;
  margin-bottom: 42px;
}

.center-heading {
  text-align: left;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.system-card {
  min-height: 252px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.system-card:hover {
  border-color: rgba(209, 25, 43, .75);
  background: rgba(209, 25, 43, .08);
  transform: translateY(-5px);
}

.system-card > span {
  display: block;
  margin-bottom: 46px;
  color: var(--color-red-bright);
  font-family: var(--font-special);
  font-size: var(--font-size-small);
}

.system-card .card-title,
.development-timeline .card-title,
.challenge-list .card-title {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-card-title-small);
}

.system-card p,
.development-timeline p,
.challenge-list p {
  color: rgba(255, 255, 255, .66);
  font-size: var(--font-size-card-text);
  line-height: 1.65;
}

.development-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.development-timeline article {
  position: relative;
  padding: 36px 26px 6px 0;
}

.development-timeline article + article {
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.development-timeline article > span {
  position: absolute;
  top: -11px;
  display: grid;
  width: 22px;
  height: 22px;
  border: 3px solid var(--color-section);
  border-radius: 50%;
  place-items: center;
  background: var(--color-red-bright);
  color: transparent;
}

.challenge-list {
  margin-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.challenge-list > div {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  background: var(--color-card-dark);
  cursor: pointer;
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item::after {
  content: 'View image';
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, .67);
  color: var(--color-white);
  font-family: var(--font-nav);
  font-size: var(--font-size-micro);
  opacity: 0;
  transform: translateY(5px);
  transition: .2s ease;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.project-outcome {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.project-outcome .section-title,
.project-outcome .section-subtitle,
.project-outcome .section-text {
  margin-inline: auto;
}

.outcome-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.outcome-tags span {
  padding: 10px 14px;
  border: 1px solid rgba(209, 25, 43, .48);
  background: rgba(209, 25, 43, .08);
  color: var(--color-white);
  font-family: var(--font-nav);
  font-size: var(--font-size-caption);
}

.project-contact-section {
  padding-block: var(--section-padding-block);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  padding: 42px;
  place-items: center;
  background: rgba(0, 0, 0, .92);
}

.gallery-modal.is-open {
  display: grid;
}

.gallery-modal img {
  max-width: min(var(--project-max-width), 100%);
  max-height: calc(100vh - 84px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65);
}

.gallery-modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  border: 0;
  background: transparent;
  color: var(--color-white);
  font-size: var(--font-size-icon-large);
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .project-meta-grid,
  .systems-grid,
  .development-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-meta-grid > div:nth-child(odd) {
    border-left: 1px solid rgba(255, 255, 255, .08);
  }

  .project-meta-grid > div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .development-timeline article:nth-child(3) {
    margin-top: 34px;
    padding-left: 0;
    border-left: 0;
  }

  .development-timeline article:nth-child(4) {
    margin-top: 34px;
  }
}

@media (max-width: 767.98px) {
  .project-hero {
    min-height: 570px;
  }

  .project-hero-content {
    width: min(var(--project-max-width), calc(100% - 32px));
    padding-top: 112px;
  }

  .project-breadcrumb {
    margin-bottom: var(--space-5);
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-layout--reverse .project-feature-image {
    order: 2;
  }

  .project-feature-image,
  .project-feature-image img {
    min-height: 280px;
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-meta-grid > div {
    min-height: 104px;
    padding: 22px 16px;
  }

  .systems-grid,
  .development-timeline {
    grid-template-columns: 1fr;
  }

  .development-timeline article,
  .development-timeline article + article {
    margin: 0;
    padding: 28px 0 0 26px;
    border-left: 1px solid rgba(255, 255, 255, .12);
  }

  .development-timeline article > span {
    left: -11px;
  }

  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .gallery-modal {
    padding: 28px 16px;
  }
}


/* PROTOCOL NIGHTMARE — case de produção e bastidores técnicos. */
.project-production-section,
.project-tools-section {
  background: var(--color-bg-deep);
}

.project-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.project-hero-tags span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .88);
  font-family: var(--font-nav);
  font-size: var(--font-size-caption);
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.production-card {
  min-height: 100%;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.production-card:hover {
  border-color: rgba(209, 25, 43, .75);
  background: rgba(209, 25, 43, .08);
  transform: translateY(-5px);
}

.production-card > span {
  display: block;
  margin-bottom: 24px;
  color: var(--color-red-bright);
  font-family: var(--font-special);
  font-size: var(--font-size-small);
}

.production-card .card-title {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-card-title-small);
}

.production-card p {
  min-height: 116px;
  color: rgba(255, 255, 255, .66);
  font-size: var(--font-size-card-text);
  line-height: 1.65;
}

.production-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
  list-style: none;
}

.production-card li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, .70);
  font-size: var(--font-size-caption);
  line-height: 1.45;
}

.production-card li::before {
  content: '';
  position: absolute;
  top: .62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red-bright);
  box-shadow: 0 0 12px rgba(209, 25, 43, .65);
}

.feature-pill-grid,
.technology-grid {
  display: grid;
  gap: 12px;
}

.feature-pill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-5);
}

.technology-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-5);
}

.feature-pill-grid span,
.technology-grid span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  color: rgba(255, 255, 255, .84);
  font-family: var(--font-nav);
  font-size: var(--font-size-small);
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

.feature-pill-grid span::before,
.technology-grid span::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--color-red-bright);
  box-shadow: 0 0 12px rgba(209, 25, 43, .65);
}

.feature-pill-grid span:hover,
.technology-grid span:hover {
  border-color: rgba(209, 25, 43, .72);
  background: rgba(209, 25, 43, .08);
  transform: translateY(-3px);
}

.project-tools-section .project-heading {
  max-width: 980px;
}

@media (max-width: 991.98px) {
  .production-grid,
  .technology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-card p {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .production-grid,
  .feature-pill-grid,
  .technology-grid {
    grid-template-columns: 1fr;
  }
}
