/* ============================
   Custom Properties
   ============================ */
:root {
  --bg:           #f6ebe3;
  --bg-dark:      #0a0a0a;
  --text:         #0a0a0a;
  --text-muted:   #1a1a1a;
  --text-dim:     #555555;
  --border:       #dedcda;
  --accent:       #b8803a;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Inter', -apple-system, sans-serif;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
}

/* ============================
   Reset & Base
   ============================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

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

/* ============================
   Navigation
   ============================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  transition: background 0.4s;
}

nav.scrolled {
  background: rgba(246, 235, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Language toggle */
.lang-toggle {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.3rem 0.75rem;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.lang-toggle strong {
  color: var(--text);
  font-weight: 600;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.is-open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-hamburger.is-open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ============================
   Hero
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-name {
  display: block;
  margin-bottom: 1.75rem;
}

.hero-line {
  font-family: var(--sans);
  font-size: clamp(4.5rem, 12vw, 17rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-transform: uppercase;
  display: block;
  color: var(--text);
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 0.25rem;
}

.hero-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 0.6s var(--ease) 1.5s forwards;
}

.hero-sep {
  width: 30px;
  height: 1px;
  background: var(--border);
  opacity: 0;
  animation: fade-up 0.6s var(--ease) 1.5s forwards;
}

.hero-location {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: fade-up 0.6s var(--ease) 1.7s forwards;
}

/* Available for new projects badge */
.hero-available {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fade-up 0.6s var(--ease) 1.8s forwards;
}

.available-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a9e6f;
  flex-shrink: 0;
  animation: available-pulse 2.5s ease-in-out infinite;
}

@keyframes available-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(90,158,111,0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(90,158,111,0); }
}

.available-text {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll {
  position: absolute;
  bottom: 3.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fade-up 0.6s var(--ease) 2.2s forwards;
}

.hero-scroll span {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero letter animation */
.hero-line .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: letter-in 0.55s var(--ease) forwards;
}

@keyframes letter-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   Marquee
   ============================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: 0.875rem 0;
  background: var(--text);
}

.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-inner span {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  padding: 0 1.5rem;
}

.marquee-dot {
  width: 3px !important;
  height: 3px;
  border-radius: 50%;
  background: var(--bg);
  display: inline-block !important;
  padding: 0 !important;
  flex-shrink: 0;
  opacity: 0.35;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================
   Showreel
   ============================ */
.reel {
  padding: 5rem 2.5rem;
  background: var(--bg-dark);
}

.reel-container {
  max-width: 1200px;
  margin: 0 auto;
}

.reel-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.5rem;
}

.reel-video {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.reel-placeholder {
  aspect-ratio: 16/9;
  background: #111;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.reel-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-placeholder:hover .reel-still {
  transform: scale(1.03);
}

.reel-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.4s;
}

.reel-placeholder:hover::after {
  background: rgba(0, 0, 0, 0.3);
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}

.play-btn svg { margin-left: 3px; }

.reel-placeholder:hover .play-btn {
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
}

/* ============================
   Section Headers
   ============================ */
