:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --fg: #f2f2f0;
  --muted: #8a8a8f;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #c8ff3d;
  --accent-ink: #0a0a0b;
  --radius: 18px;
  --pad: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; margin: 0; }
h2 { font-size: clamp(36px, 6vw, 84px); line-height: 1; }
h3 { font-size: 24px; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
em { font-style: normal; color: var(--accent); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%;
  pointer-events: none; opacity: 0;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, opacity .3s;
  mix-blend-mode: difference;
}
.cursor.on { opacity: 1; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; border-color: #fff; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 20px var(--pad);
  transition: background .4s, padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 14px; padding-bottom: 14px;
  border-color: var(--line);
}
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 40px; width: auto; transition: transform .5s var(--ease); }
.logo:hover img { transform: scale(1.06); }
.nav.scrolled .logo img { height: 34px; }
.lang {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted); font-size: 13px; text-transform: none; letter-spacing: 0;
  transition: color .25s, border-color .25s;
}
.lang:hover { color: var(--accent); border-color: var(--accent); }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; font-size: 15px; color: var(--muted); }
.nav-links a { position: relative; transition: color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 500 16px/1 var(--sans); cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s;
  will-change: transform;
}
.btn:hover { box-shadow: 0 10px 40px -10px rgba(200, 255, 61, 0.5); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.link-u { position: relative; color: var(--muted); transition: color .25s; }
.link-u:hover { color: var(--fg); }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform-origin: left; transition: transform .4s var(--ease);
}
.link-u:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 80px; overflow: hidden;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 1200px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200,255,61,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,255,61,.55); } 70% { box-shadow: 0 0 0 12px rgba(200,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(200,255,61,0); } }

