/* ============================================================
   dy.css · מערכת העיצוב של דניאל יוסף (v50, אוקטובר 2026)
   שכבה אחת משותפת לכל העמודים: טוקנים, פונטים, בסיס, ניווט, פוטר,
   כפתורים, משטחים, מדיה ותנועה. עמודים מוסיפים רק את מה שייחודי להם.

   עקרונות:
   - פלטה: כחול #1B3F8B · סגול #5B2D8E · טורקיז #43AFBF · זהב #F5C842.
   - עולם אחד חי מאחור (.sky), והסקשנים צפים בו. כל אזור מקבל גוון משלו
     דרך data-world על ה-body, בלי להחליף מערכת.
   - שפה של כריכת קומיקס קולנועית: קווי מתאר כהים, צל קשיח, אור זהב
     מהצד, נקודות הדפסה. משמשת כתבלין, לא בכל רכיב.
   - תנועה רק ב-transform ו-opacity. כל אנימציה נעצרת ב-reduced motion.
   ============================================================ */

/* ---------- פונטים ----------
   Daniel Letters: הפונט של דניאל, לכותרות, ניווט, כפתורים, תוויות ומספרים.
   Rubik (משתנה, קובץ אחד לכל כתב): לטקסט רץ ולממשק צפוף. */
@font-face { font-family: 'Daniel Letters'; src: url('../assets/fonts/dl/DanielLetters-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Daniel Letters'; src: url('../assets/fonts/dl/DanielLetters-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Daniel Letters'; src: url('../assets/fonts/dl/DanielLetters-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Daniel Letters'; src: url('../assets/fonts/dl/DanielLetters-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }
/* גיבוי עם אותן מידות כמו Daniel Letters, כדי שהחלפת הפונט לא תזיז את העמוד */
@font-face { font-family: 'DL Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial'); font-weight: 400 900; size-adjust: 104.8%; ascent-override: 84%; descent-override: 30.5%; line-gap-override: 0%; }
@font-face { font-family: 'Rubik'; src: url('../assets/fonts/rubik-400-hebrew.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; src: url('../assets/fonts/rubik-400-latin.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- טוקנים ---------- */
:root {
  /* הפלטה */
  --blue: #1B3F8B;   --blue-hi: #2E63C9;  --blue-lo: #10285e;
  --purple: #5B2D8E; --purple-hi: #8150c2; --purple-lo: #331a55;
  --teal: #43AFBF;   --teal-hi: #86dbe6;  --teal-lo: #1d5f6b;
  --gold: #F5C842;   --gold-hi: #ffe08a;  --gold-lo: #c4921b;
  --ember: #e8743b;  /* חם משלים, לרגעים בודדים */

  /* משטחים */
  --night: #0c1030;        /* בסיס כהה, כחול ולא שחור */
  --night-2: #141a46;
  --ink: #0a0b22;          /* קו מתאר קומיקסי */
  --paper: #f6eedd;        /* נייר לקריאה, הפסקה מהלילה */
  --paper-2: #efe2c6;
  --paper-ink: #1c1740;

  /* טקסט */
  --text: #f3f1ff;
  --muted: #b8b6e2;
  --faint: rgba(243, 241, 255, .62);
  --line: rgba(206, 214, 255, .16);

  /* גוון האזור הנוכחי (מוחלף ב-data-world) */
  --accent: var(--gold);
  --tint-1: var(--blue);
  --tint-2: var(--purple);

  /* טיפוגרפיה */
  --f-brand: 'Daniel Letters', 'DL Fallback', 'Rubik', system-ui, sans-serif;
  --f-text: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-hero: clamp(2.6rem, 1.3rem + 6.2vw, 6.4rem);
  --fs-h1: clamp(2.3rem, 1.4rem + 4vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 3vw, 3.5rem);
  --fs-h3: clamp(1.3rem, 1rem + 1.1vw, 1.85rem);
  --fs-lead: clamp(1.06rem, .98rem + .4vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-small: .9rem;
  --fs-label: .95rem;

  /* ריווח וגריד */
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --wrap-narrow: min(760px, 100% - 2 * var(--gutter));
  --space-1: 6px; --space-2: 12px; --space-3: 18px; --space-4: 28px; --space-5: 44px; --space-6: 72px;
  --section: clamp(72px, 10vw, 140px);

  /* צורה */
  --r-sm: 10px; --r: 16px; --r-lg: 26px; --r-pill: 999px;
  --stroke: 2.5px;
  --hard: 5px 6px 0 var(--ink);
  --hard-lg: 8px 10px 0 var(--ink);
  --soft: 0 24px 50px -24px rgba(3, 4, 20, .85);
  --rim: inset 0 0 0 1px rgba(255, 224, 138, .28);

  /* תנועה */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.8%, 1.06 23.4%, 1.063 27%, 1.037 31.4%, .995 40.4%, .992 45.7%, 1 61.4%, 1);
  --t-fast: .22s; --t: .5s; --t-slow: .9s;

  --nav-h: 64px;
  color-scheme: dark;
}
@supports not (transition-timing-function: linear(0, 1)) { :root { --spring: cubic-bezier(.34, 1.56, .64, 1); } }

/* גוון לכל עולם: אותה מערכת, צבע אחר */
[data-world="films"]  { --accent: var(--gold);  --tint-1: #4a1f6e; --tint-2: #8a3a24; }
[data-world="digital"]{ --accent: var(--teal-hi); --tint-1: #0f4a63; --tint-2: var(--blue); }
[data-world="social"] { --accent: #ff9ad5; --tint-1: var(--purple); --tint-2: #a1336f; }
[data-world="worlds"] { --accent: var(--gold);  --tint-1: var(--blue); --tint-2: #0f5a5a; }
[data-world="paper"]  { --accent: var(--purple); }

/* ---------- בסיס ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--night); color: var(--text);
  font: 400 var(--fs-body)/1.7 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-brand); font-weight: 900; line-height: 1.05; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--wrap); margin-inline: auto; }
.wrap--narrow { width: var(--wrap-narrow); margin-inline: auto; }
.nowrap { white-space: nowrap; }

.skiplink { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 9999; padding: 10px 16px; background: var(--gold); color: var(--ink); font: 700 1rem var(--f-brand); border-radius: var(--r-pill); transform: translateY(-160%); transition: transform var(--t-fast) var(--ease); }
.skiplink:focus { transform: none; }

/* ---------- השמיים: עולם אחד חי מאחורי כל העמוד ----------
   שכבה קבועה אחת. הגוונים מתחלפים ב-opacity בלבד (data-world על ה-body). */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--night); contain: strict; }
.sky__base { position: absolute; inset: -10%; background:
  radial-gradient(60% 50% at 85% 10%, rgba(91, 45, 142, .55), transparent 70%),
  radial-gradient(55% 45% at 10% 30%, rgba(27, 63, 139, .7), transparent 70%),
  radial-gradient(60% 50% at 50% 100%, rgba(67, 175, 191, .22), transparent 70%),
  linear-gradient(180deg, #121a4a 0%, #0c1030 60%, #0b0d28 100%); }
.sky__tint { position: absolute; inset: -10%; opacity: 0; transition: opacity 1.1s var(--ease-in-out); }
.sky__tint::before { content: ""; position: absolute; inset: 0; background: var(--scene) center / cover no-repeat; opacity: .5; }
.sky__tint::after { content: ""; position: absolute; inset: 0; }
.sky__tint--films   { --scene: url('../assets/v50/sky/films.webp'); }
.sky__tint--films::after   { background: radial-gradient(70% 55% at 80% 20%, rgba(245, 200, 66, .16), transparent 65%), linear-gradient(180deg, rgba(12,16,48,.35), rgba(12,16,48,.75)); }
.sky__tint--digital { --scene: url('../assets/v50/sky/digital.webp'); }
.sky__tint--digital::after { background: radial-gradient(70% 60% at 15% 20%, rgba(67, 175, 191, .28), transparent 65%), linear-gradient(180deg, rgba(10,30,60,.45), rgba(12,16,48,.8)); }
.sky__tint--social  { --scene: url('../assets/v50/sky/social.webp'); }
.sky__tint--social::after  { background: radial-gradient(70% 60% at 85% 25%, rgba(161, 51, 111, .3), transparent 65%), linear-gradient(180deg, rgba(40,16,70,.4), rgba(20,12,50,.8)); }
.sky__tint--worlds  { --scene: url('../assets/v50/sky/worlds.webp'); }
.sky__tint--worlds::after  { background: radial-gradient(70% 60% at 20% 15%, rgba(245, 200, 66, .14), transparent 60%), linear-gradient(180deg, rgba(12,30,70,.4), rgba(10,14,40,.8)); }
.sky__tint--hero    { --scene: url('../assets/v50/sky/hero.webp'); }
.sky__tint--hero::after    { background: linear-gradient(180deg, rgba(20,28,80,.3), rgba(12,16,48,.85)); }
body[data-world="hero"]    .sky__tint--hero,
body[data-world="films"]   .sky__tint--films,
body[data-world="digital"] .sky__tint--digital,
body[data-world="social"]  .sky__tint--social,
body[data-world="worlds"]  .sky__tint--worlds { opacity: 1; }
/* מרקם הסווירל מהמיתוג, חלש מאוד, שהרקע לא יהיה משטח */
.sky__swirl { position: absolute; inset: 0; background: url('../assets/brand/texture-swirl.webp') center / 1300px auto repeat; opacity: .022; mask-image: radial-gradient(120% 90% at 50% 50%, transparent 35%, #000 85%); }
.sky__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 7px 7px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); opacity: .5; }

/* ---------- ניווט: גלולה צפה ----------
   מתחבאת בגלילה למטה וחוזרת בגלילה למעלה (לא כשיש בה פוקוס או כשתפריט פתוח). */
.topnav { position: fixed; top: 10px; inset-inline: 0; z-index: 900; pointer-events: none; transition: transform .45s var(--ease); }
.topnav.is-hidden:not(:focus-within):not(.is-open) { transform: translateY(calc(-100% - 20px)); }
.topnav__pill {
  pointer-events: auto; width: min(1240px, 100% - 20px); margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 10px; padding-inline: 10px 10px;
  background: rgba(13, 17, 52, .82); border: var(--stroke) solid var(--ink); border-radius: var(--r-pill);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.07);
}
@supports (backdrop-filter: blur(1px)) { .topnav__pill { background: rgba(13, 17, 52, .72); backdrop-filter: blur(12px) saturate(1.3); } }
.topnav__brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--r-pill); flex: none; }
.topnav__brand svg, .topnav__brand img { height: 40px; width: auto; transition: transform .5s var(--spring); }
.topnav__brand:hover svg, .topnav__brand:hover img { transform: rotate(-5deg) scale(1.06); }
.topnav__links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.topnav__item { position: relative; }
.topnav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding-inline: 14px;
  font: 700 1.08rem/1 var(--f-brand); color: var(--text); border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast);
}
.topnav__link:hover, .topnav__link[aria-expanded="true"] { background: rgba(255,255,255,.08); }
.topnav__link[aria-current="page"] { color: var(--gold); }
.topnav__link svg { width: 12px; transition: transform .3s var(--ease); }
.topnav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.topnav__cta { margin-inline-start: 6px; }
.topnav__burger { display: none; width: 48px; height: 48px; border-radius: 50%; place-items: center; background: var(--gold); color: var(--ink); border: var(--stroke) solid var(--ink); }
.topnav__burger span { display: block; width: 20px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.topnav__burger span + span { margin-top: 4px; }
.topnav.is-open .topnav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.topnav.is-open .topnav__burger span:nth-child(2) { opacity: 0; }
.topnav.is-open .topnav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.topnav__progress { position: absolute; bottom: -1px; inset-inline: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--gold)); transform-origin: right; transform: scaleX(var(--p, 0)); opacity: .9; }

/* מגה-תפריט: התפריט הוא תצוגה מקדימה של האתר */
.mega {
  position: absolute; top: calc(100% + 12px); inset-inline-end: -120px; width: min(760px, 92vw);
  padding: 16px; border-radius: var(--r-lg); background: #11164a; border: var(--stroke) solid var(--ink);
  box-shadow: var(--hard-lg), var(--rim);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.topnav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.mega__card { display: grid; gap: 8px; padding: 8px; border-radius: var(--r); transition: background var(--t-fast), transform .4s var(--spring); }
.mega__card:hover, .mega__card:focus-visible { background: rgba(255,255,255,.06); transform: translateY(-3px) rotate(-.6deg); }
.mega__card img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); background: var(--night-2); }
.mega__card b { font: 900 1.05rem/1.1 var(--f-brand); }
.mega__card small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.mega__foot { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 0 0; border-top: 1px solid var(--line); }
/* כרטיס דף קטן: תמונה, שם ושורה, במקום שורת קישורים */
.pagelink { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 14px; color: var(--text); text-decoration: none; transition: background var(--t-fast), transform .4s var(--spring); }
.pagelink img { flex: none; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; border: 2px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); background: var(--night-2); transition: transform .45s var(--spring); }
.pagelink span { display: grid; gap: 2px; min-width: 0; }
.pagelink b { font: 900 .98rem/1.1 var(--f-brand); color: var(--text); text-wrap: balance; }
.pagelink small { text-wrap: pretty; }
.pagelink small { font-size: .78rem; line-height: 1.25; color: var(--muted); }
.pagelink:hover, .pagelink:focus-visible { background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.pagelink:hover img { transform: rotate(-6deg) scale(1.08); }
.pagelink:hover b { color: var(--gold); }
.pagelink[aria-current="page"] { background: rgba(245, 200, 66, .12); }
.topnav__item.is-open .mega__card { animation: deal .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes deal { from { opacity: 0; transform: translateY(14px) rotate(4deg); } }

/* תפריט מובייל: גיליון מלא שנפתח בעיגול מהכפתור */
.sheet {
  position: fixed; inset: 0; z-index: 890; background: #0f1442;
  clip-path: circle(0 at var(--ox, 90%) var(--oy, 40px)); visibility: hidden;
  transition: clip-path .6s var(--ease-in-out), visibility 0s .6s;
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--nav-h) + 30px) var(--gutter) calc(30px + env(safe-area-inset-bottom));
}
.topnav.is-open ~ .sheet { clip-path: circle(150% at var(--ox, 90%) var(--oy, 40px)); visibility: visible; transition: clip-path .6s var(--ease-in-out); }
.sheet__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet__world { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); overflow: hidden; border: var(--stroke) solid var(--ink); box-shadow: var(--hard); background: var(--night-2); }
.sheet__world img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.sheet__world b { display: block; padding: 10px 12px 12px; font: 900 1.12rem/1.1 var(--f-brand); }
.sheet__links { position: relative; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sheet__links .pagelink { padding: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.sheet__links .pagelink img { width: 42px; height: 42px; }
.sheet__links .pagelink b { font-size: 1rem; }
@media (max-width: 360px) { .sheet__links { grid-template-columns: 1fr; } }
.sheet__links .pagelink[aria-current="page"] { border-color: var(--gold); }
.sheet__foot { position: relative; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.topnav.is-open ~ .sheet .sheet__world, .topnav.is-open ~ .sheet .sheet__links a { animation: deal .55s var(--spring) both; animation-delay: calc(.12s + var(--i, 0) * 45ms); }
body.is-locked { overflow: hidden; }

@media (max-width: 900px) {
  .topnav__links { display: none; }
  .topnav__burger { display: grid; }
  .topnav__cta { margin-inline-start: auto; }
  .topnav__cta .btn { padding-inline: 16px; }
  :root { --nav-h: 58px; }
  .topnav__brand svg, .topnav__brand img { height: 34px; }
}
@media (max-width: 380px) { .topnav__cta { display: none; } .topnav__burger { margin-inline-start: auto; } }

/* ---------- כפתורים ---------- */
.btn {
  --b-bg: var(--gold); --b-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px; border-radius: var(--r-pill);
  font: 900 1.12rem/1 var(--f-brand); color: var(--b-fg); background: var(--b-bg);
  border: var(--stroke) solid var(--ink); box-shadow: 3px 4px 0 var(--ink);
  transition: transform .35s var(--spring), box-shadow .25s var(--ease), background var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 1rem; }
.btn--ghost { --b-bg: rgba(255,255,255,.06); --b-fg: var(--text); border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn--ghost:hover { --b-bg: rgba(255,255,255,.12); box-shadow: none; border-color: var(--text); }
.btn--teal { --b-bg: var(--teal-hi); }
.btn--paper { --b-bg: var(--paper); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.link:hover { text-decoration-color: currentColor; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font: 900 1.15rem var(--f-brand); color: var(--accent); }
.arrow-link svg { width: 20px; transition: transform .35s var(--spring); }
.arrow-link:hover svg { transform: translateX(-5px); }

/* ---------- טיפוגרפיה ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--fs-label)/1.2 var(--f-brand); color: var(--accent); }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.title { font-size: var(--fs-h2); }
.title--xl { font-size: var(--fs-h1); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.lead strong { color: var(--text); font-weight: 600; }
/* קו מתאר קומיקסי לכותרות ענק: מילוי זהב/לבן, קו דיו, צל קשיח */
.inked { -webkit-text-stroke: .055em var(--ink); paint-order: stroke fill; text-shadow: .05em .06em 0 var(--ink); }
.gold { color: var(--gold); }
.teal { color: var(--teal-hi); }
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.head--center { justify-items: center; text-align: center; }
.head--center .lead { margin-inline: auto; }

/* ---------- משטחים ---------- */
.panel { position: relative; border-radius: var(--r-lg); background: var(--night-2); border: var(--stroke) solid var(--ink); box-shadow: var(--hard-lg), var(--rim); overflow: hidden; }
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .lead { color: #4b456e; }
.paper .kicker { color: var(--purple); }
/* נקודות הדפסה: קישוט סטטי זול */
.halftone { position: relative; }
.halftone::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(10,11,34,.16) 1.2px, transparent 1.6px); background-size: 8px 8px; mask-image: linear-gradient(135deg, #000, transparent 55%); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 12px; border-radius: var(--r-pill); font: 700 .88rem/1 var(--f-brand); background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line); }
.chip--gold { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.chip--teal { background: var(--teal-hi); color: var(--ink); border-color: var(--ink); }

/* ---------- סקשן ---------- */
.sec { position: relative; padding-block: var(--section); }
.sec--tight { padding-block: calc(var(--section) * .6); }
/* מעבר רך: מסכה בקצוות של רקע תמונה, כדי שלא יהיו קופסאות מוערמות */
.fade-edges { mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }

/* ---------- מדיה ---------- */
.media { display: block; position: relative; overflow: hidden; background: var(--night-2); border-radius: var(--r); }
.media > img, .media > video, .media > picture img { width: 100%; height: 100%; object-fit: cover; }
.media video { opacity: 0; transition: opacity .5s var(--ease); }
.media video.is-live { opacity: 1; }
.media > video { position: absolute; inset: 0; }
.ratio-16x9 { aspect-ratio: 16 / 9; } .ratio-9x16 { aspect-ratio: 9 / 16; } .ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-3x4 { aspect-ratio: 3 / 4; } .ratio-1 { aspect-ratio: 1; } .ratio-21x9 { aspect-ratio: 21 / 9; }
.media.is-broken::after { content: "המדיה לא נטענה"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 1rem var(--f-brand); color: var(--muted); background: repeating-linear-gradient(135deg, var(--night-2) 0 12px, #181f55 12px 24px); }
.play { position: absolute; inset-inline-start: 14px; bottom: 14px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); border: var(--stroke) solid var(--ink); box-shadow: 3px 4px 0 var(--ink); transition: transform .4s var(--spring); }
.play svg { width: 22px; margin-inline-start: 3px; }
a:hover .play, button:hover .play, .is-hover .play { transform: scale(1.1) rotate(-6deg); }

/* כרטיס עבודה בסיסי (וריאנטים: --tall, --wide, --phone, --browser) */
.wcard { position: relative; display: grid; gap: 12px; color: inherit; }
.wcard__media { border: var(--stroke) solid var(--ink); box-shadow: var(--hard); border-radius: var(--r); transition: transform .5s var(--spring), box-shadow .3s var(--ease); }
.wcard:hover .wcard__media, .wcard:focus-visible .wcard__media { transform: translate(-3px, -4px) rotate(-.4deg); box-shadow: 9px 11px 0 var(--ink); }
.wcard__title { font: 900 var(--fs-h3)/1.1 var(--f-brand); }
.wcard__meta { font: 700 .92rem/1.3 var(--f-brand); color: var(--accent); }
.wcard__text { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.wcard:focus-visible { outline: none; }
.wcard:focus-visible .wcard__media { outline: 3px solid var(--gold); outline-offset: 4px; }

/* מסגרת דפדפן ומסגרת טלפון: כדי שאתרים ואפליקציות ייראו כמו מה שהם */
.browser { border-radius: 14px; background: #10143c; border: var(--stroke) solid var(--ink); box-shadow: var(--hard); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; background: #1b2160; border-bottom: 2px solid var(--ink); direction: ltr; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.browser__bar i:nth-child(2) { background: var(--gold); } .browser__bar i:nth-child(3) { background: #5fd38d; }
.browser__bar span { margin-inline-start: 10px; padding: 3px 12px; border-radius: 6px; background: rgba(255,255,255,.08); font: 500 .74rem/1 var(--f-text); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone { position: relative; border-radius: 30px; padding: 7px; background: #070818; border: var(--stroke) solid var(--ink); box-shadow: var(--hard), inset 0 0 0 1.5px #2b2f5e; }
.phone .media { border-radius: 23px; aspect-ratio: 9 / 16; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 34%; height: 14px; transform: translateX(-50%); border-radius: 10px; background: #070818; z-index: 2; }

/* ---------- הופעה בגלילה ----------
   התוכן גלוי כברירת מחדל. רק כש-JS פעיל ויש תנועה, מוסתר עד שנכנס למסך.
   (בגרסה הקודמת התוכן היה שקוף עד ש-JS רץ, וזה עיכב את התצוגה הראשונה ב-9 עד 16 שניות.) */
.js-motion [data-in] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion [data-in="left"] { transform: translateX(-36px); }
.js-motion [data-in="right"] { transform: translateX(36px); }
.js-motion [data-in="pop"] { transform: scale(.92) rotate(-2deg); transition-timing-function: var(--ease), var(--spring); }
.js-motion [data-in].is-in { opacity: 1; transform: none; }

/* ---------- הפרויקט הבא ---------- */
.nextp { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 3vw, 28px); margin-block: clamp(40px, 6vw, 80px); padding: 14px; border-radius: var(--r-lg); background: var(--paper); color: var(--paper-ink); border: var(--stroke) solid var(--ink); box-shadow: var(--hard-lg); transition: transform .5s var(--spring); }
.nextp:hover { transform: translate(-3px, -4px) rotate(-.4deg); }
.nextp__img { width: clamp(90px, 16vw, 180px); aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 2px solid var(--ink); }
.nextp__img img { width: 100%; height: 100%; object-fit: cover; }
.nextp__txt small { display: block; font: 700 .95rem var(--f-brand); color: var(--purple); }
.nextp__txt b { font: 900 clamp(1.5rem, 1rem + 2.4vw, 2.6rem)/1.05 var(--f-brand); }
.nextp__go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); border: 2px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.nextp__go svg { width: 22px; }
.next-wrap:empty { display: none; }

/* ---------- כותרות קינטיות ---------- */
.js-motion .is-kinetic .kw { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(5deg); transform-origin: 0 100%; transition: opacity .4s var(--ease), transform .8s var(--spring); transition-delay: calc(.08s + var(--w) * 60ms); }
.js-motion .is-in .is-kinetic .kw, .js-motion .is-in.is-kinetic .kw, .js-motion [data-in].is-in .kw { opacity: 1; transform: none; }
.btn, .soc-btn, .play { transition: translate .35s var(--spring), transform .35s var(--spring), box-shadow .25s var(--ease), background .2s; }

/* ---------- פוטר: כתוביות סיום ---------- */
.foot { position: relative; padding: clamp(56px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(7, 8, 30, .9) 22%); }
.foot__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot__brand { display: grid; gap: 10px; }
.foot__brand svg { width: 190px; height: auto; }
.foot__brand p { color: var(--muted); max-width: 38ch; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 32px; }
.foot__cols h4 { font: 900 1.05rem var(--f-brand); color: var(--gold); margin-bottom: 10px; }
.foot__cols a { display: block; padding-block: 5px; color: var(--muted); font-size: .96rem; }
.foot__cols a:hover { color: var(--text); }
.foot__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: .86rem; color: var(--faint); }
.foot__legal nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__legal a:hover { color: var(--text); }
.foot__motion { padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); font: 700 .86rem var(--f-brand); color: var(--muted); }
.foot__motion[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.soc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.soc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); border: 1px solid var(--line); font: 700 .98rem var(--f-brand); transition: background var(--t-fast), transform .35s var(--spring); }
.soc-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.soc-btn svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- נגן: חלון מלא לסרטונים ---------- */
.lb { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px; background: rgba(5, 6, 22, .92); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.lb__frame { position: relative; width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: 82vh; border-radius: var(--r); overflow: hidden; background: #000; border: var(--stroke) solid var(--ink); box-shadow: var(--hard-lg); }
.lb__frame.is-vertical { width: auto; height: min(82vh, 860px); aspect-ratio: 9 / 16; }
.lb__frame iframe, .lb__frame video, .lb__frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.lb__close { position: absolute; top: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); border: var(--stroke) solid var(--ink); box-shadow: 3px 4px 0 var(--ink); z-index: 2; }
.lb__close svg { width: 20px; }
.lb__cap { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); inset-inline: 16px; text-align: center; font: 700 1.05rem var(--f-brand); color: var(--muted); }

/* ---------- reduced motion: הכול גלוי ושקט ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.reduce-motion [data-in] { opacity: 1 !important; transform: none !important; }

/* ---------- מעברי עמוד (View Transitions, בלי JS) ---------- */
@view-transition { navigation: auto; }
.topnav { view-transition-name: dy-nav; }
::view-transition-old(root) { animation: .28s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.012); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
