/* KSM · כיוון "שרטוט הנדסי"
   נייר שרטוט, קווי דיו חדים, זהב מהלוגו, כחול של קווי מידה ואדום של חותמת.
   ארבעת צבעי הבסיס נערכים מאזור הניהול, וכל השאר נגזר מהם. */
:root {
  --ink: #16181B;      /* דיו: טקסט, קווים ורקעים כהים */
  --blue: #2F5D8C;     /* כחול שרטוט: קווי מידה ורשת */
  --yellow: #B8862E;   /* זהב מהלוגו: הדגשה וכפתורים */
  --teal: #B23A2B;     /* אדום חותמת */

  --gold: var(--yellow);
  --gold-l: color-mix(in srgb, var(--yellow) 55%, #FFF3C8);
  --gold-d: color-mix(in srgb, var(--yellow) 75%, #000);
  --red: var(--teal);
  --paper: color-mix(in srgb, var(--yellow) 7%, #F4F1EA);
  --paper-2: color-mix(in srgb, var(--yellow) 12%, #ECE7DC);
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --muted: color-mix(in srgb, var(--ink) 66%, var(--paper));
  --night: color-mix(in srgb, var(--ink) 88%, var(--blue));
  --wa: #25D366;

  --font-head: 'Frank Ruhl Libre', 'IBM Plex Sans Hebrew', serif;
  --font-body: 'IBM Plex Sans Hebrew', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --shadow-card: 0 30px 70px color-mix(in srgb, var(--ink) 16%, transparent);
  --shadow-pop: 6px 6px 0 var(--ink);
  --bar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; overflow-x: clip; }
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- נייר שרטוט ---------- */
.grid-paper {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--blue) 16%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--blue) 16%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--blue) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--blue) 7%, transparent) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);
}
.grid-paper--dark {
  background-image:
    linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / .03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .03) 1px, transparent 1px);
}

/* ---------- טיפוגרפיה ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--gold-d); }
.eyebrow .mono { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border: 1.5px solid currentColor; font-size: 12px; }
.eyebrow--light { color: var(--gold-l); }
.title { font-family: var(--font-head); font-weight: 900; font-size: clamp(36px, 6vw, 68px); line-height: 1.08; letter-spacing: -.01em; }
.title--light { color: #fff; }

/* המילה המודגשת: זהב, ומתחתיה קו מידה עם שנתות */
.dim { position: relative; display: inline-block; font-style: normal; color: var(--gold); padding-bottom: .18em; }
.dim::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 12px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right / 2px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) left / 2px 100% no-repeat;
  transform-origin: right; transform: scaleX(var(--dim, 1)); transition: transform 1s .4s cubic-bezier(.2,.7,.2,1);
}
.js .rv:not(.in) .dim::after, .js .head:not(.in) .dim::after { --dim: 0; }
.title--light .dim { color: var(--gold-l); }
.title--light .dim::after { background:
    linear-gradient(var(--gold-l), var(--gold-l)) center / 100% 2px no-repeat,
    linear-gradient(var(--gold-l), var(--gold-l)) right / 2px 100% no-repeat,
    linear-gradient(var(--gold-l), var(--gold-l)) left / 2px 100% no-repeat; }

/* ---------- כפתורים: פינות חדות, צל "מודפס" ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border: 2px solid var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn--gold { color: var(--ink); background: linear-gradient(135deg, var(--gold-l), var(--gold)); }
.btn--wa { color: #fff; background: var(--ink); }
.btn--wa svg { color: var(--wa); }
.btn--line { background: transparent; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn--wide { width: 100%; }

/* ---------- תפריט: שורת גיליון ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--ink); }
.bar__in { height: var(--bar-h); width: min(1200px, 100% - 24px); margin-inline: auto; display: flex; align-items: center; gap: 16px; }
.bar__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.bar__logo img { width: 44px; height: 44px; object-fit: cover; mix-blend-mode: multiply; }
.bar__name { display: grid; line-height: 1.15; }
.bar__name b { font-family: var(--font-head); font-weight: 900; font-size: 22px; letter-spacing: .06em; }
.bar__name small { font-size: 12px; color: var(--muted); }
.bar__links { display: none; gap: 4px; }
.bar__links a { padding: 8px 12px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.bar__links a:hover, .bar__links a.on { border-color: var(--gold); }
.bar__sheet { display: none; font-size: 13px; color: var(--muted); padding-inline: 12px; border-inline: 1.5px solid var(--line); }
.bar__sheet b { color: var(--ink); }
.bar__ruler { position: absolute; inset: auto 0 -1.5px; height: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) bottom / 100% 4px no-repeat; opacity: .35; }
.bar__ruler i { position: absolute; inset-block: 0; right: 0; width: calc(var(--prog, 0) * 100%); background: var(--gold); opacity: 1; }
@media (min-width: 900px) { .bar__links { display: flex; } }
@media (min-width: 1100px) { .bar__sheet { display: block; } }

/* ---------- פתיחה ---------- */
.hero { position: relative; padding: calc(var(--bar-h) + 40px) 0 56px; overflow: hidden; }
.hero__in { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(42px, 8.4vw, 92px); line-height: 1.02; margin: 18px 0 20px; letter-spacing: -.015em; }
.hero__title > span { display: block; }
.hero__lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-weight: 700; font-size: 15px; }
.hero__checks li { display: flex; align-items: center; gap: 8px; }
.hero__checks li::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--ink); background: linear-gradient(135deg, transparent 45%, var(--gold) 45% 60%, transparent 60%); }