.hero-title { font-size: clamp(48px, 10.5vw, 168px); line-height: 0.92; letter-spacing: -0.055em; font-weight: 500; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.loaded .hero-title .line > span { transform: none; }
.loaded .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.loaded .hero-title .line:nth-child(3) > span { transition-delay: .2s; }

.rotator { display: inline-block; position: relative; vertical-align: bottom; }
.rotator > span { display: inline-block; transition: transform .6s var(--ease), opacity .6s var(--ease), filter .6s; }
.rotator.out > span { transform: translateY(-40%); opacity: 0; filter: blur(8px); }
.rotator.in > span { transform: translateY(40%); opacity: 0; filter: blur(8px); transition: none; }

.hero-sub { max-width: 560px; margin-top: 36px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero-cta { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-foot {
  position: absolute; z-index: 2; inset-inline-start: var(--pad); bottom: 32px;
  display: flex; align-items: center; gap: 14px; color: var(--muted);
}
.scroll-line { width: 60px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: scan 2.2s var(--ease) infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; color: var(--muted); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-size: 14px; }
.marquee-track i { font-style: normal; color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(90px, 13vw, 180px) var(--pad); }
.section-head { display: grid; gap: 4px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .eyebrow { margin-bottom: 20px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card {
  position: relative; background: var(--bg); padding: 36px 32px 34px;
  display: flex; flex-direction: column; gap: 14px; min-height: 340px;
  transition: background .5s var(--ease);
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(200,255,61,0.09), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { background: var(--bg-2); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 36px; }
.idx { color: var(--muted); }
.ico { width: 44px; height: 44px; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s, transform .6s var(--ease); }
.ico .fill-bg { fill: var(--bg); }
.card:hover .ico .fill-bg { fill: var(--bg-2); }
.card:hover .ico { stroke: var(--accent); transform: rotate(-8deg) scale(1.08); }
.card p { color: var(--muted); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 0; }
.tags li { border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; font-size: 10.5px; color: var(--muted); }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
  display: flex; flex-direction: column; gap: 24px; min-width: 0;
  padding: 14px 14px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); transition: border-color .4s, background .4s, transform .6s var(--ease), opacity 1s var(--ease);
}
a.product:hover { border-color: rgba(200,255,61,.35); background: var(--bg-2); transform: translateY(-4px); }
a.product:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; padding-bottom: 14px; }
.product-wide .product-meta { padding-inline-end: 28px; }
.frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #050506; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-transform: none; }
.frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.frame-bar em { font-style: normal; color: var(--muted); margin-inline-start: 10px; font-size: 11.5px; }
.frame-body { aspect-ratio: 1200 / 583; max-width: 100%; overflow: hidden; }
.frame-body img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
a.product:hover .frame-body img { transform: scale(1.04); }
.product-meta { display: grid; gap: 14px; padding-inline: 14px; }
.product-meta h3 { font-size: clamp(26px, 2.6vw, 34px); }
.product-tag { color: var(--accent); margin-top: 8px; }
.product-desc { color: var(--muted); max-width: 52ch; }
.product-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; margin-top: 4px; }
.product-link .arrow { transition: transform .4s var(--ease); }
a.product:hover .product-link .arrow { transform: translate(3px, -3px); }
[dir="rtl"] .product-link .arrow { transform: scaleX(-1); }
[dir="rtl"] a.product:hover .product-link .arrow { transform: scaleX(-1) translate(3px, -3px); }

/* ---------- work ---------- */
.work-list { border-top: 1px solid var(--line); }
.work {
  position: relative; display: grid; grid-template-columns: 60px 1.1fr 1.4fr 40px; gap: 32px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.work::before {
  content: ""; position: absolute; inset: 0; background: var(--bg-2); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.work:hover::before { transform: scaleY(1); }
.work:hover { padding-left: 20px; padding-right: 20px; }
.work-idx { color: var(--muted); padding-top: 10px; }
.work h3 { font-size: clamp(26px, 3vw, 40px); }
.work-type { color: var(--accent); margin-top: 10px; }
.work-desc { color: var(--muted); padding-top: 8px; }
.work-arrow { font-size: 26px; color: var(--muted); transition: transform .5s var(--ease), color .3s; justify-self: end; }
.work:hover .work-arrow { transform: rotate(45deg); color: var(--accent); }

/* ---------- process ---------- */
#process { position: relative; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--line); padding-top: 28px; position: relative; }
.step > .mono { color: var(--accent); }
.step h3 { margin: 18px 0 12px; }
.step p { color: var(--muted); font-size: 15.5px; }
.progress-line { position: relative; height: 1px; margin-top: -1px; display: none; }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact .eyebrow { margin-bottom: 20px; }
.contact-title { font-size: clamp(44px, 8vw, 128px); line-height: 0.95; letter-spacing: -0.05em; margin-bottom: clamp(48px, 7vw, 96px); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form > label { display: grid; gap: 8px; }
.form > label .mono, .chips legend { color: var(--muted); }
.form .full, .form .chips, .form button, .form-note { grid-column: 1 / -1; }
.form input:not([type=checkbox]), .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--fg); font: 400 18px/1.4 var(--sans); padding: 8px 0 12px; outline: none; resize: vertical;
  transition: border-color .3s;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form button { justify-self: start; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 12px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px;
  transition: background .25s, color .25s, border-color .25s;
}
.chips label:hover span { border-color: var(--muted); }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { color: var(--accent); min-height: 1em; }
.form-note.error { color: #ff8a7a; }
.form button:disabled { opacity: .6; cursor: progress; }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-info { display: grid; gap: 14px; }
.big-link { font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.03em; width: fit-content; position: relative; }
.big-link.small { font-size: clamp(18px, 2vw, 24px); color: var(--muted); }
.big-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.big-link:hover::after { transform: scaleX(1); }
.contact-info .mono { margin-top: 18px; line-height: 1.8; }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px var(--pad); border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hebrew / rtl ---------- */
:root:lang(he) { --sans: "Heebo", "Inter Tight", system-ui, sans-serif; }
:lang(he) .mono { font-family: "Heebo", var(--mono); letter-spacing: 0.02em; }
:lang(he) h1, :lang(he) h2, :lang(he) h3, :lang(he) .hero-title, :lang(he) .contact-title { letter-spacing: -0.02em; }
:lang(he) .hero-title { line-height: 1; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .work-arrow { transform: scaleX(-1); }
[dir="rtl"] .work:hover .work-arrow { transform: scaleX(-1) rotate(45deg); }
[dir="rtl"] .nav-links a::after { transform-origin: left; }
[dir="rtl"] .nav-links a:hover::after, [dir="rtl"] .nav-links a.active::after { transform-origin: right; }
[dir="rtl"] .scroll-line::after { animation-direction: reverse; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .work { grid-template-columns: 40px 1fr 30px; }
  .work-desc { grid-column: 2 / 3; padding-top: 0; }
  .work-arrow { grid-row: 1; grid-column: 3; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .nav > .lang { margin-inline-start: auto; }
  .nav > .btn-sm { display: none; }
  .burger {
    display: grid; gap: 6px; place-content: center; width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  }
  .burger span { width: 16px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease); }
  .nav.open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 22px;
    padding: 0 var(--pad); margin: 0; background: var(--bg); font-size: 40px; color: var(--fg); letter-spacing: -0.03em;
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .cards { grid-template-columns: 1fr; }
  .products, .product-wide { grid-template-columns: 1fr; }
  .product-wide { padding-bottom: 28px; gap: 24px; }
  .product-wide .product-meta { padding-inline-end: 14px; }
  .card { min-height: 0; }
  .card-top { padding-bottom: 20px; }
  .steps { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr 30px; gap: 12px; padding: 32px 0; }
  .work:hover { padding-left: 0; padding-right: 0; }
  .work-idx { display: none; }
  .work-desc { grid-column: 1 / -1; }
  .work-arrow { grid-column: 2; }
  .contact-grid, .form { grid-template-columns: 1fr; }
  .hero-foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .hero-title .line > span { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
