/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Graphik';
  font-weight: 300;
  font-style: normal;
  src: url('assets/fonts/Graphik-Light-Web.woff2') format('woff2'),
       url('assets/fonts/Graphik-Light-Web.woff')  format('woff');
}
@font-face {
  font-family: 'Graphik';
  font-weight: 400;
  font-style: normal;
  src: url('assets/fonts/Graphik-Regular-Web.woff2') format('woff2'),
       url('assets/fonts/Graphik-Regular-Web.woff')  format('woff');
}
@font-face {
  font-family: 'Graphik';
  font-weight: 600;
  font-style: normal;
  src: url('assets/fonts/Graphik-Semibold-Web.woff2') format('woff2'),
       url('assets/fonts/Graphik-Semibold-Web.woff')  format('woff');
}
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/MaterialIcons-Regular.woff2') format('woff2');
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --grid: 25px;
  --header-h: 50px;
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-white: #ffffff;
  --color-red: #DC143C;
  --font: 'Graphik', sans-serif;
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-dur: 0.55s;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
}

/* Text selection */
::selection {
  background: #DC143C;
  color: #ffffff;
}
::-moz-selection {
  background: #DC143C;
  color: #ffffff;
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  background: var(--color-bg);
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--grid);
  width: 100%;
  height: var(--header-h);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-name {
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .header-name:hover {
    color: #DC143C;
  }
}
.header-name:active {
  color: #DC143C;
}

.header-project-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-project-year {
  font-weight: 400;
  white-space: nowrap;
  color: #888888;
  margin-left: 0.5em;
}

.header-project {
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #888888;
  
}

/* Header right: project title */
.header-right {
  display: flex;
  margin-left: 20px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .header-right:hover .header-project-title,
  .header-right:hover .header-project-year {
    color: #DC143C;
  }
}
.header-right:active .header-project-title,
.header-right:active .header-project-year {
  color: #DC143C;
}

/* Hide header-right when about panel is open */
body.about-open .header-right,
body.aboutpage-open .header-right {
  display: none;
}

.nav-item {
  font-weight: 400;
  font-size: 18px;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-item + .nav-item::before {
  content: ' \00B7 ';
  margin: 0 6px;
  color: #ccc;
  pointer-events: none;
}
@media (hover: hover) {
  .nav-item:hover { color: #DC143C; }
}
.nav-item:active { color: #DC143C; }
.nav-item.active { 
    font-weight: 400;
    color: #DC143C;
}

/* ============================================================
   MAIN STAGE
   ============================================================ */
#stage {
  position: fixed;
  top: var(--header-h);
  left: var(--grid);
  right: var(--grid);
  bottom: var(--grid);
  display: flex;
  overflow: hidden;
}

/* ============================================================
   HERO CONTAINER
   ============================================================ */
#heroContainer {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  margin-left: 0;
  overflow: hidden;
  container-type: inline-size;
  z-index: 10;
  transition: width var(--transition-dur) var(--transition-ease),
              margin-left var(--transition-dur) var(--transition-ease),
              transform var(--transition-dur) var(--transition-ease);
}

/* Slide down when menu is open — REMOVED */

/* Half-width for about state (info panel - hero on left) */
body.about-open #heroContainer {
  width: 50%;
}

/* Half-width for about page state (About page panel - hero on right) */
body.aboutpage-open #heroContainer {
  width: 50%;
  margin-left: 50%;
}

/* Half-width for menu-page state (image on right, no order jump) */
body.menupage-open #heroContainer {
  width: 50%;
  margin-left: 50%;
}

#heroImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}
#heroVideo.active {
  display: block;
}

/* Video loading state */
.video-loading {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.video-loading.active {
  display: flex;
}
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #888;
}
.loading-content i {
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
}
.loading-content span {
  font-size: 14px;
  font-weight: 400;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#heroImageTop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hero iframe container */
.hero-iframe-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  background: var(--color-bg);
  overflow: hidden;
}

.hero-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hero text overlay */
#heroText {
  position: absolute;
  top: var(--grid);
  left: calc(var(--grid) * 2);
  right: var(--grid);
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(2rem, 15cqw, 10rem);
  line-height: 0.95;
  color: var(--color-white);
  pointer-events: none;
  transition: opacity 0.2s ease;
  overflow-wrap: break-word;
  word-break: normal;
}

