/* ======================================================
   WORKS PAGE (EDITORIAL)
====================================================== */

.works-page {
  overflow: auto;
}

/* Wider page (override global max-width) */
.page.works {
  max-width: 1200px !important;
  width: 100%;
  margin: 0 auto;
}

.works-page .page {
  padding-top: 200px;
}

.works-page {
  overflow: auto;
}

/* Wider page */
.page {
  width: min(1800px, 100%);
  margin: 0 auto;
}

/* HERO */
.works-hero {
  text-align: center;
  margin-bottom: 80px;
}

.works-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
}

.works-hero p {
  margin-top: 14px;
  color: var(--text-muted);
}

/* DIVIDER */
.works-divider {
  margin: 90px 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.works-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

/* ======================================================
   PROJECT LAYOUT
====================================================== */

.project {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-bottom: 60px;
}

.project:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.project.featured {
  grid-template-columns: 1.6fr 1fr;
  padding: 24px;
}

.project-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-media img,
.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  filter: brightness(0.9);
  transition: transform 0.5s ease;
}

.project:hover .project-media img,
.project:hover .project-media video {
  transform: scale(1.05);
}

.project-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
}

.project h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

.project p {
  color: var(--text-muted);
  line-height: 1.6;
}

.project-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
}

.project-link {
  margin-top: auto;
  color: var(--accent);
  text-decoration: none;
}

.project:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ======================================================
   GRID
====================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.two-column-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.grid-half {
  grid-column: span 1;
}

/* ======================================================
   SLIDESHOW
====================================================== */

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

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 768px) {
  .project,
  .project.featured,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .two-column-row {
    grid-template-columns: 1fr;
  }
}





/* ======================================================
   WORKS PAGE BACKGROUND OVERRIDE
   (Does NOT affect index.html)
====================================================== */

.works-page .bg {
  z-index: -2; /* keep it behind everything */
}

.works-page .bg video {
  filter: blur(12px) !important;
  transform: scale(1.08) !important;
}

.works-page .bg-overlay {
  background: rgba(0, 0, 0, 0.75) !important;
  opacity: 1 !important;
  z-index: -1;
}



/* ====== Footer override (normal flow, not floating) ====== */

.footer {
  position: relative !important;
  bottom: auto !important;
  width: 100% !important;
  background: transparent !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  padding: 40px 24px !important;
  text-align: center !important;
  color: rgba(255,255,255,0.75) !important;
  box-shadow: none !important;
}

.footer-links {
  margin: 10px 0 !important;
}


.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;

  animation: glowPulse 8s ease-in-out infinite;
  filter: brightness(1) contrast(1.08);
  will-change: filter;
}

@keyframes glowPulse {
  0%   { filter: brightness(1) contrast(1.08); }
  50%  { filter: brightness(1.18) contrast(1.2); }
  100% { filter: brightness(1) contrast(1.08); }
}