.sheet { position: relative; margin: 0; padding: 14px; background: #fff; border: 1.5px solid var(--ink); box-shadow: var(--shadow-card); }
.sheet::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.sheet__corner { position: absolute; width: 22px; height: 22px; border-color: var(--gold); border-style: solid; }
.sheet__corner--a { top: -8px; right: -8px; border-width: 3px 3px 0 0; }
.sheet__corner--b { bottom: -8px; left: -8px; border-width: 0 0 3px 3px; }
.xy { position: absolute; top: 18px; left: 20px; font-size: 11px; color: var(--blue); z-index: 2; }
.draw { width: 100%; height: auto; display: block; direction: ltr; }
.draw .dr { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--d, 0s) cubic-bezier(.5,0,.2,1) forwards; }
.draw .thick { stroke-width: 3.5; }
.draw .thin { stroke-width: 1.3; stroke: var(--muted); }
.draw .gold { stroke: var(--gold); stroke-width: 3.5; }
.draw .blue { stroke: var(--blue); stroke-width: 1.3; }
.draw .hatch, .tickm { stroke: var(--blue); stroke-width: 1.2; opacity: .5; }
.tickm { opacity: 1; stroke-width: 1.6; }
.soil { opacity: 0; animation: fade .8s .3s forwards; }
.lvl text { font-size: 11px; fill: var(--blue); text-anchor: end; opacity: 0; animation: fade .6s 2.3s forwards; }
.stamp-svg { opacity: 0; animation: stamp .5s 2.6s cubic-bezier(.3,1.6,.5,1) forwards; transform-box: fill-box; }
.stamp-svg rect { fill: none; stroke: var(--red); stroke-width: 2.5; }
.stamp-svg text { fill: var(--red); font-family: var(--font-body); font-weight: 700; font-size: 15px; text-anchor: middle; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes stamp { from { opacity: 0; scale: 1.8; } to { opacity: .9; scale: 1; } }

.tblock { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); margin-top: 10px; }
.tblock__cell { padding: 8px 12px; border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; }
.tblock__cell--wide { grid-column: 1 / -1; border-top: 0; border-inline-start: 0; }
.tblock__cell:nth-child(2) { border-inline-start: 0; }
.tblock small { font-size: 12px; color: var(--muted); }
.tblock b { font-size: 15px; font-weight: 700; }
@media (min-width: 600px) {
  .tblock { grid-template-columns: 2fr 1fr 1.6fr 1fr; }
  .tblock__cell--wide { grid-column: auto; border-top: 0; }
  .tblock__cell { border-top: 0; }
  .tblock__cell:nth-child(2) { border-inline-start: 1px solid var(--line); }
}
@media (min-width: 980px) {
  .hero { padding-top: calc(var(--bar-h) + 64px); padding-bottom: 88px; min-height: 92vh; display: grid; align-items: center; }
  .hero__in { grid-template-columns: 1fr 1.08fr; gap: 64px; }
  .hero__sheet { transform: rotate(-1.2deg); }
}

/* ---------- סרגל מדידה רץ ---------- */
.tape { position: relative; z-index: 2; background: linear-gradient(180deg, var(--gold-l), var(--gold)); border-block: 2px solid var(--ink); overflow: hidden; transform: rotate(-1.5deg); margin-inline: -20px; }
.tape::before { content: ""; position: absolute; inset: 0 0 auto; height: 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 12px), repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 60px); background-size: 100% 7px, 100% 12px; background-repeat: no-repeat; opacity: .75; }
.tape__track { display: flex; width: max-content; animation: tape 40s linear infinite; padding: 20px 0 12px; }
.tape__list { display: flex; }
.tape__list li { display: flex; align-items: center; gap: 22px; padding-inline: 22px 0; font-family: var(--font-head); font-weight: 900; font-size: 24px; white-space: nowrap; }
.tape__list li::after { content: ""; width: 12px; height: 12px; border: 2px solid var(--ink); transform: rotate(45deg); }
@keyframes tape { to { transform: translateX(50%); } }