.section-header {
  padding: 0 2.5rem;
  margin-bottom: 2.5rem;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.section-num {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.section-header h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================
   Work / Projects
   ============================ */
.work {
  padding: 5rem 0;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 2.5rem;
  max-width: 1440px;
  margin: 0 auto 4rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-btn.is-active {
  background: var(--text);
  color: var(--bg);
}

.filter-btn:hover:not(.is-active) {
  background: rgba(0, 0, 0, 0.06);
}

.filter-btn sup {
  font-size: 0.58rem;
  margin-left: 0.15rem;
  opacity: 0.55;
  vertical-align: super;
}

/* Staggered archive grid */
.project-archive {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.5rem;
  row-gap: 0;
  padding: 0 2.5rem;
  max-width: 1440px;
  margin: 0 auto;
  align-items: start;
}

/* Default (all) — staggered positions, repeating every 9 items */
.project-archive .project-item:nth-child(9n+1) { grid-column: 1 / 7;  padding-bottom: 7rem; padding-top: 0; }
.project-archive .project-item:nth-child(9n+2) { grid-column: 8 / 13; padding-top: 14rem; padding-bottom: 7rem; }
.project-archive .project-item:nth-child(9n+3) { grid-column: 2 / 7;  padding-bottom: 7rem; padding-top: 0; }
.project-archive .project-item:nth-child(9n+4) { grid-column: 6 / 12; padding-top: 5rem;  padding-bottom: 7rem; }
.project-archive .project-item:nth-child(9n+5) { grid-column: 1 / 6;  padding-bottom: 7rem; padding-top: 0; }
.project-archive .project-item:nth-child(9n+6) { grid-column: 4 / 11; padding-top: 8rem;  padding-bottom: 7rem; }
.project-archive .project-item:nth-child(9n+7) { grid-column: 2 / 8;  padding-bottom: 7rem; padding-top: 0; }
.project-archive .project-item:nth-child(9n+8) { grid-column: 7 / 12; padding-top: 4rem;  padding-bottom: 7rem; }
.project-archive .project-item:nth-child(9n+9) { grid-column: 3 / 10; padding-bottom: 4rem; padding-top: 0; }

/* Filtered state — simple 3-col grid */
.project-archive.is-filtered {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-archive.is-filtered .project-item {
  grid-column: auto !important;
  padding: 0 !important;
}

/* Item link */
.project-link {
  display: block;
  cursor: pointer;
}

/* Thumbnail */
.project-thumb {
  position: relative;
  overflow: hidden;
}

.thumb-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  /* parallax handled by JS — base scale slightly above 1 so translateY has room */
  transform: translateY(0) scale(1.07);
  will-change: transform;
  transition: transform 0.1s linear;
}

/* On hover, let parallax JS drive transform; add subtle extra scale for polish */
.project-item:hover .thumb-img {
  transition: transform 0.6s var(--ease);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s;
}

.project-item:hover .project-overlay {
  background: rgba(0, 0, 0, 0.18);
}

.play-icon {
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.project-item:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}

/* Item metadata */
.project-meta {
  margin-top: 0.875rem;
}

.project-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.project-type {
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.project-year {
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.project-name {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.3rem;
  transition: color 0.3s;
}

.project-item:hover .project-name {
  color: var(--accent);
}

/* Primary credits — always visible */
.project-primary-credits {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Visually hidden — in DOM for SEO, invisible to users */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.credit-line {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  display: block;
}

.credit-key {
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================
   About
   ============================ */
.about {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  padding: 0 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  display: block;
}

.about-content {
  padding-top: 1rem;
}

.about-lead {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-tools,
.about-specialties {
  margin-top: 2rem;
}

.about-tools h3,
.about-specialties h3 {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-tag {
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}

.tool-tag:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ============================
   Contact
   ============================ */
.contact {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 0 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-header h2 {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-value {
  font-size: 1.05rem;
  color: var(--text);
}

.contact-link {
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.4s var(--ease);
}

.contact-link:hover::after { width: 100%; }

/* ============================
   Video Modal
   ============================ */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 200;
  padding: 0.5rem;
  transition: color 0.2s;
  z-index: 301;
}

.modal-close:hover { color: #fff; }

.modal-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5rem;
  width: 92vw;
  max-width: 1400px;
  max-height: 90vh;
}

/* Video column — takes remaining space */
.modal-video-col {
  flex: 1 1 0;
  min-width: 0;
}

.modal-iframe-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* Credits column */
.modal-credits-col {
  flex: 0 0 240px;
  padding-top: 0.25rem;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.modal-credits-col::-webkit-scrollbar { display: none; }

.modal-meta-type {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.4rem;
}

.modal-meta-title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.modal-meta-year {
  font-family: var(--sans);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.modal-credits {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-credit-line {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.modal-credit-key {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.modal-credit-val {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

/* Mobile: stack video above credits */
@media (max-width: 768px) {
  .video-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 3rem 1rem 2rem;
  }
  .modal-inner {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    max-height: none;
    gap: 1.5rem;
  }
  .modal-video-col {
    width: 100%;
    flex: none;
  }
  .modal-credits-col {
    flex: none;
    width: 100%;
    max-height: none;
    padding-bottom: 2rem;
  }
}

/* ============================
   Footer
   ============================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social a {
  color: var(--text-dim);
  transition: color 0.2s;
  display: flex;
}

.footer-social a:hover {
  color: var(--text);
}

.footer-year {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ============================
   Scroll Reveal
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Mobile Menu
   ============================ */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
    position: relative;
    z-index: 110;
  }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(246, 235, 227, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 105;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
  }
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1200px) {
  .project-archive {
    grid-template-columns: repeat(8, 1fr);
    padding: 0 2rem;
  }

  .project-archive .project-item:nth-child(9n+1) { grid-column: 1 / 5; padding-top: 0; }
  .project-archive .project-item:nth-child(9n+2) { grid-column: 6 / 9; padding-top: 10rem; }
  .project-archive .project-item:nth-child(9n+3) { grid-column: 1 / 5; padding-top: 0; }
  .project-archive .project-item:nth-child(9n+4) { grid-column: 4 / 9; padding-top: 4rem; }
  .project-archive .project-item:nth-child(9n+5) { grid-column: 1 / 5; padding-top: 0; }
  .project-archive .project-item:nth-child(9n+6) { grid-column: 3 / 8; padding-top: 6rem; }
  .project-archive .project-item:nth-child(9n+7) { grid-column: 1 / 6; padding-top: 0; }
  .project-archive .project-item:nth-child(9n+8) { grid-column: 5 / 9; padding-top: 3rem; }
  .project-archive .project-item:nth-child(9n+9) { grid-column: 2 / 7; padding-top: 0; }

  .project-archive.is-filtered {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header { padding: 0 2rem; }
  .filter-bar { padding: 0 2rem; }
  .about-container, .contact-container { padding: 0 2rem; gap: 3rem; }
  .reel { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }

  .hero-available { display: none; }

  .hero { padding: 0 1.5rem 2.5rem; }

  .hero-line {
    font-size: clamp(3rem, 14vw, 8rem);
    letter-spacing: -0.03em;
  }

  .hero-scroll { right: 1.5rem; bottom: 2.5rem; }

  .project-archive,
  .project-archive.is-filtered {
    grid-template-columns: 1fr !important;
    gap: 3rem;
    padding: 0 1.5rem;
  }

  .project-archive .project-item,
  .project-archive.is-filtered .project-item {
    grid-column: 1 / -1 !important;
    padding: 0 !important;
  }

  .filter-bar { padding: 0 1.5rem; margin-bottom: 2rem; }
  .section-header { padding: 0 1.5rem; flex-direction: column; gap: 0.4rem; }
  .about-container { grid-template-columns: 1fr; padding: 0 1.5rem; gap: 2rem; }
  .about-photo { aspect-ratio: 4/3; max-height: 320px; }
  .contact-container { grid-template-columns: 1fr; padding: 0 1.5rem; gap: 2.5rem; }
  .contact { padding: 4rem 0; }
  .footer { padding: 1.5rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .play-btn { width: 60px; height: 60px; }
  .play-btn svg { width: 18px; height: 22px; }
  .reel { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-line { letter-spacing: -0.02em; }
  .filter-btn { font-size: 0.65rem; padding: 0.35rem 0.85rem; }
}

/* ============================
   Nav active state (archive page)
   ============================ */
.nav-active {
  color: var(--text) !important;
  font-weight: 600 !important;
}

/* ============================
   Archive CTA (homepage → archive)
   ============================ */
.work-archive-link {
  display: flex;
  justify-content: center;
  padding: 4rem 2.5rem 2rem;
}

.archive-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.25rem;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}

.archive-cta svg {
  transition: transform 0.3s var(--ease);
}

.archive-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 0.9rem;
}

.archive-cta:hover svg {
  transform: translateX(3px);
}

/* ============================
   Archive page
   ============================ */
.archive-page {
  min-height: 100vh;
}

/* Header */
.arc-hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2.5rem 3rem;
}

.arc-hero-content {
  position: relative;
}

.arc-hero-title {
  display: block;
  margin-bottom: 1rem;
}

.arc-subtitle {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 0.6s var(--ease) 1.5s forwards;
}

/* Filters */
.arc-filters {
  padding: 2rem 2.5rem 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  position: sticky;
  top: 60px;
  background: var(--bg);
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.arc-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.arc-category-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Search */
.arc-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  min-width: 200px;
}

.arc-search-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.arc-search {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
}

.arc-search::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

/* Year pills */
.arc-year-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.year-btn {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0.2rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 100px;
  transition: all 0.2s;
}

.year-btn:hover {
  border-color: var(--border);
  color: var(--text);
}

.year-btn.is-active {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}

/* Grid */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.1rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 2.5rem 6rem;
}

/* Card */
.arc-card {
  border: none;
}

.arc-link {
  display: block;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  transition: background 0.25s;
}

.arc-link:hover {
  background: rgba(0,0,0,0.02);
}

.arc-thumb {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #e8e0d8;
  aspect-ratio: 16 / 9;
}

.arc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.arc-card:hover .arc-thumb img {
  transform: scale(1.04);
}

.arc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.35s;
}

.arc-card:hover .arc-overlay {
  background: rgba(0,0,0,0.18);
}

.arc-play-icon {
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.arc-card:hover .arc-play-icon {
  opacity: 1;
  transform: scale(1);
}

/* Archive card meta */
.arc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.arc-type {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.arc-year {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-dim);
}

.arc-name {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  transition: color 0.3s;
}

.arc-card:hover .arc-name {
  color: var(--accent);
}

.arc-primary-credits,
.arc-extra-credits {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.arc-extra-credits {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.35s ease;
  margin-top: 0;
}

.arc-card:hover .arc-extra-credits {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.3rem;
}

.arc-credit-line {
  font-size: 0.63rem;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  display: block;
}

.arc-credit-key {
  font-weight: 500;
  color: var(--text-muted);
}

/* Empty state */
.arc-empty {
  text-align: center;
  padding: 6rem 2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  display: none;
}

/* Archive responsive */
@media (max-width: 1100px) {
  .arc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .arc-hero { padding: 0 1.5rem 2.5rem; min-height: 45vh; }
  .arc-filters { padding: 1.5rem 1.5rem 1rem; top: 55px; }
  .arc-filter-top { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .arc-search-wrap { min-width: 100%; }
  .arc-grid { grid-template-columns: 1fr; padding: 1.5rem 1.5rem 4rem; }
}

@media (max-width: 480px) {
  .arc-hero { min-height: 40vh; }
  .year-btn { font-size: 0.58rem; padding: 0.15rem 0.55rem; }
}
