/* ============================================
   PURE VISION — Luxury · Soft · Refined
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --bg: #03041F;
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.35);
  --text-muted: rgba(255,255,255,0.55);
  --accent: #C9A96E;
  --accent-soft: rgba(201,169,110,0.15);
  --header-h: 80px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-lux: cubic-bezier(0.45, 0, 0.15, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 107;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  height: var(--header-h);
  background: transparent;
  transition: background 0.6s var(--ease-lux), padding 0.6s var(--ease-lux);
}

/* Homepage: header always transparent — no background */
.home-page .header,
.home-page .header.scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.header.scrolled {
  background: rgba(3,4,31,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 48px;
}

.header-logo img {
  display: block;
  height: 48px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.4s var(--ease-soft);
}

.header-logo:hover img { opacity: 0.6; }

/* ===== MENU BUTTON ===== */
.header-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
}

.menu-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: opacity 0.3s;
  color: var(--text-muted);
}

.menu-icon {
  position: relative;
  width: 22px;
  height: 14px;
}

.menu-icon span,
.menu-icon span::before,
.menu-icon span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: transform 0.4s var(--ease-lux);
}

.menu-icon span { top: 50%; transform: translateY(-50%); }
.menu-icon span::before { content: ''; top: -6px; }
.menu-icon span::after { content: ''; top: 6px; }

.header-menu.active .menu-label { opacity: 0; }
.header-menu.active .menu-icon span { background: transparent; }
.header-menu.active .menu-icon span::before { top: 0; transform: rotate(45deg); }
.header-menu.active .menu-icon span::after { top: 0; transform: rotate(-45deg); }

/* ===== OVERLAY MENU ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 106;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-lux);
}

.overlay.open {
  pointer-events: all;
  opacity: 1;
}

.overlay-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.overlay-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 48px 60px;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.overlay-link {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 200;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.5s var(--ease-soft), letter-spacing 0.5s var(--ease-soft);
}

.overlay-link:hover {
  color: var(--text);
  letter-spacing: 8px;
}

.overlay-info {
  position: absolute;
  bottom: 60px;
  text-align: center;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-dim);
  line-height: 2;
}

/* ===== VIDEO BACKGROUND ===== */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

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

/* Fixed: lighter overlay so video colors show through */
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(3,4,31,0.35) 100%),
              radial-gradient(ellipse at center, transparent 70%, rgba(3,4,31,0.2) 100%);
  opacity: 0.3;
}

/* ===== HOME CONTENT ===== */
.home {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home-inner {
  width: 100%;
  padding: 160px 0 80px;
}

/* ===== PROJECT LIST ===== */
.project-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.project-item {
  text-align: center;
  width: 100%;
}

.project-link {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
  transition:
    color 0.5s var(--ease-soft),
    letter-spacing 0.5s var(--ease-soft),
    padding 0.5s var(--ease-soft),
    text-shadow 0.5s var(--ease-soft);
  position: relative;
  cursor: pointer;
}

.project-link::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.5s var(--ease-soft);
}

.project-link:hover {
  color: #fff;
  letter-spacing: 7px;
  text-shadow: 0 0 40px rgba(201,169,110,0.15);
}

.project-link:hover::before {
  width: 40%;
}

/* ===== IMAGE OVERLAY (Lightbox) ===== */
.overlay-img {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-lux);
}

.overlay-img.open {
  pointer-events: all;
  opacity: 1;
}

.overlay-img-bg {
  position: absolute;
  inset: 0;
  background: rgba(3,4,31,0.7);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

.overlay-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.overlay-img-frame {
  position: relative;
  max-width: 80vw;
  max-height: 85vh;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.6s var(--ease-lux);
}

.overlay-img.open .overlay-img-frame {
  transform: scale(1) translateY(0);
}

.overlay-img-frame img {
  display: block;
  max-width: 80vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Info overlay on image */
.overlay-img-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 36px 32px;
  background: linear-gradient(transparent, rgba(3,4,31,0.85) 40%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-soft) 0.15s, transform 0.5s var(--ease-soft) 0.15s;
}

.overlay-img.open .overlay-img-info {
  opacity: 1;
  transform: translateY(0);
}

.overlay-img-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.overlay-img-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.overlay-img-meta {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.55);
}

/* Close button */
.overlay-img-close {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 202;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  font-weight: 200;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-soft);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}

.overlay-img.open .overlay-img-close {
  opacity: 1;
  pointer-events: all;
}

.overlay-img-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: scale(1.05);
}

