@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

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

:root {
  --black:   #060606;
  --white:   #f4f3ef;
  --gray-1:  #111;
  --gray-2:  #222;
  --gray-3:  #444;
  --gray-4:  #777;
  --gray-5:  #aaa;
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --nav-h: 68px;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --trans: 0.3s var(--ease);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: none; border: none; background: none; }

/* ── CURSOR ──────────────────────────────────────────────────────────── */
.cursor-dot {
  position: fixed; width: 5px; height: 5px;
  background: var(--white); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, opacity .2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; width: 28px; height: 28px;
  border: 1px solid rgba(244,243,239,.3); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .3s;
}
.cursor-dot.hover  { width: 8px; height: 8px; }
.cursor-ring.hover { width: 60px; height: 60px; border-color: rgba(244,243,239,.12); }

/* ── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 0 40px;
  pointer-events: none;
}

/* Wordmark — large and centered, always visible */
.nav-logo {
  pointer-events: all;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 19px);
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: opacity var(--trans);
}
.nav-logo:hover { opacity: .6; }

/* Hamburger button — top right */
.nav-hamburger {
  position: fixed;
  top: 22px; right: 32px;
  z-index: 600;
  pointer-events: all;
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center;
  gap: 6px; background: none; border: none; padding: 6px;
  transition: opacity var(--trans);
}
.nav-hamburger:hover { opacity: .6; }
.nav-hamburger span {
  display: block; height: 1px; background: var(--white);
  transition: width .3s var(--ease), transform .4s var(--ease),
              opacity .3s, background var(--trans);
}
.nav-hamburger span:nth-child(1) { width: 28px; }
.nav-hamburger span:nth-child(2) { width: 20px; }
.nav-hamburger span:nth-child(3) { width: 24px; }
/* Open state */
.nav-hamburger.open span:nth-child(1) { width: 24px; transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { width: 0; opacity: 0; }
.nav-hamburger.open span:nth-child(3) { width: 24px; transform: translateY(-7px) rotate(-45deg); }

/* Full-screen menu overlay */
.nav-menu {
  position: fixed; inset: 0; z-index: 550;
  background: rgba(6,6,6,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.nav-menu.open { opacity: 1; pointer-events: all; }

.nav-menu-logo {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: rgba(244,243,239,.25);
  margin-bottom: 64px;
}

.nav-menu-links { list-style: none; text-align: center; }
.nav-menu-links li {
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s;
}
.nav-menu.open .nav-menu-links li:nth-child(1) { transition-delay: .05s; transform: none; opacity: 1; }
.nav-menu.open .nav-menu-links li:nth-child(2) { transition-delay: .1s;  transform: none; opacity: 1; }
.nav-menu.open .nav-menu-links li:nth-child(3) { transition-delay: .15s; transform: none; opacity: 1; }
.nav-menu.open .nav-menu-links li:nth-child(4) { transition-delay: .2s;  transform: none; opacity: 1; }

.nav-menu-links a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  color: rgba(244,243,239,.85);
  transition: color var(--trans), letter-spacing var(--trans);
  padding: 4px 0;
}
.nav-menu-links a:hover {
  color: var(--white);
  letter-spacing: -.01em;
}
.nav-menu-links a.active { color: var(--white); }

.nav-menu-footer {
  position: absolute; bottom: 40px;
  display: flex; gap: 32px;
}
.nav-menu-footer a {
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(244,243,239,.3);
  transition: color var(--trans);
}
.nav-menu-footer a:hover { color: var(--white); }

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; width: 100%; height: 100vh;
  overflow: hidden; background: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.hero-video, .hero-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .6;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(6,6,6,.1) 0%, rgba(6,6,6,0) 35%,
    rgba(6,6,6,.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 40px;
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}
/* Large brand statement — only on homepage hero */
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.hero-brand-rule {
  width: 1px; height: 48px;
  background: rgba(244,243,239,.3);
  margin: 0 auto;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 62px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.03em; max-width: 800px;
  color: rgba(244,243,239,.88);
}
.hero-sub {
  font-size: clamp(12px, 1.2vw, 14px); font-weight: 300;
  color: rgba(244,243,239,.5); letter-spacing: .06em;
  max-width: 420px; text-transform: uppercase;
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: .35; animation: scrollPulse 2.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .35; transform: translateX(-50%) translateY(0); }
  50%      { opacity: .6;  transform: translateX(-50%) translateY(5px); }
}
.hero-scroll-line { width: 1px; height: 36px; background: var(--white); }
.hero-scroll-label { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }

/* ── INTRO ───────────────────────────────────────────────────────────── */
.intro {
  padding: 120px 60px;
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: start;
}
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; gap: 48px; padding: 80px 32px; } }
.intro-body { font-size: 16px; line-height: 1.85; color: rgba(244,243,239,.7); font-weight: 300; }
.section-label {
  font-size: 9px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gray-3); margin-bottom: 16px;
}
.intro-strip {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gray-3); line-height: 2.4;
}
.intro-strip span { display: block; }

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: 11px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid rgba(244,243,239,.25);
  color: var(--white);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  margin-top: 32px;
}
.btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-solid { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-solid:hover { background: transparent; color: var(--white); }

/* ── PORTFOLIO HEADER ────────────────────────────────────────────────── */
.portfolio-header {
  padding: calc(var(--nav-h) + 72px) 60px 48px;
}
.portfolio-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1;
  margin-bottom: 10px;
}
.portfolio-header p {
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gray-3);
}

