/* Art Story – "איך זה עובד" כגלילה: הבמה נדבקת, השלבים עוברים מתחתיה, והשלב שבמרכז המסך מדליק את הסצנה שלו */

/* במה וסצנות */
.hw-stage { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #e2d3bf; box-shadow: 0 40px 70px -40px rgba(58,34,22,.55); }
.hw-scene { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity .7s ease, transform 1.2s cubic-bezier(.2,.8,.2,1); display: grid; place-items: center; }
.hw-scene.on { opacity: 1; transform: none; }
.hw-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hw-tag { position: absolute; inset-inline-start: 18px; bottom: 18px; background: rgba(241,231,217,.94); color: #3a2216; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.hw-tag b { font-variant-numeric: tabular-nums; }
.hw-phone { background: linear-gradient(160deg, #e9dccb, #d9c6ae); }
.hw-device { position: relative; width: 74%; aspect-ratio: 3 / 2; border: 12px solid #2a1a10; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 30px 50px -24px rgba(58,34,22,.6); }
.hw-device img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-ok { position: absolute; inset-inline-end: 14px; bottom: 14px; background: #8cc4fe; color: #3a2216; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.hw-print { background: linear-gradient(160deg, #efe4d4, #ddcab2); }
.hw-frame { width: 62%; aspect-ratio: 3 / 2; padding: 3.2%; background: #f7f1e8; border: 10px solid #24170f; box-shadow: 0 30px 50px -22px rgba(58,34,22,.65); }
.hw-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-scene.on .hw-frame { animation: hwDrop .9s cubic-bezier(.2,.8,.2,1); }
@keyframes hwDrop { from { transform: translateY(-14px) rotate(-1.5deg); } to { transform: none; } }
.hw-art { position: absolute; left: 50%; top: 36.1%; width: 17.4%; aspect-ratio: 96 / 66; transform: translate(-50%, -50%); background: #1d140e; padding: .5%; box-shadow: 0 10px 16px -8px rgba(0,0,0,.5); }
.hw-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* פריסה במחשב: הטקסט מימין, ההדמיה משמאל ונשארת במקום. כל שלב שמגיע לאמצע המסך מחליף אותה */
.hw2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.hw2-steps { order: 0; list-style: none; margin: 0; padding: 0; }
.hw2-pin { order: 1; position: sticky; top: max(96px, calc(50vh - 230px)); display: grid; gap: 18px; }
.hw2-dots { display: flex; gap: 8px; justify-content: center; }
.hw2-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(58,34,22,.18); transition: width .35s, background .35s; }
.hw2-dots i.on { width: 28px; background: #8cc4fe; }
.hw2-steps li { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: .38; transition: opacity .5s ease; }
.hw2-steps li:first-child { min-height: 52vh; justify-content: start; padding-top: 10vh; }
.hw2-steps li:last-child { min-height: 60vh; }
.hw2-steps li.on { opacity: 1; }
.hw2-n { font: 800 clamp(48px, 5vw, 80px)/1 Heebo, Arial, sans-serif; color: #8cc4fe; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hw2-steps h3 { margin: 0; font: 800 clamp(28px, 2.8vw, 42px)/1.15 Heebo, Arial, sans-serif; color: #3a2216; letter-spacing: -.02em; text-wrap: balance; }
.hw2-steps p { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.75; color: rgba(58,34,22,.82); max-width: 24em; }
.hw2-mini { display: none; }
.hw2 + .cta { margin-top: 24px; }

/* בטלפון: בלי במה דביקה. כל שלב מגיע עם ההדמיה שלו מתחת לטקסט, הכול קריא */
@media (max-width: 900px) {
  .hw2 { grid-template-columns: 1fr; gap: 0; }
  .hw2-pin { display: none; }
  .hw2-steps { display: grid; gap: 56px; }
  .hw2-steps li, .hw2-steps li:first-child, .hw2-steps li:last-child { min-height: 0; padding-top: 0; opacity: 1; gap: 8px; }
  .hw2-n { font-size: 44px; }
  .hw2-steps h3 { font-size: 27px; }
  .hw2-steps p { font-size: 17px; }
  .hw2-mini { display: block; margin-top: 14px; box-shadow: 0 20px 34px -22px rgba(58,34,22,.6); }
  .hw2-mini .hw-scene { opacity: 1; transform: none; }
  .hw-tag, .hw-ok { font-size: 13px; padding: 7px 12px; inset-inline-start: 10px; bottom: 10px; }
  .hw-ok { inset-inline-start: auto; inset-inline-end: 10px; }
}
