/* ============================================================
   Ad hoc section landing (Our Work)
   ============================================================ */

/* ---- Hero ---- */
#hero {
  min-height: 65vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 52px 80px;
  position: relative; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(6,6,6,0.92) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.18) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; opacity: 0.18; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 20px; height: 1px; background: #fff200; }
.hero-name {
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.88; color: #fff; margin: 0;
}

/* ---- Works: masonry mixing video + photo ---- */
#works { padding: 80px 0 140px; width: 76vw; margin: 0 auto; }
.works-grid { columns: 2; column-gap: 20px; }

.work-card {
  break-inside: avoid; margin-bottom: 20px;
  cursor: pointer; display: block; text-decoration: none; color: inherit;
}
.card-media { position: relative; overflow: hidden; border-radius: 3px; background: #111; }
.card-media::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background 0.35s; z-index: 2;
}
.work-card:hover .card-media::after { background: rgba(0,0,0,0.14); }

/* ---- Photo card ---- */
.work-card--photo .card-media img {
  display: block; width: 100%; height: auto;
  transition: transform 0.65s cubic-bezier(0, 0, 0.1, 1);
}
.work-card--photo:hover .card-media img { transform: scale(1.04); }

.card-view {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.work-card--photo:hover .card-view { opacity: 1; }
.card-view-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px;
  transition: transform 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}
.work-card--photo:hover .card-view-icon {
  transform: scale(1.08);
  background: rgba(255,242,0,0.12);
  border-color: rgba(255,242,0,0.45); color: #fff200;
}

/* ---- Video card ---- */
.work-card--video .card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #181818 0%, #0d0d0d 100%);
}
.work-card--video .card-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 1;
  transition: transform 0.65s cubic-bezier(0, 0, 0.1, 1);
}
.work-card--video:hover .card-thumb { transform: scale(1.04); }

.card-play {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.work-card--video:hover .card-play { opacity: 1; }
.card-play-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.card-play-icon svg {
  width: 18px; height: 18px; fill: rgba(255,255,255,0.7); margin-left: 3px;
  transition: fill 0.3s;
}
.work-card--video:hover .card-play-icon {
  background: rgba(255,242,0,0.15);
  border-color: rgba(255,242,0,0.5);
  transform: scale(1.1);
}
.work-card--video:hover .card-play-icon svg { fill: #fff200; }

/* ---- Card info ---- */
.card-info {
  padding: 10px 0 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.card-project { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: rgba(255,255,255,0.7); }
.card-talent {
  font-size: 9px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); flex-shrink: 0;
}

/* ---- Video modal ---- */
#modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#modal.open { opacity: 1; pointer-events: all; visibility: visible; }
#modal-inner { position: relative; width: 100%; max-width: min(100%, calc((100vh - 160px) * 16 / 9)); }
#modal-close {
  position: absolute; top: -50px; right: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255,255,255,0.4); cursor: pointer;
  border: 0.5px solid rgba(255,255,255,0.12); border-radius: 50%;
  background: rgba(255,255,255,0.04);
  transition: color 0.2s, background 0.2s;
}
#modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
#modal-video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 6px; overflow: hidden; background: #000;
}
#modal-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
#modal-meta { margin-top: 18px; display: flex; align-items: baseline; justify-content: space-between; }
#modal-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
#modal-client { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.25); }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 768px) {
  #hero { padding: 100px 24px 64px; min-height: 50vh; }
  .hero-name { font-size: clamp(25px, 6.7vw, 37px); }
  #works { padding: 48px 0 100px; width: 92vw; }
  .works-grid { columns: 1; }
  .work-card { margin-bottom: 28px; }
  #modal { padding: 24px; }
  #modal-close { top: -44px; }
  #modal-title { font-size: 16px; }
}
