/* ═══════════════════════════════════════════════
   style.css
   ═══════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:     #888;
  --black:  #111;
  --yellow: #c8e000;
  --red:    rgba(140,0,0,0.65);
  --muted:  rgba(0,0,0,0.45);
  --font:   'Inter', sans-serif;
}

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  border-bottom: 1.5px solid var(--red);
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 44px;
  border-bottom: 1.5px solid var(--red);
}

.hero-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.hero-desc {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--black);
  text-transform: lowercase;
}

.hero-body {
  display: grid;
  grid-template-columns: 55% 45%;
  height: 66vh;
  min-height: 420px;
}

/* LEFT */
.hero-left {
  position: relative;
  border-right: 1.5px solid var(--red);
  overflow: hidden;
}

.hero-left::before,
.hero-left::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1.5px;
  background: var(--red);
  pointer-events: none;
  z-index: 3;
}
.hero-left::before { left: 33.33%; }
.hero-left::after  { left: 66.66%; }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.hero-contact,
.hero-links {
  position: absolute;
  left: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--black);
  writing-mode: vertical-rl;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  background: var(--yellow);
  padding: 8px 5px;
}
.hero-contact { top: calc(50% - 80px); transform: rotate(180deg); }
.hero-links   { top: calc(50% + 24px); transform: rotate(180deg); }
.hero-contact:hover,
.hero-links:hover { text-decoration: underline; }

/* RIGHT */
.hero-right {
  background: var(--yellow);
  position: relative;
  overflow: hidden;
}

.hero-right::before,
.hero-right::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1.5px;
  background: var(--red);
  pointer-events: none;
  z-index: 3;
}
.hero-right::before { left: 33.33%; }
.hero-right::after  { left: 66.66%; }

.dots-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  transition: opacity 1s ease;
}
.dots-hint.hidden { opacity: 0; }

/* SOUND DOTS */
.sound-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sound-dot {
  position: absolute;
  z-index: 8;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--black);
  cursor: pointer;
  pointer-events: all;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, background 0.15s;
  will-change: transform;
}
.sound-dot:hover,
.sound-dot.active {
  width: 20px;
  height: 20px;
  background: var(--yellow);
  outline: 2px solid var(--black);
  outline-offset: 1px;
}


/* ═══════════════════════════════════════════════
   LOWER
   ═══════════════════════════════════════════════ */
.lower {
  min-height: 28vh;
}

.tabs {
  display: flex;
  border-bottom: 1.5px solid var(--red);
}

.tab-btn {
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  border-right: 1.5px solid var(--red);
  color: var(--black);
  transition: background 0.12s;
}
.tab-btn.active {
  color: var(--black);
  border-bottom: 4px solid var(--black);
  margin-bottom: -2px;
  background: none;
}
.tab-btn:hover:not(.active) {
  background: rgba(0,0,0,0.08);
}

.panel {
  display: none;
  background: var(--bg);
}
.panel.active { display: block; }

#panel-media     { padding: 0; }
#panel-bio,
#panel-performances { padding: 36px 28px 60px; }

/* MEDIA GRID */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.work-card {
  cursor: pointer;
  border-right: 1.5px solid var(--red);
  border-bottom: 1.5px solid var(--red);
  background: var(--bg);
}
.work-card:nth-child(3n) { border-right: none; }

/* last row: remove bottom border to avoid double-line with footer */
.work-card:nth-last-child(-n+3) { border-bottom: none; }
/* but if last row has fewer than 3, only those without a card below */
.work-card:last-child           { border-bottom: none; }

.work-thumb-wrap {
  overflow: hidden;
  width: 100%;
  display: block;
}

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
  background: rgba(0,0,0,0.15);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.work-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: transform 0.3s ease;
}
.work-card:hover .work-thumb,
.work-card:hover .work-thumb-placeholder {
  transform: scale(1.06);
  filter: brightness(1.08) contrast(1.05);
}

.work-card-meta {
  display: flex;
  align-items: baseline;
  padding: 10px 12px 11px;
  border-top: 1.5px solid var(--red);
  gap: 10px;
  transition: background 0.2s ease;
}
.work-card:hover .work-card-meta { background: var(--yellow); }

.work-index {
  font-size: 10px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.work-meta-right {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex: 1;
  min-width: 0;
}
.work-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}
.work-tag {
  font-size: 10px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
  margin-left: 8px;
  flex-shrink: 0;
}
.work-card:hover .work-tag { color: var(--black); }

/* BIO */
#panel-bio {
  padding: 0;
}

.bio-layout {
  display: block;
  border-bottom: 1.5px solid var(--red);
}

.bio-col {
  padding: 36px 32px 48px;
  max-width: 620px;
}

.bio-label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: block;
}

.bio-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--black);
}
.bio-text + .bio-text { margin-top: 1.4em; }
.bio-text strong {
  font-weight: 500;
  color: var(--black);
}

.bio-credits {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1.5px solid var(--red);
}

.bio-credit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 11px;
  font-weight: 300;
  color: var(--black);
  letter-spacing: 0.02em;
}

.bio-credit-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* PERFORMANCES */
#panel-performances {
  padding: 0;
}

.perf-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.perf-col {
  padding: 36px 28px 60px;
}

.perf-col:first-child {
  border-right: 1.5px solid var(--red);
}

.perf-col-label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: block;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
}
.perf-row { border-bottom: 1.5px solid var(--red); }
.perf-row:first-child { border-top: 1.5px solid var(--red); }
.perf-row td {
  padding: 10px 0;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.02em;
  vertical-align: middle;
  color: var(--black);
}
.perf-date {
  width: 90px;
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}
.perf-event { color: var(--black); }
.perf-city {
  text-align: right;
  color: var(--black);
  font-weight: 500;
  white-space: nowrap;
  padding-left: 12px !important;
  font-size: 10px;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  border-top: 1.5px solid var(--red);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}
.footer-year {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-left: 10px;
}
.footer-email {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--black);
  text-decoration: none;
}
.footer-email:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   MODALS — contact, links, video
   Built entirely in JS and injected into #modal-root
   ═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #909090;
  padding: 36px 40px 32px;
  min-width: 280px;
  max-width: 380px;
  position: relative;
  border: 1px solid var(--black);
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 22px; height: 22px;
  border: 1px solid var(--black);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font);
  color: var(--black);
}
.modal-close:hover { background: var(--black); color: #909090; }

.modal-box h3 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(0,0,0,0.5);
}

.modal-box a {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  text-decoration: none;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.modal-box a:hover { text-decoration: underline; }

/* VIDEO MODAL */
.video-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--bg);
  z-index: 9100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-modal-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 28px; height: 28px;
  border: 1px solid rgba(0,0,0,0.3);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--font);
  color: var(--black);
}
.video-modal-close:hover { background: var(--black); color: var(--bg); border-color: var(--black); }

.video-modal-inner { width: 72vw; max-width: 900px; }

.video-modal-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}
.video-modal-frame iframe,
.video-modal-frame video {
  width: 100%; height: 100%;
  border: none; display: block;
}

.video-modal-caption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px solid var(--red);
}
.video-modal-caption-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.video-modal-caption-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-body  { grid-template-columns: 1fr; height: auto; }
  .hero-left  { height: 50vw; min-height: 200px; }
  .hero-right { min-height: 200px; }
  .hero-desc  { display: none; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card:nth-child(3n) { border-right: 1.5px solid var(--red); }
  .work-card:nth-child(2n) { border-right: none; }
}

@media (max-width: 520px) {
  .media-grid { grid-template-columns: 1fr; }
  .work-card  { border-right: none !important; }
}
