﻿/* #region PROJECT HERO */
.project-page .eyebrow {
  color: var(--project-accent);
}

.project-main {
  position: relative;
  z-index: 1;
}

.project-section-header {
  margin-bottom: 1.5rem;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin-bottom: calc(var(--tile-step-y, 60px) * 1.5);
  position: relative;
  isolation: isolate;
}

.project-hero__copy, .project-hero__meta {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.project-hero__copy h1 {
    margin-top: 0.75rem;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.project-hero__copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(86, 202, 248, 0.35);
  border-radius: 999px;
  background: rgba(86, 202, 248, 0.08);
  backdrop-filter: blur(4px);
}

.project-hero__copy .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--project-accent);
  box-shadow: 0 0 10px var(--project-accent);
  animation: hero-dot 2s ease-in-out infinite;
}

@keyframes hero-dot { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .project-hero__copy .eyebrow::before { animation: none; }
}

.project-hero__art {
  grid-area: 1 / 1;
  justify-self: center;
  width: var(--hero-grid-width, calc(100% - 2 * var(--tile-step-x, 60px) * var(--hero-inset-cols, 1)));
  left: var(--hero-grid-offset, 0px);
}

.project-hero__art {
  position: relative;
  align-self: start;
  aspect-ratio: 1344 / 768;
  max-height: 82vh;                      /* very wide screens: crop instead of towering */
  border-radius: var(--tile-corner-radius, 14px);
  overflow: hidden;
}

