/* "More projects" showcase carousel (Round 69)
   Markup: build/build.py (more_block). Behaviour: assets/js/showcase.js.
   Without JS: a row that scrolls sideways and snaps. With JS (.sc--js): one large card in the middle,
   the previous and next ones smaller and dimmed at the sides, sliding on a soft expo ease. */

.sc {
  --dir: 1;
  --sc-ease: cubic-bezier(.16, 1, .3, 1);
  --sc-dur: 900ms;
  --sc-r: 32px;
  grid-column: 1 / -1; position: relative; margin-top: clamp(72px, 8vw, 112px);
}
[dir="rtl"] .sc { --dir: -1; }

/* heading row: "More projects" ——— 01 / 03 */
.sc-head { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(28px, 3vw, 40px); }
.sc .sc-head .pj-more-h { flex: 1; margin: 0 !important; }
.sc-count { margin: 0; font-size: .9375rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: #8f8c88; white-space: nowrap; direction: ltr; }
.sc-count b { font-weight: 700; color: var(--ink); }

/* the stage: bleeds into the page margins */
.sc-view {
  --cw: calc((100cqi - 2 * var(--m)) * .62);   /* the active card: ~62% of the content width */
  --ch: 70;                                     /* card height, in % of its width (16/10 = 62.5; a touch taller keeps more of each cover) */
  --gap: clamp(18px, 2vw, 30px);
  --s-near: .86;
  position: relative; container-type: inline-size; margin-inline: calc(var(--m) * -1);
}

.sc-track { list-style: none; margin: 0; padding: 0; }
.sc-slide { width: var(--cw); }

/* ── without JS: a row that scrolls and snaps ── */
.sc:not(.sc--js) .sc-track {
  display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-inline: var(--m); scroll-padding-inline: var(--m); padding-bottom: 8px; scrollbar-width: none;
}
.sc:not(.sc--js) .sc-track::-webkit-scrollbar { display: none; }
.sc:not(.sc--js) .sc-slide { flex: 0 0 var(--cw); scroll-snap-align: center; }

/* ── the card ── */
.sc-card { display: block; color: var(--ink); text-decoration: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.sc-card:focus-visible { outline: none; }
.sc-card:focus-visible .sc-cover { box-shadow: 0 0 0 2px #141414, 0 0 0 4px #f2287f, 0 50px 100px -50px rgba(0, 0, 0, .9); }
.sc-cover {
  position: relative; display: block; height: calc(var(--cw) * var(--ch) / 100); border-radius: var(--sc-r); overflow: hidden; isolation: isolate;
  background: var(--solid, #1c1c1c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -50px rgba(0, 0, 0, .9);
  transform-origin: 50% 50%;
}
/* the cover is drawn for 4/4.6: keep its proportions, show the band around its focal point (--fy, 0 top … 1 bottom) */
.sc-cover .cv {
  position: absolute; inset-inline: 0; width: 100%; height: auto; aspect-ratio: 4 / 4.6; border-radius: 0;
  top: calc((var(--ch) - 115) * var(--cw) / 100 * var(--fy, 0));
}
/* each cover opens with its logo at the top: the crop keeps the top and trims the bottom */
/* glass rim on top of the art, and the veil that dims the neighbours */
.sc-cover::before, .sc-cover::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 20; }
.sc-cover::before { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .18); }
.sc-cover::after { background: linear-gradient(180deg, rgba(20, 20, 20, .5), rgba(20, 20, 20, .72)); opacity: 0; transition: opacity var(--sc-dur) var(--sc-ease); }

/* progress: a thin pink line under the active card, filling over 5s */
.sc-bar { position: relative; display: block; height: 2px; margin-top: 20px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .08); opacity: 0; transition: opacity .5s; }
.sc-bar i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #c20c5e, #e5116f 50%, #ff2f8c); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .sc-bar i { transform-origin: right center; background: linear-gradient(-90deg, #c20c5e, #e5116f 50%, #ff2f8c); }
.sc--auto .is-active .sc-bar { opacity: 1; }
.sc--auto .is-active .sc-bar i { animation: sc-fill 5s linear forwards; }
.sc--hold .is-active .sc-bar i { animation-play-state: paused; }
@keyframes sc-fill { to { transform: scaleX(1); } }

/* words under the card */
.sc-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kind go" "name go" "line go"; align-items: center; column-gap: 32px; padding: 22px 6px 0; }
.sc-kind { grid-area: kind; font-size: .8125rem; letter-spacing: .06em; color: #8f8c88; margin-bottom: 8px; }
.sc-name { grid-area: name; font-weight: 700; font-size: clamp(1.625rem, 2.4vw, 2.25rem); line-height: 1.05; letter-spacing: -.025em; }
.sc-line { grid-area: line; margin-top: 8px; color: #b5b2ad; font-size: 1.0625rem; }
.sc-go {
  grid-area: go; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding-inline: 24px 16px; border-radius: 999px; font-weight: 600; font-size: .9375rem; white-space: nowrap;
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: box-shadow .4s, background .4s;
}
.sc-go i { width: 26px; height: 26px; background: url(assets/icons/glass-arrow.png) center / contain no-repeat; transform: scaleX(calc(-1 * var(--dir))); transition: translate .5s var(--sc-ease); }
.sc-card:hover .sc-go, .sc-card:focus-visible .sc-go { background: linear-gradient(160deg, rgba(255, 60, 150, .16), rgba(244, 20, 121, .06)); box-shadow: inset 0 0 0 1px rgba(255, 120, 180, .38), inset 0 1px 0 rgba(255, 255, 255, .2); }
.sc-card:hover .sc-go i { translate: calc(var(--dir) * 5px) 0; }

/* ── with JS: the stage ── */
.sc--js .sc-view { overflow-x: clip; overflow-y: visible; touch-action: pan-y; cursor: grab; }
.sc--js.is-dragging .sc-view { cursor: grabbing; }
.sc--js .sc-track { display: grid; }
.sc--js .sc-slide {
  grid-area: 1 / 1; justify-self: center;
  transform: translateX(calc((var(--cw) * (1 + var(--s-near)) / 2 + var(--gap)) * var(--o) * var(--dir) + var(--dx, 0px)));
  transition: transform var(--sc-dur) var(--sc-ease), translate 1.2s var(--sc-ease), opacity .8s var(--sc-ease), visibility 0s;
}
.sc--js .sc-cover { transition: transform var(--sc-dur) var(--sc-ease), box-shadow .6s; }
.sc--js .sc-meta { transition: opacity .6s var(--sc-ease), translate .9s var(--sc-ease); }
.sc--js .sc-slide:not(.is-active) .sc-cover { transform: scale(var(--s-near)); }
.sc--js .sc-slide:not(.is-active) .sc-cover::after { opacity: 1; }
.sc--js .sc-slide:not(.is-active) .sc-meta { opacity: 0; translate: 0 10px; }
.sc--js .sc-slide.is-active { z-index: 2; }
.sc--js .sc-slide.is-far { opacity: 0; visibility: hidden; transition: transform var(--sc-dur) var(--sc-ease), translate 1.2s var(--sc-ease), opacity .5s, visibility 0s .5s; }
.sc--js .sc-slide.is-near .sc-card { cursor: pointer; }
.sc--js .is-active .sc-card:hover .sc-cover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent), 0 60px 110px -50px color-mix(in srgb, var(--brand) 55%, #000); }
/* drag follows the pointer, no easing */
.sc--js.is-dragging .sc-slide, .sc--js.is-dragging .sc-cover { transition: none; }
.sc--js .is-snap, .sc--js .is-snap .sc-cover, .sc--js .is-snap .sc-cover::after, .sc--js .is-snap .sc-meta { transition: none !important; }

/* arriving: the active card rises first, then the neighbours slide in from the sides */
.sc--js.sc--pre .sc-slide.is-active { opacity: 0; translate: 0 64px; }
.sc--js.sc--pre .sc-slide.is-near { opacity: 0; translate: calc(var(--o) * var(--dir) * 14cqi) 0; }
.sc--js.sc--pre .sc-nav, .sc--js.sc--pre .sc-head { opacity: 0; }
.sc--js.sc--build .sc-slide.is-active { transition-duration: var(--sc-dur), 1.1s, .9s, 0s; }
.sc--js.sc--build .sc-slide.is-near { transition-delay: 0s, .28s, .28s, 0s; transition-duration: var(--sc-dur), 1.2s, .9s, 0s; }
.sc--js .sc-nav, .sc--js .sc-head { transition: opacity .9s var(--sc-ease) .2s; }

/* ── arrows: glass, at the active card's edges (below it on phones) ── */
.sc-nav[hidden] { display: none; }
.sc-nav { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.sc-btn {
  position: absolute; top: calc(var(--cw) * var(--ch) / 200); translate: 0 -50%; pointer-events: auto;
  display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; color: inherit; cursor: pointer;
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03)) rgba(24, 24, 24, .42);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .2), 0 24px 48px -18px rgba(0, 0, 0, .8);
  transition: scale .5s var(--sc-ease), box-shadow .4s, background .4s;
}
/* just outside the active card, over the dimmed neighbour, so they never cover the art in focus */
.sc-btn--prev { inset-inline-start: calc(50% - var(--cw) / 2 - 64px - 14px); }
.sc-btn--next { inset-inline-end: calc(50% - var(--cw) / 2 - 64px - 14px); }
.sc-btn i { width: 28px; height: 28px; background: url(assets/icons/glass-arrow.png) center / contain no-repeat; transition: translate .45s var(--sc-ease); }
.sc-btn--prev i { transform: scaleX(var(--dir)); }
.sc-btn--next i { transform: scaleX(calc(-1 * var(--dir))); }
.sc-btn:hover { scale: 1.06; background: linear-gradient(160deg, rgba(255, 60, 150, .2), rgba(244, 20, 121, .06)) rgba(24, 24, 24, .5); box-shadow: inset 0 0 0 1px rgba(255, 120, 180, .45), inset 0 1px 0 rgba(255, 255, 255, .24), 0 24px 48px -18px rgba(194, 12, 94, .6); }
.sc-btn:active { scale: .96; }
.sc-btn:focus-visible { outline: 2px solid #f2287f; outline-offset: 3px; }

/* ── phone: the card ~82% wide, neighbours peeking ~9% each side, arrows under the card ── */
@media (max-width: 720px) {
  .sc { margin-top: 56px; }
  .sc-head { margin-bottom: 22px; }
  .sc-view { --cw: 82cqi; --ch: 108; --gap: 8px; --sc-r: 24px; }
  .sc-bar { margin-top: 16px; }
  .sc-meta { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kind" "name" "line"; padding: 16px 2px 0; }
  .sc-go { display: none; }
  .sc-name { font-size: 1.5rem; }
  .sc-line { font-size: 1rem; margin-top: 6px; }
  .sc-kind { font-size: .75rem; margin-bottom: 6px; }
  .sc-nav { position: static; display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
  .sc-btn { position: static; translate: none; width: 52px; height: 52px; }
  .sc-btn i { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc--js .sc-slide, .sc--js .sc-cover, .sc--js .sc-cover::after, .sc--js .sc-meta, .sc--js .sc-nav, .sc--js .sc-head { transition: none !important; }
  .sc--js.sc--pre .sc-slide, .sc--js.sc--pre .sc-nav, .sc--js.sc--pre .sc-head { opacity: 1; translate: none; }
  .sc--js.sc--pre .sc-slide.is-far { opacity: 0; }
  .sc-bar { display: none; }
}

/* Round 74: on desktop the arrows sit in the heading row beside the counter, clear of the covers */
@media (min-width: 721px) {
  .sc-btn { top: -60px; translate: 0 -50%; width: 48px; height: 48px; }
  .sc-btn i { width: 22px; height: 22px; }
  .sc-btn--next { inset-inline-start: auto; inset-inline-end: calc(var(--m) + 84px); }
  .sc-btn--prev { inset-inline-end: calc(var(--m) + 84px + 58px); inset-inline-start: auto; }
}
/* the outgoing caption fades fast, so no ghost of it lingers next to the new one */
.sc--js .sc-slide:not(.is-active) .sc-meta { transition-duration: .18s, .9s; }
/* Round 78: no counter; the arrows take its place */
.sc-count { display: none !important; }
@media (min-width: 721px) {
  .sc-btn--next { inset-inline-end: var(--m); }
  .sc-btn--prev { inset-inline-end: calc(var(--m) + 58px); }
}
/* Round 83: closer to the grid's call card */
@media (min-width: 721px) { .sc { margin-top: 56px !important; } }
/* Round 84: the project link sits right under its description, on the start side */
.sc-meta { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "kind" "name" "line" "go" !important; }
.sc-go { justify-self: start; margin-top: 14px; }
/* Round 97 (Opus R96): side cards keep their colour; only a light veil, so roomie stays yellow, not mustard */
.sc-cover::after { background: linear-gradient(180deg, rgba(20, 20, 20, .16), rgba(20, 20, 20, .3)) !important; }
/* Round 99: the neighbouring cards dissolve at the screen edges instead of being cut */
.sc-view { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); }
.sc-view { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%); }
@media (max-width: 720px) { .sc-view { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); } }
/* Round 108: the heading row (title, hairline, arrows) arrives first, the cards .12s after it */
.sc--js .sc-nav, .sc--js .sc-head { transition: opacity .55s var(--sc-ease) 0s; }
.sc--js.sc--build .sc-slide.is-active { transition-delay: 0s, .12s, .12s, 0s; }
.sc--js.sc--build .sc-slide.is-near { transition-delay: 0s, .4s, .4s, 0s; }
/* Round 108: on phone too the arrows sit in the heading row, on the hairline (saves the row under the caption) */
@media (max-width: 720px) {
  .sc-nav { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; z-index: 5; }
  .sc-btn { position: absolute; top: -44px; translate: 0 -50%; width: 44px !important; height: 44px !important; pointer-events: auto; }
  .sc-btn i { width: 20px; height: 20px; }
  .sc-btn--next { inset-inline-start: auto; inset-inline-end: var(--m); }
  .sc-btn--prev { inset-inline-start: auto; inset-inline-end: calc(var(--m) + 52px); }
}

/* ── Round 131 (owner): one gallery. The carousel holds every project and sits right under the section heading;
   an index of names under it shows where you are and jumps to any project ── */
#work .sc { margin-top: 0 !important; }
#work .sc-head { margin: 0 !important; height: 0; }
.sc-idx { list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; }
.sc-tab { position: relative; border: 0; background: none; cursor: pointer; font: 500 1.0625rem var(--font); color: #8f8c88; padding: 10px 14px; border-radius: 999px; transition: color .35s, background .35s, box-shadow .35s; }
.sc-tab:hover { color: var(--ink); }
.sc-tab.is-on { color: var(--ink); font-weight: 700; background: rgba(255, 255, 255, .043); box-shadow: inset 0 0 0 1px rgba(255, 120, 180, .5); }
.sc-tab:focus-visible { outline: 2px solid #f2287f; outline-offset: 2px; }
@media (min-width: 721px) {
  /* the arrows sit level with the heading's second line, at the far side of its row */
  #work .sc-btn { top: -92px; width: 56px; height: 56px; }
  #work .sc-btn--prev { inset-inline-end: calc(var(--m) + 68px); }
  .sc-view { --cw: calc((100cqi - 2 * var(--m)) * .66); --ch: 62; }
  .sc-name { font-size: clamp(2rem, 3vw, 2.75rem) !important; }
}
@media (max-width: 720px) {
  #work .sc { margin-top: 0 !important; }
  .sc-idx { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--m) * -1); padding-inline: var(--m); margin-top: 22px; }
  .sc-idx::-webkit-scrollbar { display: none; }
  .sc-tab { white-space: nowrap; font-size: 1rem; padding: 10px 14px; min-height: 44px; }
}
@media (min-width: 721px) {
  #work .sc { margin-top: 44px !important; }
  #work .sc-btn { top: -136px; }
  .sc-view { --ch: 54; }
  /* the caption in one row: name and line at the start, the project pill at the end */
  .sc-meta { grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: "name go" "line go" !important; align-items: center; padding-top: 18px; }
  .sc-kind { display: none; }
  .sc-go { justify-self: end; margin-top: 0; }
  .sc-idx { margin-top: 26px; }
}

/* ── Round 133 (owner: every card must really show the work, with a description) ──
   The cards are portrait and show each cover whole, as it was designed. Beside them a panel reads: field and line,
   name, what the project is, the designer's role, what was done, and the way in. The arrows sit with that panel. */
.sc .sc-meta { display: none !important; }
.sc-info { display: grid; }
.sc-in { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; opacity: 0; translate: 0 14px; pointer-events: none; transition: opacity .3s ease, translate .6s var(--sc-ease); }
.sc-in.is-on { opacity: 1; translate: 0 0; pointer-events: auto; transition: opacity .55s ease .18s, translate .8s var(--sc-ease) .18s; }
.sc-in[hidden] { display: none; }
.sc-in-k { margin: 0 0 14px; font-size: 1.0625rem; color: #ff4fa0; font-weight: 600; }
.sc-in-h { margin: 0; font: 700 clamp(2.5rem, 4.2vw, 4rem) / 1 var(--font); letter-spacing: -.03em; color: var(--ink); }
.sc-in-p { margin: 22px 0 0; font-size: clamp(1.125rem, 1.35vw, 1.3125rem); line-height: 1.55; color: #e2dfda; max-width: 44ch; }
.sc-in-r { margin: 22px 0 0; font-size: 1.0625rem; color: #e2dfda; }
.sc-in-r b { display: block; margin-bottom: 4px; font-size: 1rem; font-weight: 600; color: #9a9792; }
.sc-in-s { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-in-s li { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px; font-size: 1rem; color: #e2dfda; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.sc-in-go { margin-top: 30px; }
/* arrows: in the panel's last row, at its far end */
.sc .sc-info .sc-nav { position: static !important; inset: auto; display: flex; gap: 10px; grid-area: 2 / 1; justify-self: end; margin-top: -52px; pointer-events: auto; opacity: 1; }
.sc .sc-info .sc-btn { position: static !important; translate: none !important; width: 52px !important; height: 52px !important; }
@media (min-width: 901px) {
  #work .sc.sc--js { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); column-gap: clamp(32px, 4vw, 64px); align-items: center; margin-top: 56px !important; }
  #work .sc-head, #work .sc-live { display: none; }
  #work .sc-info { grid-column: 1; grid-row: 1; }
  #work .sc-view { grid-column: 2; grid-row: 1; margin-inline: 0 calc(var(--m) * -1); --cw: min(430px, 31vw); --ch: 115; --gap: 18px; --s-near: .84; }
  #work .sc-idx { grid-column: 1 / -1; grid-row: 2; margin-top: 44px; }
  #work .sc-view::before { width: 9%; } #work .sc-view::after { width: 9%; }
  .sc-bar { margin-top: 16px; }
}
@media (max-width: 900px) {
  .sc-view { --ch: 115 !important; --cw: 78cqi !important; }
  .sc-info { margin-top: 26px; }
  .sc-in-h { font-size: 2.25rem; }
  .sc-in-p { font-size: 1.0625rem; margin-top: 14px; }
  .sc-in-k { font-size: 1rem; margin-bottom: 10px; }
  .sc-in-s li { height: 36px; font-size: .9375rem; }
  .sc-in-go { width: calc(100% - 124px); justify-content: center; }
  .sc .sc-info .sc-nav { margin-top: -52px; }
  .sc-idx { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); }
}
@media (prefers-reduced-motion: reduce) { .sc-in { transition: none !important; translate: none; } }
/* the button always sits on the panel's last row, level with the arrows, whatever the text length */
.sc-in { height: 100%; }
.sc-in-go { margin-top: auto !important; }
.sc-in-s, .sc-in-r:last-of-type { margin-bottom: 30px; }
.sc-in-r + .sc-in-s { margin-top: -12px; }
/* Round 134: side cards dim evenly (no grey gradient), no dead band under the index; phone card shorter so the title shows */
.sc--js .sc-slide:not(.is-active) .sc-cover::after { background: rgba(20, 20, 20, .58) !important; }
#work { padding-bottom: 48px !important; }
@media (max-width: 900px) { .sc-view { --cw: min(78cqi, calc(62svh / 1.15)) !important; } }
/* Round 136 (critics R135): pink is kept for "בקשו שיחת היכרות"; the project button is the secondary; no dead band under the index */
.sc-in-go { background: rgba(255, 255, 255, .043) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22) !important; }
.sc-in-go:hover { background: rgba(255, 255, 255, .08) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4) !important; }
#work { padding-bottom: 24px !important; }
#work .sc-idx { margin-bottom: 0 !important; }

/* ── Round 137 (owner): "לפרויקט" is the gallery's primary action; the arrows sit one on each side of the card ── */
.sc-in-go { background: linear-gradient(180deg, #ff2f8c 0%, #e5116f 55%, #c20c5e 100%) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -10px rgba(244, 20, 121, .7) !important; }
.sc-in-go:hover { background: linear-gradient(180deg, #ff4199 0%, #ef1d7a 55%, #cc1166 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 30px -10px rgba(244, 20, 121, .8) !important; }
#work .sc-view .sc-nav { position: absolute !important; inset: 0 !important; display: block !important; margin: 0 !important; pointer-events: none; z-index: 6; }
#work .sc-view .sc-btn { position: absolute !important; top: calc(var(--cw) * var(--ch) / 200) !important; translate: 0 -50% !important; width: 52px !important; height: 52px !important; pointer-events: auto; }
#work .sc-view .sc-btn--prev { inset-inline-start: calc(50% - var(--cw) / 2 - 26px) !important; inset-inline-end: auto !important; }
#work .sc-view .sc-btn--next { inset-inline-end: calc(50% - var(--cw) / 2 - 26px) !important; inset-inline-start: auto !important; }
@media (max-width: 720px) {
  #work .sc-view .sc-btn { width: 44px !important; height: 44px !important; }
  #work .sc-view .sc-btn--prev { inset-inline-start: calc(50% - var(--cw) / 2 - 18px) !important; }
  #work .sc-view .sc-btn--next { inset-inline-end: calc(50% - var(--cw) / 2 - 18px) !important; }
  .sc-in-go { width: 100% !important; justify-content: center; }
}
/* the panel no longer holds the arrows: the button follows the pills directly */
.sc-in { height: auto !important; }
.sc-in-go { margin-top: 32px !important; }
#work .sc-info { align-self: center; }
/* a clean gap before the statement, so its objects never show under the index */
#work { padding-bottom: 96px !important; }

/* ── Round 145 (owner): the cards play the prototypes in their own devices ── */
.sc-cover .pm { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.sc-cover .cv-web .pm { top: 3.2cqi; height: auto; bottom: 0; }
.sc-cover .pm--v { object-fit: cover; object-position: top; }
.sc-cover .pm--s img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; }
.sc-cover .pm--s img:first-child { opacity: 1; }
.sc-cover .pm--sc img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
/* only the card in the middle plays */
.sc--js .is-active .pm--s img { animation: pm-fade calc(var(--n) * 2.6s) calc(var(--i) * 2.6s) infinite; }
.sc--js .is-active .pm--s img:first-child { opacity: 0; }
@keyframes pm-fade { 0% { opacity: 0; } 4%, calc(100% / var(--n)) { opacity: 1; } 100% { opacity: 0; } }
.sc--js .is-active .pm--sc img { animation: pm-scroll 14s cubic-bezier(.65, 0, .35, 1) .8s infinite alternate; }
@keyframes pm-scroll { 0%, 8% { translate: 0 0; } 92%, 100% { translate: 0 calc(-100% + var(--ph, 600px)); } }
@media (prefers-reduced-motion: reduce) { .sc-cover .pm--s img, .sc-cover .pm--sc img { animation: none !important; } .sc-cover .pm--s img:first-child { opacity: 1 !important; } }
/* browser devices keep their 16:10 screen under the bar */
.sc-cover .cv-web .pm { position: relative !important; inset: auto !important; top: auto !important; width: 100%; height: auto !important; aspect-ratio: 16 / 10; }
/* screens switch by a class (showcase.js), crossfading */
.sc--js .is-active .pm--s img, .sc--js .is-active .pm--s img:first-child { animation: none !important; }
.sc-cover .pm--s img { transition: opacity .7s ease; opacity: 0 !important; }
.sc-cover .pm--s img.on { opacity: 1 !important; }

/* ── Round 147 (owner): the cards move like the projects' bentos on Daniel Portfolio ── */
.sc-cover .pm--i img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
/* a strip of frames (Hapoalim's campaigns) slides sideways, one frame at a time */
.sc-cover .pm--strip { --k: 0; }
.sc-cover .pm--strip img { position: absolute; top: 0; left: 0; width: calc(var(--n) * 100%); height: 100%; max-width: none; object-fit: fill; transform: translateX(calc(-100% / var(--n) * var(--k))); transition: transform 1.2s cubic-bezier(.34, 1.3, .64, 1); }
[dir="rtl"] .sc-cover .pm--strip img { left: auto; right: 0; transform: translateX(calc(100% / var(--n) * var(--k) * 0 - 100% / var(--n) * var(--k))); }
/* a page tours top to bottom and back (Mazda, Menora) */
.sc-cover .pm--tour { container-type: size; }
.sc-cover .pm--tour img { display: block; width: 100%; height: auto; }
.sc--js .is-active .pm--tour img { animation: pm-tour var(--d, 40s) cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes pm-tour { 0%, 4% { translate: 0 0; } 96%, 100% { translate: 0 calc(-100% + 100cqh); } }
/* Maccabiah: My Day builds itself: the header slides in, the band drops, the day scrolls, then it starts again */
.sc-cover .pm--mac { background: #282367; }
.sc-cover .mac-shot { position: relative; display: block; width: 100%; }
.sc-cover .mac-shot img { display: block; width: 100%; height: auto; }
.sc-cover .mac-shot .mac-h, .sc-cover .mac-shot .mac-b { position: absolute; inset-inline: 0; }
.sc-cover .mac-shot .mac-b { z-index: 1; } .sc-cover .mac-shot .mac-h { z-index: 2; }
.sc--js .is-active .mac-shot { animation: pm-mac-scroll 12s ease-in-out infinite both; }
.sc--js .is-active .mac-shot .mac-h { animation: pm-mac-head 12s cubic-bezier(.22, .9, .3, 1) infinite both; }
.sc--js .is-active .mac-shot .mac-b { animation: pm-mac-band 12s cubic-bezier(.22, .9, .3, 1) infinite both; }
@keyframes pm-mac-head { 0%, 3% { translate: -100% 0; } 9%, 92% { translate: 0 0; } 97%, 100% { translate: -100% 0; } }
@keyframes pm-mac-band { 0%, 8% { translate: 0 -100%; clip-path: inset(100% 0 0 0); } 13%, 91% { translate: 0 0; clip-path: inset(0); } 95%, 100% { translate: 0 -100%; clip-path: inset(100% 0 0 0); } }
@keyframes pm-mac-scroll { 0%, 22% { transform: none; } 56%, 64% { transform: translateY(calc(-1 * var(--travel, 0px))); } 86%, 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sc--js .is-active .pm--tour img, .sc--js .is-active .mac-shot, .sc--js .is-active .mac-shot img { animation: none !important; } }
[dir="rtl"] .sc-cover .pm--strip img { left: 0; right: auto; transform: translateX(calc(-100% / var(--n) * var(--k))); }
/* Round 148 (owner): the project button keeps its own width; full width only on small phones */
.sc-in-go { width: auto !important; min-width: 0; padding-inline: 32px !important; }
@media (max-width: 560px) { .sc-in-go { width: 100% !important; justify-content: center; } }
.sc-in-s, .sc-in-r:last-of-type { margin-bottom: 0 !important; }
.sc-in-go { margin-top: 28px !important; }
.sc-in-r + .sc-in-s, .sc-in-s { margin-top: 16px !important; }
/* Round 154: a calmer gallery card */
@media (min-width: 901px) { #work .sc-view { --cw: min(370px, 26vw) !important; } .sc-in-h { font-size: clamp(2.25rem, 3.4vw, 3.25rem) !important; } }
/* Round 159 (owner) */
.sc-view { --sc-r: 24px !important; }
.sc-cover, .sc-cover::before, .sc-cover::after { border-radius: 24px !important; }
#work .sc-btn { background: rgba(28, 28, 28, .62) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 18px 40px -16px rgba(0, 0, 0, .8) !important; }
#work .sc-btn i { filter: grayscale(1) brightness(2.1) contrast(.9) !important; opacity: .9; }
#work .sc-btn:hover { background: rgba(40, 40, 40, .72) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42), 0 18px 40px -16px rgba(0, 0, 0, .8) !important; }
#work .sc-btn:hover i { opacity: 1; }
#work .sc-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, .6) !important; outline-offset: 3px; }
