/* ============================================
   ARVON MEDIA — Work / portfolio page
   Standalone: loaded only by work.html
   ============================================ */

.work-sec { padding: 90px 0; }
.work-sec.tight { padding-top: 10px; }

/* ---------- Website project cards ---------- */
.proj {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 54px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--grey-dark, #2a2a2a);
}
.proj:last-child { border-bottom: none; }
.proj:nth-child(even) .proj-shot { order: -1; }

.proj-shot {
  position: relative;
  border: 1px solid var(--grey-dark, #2a2a2a);
  background: var(--black-2, #111);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color .4s, transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s;
}
.proj-shot img { width: 100%; height: auto; display: block; }
.proj-shot:hover {
  border-color: rgba(212,175,55,.45);
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0,0,0,.55);
}
.proj-shot::after {
  content: 'View full screenshot';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 18px 14px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold, #D4AF37);
  background: linear-gradient(transparent, rgba(11,11,11,.92));
  opacity: 0;
  transition: opacity .35s;
}
.proj-shot:hover::after { opacity: 1; }

.proj-num {
  font-family: var(--font-alt, 'Space Grotesk', sans-serif);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--gold, #D4AF37);
  margin-bottom: 14px;
}
.proj h3 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}
.proj .proj-type {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8f8f8f;
  margin-bottom: 18px;
}
.proj p { color: #c0c0c0; font-weight: 300; font-size: 15px; line-height: 1.75; margin-bottom: 20px; }

.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.proj-tags span {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #bdbdbd;
  border: 1px solid var(--grey-dark, #2a2a2a);
  padding: 7px 13px;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold, #D4AF37);
  border-bottom: 1px solid rgba(212,175,55,.4);
  padding-bottom: 5px;
  transition: gap .3s, border-color .3s;
}
.proj-link:hover { gap: 16px; border-bottom-color: var(--gold, #D4AF37); }
.proj-note {
  font-size: 12.5px;
  color: #7e7e7e;
  font-style: normal;
  letter-spacing: .02em;
}

@media (max-width: 880px) {
  .proj { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .proj:nth-child(even) .proj-shot { order: 0; }
}

/* ---------- Video ---------- */
.vid-main {
  position: relative;
  border: 1px solid var(--grey-dark, #2a2a2a);
  background: #000;
  overflow: hidden;
}
.vid-main video { width: 100%; height: auto; display: block; }

.vid-reels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.vid-reel {
  position: relative;
  border: 1px solid var(--grey-dark, #2a2a2a);
  background: #000;
  overflow: hidden;
  transition: border-color .4s;
}
.vid-reel:hover { border-color: rgba(212,175,55,.45); }
.vid-reel video { width: 100%; height: auto; display: block; aspect-ratio: 9/16; object-fit: cover; }
.vid-cap {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8f8f8f;
  margin-top: 12px;
}

/* play overlay for click-to-play videos */
.vid-wrap { position: relative; }
.vid-wrap .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,11,11,.3);
  border: none;
  cursor: pointer;
  transition: background .35s, opacity .3s;
}
.vid-wrap .play-btn:hover { background: rgba(11,11,11,.12); }
.vid-wrap .play-btn span {
  width: 72px; height: 72px;
  border: 1px solid var(--gold, #D4AF37);
  border-radius: 50%;
  background: rgba(11,11,11,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .35s;
}
.vid-wrap .play-btn:hover span { transform: scale(1.09); background: rgba(212,175,55,.2); }
.vid-wrap .play-btn svg { width: 22px; height: 22px; color: var(--gold, #D4AF37); margin-left: 4px; }
.vid-wrap.playing .play-btn { opacity: 0; pointer-events: none; }
.vid-reel .play-btn span { width: 54px; height: 54px; }
.vid-reel .play-btn svg { width: 17px; height: 17px; }

/* ---------- Photo gallery ---------- */
.gal {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gal figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--grey-dark, #2a2a2a);
  background: var(--black-2, #111);
  cursor: zoom-in;
}
.gal img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .4s;
}
.gal figure:hover img { transform: scale(1.055); }
.gal figure::after {
  content: '';
  position: absolute; inset: 0;
  border: 0 solid var(--gold, #D4AF37);
  transition: border-width .25s;
  pointer-events: none;
}
.gal figure:hover::after { border-width: 1px; }
.gal figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  font-size: 12px;
  color: #e4e4e4;
  font-weight: 300;
  background: linear-gradient(transparent, rgba(11,11,11,.9));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.gal figure:hover figcaption { opacity: 1; transform: translateY(0); }

.gal .wide { grid-column: span 6; aspect-ratio: 16/9; }
.gal .tall { grid-column: span 3; aspect-ratio: 3/4; }
@media (max-width: 900px) {
  .gal { gap: 10px; }
  .gal .wide { grid-column: span 12; }
  .gal .tall { grid-column: span 6; }
}

/* ---------- Lightbox ---------- */
#lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6,6,6,.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 44px 20px 76px;
}
#lb.open { display: flex; }
#lb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid rgba(212,175,55,.25);
  animation: lbIn .32s cubic-bezier(.22,1,.36,1);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.975); } to { opacity: 1; transform: scale(1); } }
#lb .lb-cap {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  text-align: center;
  font-size: 13px;
  color: #b4b4b4;
  font-weight: 300;
  padding: 0 24px;
}
#lb button {
  position: absolute;
  background: rgba(11,11,11,.6);
  border: 1px solid var(--grey-dark, #2a2a2a);
  color: #fff;
  width: 46px; height: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s, color .3s;
  font-family: inherit;
}
#lb button:hover { border-color: var(--gold, #D4AF37); color: var(--gold, #D4AF37); }
#lb .lb-close { top: 20px; right: 20px; font-size: 22px; line-height: 1; }
#lb .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
#lb .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
#lb svg { width: 17px; height: 17px; }
@media (max-width: 620px) {
  #lb { padding: 20px 10px 70px; }
  #lb .lb-prev { left: 8px; } #lb .lb-next { right: 8px; }
  #lb button { width: 40px; height: 40px; }
}

/* ---------- Stat strip ---------- */
.work-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 26px;
  border-top: 1px solid var(--grey-dark, #2a2a2a);
  border-bottom: 1px solid var(--grey-dark, #2a2a2a);
  padding: 40px 0;
  text-align: center;
}
.work-stats div h4 {
  font-family: var(--font-alt, 'Space Grotesk', sans-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--gold, #D4AF37);
  font-weight: 700;
}
.work-stats div p {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8f8f8f;
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .gal img, .proj-shot { transition: none !important; }
  .gal figure:hover img { transform: none; }
}

/* ---------- Package tier badge ---------- */
.proj-tier {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 8px 15px;
  margin-bottom: 18px;
  border: 1px solid var(--grey-dark, #2a2a2a);
  color: #9a9a9a;
  transition: border-color .35s, color .35s;
}
.proj-tier::before {
  content: '';
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.proj-tier:hover { border-color: rgba(212,175,55,.45); color: #cfcfcf; }
.proj-tier.top {
  border-color: rgba(212,175,55,.5);
  color: var(--gold, #D4AF37);
  background: linear-gradient(135deg, rgba(212,175,55,.1), transparent);
}
.proj-tier.top:hover { border-color: var(--gold, #D4AF37); color: var(--gold-light, #E8CD6E); }
