
.cmp-page {
  margin: 0;
  background: #0a0a0a;
}

/* ---------- Section ---------- */
.cmp {
  padding: 52px 24px 100px;
  background: #0a0a0a;
}

.cmp__head {
  max-width: 955px;
  margin: 0 auto 56px;
  text-align: center;
}

.cmp__title {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 300;
  font-size: 52px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #a28455;
}

.cmp__intro {
  max-width: 875px;
  margin: 23px auto 0;
  font-family: "Faustina", Georgia, serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 28px;
  text-transform: capitalize;
  color: #ffffff;
}

.cmp__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---------- Toolbar (count · share · clear) ---------- */
.cmp__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  max-width: 1384px;
  margin: 0 auto 16px;
}

.cmp__count {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #77746e;
}

.cmp__tools {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cmp__tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(202, 165, 106, 0.6);
  background: transparent;
  font-family: "Fredoka", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #caa56a;
  cursor: pointer;
}

.cmp__tool:hover,
.cmp__tool:focus-visible {
  color: #fffbf5;
  outline: none;
}

.cmp__tool--muted {
  border-bottom-color: rgba(157, 157, 157, 0.5);
  color: #9d9d9d;
}

.cmp__tool[hidden] {
  display: none;
}

.cmp__status {
  font-family: "Faustina", Georgia, serif;
  font-size: 13px;
  color: #caa56a;
}

.cmp__swipe {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 1384px;
  margin: 0 auto 10px;
  font-family: "Fredoka", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #77746e;
}

/* ---------- Box ---------- */
.cmp__box {
  max-width: 1384px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #353535;
  border-radius: 8px;
  background: linear-gradient(148.53deg, rgba(30, 30, 30, 0.8) 0%, rgba(6, 6, 6, 0.9) 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.cmp__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(202, 165, 106, 0.5) transparent;
  scrollbar-width: thin;
}

.cmp__scroll:focus-visible {
  outline: 1px solid #caa56a;
  outline-offset: -1px;
}

/* ---------- Table ---------- */
.cmp__table {
  width: 100%;
  min-width: 1020px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.cmp__col-label {
  width: 190px;
}

.cmp__table th,
.cmp__table td {
  box-sizing: border-box;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: middle;
}

.cmp__table tr > :last-child {
  border-right: 0;
}

.cmp__table tbody tr:last-child > * {
  border-bottom: 0;
}

/* Sticky label column (matters when the table scrolls) */
.cmp__table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #141414;
}

/* Corner cell */
.cmp__corner {
  height: 251px; /* acts as min-height in a table cell */
  padding: 36px 26px;
  vertical-align: top !important;
}

.cmp__corner-title {
  display: block;
  font-family: "Faustina", Georgia, serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 19.5px;
  letter-spacing: 1.56px;
  text-transform: uppercase;
  color: #77746e;
}

.cmp__corner-sub {
  display: block;
  padding-top: 10px;
  font-family: "Faustina", Georgia, serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 19.5px;
  color: #55534f;
}

/* Row labels */
.cmp__table tbody th {
  height: 66px;
  padding: 15px 26px;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 14.3px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #9d9d9d;
}

/* Values */
.cmp__table tbody td {
  height: 66px;
  padding: 15px 26px;
  font-family: "Faustina", Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22.5px;
  color: #fffbf5;
  transition: background-color 0.3s ease;
}

.cmp__table tbody td.is-empty {
  color: #9d9d9d;
}

/* First project column is highlighted, as in the design */
.cmp__table tbody td:nth-child(2) {
  background: rgba(202, 165, 106, 0.1);
}

.cmp__table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.cmp__table tbody tr:hover td:nth-child(2) {
  background: rgba(202, 165, 106, 0.14);
}

/* ---------- Project slot (header) ---------- */
.cmp__slot {
  height: 251px;
  padding: 0;
  vertical-align: top !important;
}

.cmp__slot:not(.is-filled) {
  border-right: 0 !important;
  border-bottom: 0 !important;
}

/* Empty: dashed "Add a project" button */
.cmp__add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 251px;
  padding: 30px;
  border: 1px dashed #9d9d9d;
  border-radius: 4px;
  background: transparent;
  font-family: "Fredoka", sans-serif;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.cmp__add:hover,
.cmp__add:focus-visible {
  border-color: #caa56a;
  background: rgba(202, 165, 106, 0.05);
  outline: none;
}

.cmp__add-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 53px;
  height: 53px;
  margin-bottom: 20px;
  border: 1px solid #9d9d9d;
  border-radius: 50%;
  color: #caa56a;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.cmp__add:hover .cmp__add-circle {
  border-color: #caa56a;
  transform: rotate(90deg);
}

.cmp__add-title {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #9d9d9d;
}

