/* ─── VARIABLES ─── */
:root {
  --bg: #0A0A0A;
  --bg2: #111111;
  --ivory: #F2F2F2;
  --ivory-dim: #888888;
  --gold: #E8E8E8;
  --gold-dim: #555555;
  --accent: #FFFFFF;
  --rule: rgba(255,255,255,0.07);
  --font: 'Montserrat', sans-serif;
  --ease: cubic-bezier(0.76,0,0.24,1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── SCROLLBAR — hide native, use custom JS one ─── */
::-webkit-scrollbar { width: 0; }
html { scrollbar-width: none; }

.c-sb {
  position: fixed;
  right: 0; top: 0;
  width: 8px;
  height: 100vh;
  z-index: 9998;
  pointer-events: auto;
  cursor: pointer;
}
.c-sb-thumb {
  cursor: grab;
}
.c-sb-thumb:active {
  cursor: grabbing;
}
.c-sb-track {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.3) 0px,
    rgba(255,255,255,0.3) 4px,
    transparent 4px,
    transparent 14px
  );
}
.c-sb-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  background: #F2F2F2;
  min-height: 24px;
  transition: background 0.2s;
}
.c-sb-thumb:hover { background: #fff; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ─── PLACEHOLDERS ─── */
.ph {
  display: inline;
  font-style: inherit;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.ph-block {
  display: block;
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  margin: 8px 0;
}

/* ─── CURSOR ─── */
#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--ivory);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
  mix-blend-mode: difference;
}
#cursor.hovering { width: 40px; height: 40px; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  transition: padding 0.4s var(--ease), background 0.4s;
}
nav.scrolled {
  padding: 18px 48px;
  background: rgba(12,11,9,0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  cursor: none;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  text-decoration: none;
  cursor: none;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--ivory); }
.nav-links a.active::after { width: 100%; }

/* ─── SHARED LAYOUT ─── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 48px; }

.section-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font);
  font-size: clamp(36px, 3.8vw, 64px);
  font-weight: 200;
  line-height: 1.08;
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ─── FOOTER ─── */
footer {
  padding: 28px 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 11px; font-weight: 300; color: var(--ivory-dim); letter-spacing: 0.04em; }
.footer-right { font-size: 11px; font-weight: 300; color: var(--ivory-dim); letter-spacing: 0.08em; }
.footer-right span { color: var(--gold); }

/* ─── MODAL ─── */
#modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  overflow-y: auto;
}
#modal.open { opacity: 1; pointer-events: all; }
.modal-close {
  position: fixed;
  top: 28px; right: 48px;
  z-index: 600;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}
.modal-close:hover { border-color: var(--gold-dim); }
.modal-close svg { width: 14px; stroke: var(--ivory); stroke-width: 1.5; fill: none; }

