/* home "what we do": the desk. three case files that rise in a row when the band scrolls in, photos wipe
   open, the stamp lands; hover lifts with an amber edge. phone = a snap row. */
.desk { overflow: hidden; }
.desk__head { max-width: 46rem; }
.desk__head .lead { color: rgba(255, 255, 255, 0.78); }

.desk__deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: clamp(36px, 5vw, 64px);
}

.desk__card {
  --ink: #0b1640;
  --muted: #5a6386;
  --hair: rgba(11, 22, 64, 0.1);
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border-radius: 22px;
  overflow: clip;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 50px -18px rgba(3, 8, 36, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: translate 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, box-shadow 0.45s ease;
  transition-delay: var(--d, 0s);
}
.desk__card--1 { --d: 0s; }
.desk__card--2 { --d: 0.14s; }
.desk__card--3 { --d: 0.28s; }

/* arrive: straight rise in a row, the photo wipes open from the top, then the stamp lands */
.js .desk:not(.in) .desk__card { opacity: 0; translate: 0 56px; }
.desk__photo { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.2, 1); transition-delay: calc(var(--d, 0s) + 0.25s); }
.js .desk:not(.in) .desk__photo { clip-path: inset(0 0 100% 0); }

@media (hover: hover) and (pointer: fine) {
  .desk.in .desk__card:hover {
    translate: 0 -10px;
    transition-delay: 0s;
    box-shadow: 0 34px 60px -18px rgba(3, 8, 36, 0.7), 0 0 0 1px rgba(255, 179, 92, 0.55), 0 0 46px rgba(255, 179, 92, 0.22);
  }
}

.desk__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  
  background: linear-gradient(110deg, #0b1640, #1d36d6 70%, #4c46e4);
  color: #fff;
}
.desk__card--2 .desk__top { background: linear-gradient(110deg, #0b1640, #3a2fc9 60%, #9a6ad8); }
.desk__card--3 .desk__top { background: linear-gradient(110deg, #0b1640, #1d5fd6 60%, #2fa58a); }
.desk__brand { display: grid; font: 800 0.9rem/1.15 var(--font); letter-spacing: -0.01em; }
.desk__brand small, .desk__no small { font: 700 0.64rem/1.2 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: #ffd29a; }
.desk__no { display: grid; justify-items: end; gap: 2px; }
.desk__no b { font: 800 1rem/1 var(--font); letter-spacing: 0.04em; }

.desk__photo { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.desk__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.desk__card--2 .desk__photo img { object-position: 50% 22%; }
.desk__card:hover .desk__photo img { scale: 1.05; }
.desk__stamp {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 6px 12px;
  border: 2px solid #ff8a3d;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #e0611a;
  font: 800 0.7rem/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  rotate: -8deg;
  transition: scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s ease;
  transition-delay: calc(var(--d, 0s) + 1.05s);
}
.js .desk:not(.in) .desk__stamp { scale: 2.2; opacity: 0; transition-delay: 0s; }

.desk__body { display: grid; align-content: start; gap: 14px; padding: 20px 22px 6px; }
.desk__title { margin: 0; font: 800 clamp(1.25rem, 1.7vw, 1.55rem)/1.15 var(--font); letter-spacing: -0.03em; }
.desk__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hair);
  border-radius: 14px;
}
.desk__fields li { display: grid; gap: 4px; padding: 11px 13px; font: 600 0.84rem/1.3 var(--font); color: var(--ink); }
.desk__fields li:nth-child(odd) { border-right: 1px solid var(--hair); }
.desk__fields li:nth-child(-n + 2) { border-bottom: 1px solid var(--hair); }
.desk__fields span { font: 700 0.62rem/1.2 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: #1f37d6; }

.desk__foot {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding: 16px 22px 18px;
  border-top: 1px solid var(--hair);
}
#what .desk__go { display: inline-flex; gap: 6px; align-items: center; font: 800 0.88rem/1 var(--font); color: #1f37d6; text-decoration: none; }
#what .desk__go span { transition: translate 0.3s ease; }
.desk__card:hover .desk__go span, .desk__go:focus-visible span { translate: 3px -3px; }
.desk__go::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }

/* tablet: two up, the third centred under them */
@media (max-width: 1080px) {
  .desk__deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk__card--3 { grid-column: 1 / -1; justify-self: center; width: min(100%, calc(50% - 12px)); }
}

/* phone: a snap row you thumb through */
@media (max-width: 720px) {
  .desk__deck {
    display: flex;
    gap: 16px;
    margin-inline: -16px;
    padding: 8px 16px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .desk__deck::-webkit-scrollbar { display: none; }
  .desk__card, .desk__card--3 { flex: 0 0 86%; width: auto; scroll-snap-align: center; }
  .js .desk:not(.in) .desk__card { translate: 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .desk__card, .desk__stamp, .desk__photo, .desk__photo img { transition: none !important; }
  .js .desk:not(.in) .desk__card { opacity: 1; translate: none; }
  .js .desk:not(.in) .desk__photo { clip-path: none; }
  .js .desk:not(.in) .desk__stamp { scale: 1; opacity: 1; }
}
