/* Hero concept "Work wall" (round 19 draft). The wall is drawn by ce-lib-hero-wall.js; transforms only. */
.hw { --hh: 84px; position: relative; height: 100vh; height: 100svh; min-height: 660px; max-height: 1300px; background: #F4F4F2; overflow: hidden; isolation: isolate; }
.hw-wall { position: absolute; inset: var(--hh) 0 0 0; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hw-wall.is-drag { cursor: grabbing; }
.hw-field { position: absolute; inset: 0; transform-origin: 50% 45%; }
.hw.is-intro .hw-field { animation: hw-zoom 1.9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes hw-zoom { from { transform: scale(1.08); opacity: 0; } 18% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

.hw-t { position: absolute; left: 0; top: 0; display: block; will-change: transform; transform-origin: 50% 50%; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; color: inherit; text-decoration: none; outline: 0; }
.hw-t[hidden] { display: none; }
.hw-t__in { position: relative; display: block; width: 100%; height: 100%; border-radius: 5px; overflow: hidden; background: #E3E3DF;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s cubic-bezier(.2, .8, .2, 1); }
.hw-t img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform: translate3d(var(--ix, 0px), var(--iy, 0px), 0) scale(1.07);
  opacity: 0; transition: opacity .5s; }
.hw-t img.is-in { opacity: 1; }
.hw-chip { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px 8px 11px; border-radius: 7px;
  background: #fff; color: var(--black); font: 600 13.5px/1.2 var(--sans); letter-spacing: 0; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .3s, transform .45s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-chip b { font: 800 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
@media (hover: hover) {
  .hw-wall:not(.is-drag) .hw-t:hover .hw-t__in { transform: translate3d(0, -5px, 0); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .55); }
  .hw-wall:not(.is-drag) .hw-t:hover .hw-chip { opacity: 1; transform: none; }
}

/* the card: solid white, still, centred on the wall */
.hw-card { position: absolute; z-index: 3; left: 50%; top: calc(var(--hh) + (100% - var(--hh)) / 2); width: min(640px, calc(100% - 48px)); transform: translate(-50%, -50%);
  background: #fff; border-radius: 20px; padding: 38px 46px 26px; text-align: center;
  box-shadow: 0 0 0 1px rgba(17, 18, 20, .07), 0 2px 6px -2px rgba(17, 18, 20, .12), 0 44px 90px -34px rgba(17, 18, 20, .5); }
.hw.is-intro .hw-card { animation: hw-card 1.1s .35s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes hw-card { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.ce .hw-h1 { margin: 0; font: inherit; text-transform: none; letter-spacing: 0; line-height: 1.35; display: grid; gap: 4px; justify-items: center; }
.hw-h1__n { font: 800 13px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.hw-h1__s { font: 500 15px/1.4 var(--sans); color: var(--mut); max-width: 44ch; }
.hw-big { margin: 16px 0 12px; font: 900 clamp(76px, min(8vw, 13vh), 128px)/.84 var(--disp); text-transform: uppercase; letter-spacing: .005em; color: var(--black); }
.hw-big span { color: var(--red); }
.hw-line { margin: 0 auto 24px; max-width: 34ch; font: 400 18px/1.5 var(--sans); color: var(--ink); }
.hw-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hw-btns .btn { min-height: 58px; }
.hw-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.hw-rate { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 500 14px/1 var(--sans); }
.hw-rate .e-stars { color: #F5B301; gap: 2px; } .hw-rate .e-stars svg { width: 16px; height: 16px; }
.hw-rate b { font-weight: 800; } .hw-rate span:last-child { color: var(--mut); }
.hw-rate:hover span:last-child { color: var(--ink); text-decoration: underline; }
.hw-hint { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.hw-hint svg { width: 18px; height: 18px; color: var(--red); }
.hw-hint__m { display: none; }
.hw-sr { position: absolute; z-index: 4; left: 16px; bottom: 16px; padding: 10px 14px; background: #fff; border-radius: 8px; color: var(--ink); font: 700 14px/1 var(--sans); transform: translateY(160%); }
.hw-sr:focus { transform: none; }

/* closing band */
.hw-close { background: #fff; padding: clamp(80px, 9vw, 130px) 0; text-align: center; }
.hw-close h2 { font-size: clamp(44px, 5vw, 76px); margin: 0 auto 18px; max-width: 16ch; }
.hw-close .e-p { margin: 0 auto 30px; max-width: 44ch; }
.hw-close .e-btns { justify-content: center; }

@media (max-width: 760px) {
  .hw { --hh: 68px; min-height: 600px; }
  .hw-card { top: auto; left: 10px; right: 10px; bottom: calc(92px + env(safe-area-inset-bottom)); width: auto; transform: none; padding: 18px 16px 12px; border-radius: 16px; }
  .hw-h1__n { font-size: 11.5px; letter-spacing: .15em; }
  .hw-h1__s { font-size: 13px; line-height: 1.35; max-width: 34ch; }
  .hw-big { margin: 10px 0 8px; font-size: 50px; }
  .hw-line { font-size: 15px; margin-bottom: 14px; max-width: 30ch; }
  .hw-btns { display: grid; grid-template-columns: 1.45fr 1fr; gap: 8px; }
  .hw-btns .btn { min-height: 50px; padding: 0 8px; font-size: 17px; letter-spacing: .03em; gap: 6px; white-space: nowrap; }
  .hw-btns .btn .ic { width: 18px; height: 18px; }
  .hw-btns .e-btn-line .ic { display: none; }
  .hw-meta { margin-top: 12px; padding-top: 10px; gap: 8px; white-space: nowrap; }
  .hw-rate { font-size: 12.5px; gap: 6px; } .hw-rate .e-stars svg { width: 13px; height: 13px; }
  .hw-hint { font-size: 10.5px; letter-spacing: .1em; gap: 5px; } .hw-hint svg { width: 15px; height: 15px; }
  .hw-hint__d { display: none; } .hw-hint__m { display: inline; }
  .hw-rate { font-size: 12px; } .hw-hint { font-size: 10px; }
  .hw-chip { display: none; }
}
@media (max-width: 360px) { .hw-rate span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hw.is-intro .hw-field, .hw.is-intro .hw-card { animation: none; }
  .hw-t img { transition: none; }
}

/* As a section on the home page ("See our work"): no header to clear, a little shorter than a full screen */
.hw--sec { --hh: 0px; height: 88vh; height: 88svh; min-height: 620px; max-height: 1000px; }
.hw--sec .hw-big { font-size: clamp(52px, 6.4vw, 92px); }
@media (max-width: 700px) { .hw--sec { --hh: 0px; min-height: 640px; } }
