/* ==========================================================================
   MUHCINE / profile and message
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 46ch;
  margin-top: clamp(20px, 4vh, 44px);
  display: grid;
  gap: 16px;
  font-size: 14px;
  line-height: 1.65;
}

.prose p {
  color: var(--fg);
}

/* --- fact rows ------------------------------------------------------------ */

.facts {
  display: grid;
  gap: 0;
  margin-top: clamp(16px, 3vh, 30px);
}

.fact {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.fact:last-child {
  border-bottom: 1px solid var(--line);
}

.fact dt {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

html[dir="rtl"] .fact dt {
  letter-spacing: 0;
}

.fact dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.fact a {
  border-bottom: 1px solid var(--line);
}

.fact a:hover {
  border-color: var(--fg);
}

.fact .off {
  color: var(--muted);
}

@media (max-width: 560px) {
  .fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* --- portrait slot -------------------------------------------------------- */

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-bottom: 20px;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- form ----------------------------------------------------------------- */

.form {
  display: grid;
  gap: 0;
  margin-top: clamp(16px, 3vh, 30px);
}

.field {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.field label {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

html[dir="rtl"] .field label {
  letter-spacing: 0;
}

.field input,
.field textarea {
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  background: transparent;
  border: 0;
  outline: none;
  padding: 2px 0;
  width: 100%;
  resize: vertical;
}

.field textarea {
  min-height: 110px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field:focus-within {
  border-top-color: var(--fg);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.btn {
  border: 1px solid var(--fg);
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

html[dir="rtl"] .btn {
  letter-spacing: 0;
}

.form__note {
  color: var(--muted);
  max-width: 32ch;
  line-height: 1.5;
}

.form__status {
  margin-top: 14px;
  min-height: 1.4em;
  color: var(--muted);
}

/* --- footer line ---------------------------------------------------------- */

.colophon {
  color: var(--muted);
}

/* --- profile: the record rows ---------------------------------------------- */

.cv {
  margin-top: clamp(28px, 5vh, 52px);
}

.cv__title {
  color: var(--muted);
  margin-bottom: 12px;
}

.cv__list {
  display: grid;
}

.cv__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  align-items: baseline;
}

.cv__row:last-child {
  border-bottom: 1px solid var(--line);
}

.cv__year {
  color: var(--muted);
  font-size: 11px;
}

.cv__city {
  color: var(--muted);
  text-align: end;
  font-size: 11px;
}

.cv__name {
  grid-column: 1 / -1;
}

.cv__name a {
  border-bottom: 1px solid var(--line);
}

.cv__name a:hover {
  border-color: var(--fg);
}

@media (max-width: 560px) {
  .cv__row {
    grid-template-columns: 3.6rem 1fr;
  }

  .cv__city {
    grid-column: 2;
    text-align: start;
  }
}

/* --- one project on its own page -------------------------------------------- */

.single {
  max-width: 1100px;
  margin: 0 auto;
}

.single__head {
  margin-bottom: clamp(24px, 5vh, 56px);
}

.single__meta {
  color: var(--muted);
  margin-top: 10px;
}

.single__media {
  display: grid;
  gap: clamp(16px, 3vh, 40px);
}

.single__still img {
  width: 100%;
  height: auto;
}

.single__film {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel);
}

.single__film iframe,
.single__film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.single__back {
  margin-top: clamp(28px, 5vh, 56px);
}

/* --- nothing here yet -------------------------------------------------------- */

.mx-empty {
  color: var(--muted);
  font-size: 13px;
  max-width: 40ch;
}

/* --- profile: title band, portrait beside the bio, records below ----------- */

.profile {
  max-width: 1180px;
  margin: 0 auto;
}



.profile__band {
  padding-bottom: clamp(24px, 5vh, 56px);
  border-bottom: 1px solid var(--line);
}

.profile__lede {
  color: var(--muted);
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* With the title band off, the portrait and the bio are the first thing on
   the page, so they carry no rule above them. */
.profile__band[hidden] + .profile__bio {
  padding-top: 0;
}

.profile__bio {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding: 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: stretch;
}

.profile__portrait {
  margin: 0;
  background: transparent;
  display: grid;
  place-items: center;
  min-height: 0;
  line-height: 0;
}

.profile__portrait img {
  width: 70%;
  height: auto;
  display: block;
}

.profile__portrait figcaption {
  color: var(--muted);
  padding: 40px 0;
}

.profile__bio .prose {
  margin-top: 0;
  max-width: 100%;
  text-align: justify;
}

html[dir="rtl"] .profile__bio .prose {
  text-align: justify;
}

.profile__contact {
  padding-top: 8px;
}

.profile__contact a {
  border-bottom: 1px solid var(--line);
}

.profile__contact a:hover {
  border-color: var(--fg);
}

@media (max-width: 760px) {
  .profile__bio {
    grid-template-columns: 1fr;
  }

  .profile__portrait {
    max-width: 320px;
  }
}

/* --- profile: records paired two to a row ----------------------------------
   Exhibitions run the full width because the venue names are long. The
   shorter lists sit side by side, the way the brutalist page had them, with
   a rule between the columns.
   ---------------------------------------------------------------------------- */

.profile__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.profile__col--line {
  border-inline-end: 1px solid var(--line);
  padding-inline-end: clamp(20px, 3vw, 44px);
}

.profile__col .cv:first-child {
  margin-top: clamp(28px, 5vh, 52px);
}

.cv--wide .cv__row {
  grid-template-columns: 5.5rem 1fr auto;
}

.cv__row--noyear {
  grid-template-columns: 1fr auto;
}

/* --- profile: press, as links rather than rows ------------------------------ */

.cv__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.cv__pills li {
  display: block;
}

.cv__pills a,
.cv__pills span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.cv__pills a:hover {
  border-color: var(--fg);
}

.cv__pills span {
  color: var(--muted);
}

.profile__extra {
  margin-top: clamp(28px, 5vh, 52px);
  max-width: 54ch;
}

@media (max-width: 760px) {
  .profile__pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile__col--line {
    border-inline-end: 0;
    padding-inline-end: 0;
  }
}
