/* ─────────────────────────────────────────────────────────
   PROJECT PAGE — SHYFT
   Cinematic · Adrenaline · Raw
   Post-production credit sheet aesthetic
   ───────────────────────────────────────────────────────── */

/* ── BREADCRUMB STRIP ──────────────────────────────────── */
.stories-intro {
  margin-top: var(--nav-h);
  padding: 0 64px;
  height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #111;
  opacity: 0;
  animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) 0s forwards;
}
.stories-intro-label {
  font-family: var(--font-secondary);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 1;
  animation: none;
}
.stories-intro-desc { display: none; }

/* ── EMBED — FULL BLEED ────────────────────────────────── */
.embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #080808;
  margin: 0;
  padding: 0;
  border-radius: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.embed-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0f0f0f 25%, #181818 50%, #0f0f0f 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.embed-skeleton svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
}

/* ── PROJECT INFO ──────────────────────────────────────── */
.project-info {
  padding: 48px 64px 96px;
  max-width: none;
  border-top: 2px solid var(--red);
}

/* ── HEADER ROW: back link + project number ────────────── */
.project-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  transition: color 0.2s;
  padding-top: 4px;
}
.back-link:hover { color: var(--white); }
.back-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-index {
  font-family: var(--font-main);
  font-size: clamp(72px, 10vw, 140px);
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 0.85;
  letter-spacing: -0.03em;
  user-select: none;
  pointer-events: none;
  margin-top: -16px;
}

/* ── TITLE ─────────────────────────────────────────────── */
#project-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(48px, 8.5vw, 118px);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--red);
  line-height: 0.9;
  margin-bottom: 40px;
  max-width: 90%;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.05s forwards;
}

/* ── META STRIP ────────────────────────────────────────── */
.divider { display: none; }

.meta-row {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  margin-bottom: 52px;
  border-top: 1px solid #1c1c1c;
  border-bottom: 1px solid #1c1c1c;
  scrollbar-width: none;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.18s forwards;
}
.meta-row::-webkit-scrollbar { display: none; }

.meta-item {
  padding: 22px 52px 22px 0;
  margin-right: 52px;
  position: relative;
  flex-shrink: 0;
}
.meta-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background: #1c1c1c;
}
.meta-item:last-child {
  padding-right: 0;
  margin-right: 0;
}
.meta-item:last-child::after { display: none; }

.meta-label {
  font-family: var(--font-secondary);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  margin-bottom: 9px;
}
.meta-value {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── DESCRIPTION ───────────────────────────────────────── */
#project-desc {
  font-family: var(--font-secondary);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400;
  line-height: 2.05;
  color: rgba(255,255,255,0.42);
  max-width: 64ch;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.28s forwards;
}
#project-desc:empty { display: none; }
#project-desc.project-desc-placeholder {
  color: rgba(255,255,255,0.18);
  font-style: italic;
}

/* ── CTAS ──────────────────────────────────────────────── */
.project-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.36s forwards;
}
.btn-vimeo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-secondary);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 0;
  padding: 15px 30px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-vimeo:hover { background: transparent; color: var(--red); }
.btn-vimeo svg   { width: 13px; height: 13px; fill: currentColor; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-secondary);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  padding: 15px 30px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.45); }

/* ── MORE PROJECTS ─────────────────────────────────────── */
.more-section {
  padding: 56px 64px 80px;
  border-top: 1px solid #111;
}
.more-section h3 {
  font-family: var(--font-secondary);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #111;
}
.more-card {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.more-card.visible { opacity: 1; transform: translateY(0); }
.more-card:hover .more-thumb { transform: scale(1.05); }
.more-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--gray);
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.more-thumb.loading {
  background: linear-gradient(90deg, #181818 25%, #222 50%, #181818 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
}
.more-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 55%);
}
.more-label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .project-info  { padding: 44px 48px 80px; }
  .more-section  { padding: 48px 48px 64px; }
  .stories-intro { padding: 0 48px; }
  .meta-item     { padding: 20px 36px 20px 0; margin-right: 36px; }
}
@media (max-width: 768px) {
  .project-info  { padding: 36px 24px 64px; }
  .more-section  { padding: 40px 24px 56px; }
  .stories-intro { padding: 0 24px; }
  .meta-row      { flex-wrap: wrap; border-bottom: none; }
  .meta-item {
    width: 50%;
    padding: 16px 16px 16px 0;
    margin-right: 0;
    border-bottom: 1px solid #1c1c1c;
  }
  .meta-item::after { display: none; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .project-index { font-size: clamp(56px, 14vw, 96px); }
  #project-title { max-width: 100%; }
}
@media (max-width: 480px) {
  .more-grid { grid-template-columns: 1fr; }
  .meta-item { width: 50%; }
}
