
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body { font-family: 'Archivo','Heebo',sans-serif; background:#FFFFFF; color:#101010; -webkit-font-smoothing:antialiased; }
  a { color: inherit; text-decoration: none; }
  button { font-family: 'Archivo','Heebo',sans-serif; }
  button:hover { opacity: .75; }
  button:disabled { opacity: .35; cursor: default; }
  .site-header { position: sticky; top: 0; z-index: 20; background:#fff; border-bottom:1px solid #EAEAEA; display:flex; align-items:center; justify-content:space-between; padding:16px 56px; }
  .site-header img { height: 30px; width: auto; display:block; }
  .head-right { display:flex; align-items:center; gap:28px; }
  .nav-lab { font-size:12px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; }
  .pill { padding:10px 20px; border-radius:999px; border:1.3px solid #101010; font-size:12px; font-weight:600; letter-spacing:.5px; text-transform:uppercase; cursor:pointer; background:#fff; color:#101010; }
  .pill.solid { background:#101010; color:#fff; padding:14px 28px; font-weight:700; letter-spacing:1px; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
  .intro { padding: 56px 0 28px; display:grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items:end; }
  .eyebrow { font-size:12px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; display:flex; align-items:center; gap:12px; margin-bottom:22px; }
  .eyebrow::before { content:""; width:28px; height:1.5px; background:#101010; display:block; }
  h1 { font-size: clamp(40px, 6vw, 80px); line-height:1.02; font-weight:700; letter-spacing:-.03em; margin:0; }
  .sub { font-size: clamp(15px,1.5vw,19px); line-height:1.55; color:#3A3A3A; margin:0; max-width:480px; }
  .stage { display:grid; grid-template-columns: 1.25fr 1fr; gap: 20px; padding-bottom: 72px; align-items:start; }
  .card { border-radius:14px; border:1px solid #EAEAEA; background:#fff; overflow:hidden; position:relative; }
  .board { padding: 18px; display:flex; flex-direction:column; gap:14px; }
  .canvas-box { position:relative; border-radius:10px; overflow:hidden; background:#FAFAFA; background-image: radial-gradient(#DADADA 1px, transparent 1.2px); background-size: 24px 24px; border:1px solid #EEEEEE; }
  canvas { display:block; width:100%; height:auto; touch-action:none; cursor:crosshair; }
  .hint { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; font-size:13px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:#9A9A9A; transition:opacity .3s; }
  .toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
  .toolbar .spacer { flex:1; }
  .pill.active { background:#101010; color:#fff; }
  .result { display:flex; flex-direction:column; min-height: 420px; }
  .empty { flex:1; display:flex; flex-direction:column; justify-content:center; gap:14px; padding:36px; color:#3A3A3A; }
  .empty b { font-size:26px; letter-spacing:-.02em; color:#101010; line-height:1.15; }
  .empty span { font-size:15px; line-height:1.55; }
  .match-img { position:relative; aspect-ratio: 4/3; background:#101010; }
  .match-img img { width:100%; height:100%; object-fit:cover; display:block; }
  .shade { position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.62) 100%); }
  .cap { position:absolute; left:18px; bottom:16px; right:18px; color:#fff; }
  .cap .t { font-size:22px; font-weight:700; letter-spacing:-.02em; }
  .cap .m { font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; opacity:.85; margin-top:4px; }
  .match-body { padding:18px 20px 20px; display:flex; flex-direction:column; gap:14px; }
  .why { font-size:15px; line-height:1.55; color:#101010; margin:0; }
  .label { font-size:11px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:#6A6A6A; }
  .also { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .mini { position:relative; border-radius:10px; overflow:hidden; aspect-ratio: 4/3; cursor:pointer; background:#101010; }
  .mini img { width:100%; height:100%; object-fit:cover; display:block; }
  .mini .cap { left:10px; bottom:9px; right:10px; }
  .mini .cap .t { font-size:13px; }
  .credit { font-size:11px; color:#8A8A8A; line-height:1.5; }
  .credit a { text-decoration:underline; text-underline-offset:2px; }
  .loading { flex:1; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:16px; padding:36px; }
  .bar { width:140px; height:2px; background:#EAEAEA; overflow:hidden; border-radius:2px; }
  .bar i { display:block; width:40%; height:100%; background:#101010; animation: slide 1.1s infinite ease-in-out; }
  @keyframes slide { 0%{ transform:translateX(-100%);} 100%{ transform:translateX(250%);} }
  .fade { animation: fade .5s ease both; }
  @keyframes fade { from { opacity:0; transform: translateY(6px);} to { opacity:1; transform:none; } }
  .err { padding:30px; color:#3A3A3A; font-size:15px; line-height:1.55; }
  .facts { display:flex; flex-wrap:wrap; gap:8px; }
  .chip { font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; border:1px solid #101010; border-radius:999px; padding:5px 11px; }
  .info { font-size:14px; line-height:1.55; color:#3A3A3A; margin:0; }
  .links { display:flex; gap:10px; flex-wrap:wrap; }
  .links a { font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; border-bottom:1.3px solid #101010; padding-bottom:2px; }
  .note { font-size:11px; color:#8A8A8A; }
  footer { background:#101010; color:#fff; padding:40px 56px; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
  footer img { height:30px; }
  footer .f { font-size:12px; opacity:.7; letter-spacing:.04em; }
  .canvas-box, canvas { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
  @media (max-width: 1100px) and (min-width: 901px) { .site-header { padding:16px 32px; } .stage { grid-template-columns: 1.1fr 1fr; } .intro { gap:28px; } }
  @media (max-width: 900px) {
    .toolbar { flex-wrap:nowrap; }
    .toolbar .pill.solid { flex:1; }
    .toolbar .spacer { display:none; }
    .board { padding:12px; }
    .result { min-height:0; }
    .match-img { aspect-ratio: 16/11; }
    .site-header { padding: 14px 20px; }
    .wrap { padding: 0 20px; }
    .intro { grid-template-columns:1fr; gap:20px; padding-top:36px; }
    .stage { grid-template-columns:1fr; }
    footer { padding:32px 20px; }
    .nav-lab { display:none; }
  }
  @media (max-width: 520px) { .also { gap:8px; } .cap .t { font-size:19px; } .pill { padding:9px 16px; } .pill.solid { padding:13px 20px; } }

/* ---------- shared header / footer (Lab pages) ---------- */
.site-header { gap: 20px; }
.site-header > a { line-height: 0; }
.site-nav { display:flex; align-items:center; gap:34px; font-size:12px; font-weight:600; letter-spacing:1px; text-transform:uppercase; }
.nav-link:hover { opacity:.55; }
.nav-on { border-bottom:1.5px solid #101010; padding-bottom:3px; }
.nav-contact { padding:11px 24px; border:1.3px solid #101010; border-radius:999px; }
.nav-back { display:none; }
footer a { text-decoration:underline; text-underline-offset:2px; }
@media (max-width: 900px) {
  .site-nav .nav-link:not(.nav-on):not(.nav-contact) { display:none; }
  .site-nav { gap:14px; margin-inline-start:auto; }
  .nav-contact { padding:9px 16px; }
}
@media (max-width: 520px) { .nav-contact { display:none; } .site-nav { margin-inline-start:auto; } .nav-back { display:none; } }

/* ---------- Lab hub ---------- */
.hub-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px; padding-bottom:72px; }
.exp { display:flex; flex-direction:column; border:1px solid #EAEAEA; border-radius:14px; overflow:hidden; background:#fff; transition:transform .25s ease, box-shadow .25s ease; }
a.exp:hover { transform:translateY(-3px); box-shadow:0 10px 30px rgba(16,16,16,.08); }
.exp-art { aspect-ratio:4/3; background:#FAFAFA; background-image:radial-gradient(#DADADA 1px, transparent 1.2px); background-size:24px 24px; border-bottom:1px solid #EEEEEE; display:flex; align-items:center; justify-content:center; }
.exp-art svg { width:62%; height:auto; }
.exp-body { padding:18px 20px 22px; display:flex; flex-direction:column; gap:10px; }
.exp-no { font-size:11px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:#6A6A6A; display:flex; justify-content:space-between; }
.exp-title { font-size:24px; font-weight:700; letter-spacing:-.02em; line-height:1.1; margin:0; }
.exp-text { font-size:14px; line-height:1.55; color:#3A3A3A; margin:0; }
.exp.soon { border-style:dashed; background:transparent; }
.exp.soon .exp-art { background:transparent; border-bottom-style:dashed; color:#BDBDBD; font-size:12px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; }
@media (max-width: 900px) { .hub-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 560px) { .hub-grid { grid-template-columns:1fr; } }

/* ---------- gallery ---------- */
.gallery { padding: 8px 0 72px; }
.gallery[hidden] { display:none; }
.gallery .label { margin-bottom:16px; }
.gal-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; }
.g-item { display:grid; grid-template-columns:1fr 1fr; border:1px solid #EAEAEA; border-radius:14px; overflow:hidden; background:#fff; }
.g-doodle { aspect-ratio:1/1; background:#FAFAFA; display:flex; align-items:center; justify-content:center; }
.g-doodle img { width:100%; height:100%; object-fit:contain; }
.g-b { position:relative; aspect-ratio:1/1; background:#101010; }
.g-b img { width:100%; height:100%; object-fit:cover; }
.g-b .shade { position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.7) 100%); }
.g-b span { position:absolute; left:8px; right:8px; bottom:7px; color:#fff; font-size:11px; font-weight:700; line-height:1.2; }
.consent { font-size:11px; color:#8A8A8A; margin:0; }
@media (max-width:900px) { .gal-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:520px) { .gal-grid { grid-template-columns:1fr; } }

/* ---------- language button + RTL ---------- */
.lang-btn { width:44px; height:44px; padding:0; display:inline-flex; align-items:center; justify-content:center; border:1.3px solid #101010; border-radius:999px; background:#fff; color:#101010; font-size:13px; font-weight:700; cursor:pointer; }
html[lang="he"] * { letter-spacing:normal !important; text-transform:none !important; }
html[lang="he"] .cap, html[lang="he"] .g-b span { left:auto; right:12px; text-align:right; }
html[lang="he"] .cap { right:18px; }
html[lang="he"] .empty, html[lang="he"] .match-body, html[lang="he"] .err, html[lang="he"] .intro, html[lang="he"] .exp-body, html[lang="he"] .gallery { text-align:right; }
html[lang="he"] canvas { direction:ltr; }
.gal-note { font-size:13px; color:#6A6A6A; margin:0 0 12px; }

/* ---------- site-style footer ---------- */
.site-footer { background:#101010; color:#fff; padding:72px 56px 40px; display:flex; flex-direction:column; justify-content:flex-start; align-items:stretch; gap:48px; }
.site-footer .foot-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:32px; }
.site-footer .fcol { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.site-footer .flogo { display:block; line-height:0; margin-bottom:4px; }
.site-footer .flogo img { height:58px; width:auto; }
.site-footer .fname { font-size:13px; color:#ABABAB; line-height:1.6; margin-top:4px; }
.site-footer .fh { font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:#ABABAB; }
.site-footer a.nav-link { font-size:14px; text-decoration:none; }
.site-footer .fbottom { padding-top:24px; border-top:1px solid #2A2A2A; font-size:13px; color:#7A7A7A; }
html[lang="he"] .site-footer a[dir="ltr"] { text-align:right; }
@media (max-width: 900px) { .site-footer { padding:48px 20px 32px; } .site-footer .foot-grid { grid-template-columns:repeat(2, minmax(0,1fr)); gap:28px 20px; } }