#heroText.black-text {
  color: var(--color-text);
}

body.about-open #heroText,
body.aboutpage-open #heroText,
body.menupage-open #heroText {
  opacity: 0;
}

/* Image navigation arrows */
#infoBtn {
  position: absolute;
  top: calc(var(--grid) * 0.5);
  right: calc(var(--grid) * 0.5);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  opacity: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#infoBtn svg { width: 20px; height: 20px; stroke: currentColor; }
@media (hover: hover) {
  #infoBtn:hover { opacity: 1; background: rgba(255, 255, 255, 1); }
}
#infoBtn:active { opacity: 1; background: rgba(255, 255, 255, 1); }

#heroCloseBtn {
  position: absolute;
  top: calc(var(--grid) * 0.5);
  left: calc(var(--grid) * 0.5);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  opacity: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#heroCloseBtn svg { width: 20px; height: 20px; stroke: currentColor; }
@media (hover: hover) {
  #heroCloseBtn:hover { opacity: 1; background: rgba(255, 255, 255, 1); }
}
#heroCloseBtn:active { opacity: 1; background: rgba(255, 255, 255, 1); }

/* Hide close button when panels are open */
body.menupage-open #heroCloseBtn { display: none; }

.hero-arrows {
  position: absolute;
  bottom: calc(var(--grid) * 0.5);
  left: calc(var(--grid) * 0.5);
  right: calc(var(--grid) * 0.5);
  display: flex;
  justify-content: space-between;
}

.arrow {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 1px;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  opacity: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.arrow svg { width: 20px; height: 20px; stroke: currentColor; }
@media (hover: hover) {
  .arrow:hover { opacity: 1; background: rgba(255, 255, 255, 1); }
}
.arrow:active { opacity: 1; background: rgba(255, 255, 255, 1); }
.arrow.hidden { visibility: hidden; }

#landingProgress {
  position: fixed;
  bottom: 0;
  left: var(--grid);
  right: var(--grid);
  height: var(--grid);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

#landingProgress.active {
  display: flex;
}

/* When about page panel is open, center progress bar within the right hero container */
body.aboutpage-open #landingProgress {
  left: 75%;
  right: auto;
  transform: translateX(-50%);
}

#landingProgressBar {
  width: 200px;
  height: 5px;
  border-radius: 3px;
  background: #d9d9d9;
  overflow: hidden;
}

#landingProgressFill {
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--color-text);
}

/* Image dots */
#imageDots {
  position: fixed;
  bottom: 0;
  left: var(--grid);
  right: var(--grid);
  height: var(--grid);
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 100;
}
#imageDots.visible {
  display: flex;
}
/* Hide dots when panels are open */
body.about-open #imageDots,
body.aboutpage-open #imageDots,
body.menupage-open #imageDots {
  display: none;
}

/* Image credit line */
#heroCredit {
  position: fixed;
  bottom: 0;
  left: var(--grid);
  height: var(--grid);
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #888;
  z-index: 100;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(50vw - var(--grid) * 2);
}
/* Hide credit when panels are open */
body.about-open #heroCredit,
body.aboutpage-open #heroCredit,
body.menupage-open #heroCredit {
  display: none;
}
.img-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.img-dot.active {
  background: var(--color-text);
}

/* Hero image — right arrow cursor for click-to-advance */
#heroContainer {
  cursor: e-resize;
}
#heroContainer button,
#heroContainer .img-dot {
  cursor: pointer;
}

/* ============================================================
   PANELS (shared)
   ============================================================ */
.panel {
  width: 50%;
  height: 100%;
  position: relative;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: transform var(--transition-dur) var(--transition-ease),
              opacity var(--transition-dur) var(--transition-ease),
              pointer-events 0s 0s,
              visibility 0s 0s,
              z-index 0s 0s;
  pointer-events: none;
}

.panel.panel-left {
  transform: translateX(-100%);
  order: 1;
}

.panel.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  z-index: 50;
  pointer-events: auto;
  transition: transform var(--transition-dur) var(--transition-ease),
              opacity var(--transition-dur) var(--transition-ease),
              pointer-events 0s var(--transition-dur),
              visibility 0s 0s,
              z-index 0s 0s;
}

