:root {
  --paper: #efedea;
  --ink: #191919;
}

html { background: var(--paper); }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); cursor: crosshair; font-family: "Kumbh Sans", sans-serif; }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.font-serif { font-family: Georgia, "Times New Roman", serif; }
.page-kicker { font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.page-display { margin: 0; font-size: clamp(4rem, 13vw, 12rem); font-weight: 700; line-height: .76; letter-spacing: -.065em; text-transform: uppercase; }
.page-heading { margin: 0; font-size: clamp(2.4rem, 6vw, 6.5rem); font-weight: 700; line-height: .85; letter-spacing: -.05em; text-transform: uppercase; }
.page-copy { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.5vw, 2.8rem); line-height: 1.13; }
.inner-header { position: fixed; inset: 0 0 auto; z-index: 1000; display: flex; justify-content: space-between; padding: 15px; color: white; mix-blend-mode: difference; pointer-events: none; }
.inner-header a, .inner-header button { pointer-events: auto; }
.inner-menu { position: fixed; inset: 0; z-index: 900; display: flex; visibility: hidden; flex-direction: column; overflow: hidden; background: var(--ink); color: var(--paper); pointer-events: none; }
.inner-menu.is-open { pointer-events: auto; }
.inner-menu-list { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 1.5vh; }
.inner-menu-row { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 30px); }
.inner-menu-title { font-size: clamp(3.5rem, 13vh, 10rem); font-weight: 700; line-height: .7; letter-spacing: -.06em; text-transform: uppercase; }
.inner-menu-note { min-width: 100px; font-family: Georgia, "Times New Roman", serif; font-size: 15px; white-space: nowrap; }
.inner-menu-bottom { display: flex; justify-content: space-between; padding: 15px; }
.transition-curtain { position: fixed; inset: 0; z-index: 9999; transform: scaleY(0); transform-origin: bottom; background: var(--ink); pointer-events: none; }
.section-pad { padding: 0 15px; }
.inner-hero { display: flex; min-height: 100dvh; flex-direction: column; justify-content: space-between; padding: 110px 15px 35px; }
.split-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.rule { border-top: 1px solid rgba(25, 25, 25, .45); }
.dark-section { background: var(--ink); color: var(--paper); }
.hover-row { transition: background-color .45s ease, color .45s ease, padding .45s cubic-bezier(.82,0,.18,1); }
.hover-row:hover { padding-right: 28px; padding-left: 28px; background: var(--ink); color: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(55px, 8vw, 120px) 15px; }
.work-card { min-width: 0; }
.work-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe3e5; }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.82, 0, .18, 1), filter .8s ease; display: block; }
.work-card:hover .work-media img, .work-card:hover .work-media video { transform: scale(1.035); filter: saturate(.8); }
.work-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(25, 25, 25, .4); }
.work-caption span.work-cat { color: #68717a; text-align: right; }
.work-desc { grid-column: 1 / -1; margin: 0; font-family: "Kumbh Sans", sans-serif; font-size: 15px; line-height: 1.5; color: #454b52; max-width: 46ch; }
.site-footer { padding: 90px 15px 20px; background: var(--ink); color: var(--paper); }
.site-footer-title { margin: 0; font-size: clamp(3.5rem, 10vw, 9rem); font-weight: 700; line-height: .78; letter-spacing: -.055em; text-transform: uppercase; }
.site-footer-bottom { display: flex; justify-content: space-between; margin-top: 90px; padding-top: 15px; border-top: 1px solid rgba(239,237,234,.35); }

@media (max-width: 640px) {
  .inner-menu-title { font-size: clamp(3rem, 17vw, 5.75rem); }
  .inner-menu-note { min-width: 58px; font-size: 11px; }
  .split-meta { font-size: 13px; }
  .work-grid { grid-template-columns: 1fr; gap: 55px; }
  .work-caption { font-size: 13px; }
}

/* ==========================================================================
   MODERN HOVER MICRO-INTERACTIONS & CRAFT CARD
   ========================================================================== */
.project-craft-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-media-viewport {
  position: relative;
  overflow: hidden;
  background: #191919;
  border-radius: 4px;
}
.project-media-viewport video,
.project-media-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  display: block;
}
.project-craft-card:hover .project-media-viewport video,
.project-craft-card:hover .project-media-viewport img {
  transform: scale(1.05);
  filter: contrast(1.08) saturate(1.1);
}

/* Floating Glassmorphic Film Pill */
.film-pill-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0,0,0,0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 5;
}
.project-craft-card:hover .film-pill-overlay {
  opacity: 1;
}
.film-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  transform: scale(0.8) translateY(6px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease;
}
.project-craft-card:hover .film-pill {
  transform: scale(1) translateY(0);
}
.project-craft-card:hover .film-pill:hover {
  background: rgba(28, 28, 28, 0.95);
  border-color: rgba(255, 255, 255, 0.45);
}
.pill-play-icon {
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}
.pill-play-icon svg { width: 100%; height: 100%; fill: #fff; }
.pill-text {
  display: none !important;
}
.live-dot, .pill-soundwave {
  display: none !important;
}

/* Corner Architectural Crosshairs */
.corner-crosshair {
  position: absolute;
  font-family: monospace;
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.corner-crosshair.top-left { top: 8px; left: 8px; }
.corner-crosshair.top-right { top: 8px; right: 8px; }
.corner-crosshair.bottom-left { bottom: 8px; left: 8px; }
.corner-crosshair.bottom-right { bottom: 8px; right: 8px; }
.project-craft-card:hover .corner-crosshair {
  opacity: 1;
  transform: scale(1);
  color: rgba(255, 255, 255, 0.95);
}

/* Project Meta Typography */
.project-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  transition: transform 0.3s ease;
}
.project-craft-card:hover .project-meta-row {
  transform: translateY(-2px);
}
.project-num {
  font-family: monospace;
  font-size: 11px;
  color: rgba(25, 25, 25, 0.45);
}
.project-headline {
  font-family: "Kumbh Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.project-sub {
  font-family: Georgia, serif;
  font-size: 13px;
  color: rgba(25, 25, 25, 0.65);
}

/* ==========================================================================
   CINEMATIC THEATER MODAL (LIGHTBOX)
   ========================================================================== */
.theater-modal {
  position: fixed;
  inset: 0;
  z-index: 999999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 40px);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.theater-modal.is-open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.theater-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  cursor: pointer;
}
.theater-container {
  position: relative;
  z-index: 10;
  width: min(1200px, 96vw);
  max-height: 92vh;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85), 0 0 60px rgba(255,255,255,0.02);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(16px);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: auto;
}
.theater-modal.is-open .theater-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Floating HUD */
.theater-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.theater-hud-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 12px;
  color: #fff;
  flex-wrap: wrap;
}
.theater-badge {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}
.theater-cat-pill {
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff;
  color: #111;
}
.theater-sep { color: rgba(255,255,255,0.25); }
.theater-client-tag { color: rgba(255,255,255,0.75); font-weight: 500; }

