/* ─────────────────────────────────────────────────────────
   ben kaya — style.css
   Brutalist / raw. Edit freely.
───────────────────────────────────────────────────────── */

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

html, body {
  height: 100%;
}

body {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #000;
  font-size: 12px;
  line-height: 1.5;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* ─────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────── */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 13px;
  border-bottom: 1px solid #000;
  gap: 16px;
}

.nav-tabs {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  padding-right: 50px; /* compensates for name width so tabs feel centred */
  gap: 8px;
}

.nav-tabs a {
  font-size: 11.5px;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.nav-tabs a:hover {
  text-decoration: underline;
}

.nav-tabs a.active {
  text-decoration: underline;
}

.nav-name {
  font-size: 11.5px;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────
   PAGES
───────────────────────────────────────────────────────── */

.page {
  display: none;
}

.page.active {
  display: block;
}


/* ─────────────────────────────────────────────────────────
   HOME
   Image is centered with margin: 0 auto so it sits exactly
   in the middle regardless of viewport width.
───────────────────────────────────────────────────────── */

.home-image-wrap {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 44px); /* 44px ≈ nav height */
}

.home-image-wrap img {
  display: block;
  width: 97%;
  max-height: 80vh;
  object-fit: cover;
}

.home-image-placeholder {
  width: 97%;
  height: 55vh;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-image-placeholder span {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.05em;
}


/* ─────────────────────────────────────────────────────────
   SECTION LABEL
───────────────────────────────────────────────────────── */

.section-label {
  font-size: 11.5px;
  font-style: normal;
  margin-bottom: 28px;
}


/* ─────────────────────────────────────────────────────────
   WORKS
───────────────────────────────────────────────────────── */

.works-page {
  padding: 38px 40px 100px;
}

.section-block {
  margin-bottom: 54px;
}

.work-row {
  margin-bottom: 16px;
}

.work-title-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 10px;
}

/* Clickable title — highlights yellow on hover */
.work-name {
  cursor: pointer;
  font-size: 11.5px;
  padding: 1px 2px;
  margin-left: -2px;
  display: inline;
  transition: background 0.05s ease;
}

.work-name:hover {
  background: #FFFF00;
}

/* Year / duration / type */
.work-info {
  font-size: 11.5px;
  color: #000;
}

/* Instrumentation / collaborator line — mid grey */
.work-sub {
  font-size: 11px;
  color: #777;
  margin-top: 4px;
  line-height: 1.55;
}

.work-sub a {
  color: #777;
  text-decoration: underline;
}


/* ─────────────────────────────────────────────────────────
   MODAL
───────────────────────────────────────────────────────── */

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border: 1px solid #000;
  width: 480px;
  max-width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  position: relative;
  padding: 34px 34px 30px;
}

.modal-close {
  position: absolute;
  top: 11px;
  right: 13px;
  font-size: 11px;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  color: #000;
}

.modal-close:hover {
  text-decoration: underline;
}

.modal-title {
  font-size: 12.5px;
  font-weight: normal;
  margin-bottom: 24px;
  padding-right: 24px;
  line-height: 1.4;
}

.modal-field {
  margin-bottom: 16px;
}

.field-label {
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 3px;
}

.field-value {
  font-size: 11.5px;
  line-height: 1.55;
}

.modal-links {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #d8d8d8;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.modal-links a {
  font-size: 11.5px;
  text-decoration: underline;
  color: #000;
}


/* ─────────────────────────────────────────────────────────
   LIVE
───────────────────────────────────────────────────────── */

.live-page {
  padding: 38px 40px 100px;
}

.live-list {
  list-style: none;
}

/* Each event gets a separator and generous vertical breathing room */
.live-entry {
  padding: 22px 0;
  border-bottom: 1px solid #e4e4e4;
  font-size: 11.5px;
  line-height: 1.65;
}

.live-entry:first-child {
  border-top: 1px solid #e4e4e4;
}

/* Collaborators / supporting line */
.live-sub {
  display: block;
  padding-left: 22px;
  color: #777;
  font-size: 11px;
  margin-top: 6px;
}


/* ─────────────────────────────────────────────────────────
   BIO / CONTACT
   Bio text sits on the left (capped width), large natural gap,
   contact + social pushed to the far right.
───────────────────────────────────────────────────────── */

.bio-page {
  padding: 38px 40px 100px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.bio-left {
  max-width: 500px;
  min-width: 0;
}

.bio-right {
  flex-shrink: 0;
  width: 190px;
  text-align: right;
}

.bio-body {
  font-size: 11.5px;
  line-height: 1.78;
}

.bio-body p + p {
  margin-top: 18px;
}

.bio-contact {
  font-size: 11.5px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.bio-contact a {
  text-decoration: underline;
  color: #000;
}

/* Social / platform buttons */
.bio-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.social-btn {
  display: inline-block;
  font-size: 11px;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.05em;
  color: #000;
  border: 1px solid #000;
  padding: 6px 13px;
  text-decoration: none;
  transition: background 0.07s, color 0.07s;
}

.social-btn:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}


/* ─────────────────────────────────────────────────────────
   RESPONSIVE — TABLET  (≤ 768px)
───────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* Nav: name stays top-right, tabs drop to a full-width row below */
  nav {
    flex-wrap: wrap;
    padding: 12px 18px 11px;
    gap: 0;
  }

  .nav-name {
    order: 1;
    margin-left: auto; /* keeps name pinned to the right on its row */
  }

  .nav-tabs {
    order: 2;
    padding-right: 0;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid #d8d8d8;
    padding-top: 10px;
    margin-top: 8px;
    gap: 4px;
  }

  /* Home image full width */
  .home-image-wrap {
    padding: 0;
    min-height: calc(100vh - 80px); /* slightly more nav height on tablet */
  }

  .home-image-wrap img,
  .home-image-placeholder {
    width: 100%;
  }

  /* Works */
  .works-page {
    padding: 28px 22px 80px;
  }

  /* Live */
  .live-page {
    padding: 28px 22px 80px;
  }

  /* Bio: stack columns */
  .bio-page {
    padding: 28px 22px 80px;
    flex-direction: column;
    gap: 36px;
  }

  .bio-right {
    width: 100%;
    text-align: left;
  }

  .bio-social {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}


/* ─────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE  (≤ 480px)
───────────────────────────────────────────────────────── */

@media (max-width: 480px) {

  body {
    font-size: 12px;
  }

  /* Nav */
  nav {
    padding: 10px 14px 9px;
  }

  .nav-tabs a,
  .nav-name {
    font-size: 11px;
  }

  /* Home */
  .home-image-wrap {
    padding: 0;
    min-height: calc(100vh - 80px);
  }

  .home-image-wrap img {
    max-height: 60vh;
    width: 100%;
  }

  /* Works */
  .works-page {
    padding: 22px 16px 70px;
  }

  /* On very small screens stack title + meta vertically */
  .work-title-line {
    flex-direction: column;
    gap: 2px;
  }

  .work-info {
    color: #888;
  }

  .section-block {
    margin-bottom: 40px;
  }

  /* Modal */
  .overlay {
    padding: 12px;
  }

  .modal {
    padding: 24px 18px 20px;
    max-height: 88vh;
  }

  /* Live */
  .live-page {
    padding: 22px 16px 70px;
  }

  .live-entry {
    padding: 18px 0;
  }

  /* Bio */
  .bio-page {
    padding: 22px 16px 70px;
  }
}