/* Navigation arrows */
.overlay-img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 202;
  width: 52px;
  height: 52px;
  border: none;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  color: rgba(255,255,255,0.4);
  font-size: 32px;
  font-weight: 200;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-soft);
  opacity: 0;
  pointer-events: none;
  line-height: 1;
  padding-bottom: 4px;
}

.overlay-img.open .overlay-img-nav {
  opacity: 1;
  pointer-events: all;
}

.overlay-img-nav:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.overlay-img-nav.prev { left: 24px; }
.overlay-img-nav.next { right: 24px; }

/* ===== LOADING STATE ===== */
.overlay-img-frame img {
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
}

.overlay-img-frame img.loaded {
  opacity: 1;
}

/* ============================================
   SUBPAGE STYLES — Work · About · Process · Contact
   ============================================ */

/* Shared Page Hero */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 60px;
  background: var(--bg);
}
.page-hero-inner {
  max-width: 900px;
}
.page-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.page-hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.page-hero-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== WORK FILTER ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 24px 40px;
}

.filter-btn {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.4s var(--ease-soft);
}
.filter-btn:hover { color: #fff; border-color: rgba(255,255,255,0.15); }
.filter-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ===== WORK GRID ===== */
.work-section {
  padding: 0 48px 100px;
}
.work-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  display: block;
  background: transparent;
  cursor: pointer;
}
.work-card:hover {  }

.work-card-img {
  width: 100%;
  background: transparent;
}
.work-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.work-card-info {
  padding: 16px 0;
}
.work-card-cat {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.work-card-title {
  display: block;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 4px 0 2px;
  color: rgba(255,255,255,0.8);
}
.work-card-meta {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* Filter animation */
.work-card.hidden {
  display: none;
}

/* ===== ABOUT ===== */
.about-section {
  padding: 0 48px 100px;
}
.about-inner {
  max-width: 900px;
  margin: 0 auto;
}
.about-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
  color: var(--text-muted);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 64px;
  text-align: center;
}
.stat-num {
  font-size: 40px;
  font-weight: 200;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ===== PROCESS ===== */
.process-section {
  padding: 0 48px 100px;
}
.process-list {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
}
.process-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.process-num {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--accent);
  padding-top: 2px;
}
.process-item h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.process-item p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact-section {
  padding: 0 48px 100px;
}
.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-item {
  margin-bottom: 32px;
}
.contact-label {
  display: block;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-value {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}
.contact-value a { transition: color 0.3s; }
.contact-value a:hover { color: #fff; }

.contact-social {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.contact-social a {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  transition: color 0.3s;
  letter-spacing: 2px;
}
.contact-social a:hover { color: #fff; }

.contact-form-wrap {
  margin-top: 48px;
  text-align: left;
}
.contact-form-wrap p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.6;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  color: #fff;
  outline: none;
  transition: border-color 0.4s var(--ease-soft);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form textarea { resize: vertical; min-height: 120px; }

.form-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent-soft);
  border-radius: 30px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.4s var(--ease-soft);
}
.form-btn:hover { background: var(--accent-soft); border-color: var(--accent); gap: 14px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .header { padding: 20px 24px; }
  .header.scrolled { padding: 14px 24px; }

  .project-link {
    font-size: 14px;
    letter-spacing: 3px;
    padding: 8px 16px;
  }

  .overlay-img-wrap { padding: 24px; }
  .overlay-img-frame { max-width: 95vw; max-height: 75vh; }
  .overlay-img-frame img { max-width: 95vw; max-height: 75vh; }

  .overlay-img-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .overlay-img-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .overlay-img-nav.prev { left: 12px; }
  .overlay-img-nav.next { right: 12px; }

  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .page-hero { padding: 100px 24px 40px; }
  .work-section { padding: 0 24px 60px; }
  .about-section { padding: 0 24px 60px; }
  .process-section { padding: 0 24px 60px; }
  .contact-section { padding: 0 24px 60px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 500px) {
  .header { padding: 16px 16px; }
  .menu-label { display: none; }

  .project-link {
    font-size: 12px;
    letter-spacing: 2px;
    padding: 6px 12px;
  }

  .overlay-img-wrap { padding: 12px; }
  .overlay-img-frame { max-width: 100vw; max-height: 70vh; border-radius: 0; }
  .overlay-img-frame img { max-width: 100vw; max-height: 70vh; }

  .overlay-img-info { padding: 20px 16px 16px; }
  .overlay-img-title { font-size: 14px; }

  .work-grid { grid-template-columns: 1fr; }
  .page-hero-title { font-size: 24px; }
}
