/* Experience page — four panels inside the big centred card.
   Sizes are design pixels × var(--u), so the whole card scales with the screen. */

.experience {
  justify-content: flex-start;
  align-items: stretch;
  gap: calc(108 * var(--u));
}

.experience__back {
  font-size: calc(44 * var(--u));
  line-height: normal;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.experience__back:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* ---------- Panels ---------- */

.panels {
  display: flex;
  flex: 1;
  gap: calc(12 * var(--u));
  min-height: 0;
}

.panel {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: var(--color-page);
  border-radius: calc(6 * var(--u));
  color: var(--color-text);
}

/* Content longer than the panel scrolls underneath the title */
.panel__scroll {
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--u));
  height: 100%;
  padding: calc(20 * var(--u)) calc(20 * var(--u)) calc(100 * var(--u));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.panel__scroll::-webkit-scrollbar {
  display: none;
}

.panel__title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: calc(100 * var(--u));
  padding: 0 calc(20 * var(--u)) calc(20 * var(--u));
  font-size: calc(28 * var(--u));
  line-height: normal;
  text-align: right;
  color: var(--color-text-strong);
  background: linear-gradient(179.54deg, rgba(15, 14, 14, 0) 1.03%, var(--color-page) 55.71%);
  pointer-events: none;
}

.panel__group {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--u));
}

.panel__heading {
  margin: 0;
  font-size: calc(16 * var(--u));
  font-weight: 400;
  line-height: normal;
}

.panel__text {
  font-size: calc(16 * var(--u));
  font-weight: 300;
  line-height: normal;
}

.panel__text p {
  margin-bottom: calc(6 * var(--u));
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: disc;
}

.bullets li {
  margin-left: calc(24 * var(--u));
}

/* ---------- Tags ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6 * var(--u));
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: calc(4 * var(--u)) calc(8 * var(--u));
  font-size: calc(14 * var(--u));
  font-weight: 300;
  line-height: normal;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(3 * var(--u));
}

/* ---------- Award ---------- */

.award {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  width: calc(233 * var(--u));
  padding: calc(4 * var(--u)) calc(8 * var(--u));
  font-size: calc(14 * var(--u));
  font-weight: 300;
  line-height: normal;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(3 * var(--u));
  transition: border-color 0.3s ease, color 0.3s ease;
}

.award:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.award__name {
  flex: 1;
  min-width: 0;
}

.award__title {
  font-weight: 400;
}

/* ---------- Work history ---------- */

.jobs {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
}

.job {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
  padding: calc(10 * var(--u));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(3 * var(--u));
}

.job__head {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--u));
}

.job__name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: calc(18 * var(--u));
  line-height: normal;
}

.job__meta,
.job__text {
  font-size: calc(14 * var(--u));
  font-weight: 300;
  line-height: normal;
  overflow-wrap: break-word;
}