.cmp__add-text {
  max-width: 181px;
  padding: 9px 0 22px;
  font-family: "Faustina", Georgia, serif;
  font-size: 12.8px;
  line-height: 18px;
  color: #4e4e4e;
}

.cmp__add-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #caa56a;
  font-size: 12px;
  line-height: 16.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fffbf5;
}

.cmp__add-link [uk-icon] {
  color: #caa56a;
  transition: transform 0.25s ease;
}

.cmp__add:hover .cmp__add-link [uk-icon] {
  transform: translateX(3px);
}

/* Filled: project name, location, Change / Remove */
.cmp__project {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  box-sizing: border-box;
  min-height: 251px;
  padding: 24px 26px 26px;
  background: linear-gradient(180deg, rgba(202, 165, 106, 0) 0%, rgba(202, 165, 106, 0.06) 100%);
}

.cmp__slot[data-slot="0"] .cmp__project {
  background: rgba(202, 165, 106, 0.1);
}

.cmp__project-img {
  display: block;
  width: 100%;
  height: 96px;
  margin-bottom: 14px;
  background: #1a1a1a;
  object-fit: cover;
  border-radius: 4px;
}

.cmp__badge {
  margin-bottom: 8px;
  padding: 3px 9px;
  border: 1px solid rgba(202, 165, 106, 0.5);
  border-radius: 20px;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #caa56a;
}

.cmp__project-name {
  font-family: "Fredoka", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 28px;
  color: #fffbf5;
  text-decoration: none;
}

a.cmp__project-name:hover {
  color: #caa56a;
  text-decoration: none;
}

.cmp__project-loc {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: 6px;
  font-family: "Faustina", Georgia, serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #9d9d9d;
}

.cmp__project-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.cmp__action {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(202, 165, 106, 0.6);
  background: transparent;
  font-family: "Fredoka", sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #caa56a;
  cursor: pointer;
}

.cmp__action:hover,
.cmp__action:focus-visible {
  color: #fffbf5;
  outline: none;
}

.cmp__action--remove {
  border-bottom-color: rgba(157, 157, 157, 0.5);
  color: #9d9d9d;
}