.modal-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  z-index: 600;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  background: rgba(10,10,10,0.55);
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s;
  pointer-events: none;
}
.modal-nav--prev { left: 20px; }
.modal-nav--next { right: 20px; }
#modal.open .modal-nav { pointer-events: all; }
.modal-nav:hover { border-color: var(--gold-dim); }
.modal-nav svg { width: 14px; stroke: var(--ivory); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.modal-inner { max-width: 1200px; margin: 0 auto; padding: 56px 48px 80px; }
.modal-eyebrow {
  font-size: 9px; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.modal-title {
  font-family: var(--font);
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 14px;
}
.modal-meta { font-size: 12px; font-weight: 300; letter-spacing: 0.06em; color: var(--ivory-dim); margin-bottom: 56px; }
.modal-video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #050505; margin-bottom: 72px; overflow: hidden;
}
.modal-video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.modal-video-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #111111 0%, #1C1910 50%, #0A0A0A 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.play-btn {
  width: 72px; height: 72px;
  border: 1px solid rgba(240,237,230,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, transform 0.3s;
}
.play-btn:hover { border-color: var(--gold); transform: scale(1.06); }
.play-btn svg { width: 22px; fill: var(--ivory); margin-left: 4px; }
.modal-video-ph-text {
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(196,169,107,0.35); border: 1px dashed rgba(255,255,255,0.15);
  padding: 8px 16px;
}

.modal-credits {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; margin-bottom: 64px;
  padding-bottom: 40px; border-bottom: 1px solid var(--rule);
}
.credit-label { font-size: 8px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.credit-value { font-family: var(--font); font-size: 16px; font-weight: 300; color: var(--ivory); }

.modal-desc {
  font-size: 14px; font-weight: 300; line-height: 1.9;
  color: var(--ivory-dim); max-width: 680px; margin-bottom: 56px;
}

.modal-stills-label { font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 24px; }
.modal-stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.modal-still {
  aspect-ratio: 4/3; overflow: hidden; cursor: none; position: relative;
}
.modal-still svg { display: block; width: 100%; height: 100%; }
.modal-still-ph {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  transition: transform 0.6s var(--ease);
}
.modal-still:hover .modal-still-ph { transform: scale(1.06); }
.modal-still-num {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.2); border: 1px dashed rgba(255,255,255,0.1); padding: 6px 12px;
}

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── HAMBURGER BUTTON (hidden on desktop) ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {

  body { cursor: auto; }
  #cursor { display: none; }

  .container { padding: 0 20px; }

  /* Nav */
  nav { padding: 20px 20px; }
  nav.scrolled { padding: 14px 20px; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    list-style: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 13px;
    letter-spacing: 0.25em;
    color: var(--ivory-dim);
  }
  .nav-links a:hover { color: var(--ivory); }

  /* Footer */
  footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  /* Modal */
  .modal-inner { padding: 80px 20px 60px; }
  .modal-credits { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
  .modal-stills { grid-template-columns: 1fr 1fr; }
  .modal-title { font-size: clamp(28px, 8vw, 48px); }
  .modal-nav { top: auto; bottom: 24px; transform: none; }
  .modal-nav--prev { left: calc(50% - 52px); }
  .modal-nav--next { right: auto; left: calc(50% + 12px); }

  /* ── ROOT CAUSE FIX: Allow placeholder text to wrap on mobile ── */
  .ph {
    white-space: normal !important;
    word-wrap: break-word;
  }

  /* Force mobile browsers to respect the screen width */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  /* Fix Hero padding and text sizes */
  .hero-content { padding: 0 20px 40px !important; }
  .hero-title { font-size: clamp(32px, 10vw, 48px) !important; }
  .hero-sub { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-scroll-hint { right: 20px; bottom: 20px; transform: scale(0.85); }

  /* Fix grids for About, Contact, and Work sections */
  .about-strip-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .work-grid {
    display: flex !important;
    flex-direction: column;
  }
  .work-card {
    aspect-ratio: 16/10 !important;
    width: 100% !important;
  }
  .contact-title { font-size: 40px !important; }

  /* Fix: Prevents the frosted glass header from trapping the full-screen menu */
      nav.menu-open {
        backdrop-filter: none !important;
      }

      /* Hide the custom scrollbar while the full-screen mobile menu is open */
      nav.menu-open ~ .c-sb { display: none !important; }

}

/* ─── CONTACT (shared by homepage section + work-page popup) ─── */
#contact {
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.contact-bg-full { position: absolute; inset: 0; }
.contact-bg-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
  display: block;
}
.contact-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: 760px;
}
.contact-split-left {
  padding: 100px 64px 100px 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Dark text overrides — background is the image's white studio bg */
#contact .contact-availability { color: #666; }
#contact .avail-dot { background: #444; animation: pulse 2.2s ease-in-out infinite; }
#contact .contact-title { color: #0A0A0A; }
#contact .contact-title em { color: #8B6F3A; }
#contact .contact-desc { color: #555; }
#contact .contact-link-label { color: #3a3a3a; }
#contact .contact-link-value { color: #0A0A0A; }
#contact .contact-link-value:hover { color: #8B6F3A; }
#contact .contact-link-row { border-color: rgba(0,0,0,0.12); }
#contact .contact-link-row:hover { padding-left: 10px; }
#contact .form-label { color: #3a3a3a; }
#contact .form-input,
#contact .form-textarea { color: #0A0A0A; border-color: rgba(0,0,0,0.18); }
#contact .form-input::placeholder,
#contact .form-textarea::placeholder { color: rgba(0,0,0,0.25); }
#contact .form-input:focus,
#contact .form-textarea:focus { border-color: #8B6F3A; }
#contact .form-submit { color: #0A0A0A; border-color: rgba(0,0,0,0.3); }
#contact .form-submit:hover:not(:disabled) { background: #0A0A0A; border-color: #0A0A0A; color: #fff; }

.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 28px;
}
.avail-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ivory);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
.contact-title {
  font-family: var(--font);
  font-size: clamp(36px, 3.8vw, 64px);
  font-weight: 200;
  line-height: 1.05;
  color: var(--ivory);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.contact-title em { font-style: italic; color: var(--gold); }
.contact-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ivory-dim);
  max-width: 380px;
  margin-bottom: 40px;
}
.contact-links { display: flex; flex-direction: column; }
.contact-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  cursor: none;
  transition: padding-left 0.3s var(--ease);
}
.contact-link-row:hover { padding-left: 10px; }
.contact-link-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.contact-link-value {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  color: var(--ivory);
  text-decoration: none;
  cursor: none;
  letter-spacing: -0.01em;
}
.contact-link-value:hover { color: var(--gold); }

.form-row { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 10px;
}
.form-input, .form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: var(--ivory);
  outline: none;
  transition: border-color 0.3s;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(154,149,144,0.4); }
.form-input:focus, .form-textarea:focus { border-color: var(--gold-dim); }
.form-textarea { resize: none; height: 90px; }
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 36px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  cursor: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  margin-top: 12px;
}
.form-submit:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.form-submit:disabled { opacity: 0.5; }
.form-status {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  display: none;
}

@media (max-width: 768px) {
  .contact-split { grid-template-columns: 1fr; min-height: auto; }
  .contact-split-right { display: none; }
  .contact-split-left {
    padding: 60px 20px;
    background: rgba(240, 237, 232, 0.6);
  }
  .contact-bg-full img { object-position: 50% center; }
}

/* ─── CONTACT POPUP (work page) ─── */
#contact-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(8,8,8,0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  overflow-y: auto;
  display: flex;
  padding: 32px 16px;
}
#contact-modal.open { opacity: 1; pointer-events: all; }
.contact-modal-card {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
#contact-modal #contact { border-top: none; }
#contact-modal .contact-split { min-height: auto; }
#contact-modal .contact-split-left { padding: 72px 56px; gap: 40px; }
.contact-modal-close {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 720;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(8,8,8,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.contact-modal-close:hover { border-color: #fff; background: rgba(8,8,8,0.9); }
.contact-modal-close svg { width: 16px; stroke: #fff; stroke-width: 1.5; fill: none; }

@media (max-width: 768px) {
  #contact-modal { padding: 0; }
  .contact-modal-card { max-width: 100%; min-height: 100%; }
  #contact-modal .contact-split-left { padding: 80px 20px 48px; background: rgba(240,237,232,0.6); }
}
