/* NDIGIT v2 · טוסקניה: עמוד שנבנה סביב החומרים שלו. הסיפור הוא "מה צולם באמת",
   לכן הצילומים האמיתיים מסומנים לאורך כל העמוד. סטוריז מתנגנים, תלי דלת שמתהפך, ומוקאפ ← שטח */
.nz-real { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 99px; background: rgba(11,11,10,.78); backdrop-filter: blur(6px); color: #fff; font: 700 13px/1 var(--text); }
.nz-real::before { content: "*"; color: var(--lime); font: 400 20px/0 Anton, sans-serif; transform: translateY(3px); }
.cs-cover.nz-cover { position: relative; }
.cs-cover.nz-cover .nz-real { bottom: 76px; }
.cs-cover.nz-cover img { aspect-ratio: 1; object-fit: cover; }

/* 01 · פוסטים: המערך רחב, ושני פוסטים כמו בפיד */
.nz-posts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 44px; }
.nz-posts figure { margin: 0; }
.nz-posts img { display: block; width: 100%; border-radius: 16px; }
.nz-posts .tiles { grid-row: span 2; }
.nz-posts .tiles img { height: 100%; object-fit: cover; }
.nz-posts figcaption, .nz-cap { margin-top: 10px; font-size: 14px; color: var(--soft); }
.nz-posts figcaption b, .nz-cap b { color: var(--bone); }
.nz-more { margin-top: 26px; max-width: 60ch; color: var(--soft); font-size: 17px; line-height: 1.7; }

/* 02 · סטוריז: ארבעה טלפונים מתנגנים בשורה */
.nz-stories { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); margin: 50px 0 0; padding: 0; list-style: none; }
.nz-stories li { display: grid; gap: 14px; }
.nz-ph { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; padding: 6px; background: linear-gradient(145deg, #3a3c35, #121310 40%, #0b0b0a 60%, #2a2c25); box-shadow: 0 0 0 1px #45473f, 0 30px 60px -20px rgba(0,0,0,.8); }
.nz-ph video, .nz-ph img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.nz-stories li.real .nz-ph { box-shadow: 0 0 0 2px var(--lime), 0 30px 70px -20px rgba(200,245,66,.35); }
.nz-stories p { margin: 0; font-size: 15px; color: var(--soft); } .nz-stories p b { display: block; margin-bottom: 3px; color: var(--bone); font-size: 16px; }
.nz-stories li.real p b::after { content: " · צילום + AI"; color: var(--lime); }

/* 03 · תלי הדלת: כרטיס שמתהפך בין קדמי לאחורי */
.nz-hang { display: grid; grid-template-columns: 1fr minmax(260px, 380px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 50px; }
.nz-side { display: grid; gap: 10px; transition: opacity .4s; }
.nz-side .t { font: 700 14px/1 var(--text); color: var(--lime); }
.nz-side h3 { margin: 0; font: 700 clamp(34px, 3vw, 48px)/.95 var(--display); }
.nz-side p { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.7; }
.nz-hang[data-side="front"] .nz-side.back, .nz-hang[data-side="back"] .nz-side.front { opacity: .35; }
.nz-flip { position: relative; perspective: 1600px; width: min(100%, 36vh); margin-inline: auto; }
.nz-card { position: relative; aspect-ratio: 796 / 1800; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.3,1.2,.4,1); }
.nz-hang[data-side="back"] .nz-card { transform: rotateY(180deg); }
.nz-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.nz-card img.b { transform: rotateY(180deg); }
.nz-toggle { display: flex; justify-content: center; gap: 6px; margin-top: 22px; padding: 5px; border-radius: 99px; border: 1px solid var(--line); }
.nz-toggle button { flex: 1; padding: 11px 16px; border: 0; border-radius: 99px; background: none; color: var(--soft); font: 700 15px/1 var(--text); cursor: pointer; transition: background .25s, color .25s; }
.nz-toggle button[aria-pressed="true"] { background: var(--lime); color: #0b0b0a; }
.nz-toggle button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.nz-sum { margin: 34px auto 0; max-width: 52ch; text-align: center; font: 500 19px/1.6 var(--text); }
.nz-sum b { color: var(--lime); }
/* השורה הקטנה שמודפסת על התוצר, בגדול */
.nz-proof { margin: clamp(70px, 8vw, 120px) 0; padding: clamp(40px, 5vw, 70px) 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.nz-proof q { quotes: none; font: 700 clamp(44px, 5vw, 84px)/.92 var(--display); }
.nz-proof q::before { content: "*"; color: var(--lime); margin-left: .12em; font-family: Anton, sans-serif; }
.nz-proof p { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.7; }
.nz-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.nz-doors figure { margin: 0; } .nz-doors img { display: block; width: 100%; aspect-ratio: 1.1; object-fit: cover; border-radius: 16px; }

/* 04 · דפוס, ואז הקיר */
.nz-print { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 44px; }
.nz-print figure { margin: 0; } .nz-print img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; border-radius: 16px; }
.nz-field { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 60px; }
.nz-field figure { position: relative; margin: 0; }
.nz-field img { display: block; width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: 18px; }
.nz-arrow { display: grid; justify-items: center; gap: 8px; font: 700 13px/1 var(--text); color: var(--soft); }
.nz-arrow i { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--lime); color: #0b0b0a; font: 400 24px/1 var(--text); font-style: normal; }

@media (max-width: 899px) {
  .nz-posts, .nz-proof, .nz-field { grid-template-columns: 1fr; }
  .nz-posts .tiles { grid-row: auto; }
  .nz-stories { grid-template-columns: 1fr 1fr; }
  .nz-hang { grid-template-columns: 1fr; }
  .nz-flip { width: min(64vw, 260px); max-width: none; margin-inline: auto; order: -1; }
  .nz-doors, .nz-print { grid-template-columns: 1fr; }
  .nz-arrow { transform: rotate(-90deg); }
}
@media (prefers-reduced-motion: reduce) { .nz-card { transition: none; } }
/* כל הטלפונים באותו גובה גם כשהכיתוב מתחת באורך שונה */
.nz-stories li { align-content: start; }
/* כשיש כיתוב מתחת לתמונה, התג עולה לפינה העליונה ולא יושב על הכיתוב (נתי 29.09) */
figure:has(> figcaption) > .nz-real { bottom: auto; top: 14px; }

/* טוסקניה, תלי הדלת במובייל: במקום לעמעם, רק הטקסט של הצד הנבחר מוצג ומתחלף בהיפוך (נתי 29.09) */
@media (max-width: 899px) {
  .nz-hang { display: grid !important; grid-template-columns: 1fr !important; perspective: 900px; }
  .nz-hang .nz-flip { grid-area: 1 / 1; }
  .nz-hang .nz-side { grid-area: 2 / 1; opacity: 1 !important; transform-origin: 50% 0; backface-visibility: hidden; transition: transform .5s cubic-bezier(.2,.8,.2,1) .15s, opacity .3s .15s; }
  .nz-hang[data-side="front"] .nz-side.back, .nz-hang[data-side="back"] .nz-side.front { opacity: 0 !important; transform: rotateX(-90deg); transition: transform .3s ease-in, opacity .2s .1s; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .nz-hang .nz-side { transition: none !important; } }