.panel-close {
  position: absolute;
  top: 0 !important;
  right: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  transition: opacity 0.2s;
  z-index: 500;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.panel-close svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5;
}
@media (hover: hover) {
  .panel-close:hover { opacity: 0.4; }
}
.panel-close:active { opacity: 0.4; }

.panel-inner {
  /* padding: calc(var(--grid) * 3) calc(var(--grid) * 2) var(--grid); */
  padding: calc(var(--grid) * 0) calc(var(--grid) * 1) var(--grid);
  display: flex;
  flex-direction: column;
  /* overflow: hidden; */
  height: 100%;
}

/* ============================================================
   ABOUT PANEL
   ============================================================ */
#aboutPanel {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.about-header {
  position: relative;
  flex-shrink: 0;
  padding: 0 calc(var(--grid) * 1) 0;
  background: var(--color-bg);
  z-index: 10;
}

#aboutPanel .panel-close {
  top: calc(var(--grid) * 1);
  right: calc(var(--grid) * 1);
}

#aboutTitle {
  font-size: 72px;
  font-weight: 100;
  line-height: 1;
  margin-bottom: 8px;
}

.about-meta {
  font-size: 11px;
  font-weight: 400;
  color: #888;
  margin-bottom: 0;
  padding-bottom: calc(var(--grid) * 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e0e0e0;
}

.about-content {
  flex: 1;
  overflow-y: auto;
  padding: calc(var(--grid) * 1);
}

.about-desc {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--grid);
  white-space: pre-line;
}

.about-desc a {
  color: #DC143C;
  text-decoration: none;
  /* border-bottom: 1px solid #DC143C;
  transition: color 0.2s, border-bottom-color 0.2s; */
}

.about-link {
  display: inline-block;
  color: #DC143C;
  text-decoration: none;
  font-size: 14px;
  /* border-bottom: 1px solid var(--color-text); */
  margin-bottom: calc(var(--grid) * 1.5);
  margin-top: 10px;
  transition: color 0.2s, border-bottom-color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .about-link:hover { color: #DC143C; border-bottom-color: #DC143C; }
}
.about-link:active { color: #DC143C; border-bottom-color: #DC143C; }
.about-link.hidden { display: none; }

/* Thumbnail grid */
.thumbgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--grid);
}

.thumbgrid img {
  width: calc(25% - 6px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .thumbgrid img:hover { opacity: 0.75; }
}
.thumbgrid img:active { opacity: 0.75; }
.thumbgrid img.active-thumb { outline: 1px solid var(--color-red); }

.thumb-video {
  width: calc(25% - 6px);
  aspect-ratio: 16 / 9;
  background: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: opacity 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .thumb-video:hover { opacity: 0.75; }
}
.thumb-video:active { opacity: 0.75; }
.thumb-video.active-thumb { outline: 2px solid var(--color-text); }
.thumb-video svg { width: 32px; height: 32px; }

/* ============================================================
   LEFT PANELS (work / exhibitions / publications / about page)
   ============================================================ */
.left-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow-y: auto;
  padding-right: var(--grid);
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: transform var(--transition-dur) var(--transition-ease),
              opacity var(--transition-dur) var(--transition-ease),
              pointer-events 0s 0s,
              visibility 0s 0s,
              z-index 0s 0s;
  pointer-events: none;
  background: var(--color-bg);
}
.left-panel.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  z-index: 50;
  pointer-events: auto;
  transition: transform var(--transition-dur) var(--transition-ease),
              opacity var(--transition-dur) var(--transition-ease),
              pointer-events 0s var(--transition-dur),
              visibility 0s 0s,
              z-index 0s 0s;
}

/* Shared table styles */
.list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: calc(var(--grid) * 2);
}
.list-table tr {
  border-top: 1px solid #e0e0e0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.list-table tr:last-child {
  border-bottom: 1px solid #e0e0e0;
}
.list-table tr.active-row td { opacity: 0.4; }
.list-table td {
  padding: 14px var(--grid);
  font-size: 18px;
  font-weight: 400;
  vertical-align: middle;
  line-height: 1.2;
}
.list-table td:first-child {
  font-weight: 600;
  padding-left: 0;
  width: 55%;
}
.list-table td:last-child {
  color: #888;
  text-align: right;
  padding-right: var(--grid);
}
@media (hover: hover) {
  .list-table tr:hover td { opacity: 1; }
}
.list-table tr:active td { opacity: 1; }