/* ── FILTERS ─────────────────────────────────────────────────────────── */
.filters {
  display: flex; gap: 0;
  padding: 0 60px;
  border-bottom: 1px solid var(--gray-2);
  position: sticky; top: var(--nav-h); z-index: 100;
  background: var(--black);
  overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 10px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-3); background: transparent; border: none;
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
  margin-bottom: -1px;
}
.filter-btn:hover { color: var(--white); }
.filter-btn.active { color: var(--white); border-bottom-color: var(--white); }

/* ── FILM GRID ───────────────────────────────────────────────────────── */
.film-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}
@media (max-width: 1100px) { .film-wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .film-wall { grid-template-columns: 1fr; } }

/* ── FILM CARD ───────────────────────────────────────────────────────── */
.film-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-1);
  display: block;
  cursor: none;
}

.film-card.hidden { display: none; }

.film-thumb, .film-gif {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.film-thumb {
  transition: transform .8s cubic-bezier(.25,.46,.45,.94), filter .4s;
  filter: brightness(.68) saturate(.9);
  transform-origin: center;
}
.film-gif { opacity: 1; }
.film-card:hover .film-thumb { transform: scale(1.06); filter: brightness(.28) saturate(.7); }

/* Hover info */
.film-card-info {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(6,6,6,.88) 0%, rgba(6,6,6,.1) 50%, transparent 100%);
  opacity: 0; transition: opacity var(--trans);
}
.film-card:hover .film-card-info { opacity: 1; }
.film-card-cat {
  font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gray-4); margin-bottom: 7px;
}
.film-card-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 21px);
  font-weight: 700; line-height: 1.15; letter-spacing: -.01em;
}
.film-card-dur { font-size: 11px; color: var(--gray-4); margin-top: 5px; letter-spacing: .05em; }

/* Always-visible minimal label */
.film-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 22px 16px;
  background: linear-gradient(to top, rgba(6,6,6,.6) 0%, transparent 100%);
  transition: opacity var(--trans);
}
.film-card:hover .film-card-label { opacity: 0; }
.film-card-label-text {
  font-size: 11px; font-weight: 400;
  color: rgba(244,243,239,.65);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* No thumb placeholder */
.film-no-thumb {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-1);
}
.film-no-thumb-text {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  color: var(--gray-3); padding: 0 24px; text-align: center; line-height: 1.4;
}

/* ── FILM MODAL (centered overlay) ──────────────────────────────────── */
.film-modal-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(6,6,6,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .3s var(--ease);
  overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.film-modal {
  width: 100%; max-width: 900px;
  display: flex; flex-direction: column;
  background: var(--gray-1);
  animation: slideUp .4s var(--ease);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) { .film-modal-overlay { padding: 0; align-items: flex-end; } }

.modal-video-wrap {
  position: relative; aspect-ratio: 16/9; background: #000; width: 100%; flex-shrink: 0;
}
.modal-video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.modal-no-video {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; color: var(--gray-3);
}
.modal-no-video-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--gray-2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-no-video-icon svg { width: 16px; height: 16px; fill: var(--gray-3); margin-left: 3px; }
.modal-no-video-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.modal-info {
  padding: 36px 48px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 48px;
  align-items: start;
}
@media (max-width: 700px) {
  .modal-info { grid-template-columns: 1fr; padding: 28px 24px 36px; }
}
/* Span full width elements */
.modal-cat, .modal-title { grid-column: 1 / -1; }

.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px;
  background: rgba(6,6,6,.7); border: 1px solid var(--gray-2);
  color: var(--gray-4); font-size: 20px; font-family: var(--font-body);
  font-weight: 300; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--trans), border-color var(--trans);
}
.modal-close:hover { color: var(--white); border-color: var(--gray-4); }

