/* =========================================================
   MVSS STUDIO — projects.css
   Single-page case study template
========================================================= */

/* Active nav indicator */
.nav-link-active { color: var(--wh) !important; }
.nav-link-active::after { width: 100% !important; }

/* =========================================================
   PAGE SHELL
========================================================= */
.proj-page {
  min-height: 100vh;
  padding-top: 100px; /* nav clearance */
}

/* =========================================================
   HERO
========================================================= */
.proj-hero {
  position: relative;
  padding: 80px 64px 72px;
  max-width: 1280px;
  margin: 0 auto;
}

.proj-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 80%, rgba(0,230,62,.05) 0%, transparent 70%);
  pointer-events: none;
}

.proj-hero-inner { position: relative; z-index: 1; }

.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gr);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color .2s;
}
.proj-back:hover { color: var(--g); }

.proj-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gr);
  margin-bottom: 20px;
}
.proj-kicker-dot { color: var(--g); }

.proj-title {
  font-family: var(--fd);
  font-size: clamp(56px, 8vw, 120px);
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--wh);
  margin-bottom: 32px;
}

.proj-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proj-tag {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--bd);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gr);
  background: rgba(255,255,255,.02);
}

/* =========================================================
   IMAGE GALLERY GRID
========================================================= */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 64px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Grid item base */
.gi {
  position: relative;
  overflow: hidden;
  background: var(--sf);
  border-radius: 4px;
  cursor: none;
}

.gi-span1 {
  grid-column: span 1;
  aspect-ratio: 1 / 1.02;
}
.gi-span2 {
  grid-column: span 2;
  aspect-ratio: 16 / 8;
}
.gi-span3 {
  grid-column: span 3;
  aspect-ratio: 21 / 8;
}

.gi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--eoe);
}

.gi:hover img { transform: scale(1.04); }

/* Expand icon overlay */
.gi-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 242, 38, 0.295);
  opacity: 0;
  transition: opacity .25s;
  color: var(--wh);
}
.gi:hover .gi-overlay { opacity: 1; }

/* =========================================================
   BODY CONTENT
========================================================= */
.proj-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 64px 100px;
}

.proj-overview {
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--bd);
}

.proj-overview p {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
  color: var(--lg);
  font-weight: 300;
}

.proj-sections {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.proj-section-h {
  font-family: var(--fd);
  font-size: clamp(32px, 3.5vw, 52px);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--wh);
  margin-bottom: 20px;
  line-height: 1;
}

.proj-section-p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--lg);
}

/* =========================================================
   PULL QUOTE
========================================================= */
.proj-quote-wrap {
  padding: 100px 64px;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  background: rgba(0,230,62,.022);
}

.proj-quote {
  max-width: 780px;
  margin: 0 auto;
  padding-left: 40px;
  border-left: 3px solid var(--g);
}

.proj-quote-text {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.6;
  color: var(--whg);
  font-weight: 300;
  margin-bottom: 28px;
}

.proj-quote-cite {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: normal;
}

.proj-quote-author {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--g);
}

.proj-quote-role {
  font-size: 12px;
  color: var(--gr);
  letter-spacing: .06em;
}

/* =========================================================
   PREV / NEXT NAVIGATION
========================================================= */
.proj-nav-bar {
  border-top: 1px solid var(--bd);
}

.proj-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
}

.proj-nav-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 52px 64px;
  text-decoration: none;
  transition: background .2s;
}
.proj-nav-item:hover { background: rgba(255,255,255,.025); }

.proj-nav-next {
  border-left: 1px solid var(--bd);
  align-items: flex-end;
  text-align: right;
}

.pn-dir {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gr);
  transition: color .2s;
}
.proj-nav-item:hover .pn-dir { color: var(--g); }

.pn-title {
  font-family: var(--fd);
  font-size: clamp(22px, 3vw, 44px);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--wh);
  line-height: 1;
  transition: color .2s;
}
.proj-nav-item:hover .pn-title { color: var(--g); }

/* =========================================================
   BOTTOM CTA STRIP
========================================================= */
.proj-cta-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 100px 64px;
  text-align: center;
  border-top: 1px solid var(--bd);
}

.proj-cta-label {
  font-size: 13px;
  color: var(--gr);
  letter-spacing: .1em;
}

.proj-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  background: var(--g);
  color: var(--bk);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.proj-cta-btn:hover {
  background: #1fff55;
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,230,62,.25);
}

/* =========================================================
   404 STATE
========================================================= */
.proj-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 64px;
  gap: 20px;
}

.proj-404-code {
  font-family: var(--fd);
  font-size: 160px;
  color: var(--g);
  line-height: 1;
  letter-spacing: .05em;
}