/* ============================================================
   WORK PANEL
   ============================================================ */
#workPanel {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow-y: auto;
  padding-right: var(--grid);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform var(--transition-dur) var(--transition-ease),
              opacity var(--transition-dur) var(--transition-ease),
              pointer-events 0s var(--transition-dur);
  pointer-events: none;
  background: var(--color-bg);
}
#workPanel.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform var(--transition-dur) var(--transition-ease),
              opacity var(--transition-dur) var(--transition-ease),
              pointer-events 0s 0s;
}
#workPanel .panel-close,
#exhibitionsPanel .panel-close,
#publicationsPanel .panel-close {
  right: var(--grid);
}

#commercialPanel .panel-close,
#experimentalPanel .panel-close,
#artPanel .panel-close {
  right: var(--grid);
}

/* Scroll hint */
.scroll-hint {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--grid) * 3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  background: linear-gradient(to bottom, transparent, var(--color-bg) 70%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
  color: var(--color-text);
}
.scroll-hint svg { width: 20px; height: 20px; stroke: currentColor; }
.scroll-hint.hidden { opacity: 0; }

/* Commercial / Experimental panels */
#commercialPanel, #experimentalPanel, #artPanel, #exhibitionsPanel {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(50% - 25px);
  height: 100%;
  overflow-y: auto;
  padding-right: var(--grid);
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: transform var(--transition-dur) var(--transition-ease),
              opacity var(--transition-dur) var(--transition-ease),
              pointer-events 0s 0s,
              visibility 0s 0s,
              z-index 0s 0s;
  pointer-events: none;
  background: var(--color-bg);
  border-top: #888888  0.5px solid;
  box-shadow: inset 0 6px 6px -3px rgba(136, 136, 136, 0.2);
  border-bottom: #888888  0.5px solid;
}
#commercialPanel.active, #experimentalPanel.active, #artPanel.active, #exhibitionsPanel.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  z-index: 50;
  pointer-events: auto;
  transition: transform var(--transition-dur) var(--transition-ease),
              opacity var(--transition-dur) var(--transition-ease),
              pointer-events 0s var(--transition-dur),
              visibility 0s 0s,
              z-index 0s 0s;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--grid);
  margin: calc(var(--grid)) 0 0 0;
}

.panel-intro {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding-right: 0;
  color: var(--color-text);
  flex: 1 1 auto;
}

#commercialPanel .panel-head .panel-close,
#experimentalPanel .panel-head .panel-close,
#artPanel .panel-head .panel-close {
  position: static;
  right: auto;
  top: auto;
  margin-top: -2px;
  flex: 0 0 auto;
}

#commercialTable, #experimentalTable, #artTable, #exhibitionsTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--grid);
}
#commercialTable tr, #experimentalTable tr, #artTable tr, #exhibitionsTable tr {
  border-top: 1px solid #e0e0e0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#commercialTable tr:last-child, #experimentalTable tr:last-child, #artTable tr:last-child, #exhibitionsTable tr:last-child {
  border-bottom: 1px solid #e0e0e0;
}
#commercialTable tr.no-content, #experimentalTable tr.no-content, #artTable tr.no-content, #exhibitionsTable tr.no-content {
  color: #bbb;
  cursor: default;
}
@media (hover: hover) {
  #commercialTable tr.no-content:hover, #experimentalTable tr.no-content:hover, #artTable tr.no-content:hover, #exhibitionsTable tr.no-content:hover {
    color: #bbb;
  }
}
#commercialTable td, #experimentalTable td, #artTable td, #exhibitionsTable td {
  padding: 14px var(--grid);
  font-size: 18px;
  font-weight: 400;
  vertical-align: middle;
  line-height: 1.2;
}
#commercialTable .col-title, #experimentalTable .col-title, #artTable .col-title, #exhibitionsTable .col-title {
  padding-left: 0;
  width: 60%;
  color: var(--color-text);
}
#commercialTable .col-client, #experimentalTable .col-client, #artTable .col-client, #exhibitionsTable .col-client {
  color: #888;
  width: 30%;
  font-size: 14px;
}
#commercialTable .col-year, #experimentalTable .col-year, #artTable .col-year, #exhibitionsTable .col-year {
  color: #888;
  text-align: right;
  padding-right: var(--grid);
  width: 10%;
}
/* Active row - selected project */
#commercialTable tr.active-row .col-title, #experimentalTable tr.active-row .col-title, #artTable tr.active-row .col-title, #exhibitionsTable tr.active-row .col-title {
  color: #DC143C;
}
/* Hover state */
@media (hover: hover) {
  #commercialTable tr:hover .col-title, #experimentalTable tr:hover .col-title, #artTable tr:hover .col-title, #exhibitionsTable tr:hover .col-title {
    color: #DC143C;
  }
  #commercialTable tr.no-content:hover .col-title, #experimentalTable tr.no-content:hover .col-title, #artTable tr.no-content:hover .col-title, #exhibitionsTable tr.no-content:hover .col-title {
    color: #bbb;
  }
}
/* Active state for touch devices */
#commercialTable tr:active .col-title, #experimentalTable tr:active .col-title, #artTable tr:active .col-title, #exhibitionsTable tr:active .col-title {
  color: #DC143C;
}
#commercialTable tr.no-content:active .col-title, #experimentalTable tr.no-content:active .col-title, #artTable tr.no-content:active .col-title, #exhibitionsTable tr.no-content:active .col-title {
  color: #bbb;
}

