/* ==========================================================================
   Site mock — browser / phone frame with a live-HTML homepage preview.
   The page scrolls through on hover (desktop) or loops slowly (touch).
   ========================================================================== */

.site-mock {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(18, 18, 18, .35), 0 0 0 1px rgba(18, 18, 18, .06);
}
.site-mock__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  background: #EFEFED;
  border-bottom: 1px solid var(--c-line);
}
.site-mock__dots { display: flex; gap: 6px; }
.site-mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: #D3D3D0; }
.site-mock__url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-mock__view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  container-type: inline-size;
}
.site-mock__page {
  position: absolute;
  top: 0; left: 0; right: 0;
  transition: transform 7s cubic-bezier(.45, 0, .55, 1);
  will-change: transform;
}
@media (hover: hover) {
  .site-mock:hover .site-mock__page,
  a:hover .site-mock__page { transform: translateY(calc(var(--shift, 0px) * -1)); }
}
@media (hover: none) {
  .site-mock.is-visible .site-mock__page { animation: mock-scroll 16s ease-in-out infinite; }
}
@keyframes mock-scroll {
  0%, 12% { transform: translateY(0); }
  50%, 62% { transform: translateY(calc(var(--shift, 0px) * -1)); }
  100% { transform: translateY(0); }
}

/* Phone frame */
.site-mock--phone {
  border-radius: 34px;
  border: 8px solid #121212;
  box-shadow: 0 30px 60px -30px rgba(18, 18, 18, .45);
}
.site-mock--phone .site-mock__bar {
  justify-content: center;
  height: 26px;
  background: #121212;
  border: 0;
}
.site-mock--phone .site-mock__bar::before {
  content: '';
  width: 70px;
  height: 16px;
  border-radius: 999px;
  background: #000;
}
.site-mock--phone .site-mock__dots,
.site-mock--phone .site-mock__url { display: none; }

/* ---------- The mocked homepage (sizes in container units) ---------- */
.vm { font-family: var(--f-sans); color: #1b1b1b; background: #fff; }
.vm img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vm__hero { position: relative; height: 56cqw; color: #fff; background: #1d1d1b; }
.vm__hero img { position: absolute; inset: 0; }
.vm__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.15) 40%, rgba(0,0,0,.55)); }
.vm__nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: 2.2cqw 3.5cqw; font-size: 1.15cqw; letter-spacing: .06em; text-transform: uppercase; }
.vm__nav b { font-size: 1.7cqw; letter-spacing: .12em; font-weight: 600; }
.vm__nav span { display: flex; gap: 2.4cqw; }
.vm__heroText { position: absolute; z-index: 1; left: 0; right: 0; bottom: 9cqw; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.4cqw; }
.vm__heroText h4 { font-size: 5.2cqw; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.vm__heroText p { font-size: 1.5cqw; letter-spacing: .08em; text-transform: uppercase; }
.vm__btn { display: inline-block; padding: 1cqw 2.6cqw; border: 1px solid currentColor; font-size: 1.1cqw; letter-spacing: .12em; text-transform: uppercase; }
.vm__story { padding: 6cqw 14cqw; text-align: center; font-size: 1.6cqw; line-height: 1.6; color: #444; display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; }
.vm__story .vm__btn { color: #1b1b1b; }
.vm__h { padding: 0 3.5cqw 2.4cqw; font-size: 3cqw; font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.vm__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4cqw; padding: 0 3.5cqw 6cqw; }
.vm__card { display: flex; flex-direction: column; gap: 1cqw; }
.vm__card figure { aspect-ratio: 4 / 5; margin: 0; overflow: hidden; background: #ddd; }
.vm__card strong { font-size: 1.7cqw; font-weight: 600; }
.vm__card small { font-size: 1.15cqw; color: #666; }
.vm__grid--events figure { aspect-ratio: 16 / 11; }
.vm__book { padding: 6cqw 3.5cqw; background: #1b1b1b; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; }
.vm__book h5 { font-size: 3.2cqw; font-weight: 600; }
.vm__book p { font-size: 1.4cqw; color: #bbb; }
.vm__foot { padding: 3cqw 3.5cqw; background: #111; color: #999; font-size: 1.1cqw; display: flex; justify-content: space-between; gap: 2cqw; }

/* Narrow containers (phone): stack and enlarge */
.site-mock--phone .site-mock__view { container-name: phone; }
@container phone (max-width: 480px) {
  .vm__hero { height: 150cqw; }
  .vm__nav { padding: 5cqw; font-size: 3.4cqw; }
  .vm__nav b { font-size: 4.4cqw; }
  .vm__nav span { display: none; }
  .vm__heroText { bottom: 16cqw; gap: 4cqw; padding: 0 6cqw; }
  .vm__heroText h4 { font-size: 11cqw; }
  .vm__heroText p { font-size: 3.4cqw; }
  .vm__btn { padding: 3cqw 7cqw; font-size: 3.2cqw; }
  .vm__story { padding: 12cqw 7cqw; font-size: 4cqw; gap: 6cqw; }
  .vm__h { font-size: 7cqw; padding: 0 5cqw 5cqw; }
  .vm__grid { grid-template-columns: minmax(0, 1fr); gap: 6cqw; padding: 0 5cqw 12cqw; }
  .vm__card { gap: 2cqw; }
  .vm__card figure { aspect-ratio: 16 / 11; }
  .vm__card strong { font-size: 5cqw; }
  .vm__card small { font-size: 3.4cqw; }
  .vm__book { padding: 14cqw 6cqw; gap: 4cqw; }
  .vm__book h5 { font-size: 7cqw; }
  .vm__book p { font-size: 3.6cqw; }
  .vm__foot { font-size: 3cqw; padding: 6cqw 5cqw; flex-direction: column; }
}

/* ---------- Case study: homepage showcase ---------- */
.mock-showcase {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  margin-top: clamp(40px, 5vw, 72px);
}
.mock-showcase__desk { aspect-ratio: 16 / 10.5; }
.mock-showcase__phone { aspect-ratio: 9 / 19; max-width: 300px; width: 100%; justify-self: center; }
.mock-showcase__hint { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
@media (max-width: 760px) {
  .mock-showcase { grid-template-columns: minmax(0, 1fr); }
  .mock-showcase__phone { max-width: 240px; }
}

/* Listing card: frame fills the card media */
.zoom__inner.has-mock { padding: clamp(14px, 2.2vw, 32px); display: flex; }
.zoom__inner.has-mock .site-mock { border-radius: 12px; }

.site-mock__shot { display: block; width: 100%; height: auto; }
.mock-showcase--single { grid-template-columns: minmax(0, 1fr); }
.site-mock__page { transition-duration: 9s; }