.theater-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
}
.theater-close-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.theater-close-esc {
  font-family: monospace;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.15);
}
.theater-close-btn:hover .theater-close-esc {
  background: rgba(0,0,0,0.2);
}
.theater-close-icon { font-size: 18px; line-height: 1; }

/* Cinema Canvas */
.theater-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.theater-canvas video,
.theater-canvas img,
.theater-canvas iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  border: 0;
}

/* Minimal Cinema Controls */
.theater-controls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 20%, transparent 70%, rgba(0,0,0,0.75) 100%);
}
.theater-canvas:hover .theater-controls,
.theater-controls.is-paused {
  opacity: 1;
}
.theater-center-play {
  margin: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  pointer-events: auto;
}
.theater-center-play:hover {
  transform: scale(1.08);
  background: #fff;
}
.theater-center-play svg { width: 28px; height: 28px; fill: #111; }
.theater-center-play .pause-icon { display: none; }
.theater-controls.is-paused .theater-center-play .play-icon { display: block; }
.theater-controls.is-paused .theater-center-play .pause-icon { display: none; }
.theater-controls:not(.is-paused) .theater-center-play .play-icon { display: none; }
.theater-controls:not(.is-paused) .theater-center-play .pause-icon { display: block; }

.theater-bottom-bar {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}
.theater-progress-wrap {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.22);
  border-radius: 3px;
  cursor: pointer;
  transition: height 0.15s ease;
}
.theater-progress-wrap:hover { height: 8px; }
.theater-progress-bar {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 3px;
  position: relative;
}
.theater-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 12px;
}
.theater-actions-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theater-icon-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}
.theater-icon-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.theater-timecode {
  font-family: monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}

/* Sound wave in controls */
.sound-wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.sound-wave-bars .bar {
  width: 2px;
  background: currentColor;
  border-radius: 1px;
}
.sound-wave-bars.active .bar-1 { height: 60%; animation: sound-bounce 0.8s infinite alternate; }
.sound-wave-bars.active .bar-2 { height: 100%; animation: sound-bounce 0.8s 0.2s infinite alternate; }
.sound-wave-bars.active .bar-3 { height: 75%; animation: sound-bounce 0.8s 0.4s infinite alternate; }
.sound-wave-bars.muted .bar { height: 30% !important; animation: none !important; opacity: 0.4; }