.project-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.equalizer {
  --eq-height: 20%;                      /* tunable: share of the picture the bars can cover */
  width: 100%;
  height: var(--eq-height);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.equalizer__bars {
  width: 100%;
  height: 100%;
}

.project-hero__meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

@media (max-width: 980px) {
  .project-hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .project-hero__copy,
  .project-hero__art {
    grid-column: auto;
    grid-row: auto;
  }

  .project-hero__copy {
        grid-row: 2;
    max-width: none;
    margin-top: calc(var(--tile-unit-step, 60px) * -1.5);
  }

  .project-hero__art {
    grid-row: 1;
    justify-self: center;
    width: var(--hero-grid-width, 90%);
  }
}

@media (max-width: 720px) {
  .project-hero__meta {
    gap: 0.5rem;
    font-size: 0.6rem;
  }
}
/* #endregion PROJECT HERO */

/* #region PROJECT CONTENT */
.project-pitch,
.project-features,
.project-status,
.project-looking,
.project-cta {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.project-pitch__text {
  max-width: 68ch;
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.project-feature-carousel {
  --project-feature-background: #211e1b;
  position: relative;
  width: min(100%, var(--project-hero-art-width, 100%));
  margin-inline: auto;
  padding: 0;
  border: 1px solid rgba(86, 202, 248, 0.3);
  border-radius: 1rem;
  background: var(--project-feature-background);
  overflow: hidden;
}

.project-feature-carousel__header {
  position: absolute;
  z-index: 3;
  top: 1.25rem;
  left: 1.5rem;
}

.project-feature-carousel__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-feature-carousel__tab {
  min-height: 52px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-muted);
  font: 600 1.1rem/1.2 var(--font-card-title);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-feature-carousel__tab:hover:not(.is-active) {
    background: rgba(86, 202, 248, 0.1);
    color: var(--color-text);
  }
}

.project-feature-carousel__tab.is-active {
  background: var(--project-accent);
  color: #fff;
}

.project-feature-carousel__viewport {
  position: relative;
  overflow: hidden;
}

.project-feature-carousel__track {
  display: flex;
  transition: transform 0.45s ease;
}

.project-feature-slide {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 430px;
  padding: 0;
}

.project-feature-slide--create {
  grid-template-columns: minmax(0, 1fr);
}

.project-feature-slide__copy {
  position: relative;
  z-index: 2;
  align-self: stretch;
  width: 46%;
  padding: 6.25rem 3rem 2rem 2rem;
  background: #211e1b;
  clip-path: polygon(0 0, 100% 0, 96.9% 100%, 0 100%);
}

.project-feature-slide p {
  max-width: 48ch;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: #141110;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.project-feature-mix {
  width: fit-content;
  max-width: 100%;
  margin-top: 1rem;
}

.project-feature-mix__tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: max-content;
  max-width: 100%;
}

.project-feature-mix__track {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-feature-mix__track:hover {
    transform: translateY(-1px);
  }
}

.project-feature-mix__track[aria-pressed="true"] {
  box-shadow: 0 0 14px rgba(86, 202, 248, 0.45);
}

.project-feature-mix__track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-feature-mix__track:focus-visible,
.project-feature-mix__master:focus-visible {
  outline: 2px solid var(--project-accent);
  outline-offset: 3px;
}

.project-feature-mix__volume {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.85rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.project-feature-mix__master {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--project-accent);
}

.project-feature-mix__volume > span {
  grid-column: 1;
}

.project-feature-mix__volume-value {
  color: var(--color-text);
  grid-column: 2;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.project-feature-slide__art {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 44%;
  width: auto;
  height: 100%;
}

.project-feature-slide__art img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-feature-slide__art-core-clip {
  position: absolute;
  z-index: 1;
  inset: 5%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.project-feature-slide__art img.project-feature-slide__art-core {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  transform: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.project-feature-slide__art-frame {
  z-index: 0;
  object-fit: fill;
}

.project-feature-carousel__tab:focus-visible {
  outline: 2px solid var(--project-accent);
  outline-offset: 3px;
}

.project-looking__card,
.project-status__segment {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: rgba(33, 30, 27, 0.7);
}

.project-status__segment h3,
.project-looking__card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-card-title);
  line-height: 1.2;
}

.project-status__segment p,
.project-looking__card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.project-status__segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.project-status__segment {
  padding: 1.25rem 1.2rem 1.35rem;
}

.project-status__index {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--project-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.project-looking__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-looking__card {
  padding: 1rem 1.4rem 0.5rem;
}

.project-cta-band {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid rgba(86, 202, 248, 0.25);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(86, 202, 248, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.project-cta-band__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 760px);
  text-align: center;
}

.project-cta-band__copy h2 {
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.project-cta-band__button {
  flex-shrink: 0;
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 1rem 1.75rem;
  font-size: 1.3em;
}

.project-cta-band__button.btn-primary {
  background: linear-gradient(135deg, #56CAF8 0%, #26263F 100%);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .project-cta-band__button.btn-primary:hover {
    background: linear-gradient(135deg, #56CAF8 0%, #56CAF8 100%);
    color: #111827;
  }
}

@media (max-width: 980px) {
  .project-status__segments,
  .project-looking__grid {
    grid-template-columns: 1fr;
  }

  .project-cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-cta-band__button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 980px) {
  .project-feature-carousel {
    width: 100%;
    padding: 0.75rem;
  }

  .project-feature-carousel__tabs {
    flex-wrap: nowrap;
  }

  .project-feature-carousel__tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.65rem 0.3rem;
    font-size: clamp(0.8rem, 3.5vw, 1rem);
    white-space: nowrap;
  }

  .project-feature-carousel__header {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 1rem;
  }

  .project-feature-slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 0;
    padding: 0.75rem 0.25rem 1.25rem;
  }

  .project-feature-slide__copy {
    position: static;
    width: 100%;
    padding: 0;
    background: none;
    clip-path: none;
  }

  .project-feature-slide__art {
    position: relative;
    inset: auto;
    justify-self: center;
    align-self: start;
    width: min(100%, 500px);
    height: auto;
    aspect-ratio: 1309 / 665;
    min-height: 0;
    overflow: hidden;
  }

  .project-feature-slide__art-core-clip {
    inset: 2.5%;
    overflow: hidden;
  }
}

@media (max-width: 720px) and (pointer: coarse) {
  .project-feature-carousel__viewport {
    touch-action: pan-y;
  }
}
/* #endregion PROJECT CONTENT */
