/* Experience block — Geist / Geist Mono / Inspiration, matching the site */
.tp-xp {
  --tp-ink: rgb(36, 36, 36);
  --tp-mute: rgb(140, 140, 140);
  --tp-line: rgba(36, 36, 36, 0.14);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 72px 40px 24px;
  color: var(--tp-ink);
  font-family: "Geist Mono", monospace;
  -webkit-font-smoothing: antialiased;
}
.tp-xp *, .tp-xp *::before, .tp-xp *::after { box-sizing: border-box; }

/* desktop: sits in the empty area to the right of the cross pattern, above "SELECTED WORKS" */
.tp-xp.is-overlay {
  position: absolute;
  top: 96px;
  left: 340px;
  right: 64px;
  width: auto;
  padding: 0;
  z-index: 2;
}

/* ---------- header ---------- */
.tp-xp__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--tp-line);
}
.tp-xp__label,
.tp-xp__hint {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tp-xp__label { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.tp-xp__sq { width: 14px; height: 14px; background: var(--tp-ink); flex: none; }
.tp-xp__hint { color: var(--tp-mute); font-size: 12px; }

/* ---------- grid ---------- */
.tp-xp__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.tp-xp__item { min-width: 0; }
/* line up logo, title, company and description across columns, even when a title wraps */
@supports (grid-template-rows: subgrid) {
  .tp-xp__grid { row-gap: 0; }
  .tp-xp__item { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .tp-xp__role { align-self: start; }
}

.tp-xp__tile {
  position: relative;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--tp-line);
  background: #fbfbfb;
  overflow: hidden;
  transition: border-color .3s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.tp-xp__item:hover .tp-xp__tile { border-color: var(--tp-ink); transform: translateY(-3px); }
.tp-xp__num {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--tp-mute);
}
.tp-xp__tile img {
  display: block;
  max-width: 88%;
  max-height: 40px;
  width: auto;
  height: auto;
  mix-blend-mode: multiply;
}
/* hide the GSTIN line printed under the Vibrant Viral Media wordmark */
.tp-xp__tile img[data-crop="vvm"] {
  max-width: 100%;
  max-height: 52px;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 44% 55%, 44% 100%, 0 100%);
}
/* fromdrive's image has wide margins baked in */
.tp-xp__tile img[src*="fromdrive"] { max-height: 66px; max-width: 96%; clip-path: inset(0 0 12% 0); }
.tp-xp__wordmark {
  font-family: "Geist", sans-serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.tp-xp__script {
  font-family: "Inspiration", sans-serif;
  font-size: 1.25em;
  letter-spacing: 0;
}

.tp-xp__role {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.tp-xp__company {
  margin: 6px 0 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tp-mute);
}
.tp-xp__desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* entrance */
.tp-xp .tp-xp__head,
.tp-xp .tp-xp__item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform 1s cubic-bezier(.22, 1, .36, 1);
}
.tp-xp .tp-xp__item { transition-delay: calc(var(--i) * 80ms + 120ms); }
.tp-xp.is-in .tp-xp__head,
.tp-xp.is-in .tp-xp__item { opacity: 1; transform: none; }

/* ---------- tablet (in normal flow before #work) ---------- */
@media (max-width: 1199px) {
  .tp-xp__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  @supports (grid-template-rows: subgrid) {
    .tp-xp__grid { row-gap: 0; }
    .tp-xp__desc { padding-bottom: 32px; }
  }
}

/* ---------- phone ---------- */
@media (max-width: 809px) {
  .tp-xp { padding: 64px 20px 8px; }
  .tp-xp__head { flex-direction: column; gap: 6px; }
  .tp-xp__grid { grid-template-columns: 1fr; gap: 0; }
  .tp-xp__item {
    display: grid;
    grid-row: auto;
    grid-template-rows: none;
    align-content: center;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--tp-line);
  }
  .tp-xp__tile { grid-row: span 3; height: 72px; margin: 0; }
  .tp-xp__wordmark { font-size: 20px; }
  .tp-xp__role { font-size: 18px; }
  .tp-xp__company { margin: 4px 0 6px; }
  .tp-xp__role { align-self: auto; }
  .tp-xp__desc { padding-bottom: 0; }
}

/* nav link (cloned from WORK) */
.tp-exp-nav a > div:first-child { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.tp-exp-nav a:hover > div:first-child { transform: rotate(90deg) !important; }

@media (prefers-reduced-motion: reduce) {
  .tp-xp .tp-xp__head, .tp-xp .tp-xp__item, .tp-xp__tile { transition: none; }
}
