/* ---------- Work page (/work) ---------- */
.work { padding-top: clamp(120px, 22vh, 220px); }
.work-head .label { font-size: 12.5px; }

/* ---------- And more: every preview nobody has opened yet ---------- */
.more { padding: clamp(96px, 16vh, 200px) var(--gutter) clamp(40px, 8vh, 96px); }
.more-head { margin-bottom: clamp(40px, 7vh, 80px); display: grid; gap: 14px; }
.more-t {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.more-t em { color: var(--dim); }
.more-s { color: var(--dim); font-size: clamp(15px, 1.3vw, 18px); max-width: 40ch; }

.more-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 44px);
}
@media (max-width: 1100px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mc { position: relative; padding: 0 6% 7% 0; }
.mc-browser {
  border-radius: 10px;
  overflow: hidden;
  background: #121211;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.6s var(--ease, ease), box-shadow 0.6s;
}
.mc-bar { display: flex; gap: 5px; padding: 8px 10px; background: #181817; }
.mc-bar i { width: 7px; height: 7px; border-radius: 50%; background: #2e2e2c; }
.mc-view, .mc-pview { overflow: hidden; container-type: size; }
.mc-view { aspect-ratio: 16 / 10; }
.mc-view img, .mc-pview img {
  display: block;
  width: 100%;
  height: auto;
  /* Scrolling back to the top when the pointer leaves is quick; the way down is set on hover. */
  transition: transform 1.1s var(--ease, ease);
}
.mc-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
  padding: 4px;
  border-radius: 16px;
  background: #0b0b0a;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.6s var(--ease, ease);
}
.mc-pview { aspect-ratio: 9 / 19.5; border-radius: 12px; }

/* Hover: both screens scroll the whole page, at the same pace whatever its length. */
@media (hover: hover) {
  .mc:hover .mc-browser { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.14); }
  .mc:hover .mc-phone { transform: translateY(-10px); }
  .mc:hover .mc-view img { transform: translateY(calc(-100% + 100cqh)); transition: transform var(--t, 8s) linear 0.15s; }
  .mc:hover .mc-pview img { transform: translateY(calc(-100% + 100cqh)); transition: transform var(--tp, 8s) linear 0.15s; }
}

/* Phones: two across, the browser only. */
@media (max-width: 700px) {
  .more-grid { gap: 22px 14px; }
  .mc { padding: 0; }
  .mc-phone { display: none; }
  .mc-bar { padding: 6px 8px; gap: 4px; }
  .mc-bar i { width: 5px; height: 5px; }
  .mc-browser { border-radius: 7px; }
}
.js .mc.reveal { transform: translateY(24px); }
.js .mc.reveal.in { transform: none; }