#artTable tr.section-row {
  cursor: default;
  border-top: 1px solid #e0e0e0;
}

#artTable tr.section-row:hover .section-heading {
  color: var(--color-text);
}

#artTable td.section-heading {
  padding: calc(var(--grid) * 0.8) 0 8px 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 3px solid #888;
}

/* About page panel */
#aboutPagePanel {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow-y: auto;
  padding-right: var(--grid);
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: transform var(--transition-dur) var(--transition-ease),
              opacity var(--transition-dur) var(--transition-ease),
              pointer-events 0s 0s,
              visibility 0s 0s,
              z-index 0s 0s;
  pointer-events: none;
  background: var(--color-bg);
}
#aboutPagePanel.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  z-index: 60;
  pointer-events: auto;
  transition: transform var(--transition-dur) var(--transition-ease),
              opacity var(--transition-dur) var(--transition-ease),
              pointer-events 0s var(--transition-dur),
              visibility 0s 0s,
              z-index 0s 0s;
}

/* About page panel content */
#aboutPageInner {
  padding: 0;
}
#aboutPageInner h2 {
  font-size: 72px;
  font-weight: 100;
  line-height: 1;
  margin-top: var(--grid);
  margin-bottom: calc(var(--grid) * 1.5);
  padding: 0;
}
#aboutPageInner p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--grid);
  padding: 0;
}
#aboutPageInner p:last-child { margin-bottom: 0; }
#aboutPageInner a {
  color: #DC143C;
  text-decoration: none;
}
#aboutPagePanel .panel-close { right: var(--grid); }

/* Table secondary columns */
.col-type,
.col-year {
  font-size: 14px !important;
  color: #888;
  font-weight: 400;
}
.col-year {
  text-align: right;
  padding-right: 0 !important;
  white-space: nowrap;
}

/* ============================================================
   MOBILE STYLES
   ============================================================ */

/* Burger menu button */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 110;
  margin-left: 10px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

body.mobile-nav-open .burger-btn span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.mobile-nav-open .burger-btn span:nth-child(2) {
  opacity: 0;
}

body.mobile-nav-open .burger-btn span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile navigation overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 105;
  display: flex;
  transform: translateX(-100%);
  transition: transform 0.3s var(--transition-ease);
  pointer-events: none;
}

body.mobile-nav-open .mobile-nav {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-nav-close {
  position: absolute;
  top: calc(var(--grid) * 1.35);
  left: calc(var(--grid) * 1.25);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 1px;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 110;
}
.mobile-nav-close svg { width: 20px; height: 20px; stroke: currentColor; }
.mobile-nav-close:hover { opacity: 1; background: rgba(255, 255, 255, 1); }

.mobile-nav-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: calc(var(--grid) * 1.2);
}

.mobile-nav-item {
  font-size: 32px;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #DC143C;
}

/* Mobile control bar (hidden on desktop) */
.mobile-control-bar {
  display: none;
}