.proj-404 h1 {
  font-size: 20px;
  color: var(--gr);
  font-weight: 400;
}

.proj-404-back {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--g);
  text-decoration: none;
  transition: opacity .2s;
}
.proj-404-back:hover { opacity: .7; }

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, .94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  padding: 64px;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--bd);
  border-radius: 50%;
  color: var(--wh);
  cursor: none;
  transition: background .2s, color .2s;
  z-index: 1;
}
.lb-close:hover { background: rgba(255,255,255,.12); }

.lb-stage {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  flex: 1;
  min-height: 0;
}

.lb-img-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lb-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 3px;
  transition: opacity .14s ease;
  display: block;
}
.lb-img.fade-out { opacity: 0; }

.lb-arrow {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--bd);
  border-radius: 50%;
  color: var(--wh);
  cursor: none;
  transition: background .2s, border-color .2s;
}
.lb-arrow:hover {
  background: rgba(0,230,62,.12);
  border-color: var(--g);
  color: var(--g);
}

.lb-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  color: var(--gr);
  letter-spacing: .08em;
}

.lb-counter { color: var(--g); font-weight: 600; }

/* =========================================================
   SCROLL REVEAL (inherit from styles.css .rv pattern)
========================================================= */
.proj-page .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--eoe), transform .65s var(--eoe);
}
.proj-page .rv.d1 { transition-delay: .08s; }
.proj-page .rv.d2 { transition-delay: .16s; }
.proj-page .rv.d3 { transition-delay: .24s; }

.proj-page .rv.in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   GP*MEDIA — STICKER WALL
========================================================= */
.gp-sticker-wall {
  margin: 0;
  padding: 80px 64px 100px;
  background: #0b0d10;
  border-top: 1px solid rgba(230,57,70,0.25);
  border-bottom: 1px solid rgba(230,57,70,0.25);
  position: relative;
  overflow: hidden;
}

/* scanline texture overlay */
.gp-sticker-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* corner accent lines */
.gp-sticker-wall::after {
  content: '';
  position: absolute;
  top: 20px; left: 20px;
  width: 60px; height: 60px;
  border-top: 2px solid #e63946;
  border-left: 2px solid #e63946;
  pointer-events: none;
  z-index: 1;
}

.gp-sw-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #38e1d4;
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.gp-sw-label span { color: rgba(255,255,255,0.3); }

.gp-sw-sub {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.gp-sw-surface {
  position: relative;
  width: 100%;
  height: 560px;
  margin-top: 0;
}

.gp-sticker {
  position: absolute;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.7));
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: default;
  will-change: transform;
}

.gp-sticker:hover {
  filter: drop-shadow(0 8px 28px rgba(230,57,70,0.4)) drop-shadow(0 0 12px rgba(56,225,212,0.2));
  z-index: 10;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .proj-gallery { padding: 0 40px 80px; }
  .proj-body    { padding: 0 40px 80px; }
  .proj-hero    { padding: 60px 40px 56px; }
  .proj-quote-wrap { padding: 72px 40px; }
  .proj-nav-item { padding: 40px; }
  .proj-cta-strip { padding: 80px 40px; }
}

@media (max-width: 768px) {
  .proj-hero    { padding: 48px 28px 48px; }
  .proj-gallery {
    grid-template-columns: 1fr 1fr;
    padding: 0 28px 64px;
    gap: 6px;
  }
  .gi-span1 { grid-column: span 1; aspect-ratio: 1; }
  .gi-span2 { grid-column: span 2; aspect-ratio: 16/7; }
  .gi-span3 { grid-column: span 2; aspect-ratio: 16/7; }

  .proj-body    { padding: 0 28px 64px; }
  .proj-overview { margin-bottom: 48px; padding-bottom: 48px; }

  .proj-quote-wrap { padding: 56px 28px; }
  .proj-quote   { padding-left: 24px; }

  .proj-nav-inner { grid-template-columns: 1fr; }
  .proj-nav-next  { border-left: none; border-top: 1px solid var(--bd); align-items: flex-start; text-align: left; }
  .proj-nav-item  { padding: 32px 28px; }

  .proj-cta-strip { padding: 64px 28px; }

  .lightbox { padding: 20px 16px; }
  .lb-stage { gap: 12px; }
  .lb-arrow { width: 38px; height: 38px; }

  .gp-sticker-wall { padding: 56px 28px 72px; }
  .gp-sw-surface   { height: 480px; }
}

@media (max-width: 480px) {
  .proj-gallery { grid-template-columns: 1fr; }
  .gi-span1,
  .gi-span2,
  .gi-span3 { grid-column: span 1; aspect-ratio: 4/3; }

  .gp-sw-surface { height: 420px; }
}