/* Dossier Section Underneath */
.theater-dossier {
  padding: 24px 30px 30px;
  background: #111;
  color: #fff;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.theater-project-title {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: 'Kumbh Sans', sans-serif;
}
.theater-project-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
}
.theater-dossier-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: rgba(255,255,255,0.03);
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.theater-meta-item label {
  display: block;
  font-family: monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.theater-meta-item strong {
  display: block;
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
@media (max-width: 768px) {
  .theater-dossier { grid-template-columns: 1fr; }
  .theater-dossier-meta { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PORTFOLIO MULTI-LAYOUT EXPLORATION SYSTEM
   ========================================================================== */
.layout-switcher-container {
  margin-bottom: 50px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(25, 25, 25, 0.16);
}
.layout-switcher-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.layout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(25, 25, 25, 0.22);
  background: transparent;
  color: var(--ink);
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.layout-btn:hover {
  background: rgba(25, 25, 25, 0.06);
  border-color: var(--ink);
}
.layout-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(25, 25, 25, 0.18);
}
.layout-icon { font-size: 15px; }
.layout-pill-badge {
  font-family: monospace;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(25,25,25,0.08);
  color: inherit;
}
.layout-btn.active .layout-pill-badge {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
.layout-desc-note {
  margin-top: 14px;
  font-size: 13px;
  color: #4a4944;
  font-family: Georgia, serif;
  line-height: 1.5;
}

/* Layout Views */
.portfolio-layout-view {
  display: none;
  animation: layout-fade 0.4s ease;
}
.portfolio-layout-view.is-active {
  display: block;
}
@keyframes layout-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- OPTION 1: ASYMMETRICAL EDITORIAL --- */
.layout-asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 30px;
}
.asym-hero {
  grid-column: span 12;
  margin-bottom: 20px;
}
.asym-left {
  grid-column: span 7;
}
.asym-right {
  grid-column: span 5;
  margin-top: 50px;
}
.asym-wide {
  grid-column: span 12;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .asym-left, .asym-right { grid-column: span 12; margin-top: 0; }
}

/* --- OPTION 2: MASONRY BENTO GRID --- */
.layout-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.bento-card-hero { grid-column: span 8; }
.bento-card-tall { grid-column: span 4; }
.bento-card-compact { grid-column: span 5; }
.bento-card-wide { grid-column: span 7; }
@media (max-width: 860px) {
  .bento-card-hero, .bento-card-tall, .bento-card-compact, .bento-card-wide {
    grid-column: span 12;
  }
}

/* --- OPTION 3: SPLIT-SCREEN DOSSIER --- */
.layout-split-view {
  display: grid;
  grid-template-columns: 4.8fr 7.2fr;
  gap: 60px;
  align-items: start;
}
.split-sticky-sidebar {
  position: sticky;
  top: 90px;
  padding-right: 20px;
}
.split-stream-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.split-selector-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 1px solid rgba(25, 25, 25, 0.15);
  background: transparent;
  color: var(--ink);
  font-family: "Kumbh Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.split-selector-btn:hover {
  background: rgba(25, 25, 25, 0.05);
  border-color: var(--ink);
}
.split-selector-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
@media (max-width: 960px) {
  .layout-split-view { grid-template-columns: 1fr; gap: 40px; }
  .split-sticky-sidebar { position: static; padding-right: 0; }
}

/* --- OPTION 4: HORIZONTAL RUNWAY FILMSTRIP --- */
.layout-runway-container {
  position: relative;
  width: 100%;
  padding: 10px 0 20px;
}
.runway-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 15px 40px;
  -webkit-overflow-scrolling: touch;
}
.runway-track::-webkit-scrollbar {
  height: 6px;
}
.runway-track::-webkit-scrollbar-track {
  background: rgba(25,25,25,0.08);
  border-radius: 3px;
}
.runway-track::-webkit-scrollbar-thumb {
  background: var(--ink);
  border-radius: 3px;
}
.runway-card {
  flex: 0 0 clamp(320px, 68vw, 840px);
  scroll-snap-align: center;
}
.runway-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 0 15px;
}
.runway-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.runway-nav-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ==========================================================================
   PORTFOLIO FILTER & GALLERY SYSTEM
   ========================================================================== */
.filter-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(25, 25, 25, 0.2);
}
.filter-pills-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(25, 25, 25, 0.2);
  background: transparent;
  color: var(--ink);
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-pill:hover {
  border-color: var(--ink);
  background: rgba(25, 25, 25, 0.05);
}
.filter-pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.filter-pill .count {
  font-family: monospace;
  font-size: 11px;
  opacity: 0.6;
}
.filter-pill.active .count {
  opacity: 0.85;
}
.portfolio-count-tag {
  font-family: monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #68717a;
}

/* ==========================================================================
   BENTO MASONRY & DUAL VIEW SYSTEM
   ========================================================================== */