@media (max-width: 768px) {
  :root {
    --grid: 10px;
    --header-h: 45px;
  }

  html, body {
    font-size: 14px;
  }

  /* Show burger, hide desktop nav */
  .burger-btn {
    display: flex;
    position: absolute;
    left: var(--grid);
  }

  .header-top {
    justify-content: center;
  }

  .header-nav {
    display: none;
  }

  .header-left {
    justify-content: center;
  }

  .header-name {
    font-size: 18px;
  }

  /* Add subtle line below header */
  #header {
    border-bottom: 0.5px solid #e0e0e0;
  }

  /* Mobile control bar */
  .mobile-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: 50px;
    background: var(--color-bg);
    border-bottom: 0.5px solid #e0e0e0;
    z-index: 45;
    padding: 0 var(--grid);
    transition: transform 0.4s var(--transition-ease);
  }

  /* Hide control bar when menu or about panel is open */
  body.menupage-open .mobile-control-bar,
  body.about-open .mobile-control-bar,
  body.aboutpage-open .mobile-control-bar {
    transform: translateX(-100%);
  }

  #mobileCloseBtn,
  #mobileInfoBtn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
  }

  #mobileCloseBtn svg,
  #mobileInfoBtn svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.5;
  }

  /* Mobile arrows - positioned below image container */
  .mobile-arrow {
    position: fixed;
    bottom: calc(var(--grid) * 0.5);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    z-index: 43;
    transition: transform 0.4s var(--transition-ease);
  }

  .mobile-arrow-prev {
    left: var(--grid);
  }

  .mobile-arrow-next {
    right: var(--grid);
  }

  .mobile-arrow svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1.5;
  }

  .mobile-arrow.hidden {
    visibility: hidden;
    pointer-events: none;
  }

  /* Hide arrows when panels are open */
  body.menupage-open .mobile-arrow,
  body.about-open .mobile-arrow,
  body.aboutpage-open .mobile-arrow {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  /* Hide project title/year on mobile */
  .header-right {
    display: none;
  }

  .header-project-title {
    font-size: 14px;
  }

  .header-project-year {
    font-size: 13px;
  }

  /* Adjust stage margins */
  #stage {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    margin: 0;
  }

  /* Hero adjustments - slides horizontally like desktop */
  /* UPDATED: top position accounts for header (45px) + control bar (50px) + small gap */
  #heroContainer {
    position: fixed;
    top: calc(var(--header-h) + 0px + var(--grid));
    left: var(--grid);
    right: var(--grid);
    bottom: calc(var(--grid) * 5);
    width: auto;
    height: auto;
    z-index: 40;
    container-type: inline-size;
    transition: transform 0.4s var(--transition-ease);
  }

  /* Hide desktop buttons on mobile - we use the control bar instead */
  #heroContainer #heroCloseBtn,
  #heroContainer #infoBtn,
  #heroContainer .hero-arrows {
    display: none;
  }

  /* When menu panel is open, hero slides off to the right */
  body.menupage-open #heroContainer {
    transform: translateX(100%);
  }

  /* When about panel is open, hero slides off to the left */
  body.about-open #heroContainer,
  body.aboutpage-open #heroContainer {
    transform: translateX(-100%);
  }

  /* Default: hero is centered */
  body:not(.menupage-open):not(.about-open) #heroContainer {
    transform: translateX(0);
  }

  /* Mobile category list */
  body.mobile-list-view .mobile-category-list {
    display: flex;
  }

  /* Panels full-width on mobile */
  .panel {
    width: 100% !important;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
  }

  .panel.panel-left {
    order: 1;
  }

  /* Category panels full-width */
  #commercialPanel,
  #experimentalPanel,
  #artPanel,
  #exhibitionsPanel {
    width: 100% !important;
    padding: 0 var(--grid);
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
  }

  /* Stage arrangement on mobile */
  #stage {
    flex-direction: row;
  }

  /* Hide category intro text on mobile */
  .panel-intro {
    display: none;
  }

  .panel-head {
    margin: calc(var(--grid) * 0.5) 0;
    min-height: 40px; /* Keep space for close button */
  }

  /* Hero text overlay smaller on mobile */
  #heroText {
    top: calc(var(--grid) * 5);
    left: var(--grid);
    right: var(--grid);
  }

  /* About panel styling on mobile - full width */
  #aboutPanel {
    width: 100% !important;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
  }

  #aboutPanel .about-header {
    padding: calc(var(--grid) * 1);
  }
  
  #aboutPanel .about-content {
    padding: calc(var(--grid) * 1);
    margin-bottom: calc(var(--grid) * 10);
  }
   
   #aboutPanel .about-content p a {
    color: #DC143C;
    text-decoration: none;
  }

  #aboutPanel .panel-close {
    position: absolute;
    top: calc(var(--grid));
    right: calc(var(--grid));
  }

  .panel-close {
    width: 40px;
    height: 40px;
    top: calc(var(--grid) * 0.5);
    right: calc(var(--grid) * 0.5);
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
  }

  #aboutTitle {
    font-size: 48px;
    line-height: 1.25;
    margin-bottom: 12px;
    padding-right: 50px; /* Make room for close button */
  }

  #aboutMeta {
    font-size: 13px;
    margin-bottom: 16px;
  }

  #aboutDesc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: calc(var(--grid) * 2);
  }

  /* Thumbnail grid full width on mobile */
  #thumbGrid {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .panel-inner {
    padding: calc(var(--grid) * 1) var(--grid) var(--grid);
  }

  /* OLD MOBILE LAYOUT (kept for reference, can be restored if needed)
  
  TO REVERT TO OLD LAYOUT:
  1. Remove or comment out the .mobile-control-bar section (around line 1100-1180)
  2. Uncomment the styles below
  3. In index.html, remove the <div id="mobileControlBar"> section
  4. In app.js, remove or comment out the mobile button event listeners
  5. Update #heroContainer top position back to: calc(var(--header-h) + var(--grid))
  6. Remove the #heroContainer button display:none rules
  
  .hero-arrows {
    display: flex;
    bottom: var(--grid);
    left: var(--grid);
    right: var(--grid);
  }

  #heroCloseBtn,
  #infoBtn {
    width: 36px;
    height: 36px;
  }

  #heroCloseBtn {
    top: var(--grid);
    left: var(--grid);
  }

  #infoBtn {
    top: var(--grid);
    right: var(--grid);
  }
  END OLD MOBILE LAYOUT */

  /* Image dots adjustments */
  /* Positioned below image container, vertically aligned with arrows */
  #imageDots {
    position: fixed;
    bottom: calc(var(--grid) * 0.5);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 43;
    height: 40px;
    align-items: center;
    transition: transform 0.4s var(--transition-ease);
  }

  /* Hide dots when panels are open */
  body.menupage-open #imageDots,
  body.about-open #imageDots,
  body.aboutpage-open #imageDots {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .img-dot {
    width: 6px;
    height: 6px;
  }

  /* Hide credit on mobile */
  #heroCredit {
    display: none;
  }

  /* About panel text sizing */
  #aboutPanel h2 {
    font-size: 24px;
  }

  #aboutPanel .about-meta,
  #aboutPanel .about-desc {
    font-size: 15px;
  }

  /* Thumbnail grid on mobile */
  .thumbgrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: var(--grid);
  }

  .thumbgrid img {
    width: 100%;
  }

  .thumb-video {
    width: 100%;
    aspect-ratio: 1;
  }

  .thumb-video svg {
    width: 24px;
    height: 24px;
  }

  /* Landing progress bar */
  #landingProgress {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: calc(var(--grid) * 2);
    z-index: 100;
  }

  #landingProgressBar {
    height: 4px;
  }

  #landingProgressFill {
    height: 4px;
  }

  /* About page panel */
  #aboutPagePanel {
    width: 100%;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
  }

  #aboutPageInner {
    padding: calc(var(--grid) * 1);
  }

  #aboutPageInner h2 {
    font-size: 32px;
  }

  #aboutPageInner p {
    font-size: 14px;
  }

  /* Table improvements for mobile */
  .menu-table {
    font-size: 14px;
  }

  .menu-table td {
    padding: calc(var(--grid) * 0.8) 0;
  }

  .menu-table td:first-child {
    width: 60%;
  }

  .menu-table tr {
    min-height: 44px; /* Touch-friendly tap target */
  }

  .col-title {
    font-size: 15px;
  }

  .col-type {
    font-size: 13px;
  }

  .col-year {
    display: none;
  }

  /* Hide table header on mobile */
  .menu-table thead {
    display: none;
  }
}