.modal-cat {
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gray-3);
}
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
}
.modal-quote {
  font-style: italic; font-size: 14px; font-weight: 300;
  color: var(--gray-4); line-height: 1.6;
  padding-left: 14px; border-left: 1px solid var(--gray-2);
}
.modal-desc {
  font-size: 13px; line-height: 1.8;
  color: rgba(244,243,239,.68); font-weight: 300;
}
.modal-prod { font-size: 12px; line-height: 1.75; color: var(--gray-3); font-weight: 300; }
.modal-credits {
  border-top: 1px solid var(--gray-2); padding-top: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.modal-credit { font-size: 11px; color: var(--gray-3); letter-spacing: .02em; }
.modal-dur { font-size: 10px; color: var(--gray-2); letter-spacing: .08em; margin-top: 4px; }

/* ── ABOUT ───────────────────────────────────────────────────────────── */
.about-hero {
  padding: calc(var(--nav-h) + 80px) 60px 80px;
  max-width: 1320px; margin: 0 auto;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  max-width: 720px; margin-bottom: 48px;
  color: rgba(244,243,239,.85);
}
.about-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; max-width: 1320px; margin: 0 auto; padding: 0 60px 80px;
}
@media (max-width: 900px) { .about-body { grid-template-columns: 1fr; gap: 40px; } }
.about-col p {
  font-size: 15px; line-height: 1.88;
  color: rgba(244,243,239,.68); font-weight: 300; margin-bottom: 22px;
}
.about-col p:last-child { margin-bottom: 0; }
.about-divider { height: 1px; background: var(--gray-2); margin: 0 60px 80px; }
.about-founding { max-width: 1320px; margin: 0 auto; padding: 0 60px 100px; }
.about-founding p {
  font-size: 15px; line-height: 1.88;
  color: rgba(244,243,239,.68); font-weight: 300;
  max-width: 640px; margin-bottom: 16px;
}

/* ── CONTACT ─────────────────────────────────────────────────────────── */
.contact-wrap {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 80px) 60px 80px;
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; padding: 120px 32px 60px; } }
.contact-left h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  margin-bottom: 20px;
}
.contact-left p {
  font-size: 15px; color: rgba(244,243,239,.55);
  font-weight: 300; line-height: 1.75; margin-bottom: 48px; max-width: 380px;
}
.contact-details { display: flex; flex-direction: column; gap: 6px; }
.contact-details a, .contact-details span {
  font-size: 13px; color: var(--gray-3); transition: color var(--trans);
}
.contact-details a:hover { color: var(--white); }

.contact-form { display: flex; flex-direction: column; }
.form-field {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--gray-2);
}
.form-field:first-child { border-top: 1px solid var(--gray-2); }
.form-field label {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gray-3); padding: 16px 0 0;
}
.form-field input, .form-field textarea, .form-field select {
  background: transparent; border: none; outline: none;
  color: var(--white); font-family: var(--font-body);
  font-size: 15px; font-weight: 300;
  padding: 8px 0 16px; resize: none; width: 100%; -webkit-appearance: none;
}
.form-field select option { background: var(--black); }
.form-field textarea { min-height: 90px; }
.form-submit {
  margin-top: 32px; align-self: flex-start;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--black); background: var(--white); border: none;
  padding: 15px 40px; transition: opacity var(--trans);
}
.form-submit:hover { opacity: .78; }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.not-found {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px; gap: 24px;
}
.not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 800; letter-spacing: -.03em;
}
.not-found p { font-size: 15px; color: var(--gray-3); font-weight: 300; max-width: 340px; }

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--gray-2);
  padding: 52px 60px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 40px;
}
@media (max-width: 700px) { .footer { grid-template-columns: 1fr; text-align: center; } }
.footer-tagline {
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  letter-spacing: .06em; color: var(--gray-3);
}
.footer-logo {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; text-align: center; color: var(--gray-3);
}
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
@media (max-width: 700px) { .footer-links { align-items: center; } }
.footer-links a, .footer-links span {
  font-size: 12px; color: var(--gray-3); transition: color var(--trans);
}
.footer-links a:hover { color: var(--white); }

/* ── HOMEPAGE ONLY ───────────────────────────────────────────────────── */

/* Hide nav bar on homepage */
.page-home .nav { display: none; }

/* Fixed video — truly detached, never scrolls */
.hero-fixed-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: opacity;
}
.hero-fixed-bg .hero-image-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .55;
}
.hero-fixed-bg .hero-vimeo-wrap {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-fixed-bg .hero-vimeo-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  opacity: .58;
  border: none;
}