.view-mode-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(25, 25, 25, 0.06);
  border: 1px solid rgba(25, 25, 25, 0.15);
  padding: 3px;
  border-radius: 9999px;
  gap: 2px;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.view-toggle-btn:hover {
  background: rgba(25, 25, 25, 0.08);
}
.view-toggle-btn.active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Bento Masonry Grid */
.bento-masonry-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 960px) {
  .bento-col-8, .bento-col-4, .bento-col-6, .bento-col-12 {
    grid-column: span 12;
  }
}

.bento-luxury-card {
  background: #141414;
  color: #efedea;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.38s ease;
}
.bento-luxury-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}
.bento-luxury-card:hover .project-media-viewport img,
.bento-luxury-card:hover .project-media-viewport video {
  transform: scale(1.05);
}

/* Archive Dossier Split View (Awwwards Grade) */
.archive-split-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 1200px) {
  .archive-split-view {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
  }
}
@media (max-width: 980px) {
  .archive-split-view {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .archive-sticky-preview {
    display: none !important;
  }
}

/* Table Header */
.archive-table-header {
  display: grid;
  grid-template-columns: 36px minmax(0, 2.2fr) minmax(0, 1.2fr) 60px 24px;
  gap: 16px;
  align-items: center;
  padding: 8px 18px 12px;
  border-bottom: 1px solid rgba(25, 25, 25, 0.15);
  font-family: 'Kumbh Sans', monospace, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(25, 25, 25, 0.4);
  margin-bottom: 6px;
}
@media (max-width: 768px) {
  .archive-table-header {
    grid-template-columns: 32px minmax(0, 1fr) 48px;
    padding: 8px 12px 10px;
  }
  .archive-th-cat, .archive-th-action {
    display: none !important;
  }
}

/* Row Item */
.archive-row-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 2.2fr) minmax(0, 1.2fr) 60px 24px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(25, 25, 25, 0.09);
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
  color: #191919;
  transition: background 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.archive-row-item .archive-cell-num {
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.4;
  transition: all 0.2s ease;
}
.archive-row-item .archive-cell-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.archive-row-item .archive-cell-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #191919;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.archive-row-item .archive-cell-client {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(25, 25, 25, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.archive-row-item .archive-cell-services {
  font-family: monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(25, 25, 25, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.archive-row-item .archive-cell-year {
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  color: rgba(25, 25, 25, 0.45);
  text-align: right;
  transition: color 0.2s ease;
}
.archive-row-item .archive-cell-arrow {
  font-family: monospace;
  font-size: 13px;
  color: rgba(25, 25, 25, 0.25);
  text-align: right;
  transform: translateX(0);
  transition: all 0.2s ease;
}

/* Row Hover & Active State */
.archive-row-item:hover,
.archive-row-item.is-active {
  background: #191919 !important;
  color: #EFEDEA !important;
  transform: translateX(4px);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.16);
}
.archive-row-item:hover .archive-cell-num,
.archive-row-item.is-active .archive-cell-num {
  color: #EFEDEA !important;
  opacity: 0.45;
}
.archive-row-item:hover .archive-cell-title,
.archive-row-item.is-active .archive-cell-title {
  color: #FFFFFF !important;
}
.archive-row-item:hover .archive-cell-client,
.archive-row-item.is-active .archive-cell-client {
  color: rgba(239, 237, 234, 0.72) !important;
}
.archive-row-item:hover .archive-cell-services,
.archive-row-item.is-active .archive-cell-services {
  color: rgba(239, 237, 234, 0.7) !important;
}
.archive-row-item:hover .archive-cell-year,
.archive-row-item.is-active .archive-cell-year {
  color: rgba(239, 237, 234, 0.55) !important;
}
.archive-row-item:hover .archive-cell-arrow,
.archive-row-item.is-active .archive-cell-arrow {
  color: #FFFFFF !important;
  opacity: 1;
  transform: translateX(3px);
}

/* Mobile Responsive Rows (< 768px) */
@media (max-width: 768px) {
  .archive-row-item {
    grid-template-columns: 32px minmax(0, 1fr) 48px;
    gap: 12px;
    padding: 14px 12px;
  }
  .archive-cell-services, .archive-cell-arrow {
    display: none !important;
  }
  .archive-row-item .archive-cell-title {
    font-size: 14px;
  }
  .archive-row-item .archive-cell-client {
    font-size: 11px;
  }
}

/* Sticky Live Preview Dossier */
.archive-sticky-preview {
  position: sticky;
  top: 100px;
  background: #141414;
  color: #EFEDEA;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45);
  padding: 22px;
}
.archive-sticky-preview .preview-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.archive-sticky-preview .preview-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  margin: 14px 0;
}
.archive-sticky-preview .preview-viewport video,
.archive-sticky-preview .preview-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.archive-sticky-preview .preview-viewport:hover video,
.archive-sticky-preview .preview-viewport:hover img {
  transform: scale(1.03);
}