/* ---------- Developer cell ---------- */
.cmp__dev {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmp__dev-logo {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 56px;
  height: 36px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #fffbf5;
  object-fit: contain;
}

.cmp__dev-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cmp__dev-text a {
  color: #fffbf5;
  text-decoration: none;
}

.cmp__dev-text a:hover {
  color: #caa56a;
}

.cmp__dev-text small {
  font-size: 12px;
  line-height: 16px;
  color: #77746e;
}

/* ---------- Footnote ---------- */
.cmp__note {
  max-width: 1384px;
  margin: 18px auto 0;
  font-family: "Faustina", Georgia, serif;
  font-size: 13px;
  line-height: 20px;
  color: #77746e;
}

/* ---------- Enquire link ---------- */
.cmp__enquire {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #725a2e;
  font-family: "Faustina", Georgia, serif;
  font-size: 18px;
  line-height: 22.5px;
  color: #caa56a;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cmp__enquire:hover,
.cmp__enquire:focus-visible {
  border-color: #caa56a;
  color: #e0c08b;
  text-decoration: none;
  outline: none;
}

.cmp__enquire [uk-icon] {
  transition: transform 0.25s ease;
}

.cmp__enquire:hover [uk-icon] {
  transform: translateX(3px);
}

/* ==========================================================================
   Project picker (UIkit modal)
   ========================================================================== */
.cmp-picker.uk-modal {
  background: rgba(0, 0, 0, 0.78);
}

.cmp-picker__dialog {
  position: relative;
  box-sizing: border-box;
  width: 560px;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #353535;
  border-radius: 8px;
  background: #121212;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.cmp-picker__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(202, 165, 106, 0.5);
  border-radius: 50%;
  background: transparent;
  color: #caa56a;
  cursor: pointer;
}

.cmp-picker__close:hover {
  background: #caa56a;
  color: #111111;
}

.cmp-picker__head {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmp-picker__eyebrow {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #caa56a;
}

.cmp-picker__title {
  margin: 6px 0 18px;
  font-family: "Fredoka", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 30px;
  color: #fffbf5;
}

.cmp-picker__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: #0b0b0a;
  color: #77746e;
}

.cmp-picker__search:focus-within {
  border-color: #caa56a;
}

.cmp-picker__search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
  color: #fffbf5;
  outline: none;
}

.cmp-picker__search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.cmp-picker__search input::placeholder {
  color: #55534f;
}

.cmp-picker__list {
  max-height: 55vh;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
}

.cmp-picker__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cmp-picker__item:hover:not(:disabled),
.cmp-picker__item:focus-visible {
  border-color: rgba(202, 165, 106, 0.4);
  background: rgba(202, 165, 106, 0.08);
  outline: none;
}

.cmp-picker__item.is-current {
  border-color: rgba(202, 165, 106, 0.6);
}

.cmp-picker__item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cmp-picker__item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cmp-picker__item-text strong {
  font-family: "Fredoka", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #fffbf5;
}

.cmp-picker__item-text small {
  overflow: hidden;
  font-family: "Faustina", Georgia, serif;
  font-size: 13px;
  line-height: 19px;
  color: #9d9d9d;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cmp-picker__item-meta {
  flex-shrink: 0;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  color: #caa56a;
}

.cmp-picker__empty {
  margin: 0;
  padding: 28px;
  font-family: "Faustina", Georgia, serif;
  text-align: center;
  color: #77746e;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ≤ 1199px: the table scrolls sideways, labels stay pinned */
@media (max-width: 1199px) {
  .cmp {
    padding: 48px 24px 80px;
  }

  .cmp__title {
    font-size: 44px;
  }

  .cmp__head {
    margin-bottom: 40px;
  }

  .cmp__table {
    min-width: 1000px;
  }
}

/* ≤ 959px: tablets */
@media (max-width: 959px) {
  .cmp__title {
    font-size: 36px;
  }

  .cmp__intro {
    margin-top: 16px;
    font-size: 16px;
    line-height: 26px;
  }

  .cmp__table {
    min-width: 900px;
  }

  .cmp__col-label {
    width: 160px;
  }

  .cmp__table tbody th,
  .cmp__table tbody td {
    padding: 14px 20px;
  }

  .cmp__corner {
    padding: 28px 20px;
  }
}

/* ≤ 639px: phones */
@media (max-width: 639px) {
  .cmp {
    padding: 40px 12px 52px;
  }

  .cmp__head {
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .cmp__title {
    font-size: 27px;
    line-height: 1.25;
  }

  .cmp__intro {
    font-size: 14px;
    line-height: 22px;
  }

  .cmp__box {
    border-radius: 6px;
  }

  /* label 116 + three 220px project columns */
  .cmp__table {
    min-width: 776px;
  }

  .cmp__col-label {
    width: 116px;
  }

  .cmp__corner,
  .cmp__slot {
    height: 220px;
  }

  .cmp__add,
  .cmp__project {
    min-height: 220px;
  }

  .cmp__project-img {
    height: 76px;
    margin-bottom: 10px;
  }

  .cmp__dev {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cmp__dev-logo {
    width: 48px;
    height: 30px;
  }

  .cmp__toolbar {
    justify-content: flex-end;
    margin-bottom: 10px;
    padding: 0 2px;
  }

  .cmp__count {
    display: none;
  }

  .cmp__tools {
    gap: 16px;
  }

  .cmp__note {
    font-size: 12px;
    line-height: 18px;
    padding: 0 2px;
  }

  .cmp__corner {
    padding: 22px 14px;
  }

  .cmp__corner-title {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .cmp__table tbody th {
    height: 58px;
    padding: 12px 12px 12px 14px;
    font-size: 10px;
    letter-spacing: 0.4px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cmp__table tbody td {
    height: 58px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 21px;
  }

  .cmp__add {
    padding: 20px 16px;
  }

  .cmp__add-circle {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }

  .cmp__add-title {
    font-size: 16px;
  }

  .cmp__add-text {
    padding-bottom: 16px;
    font-size: 12px;
  }

  .cmp__project {
    padding: 16px 16px 18px;
  }

  .cmp__project-actions {
    margin-top: 14px;
  }

  .cmp__project-name {
    font-size: 19px;
    line-height: 24px;
  }

  .cmp__enquire {
    font-size: 16px;
  }

  .cmp-picker__head {
    padding: 22px 18px 16px;
  }

  .cmp-picker__item {
    padding: 12px 14px;
  }
}

/* ≤ 380px: small phones */
@media (max-width: 380px) {
  .cmp__title {
    font-size: 24px;
  }

  .cmp__table {
    min-width: 716px;
  }

  .cmp__col-label {
    width: 104px;
  }

}

/* Picker fills the screen on phones */
@media (max-width: 639px) {
  .cmp-picker.uk-modal {
    padding: 0;
  }

  .cmp-picker__dialog {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
  }

  .cmp-picker__list {
    max-height: none;
  }

  .cmp-picker__item-meta {
    font-size: 12px;
  }
}

@media print {
  .cmp__toolbar,
  .cmp__swipe,
  .cmp__project-actions,
  .cmp__row-cta,
  .cmp__add {
    display: none !important;
  }

  .cmp__table {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmp__add,
  .cmp__add-circle,
  .cmp__enquire,
  .cmp__enquire [uk-icon],
  .cmp__table tbody td {
    transition: none;
  }

  .cmp__add:hover .cmp__add-circle {
    transform: none;
  }
}