/* ---------- שירותים: גיליונות ---------- */
section { position: relative; }
.services, .why, .field { padding: 96px 0; }
.head { max-width: 760px; margin-bottom: 48px; display: grid; gap: 14px; }
.head__sub { font-size: 19px; color: var(--muted); }
.sheets { display: grid; gap: 22px; }
.card { position: relative; padding: 0 24px 28px; background: #fff; border: 1.5px solid var(--ink); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-pop); }
.card__top { display: flex; justify-content: space-between; margin-inline: -24px; padding: 10px 16px; border-bottom: 1.5px solid var(--ink); font-size: 13px; font-weight: 600; }
.card__scale { color: var(--muted); }
.card__art { width: 120px; height: 80px; margin: 26px 0 18px; }
.card__art .dr { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.card__art .gold { stroke: var(--gold); stroke-width: 3; }
.card.in .card__art .dr, html:not(.js) .card__art .dr { animation: draw 1.2s calc(var(--d, 0s) + .2s) cubic-bezier(.5,0,.2,1) forwards; }
.card h3 { font-family: var(--font-head); font-weight: 900; font-size: 27px; line-height: 1.15; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card--feature { background: var(--ink); color: #fff; }
.card--feature .card__top { border-color: rgb(255 255 255 / .25); }
.card--feature .card__scale, .card--feature p { color: rgb(255 255 255 / .72); }
.card--feature .card__art .dr { stroke: #fff; }
.card--feature .card__art .gold { stroke: var(--gold-l); }
.card--feature:hover { box-shadow: 6px 6px 0 var(--gold); }
@media (min-width: 860px) {
  .sheets { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .card--feature { margin-top: 36px; }
}

/* ---------- הבניין שעולה ---------- */
.build { height: 330vh; background: var(--night); color: #fff; }
.build__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; }
.build__in { position: relative; z-index: 1; display: grid; grid-template-areas: "head" "tower" "steps"; gap: 16px; padding-top: calc(var(--bar-h) + 12px); padding-bottom: 20px; height: 100%; align-content: center; }
.build__head { grid-area: head; display: grid; gap: 8px; }
.build__head .title { font-size: clamp(32px, 5.4vw, 60px); }
.build__hint { font-size: 15px; color: rgb(255 255 255 / .6); }
.tower { grid-area: tower; position: relative; justify-self: center; width: min(250px, 62vw); }
.tower__svg { width: 100%; height: auto; overflow: visible; max-height: 34vh; }
.tower__gauge { position: absolute; top: 4%; left: 0; font-size: 13px; color: var(--gold-l); border: 1px solid currentColor; padding: 2px 8px; }
.crane { display: none; }
.t-ground { stroke: rgb(255 255 255 / .6); stroke-width: 2; }
.floor { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.floor.on { opacity: 1; transform: none; }
.t-plan { fill: none; stroke: #8FB3DB; stroke-width: 1.5; stroke-dasharray: 5 4; }
.t-struct { fill: none; stroke: #fff; stroke-width: 4; }
.t-wall { fill: rgb(255 255 255 / .06); stroke: #fff; stroke-width: 2; }
.t-win { fill: color-mix(in srgb, var(--gold) 35%, transparent); stroke: #fff; stroke-width: 1.5; }
.t-roof { fill: color-mix(in srgb, var(--gold) 25%, transparent); stroke: var(--gold-l); stroke-width: 3; }
.t-key { fill: none; stroke: var(--gold-l); stroke-width: 3.5; }
.crane { position: absolute; inset-block: 0 8%; inset-inline-end: -14%; width: 3px; background: rgb(255 255 255 / .35); }
.crane i { position: absolute; left: -40px; width: 80px; height: 2px; background: rgb(255 255 255 / .55); bottom: calc(10% + var(--p, 0) * 70%); transition: bottom .4s; }
.crane i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 1px; height: 26px; background: rgb(255 255 255 / .5); }
.steps { grid-area: steps; position: relative; min-height: 150px; }
.step { position: absolute; inset: 0 0 auto; padding: 18px 20px; border: 1.5px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .04); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s; }
.step.on { opacity: 1; transform: none; border-color: var(--gold-l); }
.step__no { font-size: 13px; color: var(--gold-l); }
.step h3 { font-family: var(--font-head); font-weight: 900; font-size: 26px; margin: 4px 0 6px; }
.step p { color: rgb(255 255 255 / .78); }
@media (min-width: 900px) {
  .build__in { grid-template-areas: "head tower" "steps tower"; grid-template-columns: 1fr 1fr; column-gap: 64px; align-content: center; }
  .tower { width: min(380px, 100%); }
  .crane { display: block; }
  .tower__gauge { left: -12%; }
  .tower__svg { max-height: 62vh; }
  .steps { min-height: 0; display: grid; gap: 10px; align-self: start; }
  .step { position: relative; inset: auto; opacity: .38; transform: none; }
  .step.on { opacity: 1; background: rgb(255 255 255 / .07); }
  .step.done { opacity: .65; }
  .step.done .step__no::after { content: "  ✓"; }
  .step { padding: 12px 20px; }
  .step h3 { font-size: 23px; margin: 2px 0 0; }
  .step p { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s, opacity .3s, margin .3s; }
  .step.on p { max-height: 8em; opacity: 1; margin-top: 6px; }
}
@media (max-height: 640px) and (max-width: 899px) { .build__hint { display: none; } .tower__svg { max-height: 26vh; } }

/* ---------- למה KSM: מקרא ---------- */
.why { background: var(--paper-2); border-block: 1.5px solid var(--ink); }
.why__in { display: grid; gap: 32px; }
.why .head { margin-bottom: 0; }
.legend { border: 1.5px solid var(--ink); background: #fff; }
.legend__title { padding: 10px 20px; border-bottom: 1.5px solid var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .2em; }
.legend__row { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 20px; border-top: 1px solid var(--line); }
.legend__row:first-child { border-top: 0; }
.legend dt svg { width: 56px; height: 28px; }
.lg-solid { stroke: var(--ink); stroke-width: 4; }
.lg-dash { stroke: var(--blue); stroke-width: 3; stroke-dasharray: 8 5; }
.lg-gold { stroke: var(--gold); stroke-width: 3; }
.lg-dot { fill: #fff; stroke: var(--gold); stroke-width: 3; }
.legend dd { display: grid; }
.legend dd b { font-family: var(--font-head); font-weight: 900; font-size: 24px; }
.legend dd span { color: var(--muted); }
@media (min-width: 900px) { .why__in { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; } }

/* ---------- מהשטח ---------- */
.reveal { position: relative; margin: 0 0 22px; border: 1.5px solid var(--ink); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 10; max-height: 76vh; width: 100%; touch-action: pan-y; }
.reveal img { width: 100%; height: 100%; object-fit: cover; }
.reveal__real { position: absolute; inset: 0; }
.reveal__plan { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); background: color-mix(in srgb, var(--blue) 80%, #0A1A2E); }
.reveal__plan img { filter: grayscale(1) invert(1) contrast(2.2) brightness(.9); mix-blend-mode: screen; opacity: .5; }
.grid-paper--plan { mask-image: none; background-image:
    linear-gradient(rgb(255 255 255 / .22) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .22) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / .08) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .08) 1px, transparent 1px); }
.reveal__tag { position: absolute; top: 14px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: var(--paper); border: 1.5px solid var(--ink); }
.reveal__tag--plan { right: 14px; }
.reveal__tag--real { left: 14px; }
.reveal__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; direction: ltr; }
.reveal__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: var(--gold-l); z-index: 2; pointer-events: none; }
.reveal__handle svg { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; padding: 10px; translate: -50% -50%; background: var(--gold-l); border: 2px solid var(--ink); fill: none; stroke: var(--ink); stroke-width: 2.4; }
.reveal__range:focus-visible ~ .reveal__handle svg { outline: 3px solid #fff; }
.log { position: absolute; inset: auto 12px 12px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; background: var(--paper); border: 1.5px solid var(--ink); pointer-events: none; }
.log__no { font-size: 12px; color: var(--muted); width: 100%; }
.log b { font-weight: 700; font-size: 16px; line-height: 1.3; flex: 1; }
.stamp { display: inline-block; padding: 2px 10px; border: 2.5px solid var(--red); color: var(--red); font-weight: 700; font-size: 14px; transform: rotate(-8deg); opacity: .9; }
.field__pair { display: grid; gap: 22px; }
@media (max-width: 699px) {
  .reveal { aspect-ratio: 4 / 3.6; }
  .reveal .log { inset: auto 8px 8px; padding: 6px 10px; }
  .reveal .log__no { display: none; }
  .reveal .log b { font-size: 14px; }
  .reveal .stamp { font-size: 12px; padding: 1px 6px; }
  .reveal__tag { top: 8px; }
  .reveal__tag--plan { right: 8px; } .reveal__tag--real { left: 8px; }
}
.photo { position: relative; margin: 0; border: 1.5px solid var(--ink); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photo:hover img { transform: scale(1.04); }
.insta { position: relative; display: grid; align-content: end; gap: 6px; min-height: 220px; padding: 24px; text-decoration: none; background: var(--ink); color: #fff; border: 1.5px solid var(--ink); transition: box-shadow .2s, transform .2s; }
.insta:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--gold); }
.insta svg { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; fill: none; stroke: var(--gold-l); stroke-width: 1.6; }
.insta svg .fill { fill: var(--gold-l); stroke: none; }
.insta b { font-family: var(--font-head); font-weight: 900; font-size: 28px; line-height: 1.15; }
.insta span { color: rgb(255 255 255 / .7); }
.insta__arrow { position: absolute; top: 30px; left: 24px; filter: invert(1); }
@media (min-width: 700px) {
  .field__pair { grid-template-columns: 1fr 1fr; }
  .insta { grid-column: 1 / -1; min-height: 160px; }
}
@media (min-width: 1000px) {
  .field__pair { grid-template-columns: 1fr 1fr 0.8fr; }
  .insta { grid-column: auto; }
  .log__no { width: auto; }
}

/* ---------- יצירת קשר ---------- */
.contact { background: var(--night); color: #fff; padding: 96px 0 110px; overflow: hidden; }
.contact__bgnum { position: absolute; top: 40px; left: 50%; translate: -50% 0; font-size: clamp(80px, 17vw, 240px); font-weight: 600; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / .09); pointer-events: none; direction: ltr; }
.contact__in { position: relative; z-index: 1; display: grid; gap: 44px; }
.contact__text { display: grid; gap: 16px; align-content: start; }
.contact__sub { font-size: 19px; color: rgb(255 255 255 / .75); }
.lines { display: grid; border-top: 1px solid rgb(255 255 255 / .2); margin-top: 12px; }
.lines a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 12px 4px; border-bottom: 1px solid rgb(255 255 255 / .2); text-decoration: none; transition: background .2s, padding .2s; }
.lines a:hover { background: rgb(255 255 255 / .05); padding-inline: 12px; }
.lines small { font-size: 14px; color: var(--gold-l); flex: none; }
.lines b { font-weight: 500; font-size: 17px; text-align: end; overflow-wrap: anywhere; }

.order { position: relative; display: grid; gap: 16px; padding: 26px 22px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--gold); }
.order__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.order__head b { font-family: var(--font-head); font-weight: 900; font-size: 26px; }
.order__head .mono { font-size: 13px; color: var(--muted); }
.order__intro { color: var(--muted); }
.order label:not(.hp), .order fieldset { display: grid; gap: 4px; }
.order label > span, .order legend { font-size: 14px; font-weight: 700; }
.order input:not([type=radio]), .order textarea { width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; font: inherit; color: inherit; border-radius: 0; }
.order textarea { resize: vertical; border: 1.5px solid var(--line); border-bottom-color: var(--ink); padding: 10px; }
.order input:focus, .order textarea:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 2px 0 var(--gold); }
.order fieldset { border: 0; padding: 0; margin: 0; }
.order legend { padding: 0; margin-bottom: 8px; }
.order__pick { grid-template-columns: 1fr 1fr; gap: 8px !important; }
.order__pick label { position: relative; cursor: pointer; }
.order__pick input { position: absolute; opacity: 0; }
.order__pick span { display: flex; align-items: center; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--ink); font-size: 15px !important; font-weight: 500 !important; line-height: 1.3; background: #fff; transition: background .15s; }
.order__pick input:checked + span { background: var(--ink); color: #fff; box-shadow: inset 0 -4px 0 var(--gold); }
.order__pick input:focus-visible + span { outline: 3px solid var(--gold); }
.order [hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__msg { min-height: 1.4em; font-weight: 700; font-size: 15px; }
.lead__msg--bad { color: var(--red); }
.lead__done { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 30px 0; font-size: 19px; }
.stamp--big { font-size: 34px; padding: 6px 22px; border-width: 4px; animation: stamp .45s cubic-bezier(.3,1.6,.5,1) both; }
@media (min-width: 960px) { .contact__in { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } .order { padding: 32px; } }

/* ---------- כותרת תחתונה: טבלת שרטוט ---------- */
.foot { padding: 32px 0 100px; background: var(--paper); }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); }
.foot__cell { display: grid; align-content: start; gap: 2px; padding: 12px 14px; border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); font-size: 15px; min-width: 0; }
.foot__cell small { font-size: 12px; color: var(--muted); }
.foot__cell a { text-decoration: none; overflow-wrap: anywhere; }
.foot__cell a:hover { color: var(--gold-d); }
.foot__cell--logo { grid-row: span 2; place-items: center; }
.foot__cell--logo img { width: 88px; height: 88px; mix-blend-mode: multiply; }
.foot__admin { font-size: 13px; color: var(--muted); text-decoration: underline !important; margin-top: 4px; }
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: 120px 1.6fr 1fr 1.4fr .6fr 1fr; }
  .foot__cell { border-top: 0; }
  .foot__cell--logo { grid-row: auto; border-inline-start: 0; }
}

/* ---------- וואטסאפ צף ---------- */
.wa-float { position: fixed; bottom: 18px; left: 18px; z-index: 60; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgb(37 211 102 / .45); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- הופעה בגלילה ---------- */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero .rv:nth-child(2) { transition-delay: .08s; } .js .hero .rv:nth-child(3) { transition-delay: .16s; } .js .hero .rv:nth-child(4) { transition-delay: .24s; } .js .hero .rv:nth-child(5) { transition-delay: .32s; }

/* ---------- אזור ניהול פתוח במחשב ---------- */
@media (min-width: 1100px) {
  .adm-open .bar { left: 600px; }
  .adm-open .bar__links, .adm-open .bar__sheet, .adm-open .wa-float { display: none; }
}


/* =========================================================
   שכבת "פיצוץ": פתיח, סמן, סריקה, טקסט ענק, גלריה אופקית
   ========================================================= */
@property --scan { syntax: '<percentage>'; inherits: true; initial-value: 0%; }

/* ---------- פתיח ---------- */
.intro { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; align-content: center; gap: 22px; background: var(--night); color: #fff; pointer-events: none; }
html:not(.js) .intro, .intro.gone { display: none; }
.intro__mark { width: 140px; position: relative; z-index: 2; }
.idr { fill: none; stroke: #fff; stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--d, 0s) cubic-bezier(.6,0,.2,1) forwards; }
.idr.gold { stroke: var(--gold-l); }
.intro__count { position: relative; z-index: 2; display: grid; justify-items: center; gap: 4px; font-size: 44px; font-weight: 600; color: var(--gold-l); }
.intro__count small { font-family: var(--font-body); font-size: 15px; color: rgb(255 255 255 / .6); letter-spacing: 0; }
.intro__half { position: absolute; inset-inline: 0; height: 50%; background: var(--night); z-index: 1; transition: transform .9s cubic-bezier(.8,0,.2,1); }
.intro__half--a { top: 0; } .intro__half--b { bottom: 0; }
.intro.open { background: transparent; }
.intro.open .intro__mark, .intro.open .intro__count, .intro.open .grid-paper { opacity: 0; transition: opacity .25s; }
.intro.open .intro__half--a { transform: translateY(-100%); }
.intro.open .intro__half--b { transform: translateY(100%); }

/* ---------- סמן של שרטט ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor input[type=range] { cursor: none; }
  html.has-cursor input:not([type=range]), html.has-cursor textarea { cursor: text; }
  .cursor { display: block; position: fixed; inset: 0; z-index: 400; pointer-events: none; mix-blend-mode: difference; }
  .cursor__h, .cursor__v { position: absolute; background: rgb(255 255 255 / .5); }
  .cursor__h { left: 0; right: 0; height: 1px; top: 0; transform: translateY(var(--cy, -10px)); }
  .cursor__v { top: 0; bottom: 0; width: 1px; left: 0; transform: translateX(var(--cx, -10px)); }
  .cursor::after { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border: 1.5px solid #fff; transform: translate(calc(var(--cx, -40px) - 13px), calc(var(--cy, -40px) - 13px)) rotate(45deg) scale(var(--cs, 1)); transition: scale .2s; }
  .cursor.hot { --cs: 1.9; }
  .cursor__label { position: absolute; left: 0; top: 0; font-size: 11px; color: #fff; transform: translate(calc(var(--cx) + 16px), calc(var(--cy) + 14px)); white-space: nowrap; }
}

/* ---------- פתיחה: צילום שעובר סריקה משרטוט למציאות ---------- */
.hero { background: var(--night); color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: -6% 0 0; z-index: -1; overflow: hidden; transform: translateY(calc(var(--py, 0) * 1px)); }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg-plan { position: absolute; inset: 0; background: color-mix(in srgb, var(--blue) 80%, #0A1A2E); clip-path: inset(0 var(--scan) 0 0); }
.hero__bg-plan img { filter: grayscale(1) invert(1) contrast(2.2) brightness(.9); mix-blend-mode: screen; opacity: .55; }
.hero__scan { position: absolute; top: 0; bottom: 0; right: var(--scan); width: 3px; background: var(--gold-l); box-shadow: 0 0 24px 6px color-mix(in srgb, var(--gold) 70%, transparent), 0 0 80px 20px color-mix(in srgb, var(--gold) 30%, transparent); opacity: calc(1 - var(--scan) / 100%); }
.hero.scan .hero__bg { animation: scan 2.6s .2s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes scan { to { --scan: 100%; } }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(270deg, color-mix(in srgb, var(--night) 94%, transparent) 0%, color-mix(in srgb, var(--night) 78%, transparent) 42%, color-mix(in srgb, var(--night) 35%, transparent) 100%),
  linear-gradient(0deg, color-mix(in srgb, var(--night) 70%, transparent), transparent 40%); }
@media (max-width: 979px) {
  .hero__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--night) 88%, transparent) 0%, color-mix(in srgb, var(--night) 80%, transparent) 55%, color-mix(in srgb, var(--night) 92%, transparent) 100%); }
}
.hero .eyebrow { color: var(--gold-l); }
.hero__title { color: #fff; }
.hero__title .dim { color: var(--gold-l); }
.hero__title .dim::after { background:
  linear-gradient(var(--gold-l), var(--gold-l)) center / 100% 2px no-repeat,
  linear-gradient(var(--gold-l), var(--gold-l)) right / 2px 100% no-repeat,
  linear-gradient(var(--gold-l), var(--gold-l)) left / 2px 100% no-repeat; }
.hero__lead { color: rgb(255 255 255 / .8); }
.hero .btn--line { color: #fff; border-color: #fff; }
.hero .btn--line img { filter: invert(1); }
.hero .btn--wa { border-color: #fff; }
.hero .btn:hover { box-shadow: 4px 4px 0 var(--gold-l); }
.hero__checks li::before { border-color: #fff; }
.hero .grid-paper { display: none; }
.hero__sheet { color: var(--ink); }
.hero__sheet { transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
@media (min-width: 980px) {
  .hero__sheet { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-1.2deg); }
}

/* פיצול מילים בכותרת */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.w > i { display: inline-block; font-style: normal; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 90ms + 150ms); }
.go .w > i { transform: none; }
.js .hero__title.rv { opacity: 1; transform: none; }

/* כלי שרטוט צפים */
.tools { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .5; }
.tool { fill: none; stroke: var(--gold-l); stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: translate(calc(var(--mx, 0) * var(--k) * 30px), calc(var(--my, 0) * var(--k) * 30px + var(--sy, 0) * var(--k) * 1px)) rotate(calc(var(--sy, 0) * var(--k) * .05deg)); }
.tool--compass { --k: .6; } .tool--tri { --k: -.4; } .tool--ruler { --k: .3; }
.tool--ruler rect { fill: color-mix(in srgb, var(--gold) 12%, transparent); }
@media (max-width: 899px) { .tools { opacity: .25; } }

/* ---------- סרגלים מצטלבים ---------- */
.tapes { position: relative; z-index: 3; height: 150px; margin-top: -60px; }
.tapes .tape { position: absolute; inset-inline: -40px; top: 50px; }
.tape--back { transform: rotate(2.5deg); background: var(--ink); color: #fff; }
.tape--back::before { background: repeating-linear-gradient(90deg, #fff 0 1.5px, transparent 1.5px 12px), repeating-linear-gradient(90deg, #fff 0 1.5px, transparent 1.5px 60px); background-size: 100% 7px, 100% 12px; background-repeat: no-repeat; opacity: .5; }
.tape--back .tape__list li::after { border-color: var(--gold-l); }
.tape:not(.tape--back) { transform: rotate(-2deg); box-shadow: 0 20px 40px color-mix(in srgb, var(--ink) 25%, transparent); }
.tape__track { animation: none; transform: translateX(var(--tx, 0px)); }

/* ---------- טקסט ענק ---------- */
.kinetic { padding: 90px 0 70px; overflow: hidden; display: grid; gap: 6px; }
.kinetic__row { display: flex; width: max-content; gap: 60px; white-space: nowrap; font-family: var(--font-head); font-weight: 900; font-size: clamp(64px, 13vw, 200px); line-height: 1; transform: translateX(calc(var(--k, 0) * 1px)); will-change: transform; }
.kinetic__row > span { display: inline-flex; align-items: center; gap: 60px; }
.kinetic__row > span::after { content: ""; width: .32em; height: .32em; border: .06em solid currentColor; transform: rotate(45deg); flex: none; }
.kinetic__row--a { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.kinetic__row--a > span::after { border-color: var(--ink); border-width: 2px; }
.kinetic__row--b { color: var(--gold); margin-inline-start: -1100px; }

/* ---------- הבניין: כוכב מסלול ---------- */
.build { margin-top: 0; }

/* ---------- גלריה אופקית ---------- */
.field { padding-bottom: 0; }
.strip { position: relative; height: var(--strip-h, 300vh); margin-top: 40px; }
.strip__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; background: var(--paper-2); border-top: 1.5px solid var(--ink); }
.strip__track { display: flex; align-items: center; gap: 28px; padding-inline: max(20px, calc((100vw - 1200px) / 2)); width: max-content; transform: translateX(var(--sx, 0px)); will-change: transform; padding-top: var(--bar-h); }
.strip__intro { width: min(420px, 78vw); display: grid; gap: 14px; flex: none; }
.strip__big { font-family: var(--font-head); font-weight: 900; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
.strip__hint { font-size: 14px; color: var(--muted); }
.strip .photo { flex: none; width: min(380px, 72vw); height: min(560px, 68vh); aspect-ratio: auto; clip-path: inset(var(--clip, 12%) round 0); transition: clip-path .8s cubic-bezier(.2,.8,.2,1); }
.strip .photo.in { --clip: 0%; }
.strip .photo img { filter: grayscale(var(--gs, 1)) contrast(1.05); transition: filter .8s, transform .8s; }
.strip .photo.in img { --gs: 0; }
.strip .photo .stamp { opacity: 0; transform: rotate(-8deg) scale(2); transition: opacity .3s .5s, transform .4s .5s cubic-bezier(.3,1.6,.5,1); }
.strip .photo.in .stamp { opacity: .9; transform: rotate(-8deg); }
.strip .photo:nth-of-type(odd) { margin-top: 60px; }
.strip .photo--tall { height: min(620px, 74vh); width: min(340px, 66vw); }
.strip .photo--mood:not(.photo--tall) { width: min(520px, 80vw); height: min(400px, 54vh); }
.cap { position: absolute; inset: auto 0 0; z-index: 2; padding: 40px 16px 14px; background: linear-gradient(transparent, color-mix(in srgb, var(--ink) 85%, transparent)); color: #fff; }
.cap b { display: inline-block; font-family: var(--font-head); font-weight: 900; font-size: 22px; line-height: 1.2; transform: translateY(14px); opacity: 0; transition: transform .6s .3s, opacity .6s .3s; }
.strip .photo.in .cap b { transform: none; opacity: 1; }
.cap b::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 8px; background: var(--gold-l); }
.strip .insta { flex: none; width: min(340px, 72vw); height: min(420px, 60vh); }
.field__pair { display: contents; }

/* ---------- כרטיסים בהטיה ---------- */
[data-tilt] { transform-style: preserve-3d; }
@media (hover: hover) {
  [data-tilt].tilting { transition: transform .1s, box-shadow .25s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate(-4px, -4px); }
}
/* ---------- כפתורים מגנטיים ---------- */
.btn, .wa-float { translate: var(--mgx, 0) var(--mgy, 0); transition: transform .15s, box-shadow .15s, translate .25s cubic-bezier(.2,.8,.2,1); }

/* ---------- חתימה ענקית בתחתית ---------- */
.foot { overflow: hidden; }
.foot__word { display: block; width: min(900px, 100%); margin: 0 auto 10px; }
.foot__word text { font-family: var(--font-head); font-weight: 900; font-size: 170px; fill: transparent; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 900; stroke-dashoffset: 900; letter-spacing: 14px; }
.foot__word.in text { animation: wordmark 2.4s cubic-bezier(.5,0,.2,1) forwards; }
@keyframes wordmark { 70% { stroke-dashoffset: 0; fill: transparent; } to { stroke-dashoffset: 0; fill: color-mix(in srgb, var(--gold) 22%, transparent); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .intro, .cursor { display: none !important; }
  .w > i { transform: none; }
  .hero__bg { --scan: 100%; }
  .strip .photo { --clip: 0%; } .strip .photo img { --gs: 0; } .cap b { opacity: 1; transform: none; } .strip .photo .stamp { opacity: .9; transform: rotate(-8deg); }
  .foot__word text { stroke-dashoffset: 0; }
}