/* Burn overlay — JS drives opacity from 0→1 over one scroll vh */
.hero-burn {
  position: absolute; inset: 0;
  background: #060606;
  opacity: 0;
  pointer-events: none;
}

/* Homepage scrollable content sits in normal flow ABOVE the fixed bg */
.page-home .home-content {
  position: relative;
  z-index: 10;
}

/* Hero content panel — one full viewport tall, transparent bg */
.hero-scroll-layer {
  position: relative;
  z-index: 10;
  height: 100vh;
  background: transparent !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-scroll-layer .hero-overlay { display: none; }

/* Intro and footer sit on solid black, covering the now-burned video */
.page-home .intro {
  position: relative;
  z-index: 10;
  background: var(--black);
}
.page-home .footer {
  position: relative;
  z-index: 10;
  background: var(--black);
}

/* Hamburger and menu stay on top */
.page-home .nav-hamburger { z-index: 600; }
.page-home .nav-menu      { z-index: 700; }


/* Nav always solid on non-homepage pages */
body:not(.page-home) .nav {
  background: rgba(6,6,6,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

  /* Nav */
  .nav {
    padding: 0 20px;
  }
  .nav-logo {
    font-size: 11px;
    letter-spacing: .18em;
  }
  .nav-hamburger {
    top: 16px; right: 20px;
  }

  /* Nav menu links — smaller on mobile */
  .nav-menu-links a {
    font-size: clamp(32px, 11vw, 52px);
    line-height: 1.1;
  }
  .nav-menu-logo { margin-bottom: 40px; }
  .nav-menu-footer {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    bottom: 28px;
  }

  /* Hero */
  #hero-panel {
    padding: 0 24px;
  }
  .hero-brand {
    font-size: clamp(14px, 5vw, 22px);
    letter-spacing: .18em;
  }
  .hero-headline {
    font-size: clamp(26px, 8vw, 44px);
    letter-spacing: -.02em;
  }
  .hero-sub {
    font-size: 11px;
    letter-spacing: .08em;
  }

  /* Intro */
  .intro {
    padding: 72px 24px;
    gap: 40px;
  }
  .intro-body { font-size: 15px; }

  /* Portfolio header */
  .portfolio-header {
    padding: calc(var(--nav-h) + 40px) 24px 28px;
  }
  .portfolio-header h1 {
    font-size: clamp(22px, 6vw, 32px);
  }

  /* Filters */
  .filters { padding: 0 24px; }
  .filter-btn {
    font-size: 9px;
    padding: 14px 12px;
    letter-spacing: .08em;
  }

  /* Film grid — 2 columns on mobile */
  .film-wall { grid-template-columns: repeat(2, 1fr); }

  /* Film modal — full screen bottom sheet on mobile */
  .film-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .film-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 0;
  }
  .modal-info {
    grid-template-columns: 1fr;
    padding: 24px 20px 36px;
    gap: 14px;
  }
  .modal-title { font-size: clamp(18px, 5vw, 26px); }
  .modal-close { top: 10px; right: 10px; }

  /* About */
  .about-hero {
    padding: calc(var(--nav-h) + 48px) 24px 48px;
  }
  .about-hero h1 {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 32px;
  }
  .about-body { padding: 0 24px 48px; }
  .about-divider { margin: 0 24px 48px; }
  .about-founding { padding: 0 24px 72px; }

  /* Contact */
  .contact-wrap {
    padding: calc(var(--nav-h) + 48px) 24px 48px;
    gap: 48px;
  }
  .contact-left h1 {
    font-size: clamp(24px, 7vw, 36px);
  }
  .contact-left p { max-width: 100%; }

  /* Footer */
  .footer {
    padding: 40px 24px;
    gap: 20px;
  }

  /* 404 */
  .not-found { padding: 24px; }
  .not-found h1 { font-size: clamp(28px, 8vw, 48px); }
}

/* ── VERY SMALL (max-width: 400px) ───────────────────────────────────── */
@media (max-width: 400px) {
  .film-wall { grid-template-columns: 1fr; }
  .hero-brand { letter-spacing: .12em; }
}

/* Nav on work page — ensure it doesn't overlap content */
@media (max-width: 768px) {
  body:not(.page-home) .nav {
    height: 56px;
  }
  :root { --nav-h: 56px; }
}

/* Hide cursor on touch/mobile */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body { cursor: auto; }
  button { cursor: pointer; }
  a { cursor: pointer; }
  .film-card { cursor: pointer; }
}
