:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #0d2435;
  --ink-2: #1d4e6e;
  --sky: #3d9cc4;
  --mist: #a9d3e4;
  --orange: #ff9d1c;
  --line: rgba(13, 36, 53, .14);
  --display-he: "Karantina", "IBM Plex Sans Hebrew", sans-serif;
  --display-en: "Bricolage Grotesque", sans-serif;
  --body: "IBM Plex Sans Hebrew", "Bricolage Grotesque", sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Sans Hebrew", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
::selection { background: var(--orange); color: var(--ink); }
a { color: inherit; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
html[lang="en"] { --display: var(--display-en); }
html[lang="he"] { --display: var(--display-he); }

.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: multiply;
}

/* top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark {
  font: 800 22px/1 var(--display-en); letter-spacing: -.02em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  direction: ltr;
}
.mark-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.mark-tag {
  font: 500 10px/1 var(--mono); letter-spacing: .14em;
  border: 1px solid var(--ink); padding: 3px 5px; border-radius: 3px; margin-inline-start: 6px;
}
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 15px; position: relative; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }
.lang {
  display: inline-flex; border: 1.5px solid var(--ink); border-radius: 99px; padding: 3px;
  background: none; cursor: pointer; font: 500 12px/1 var(--mono); color: var(--ink);
  direction: ltr;
}
.lang span { padding: 6px 10px; border-radius: 99px; transition: background .2s, color .2s; }
html[lang="he"] .lang [data-l="he"], html[lang="en"] .lang [data-l="en"] { background: var(--ink); color: var(--paper); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(16px, 4vw, 64px);
  padding: clamp(28px, 6vw, 80px) var(--pad) clamp(40px, 6vw, 72px);
  max-width: 1360px; margin: 0 auto; min-height: calc(100svh - 64px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); margin: 0 0 18px; }
.blink { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,157,28,.22); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.name { margin: 0; font-family: var(--display); font-weight: 800; line-height: .82; letter-spacing: -.02em; }
html[lang="he"] .name { font-weight: 700; line-height: .86; letter-spacing: 0; }
.name span { display: block; }
.name-1 { font-size: clamp(88px, 15vw, 220px); color: var(--ink); }
.name-2 {
  font-size: clamp(88px, 15vw, 220px);
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  background: linear-gradient(100deg, var(--sky), var(--ink-2) 45%, var(--orange) 46%, var(--orange) 54%, var(--ink-2) 55%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  animation: sweep 6s ease-in-out 1.2s infinite;
}
html[lang="en"] .name-1, html[lang="en"] .name-2 { font-size: clamp(64px, 10.5vw, 158px); }
@keyframes sweep { 0%, 30% { background-position: 100% 0; color: transparent; } 60%, 100% { background-position: 0 0; color: transparent; } }

.lede { font-size: clamp(18px, 1.7vw, 22px); max-width: 30ch; margin: 26px 0 30px; color: #24394a; }
html[lang="en"] .lede { max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 99px; font: 500 16px/1 var(--body);
  text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--orange); }
.btn-ink:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--mist); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }

/* the reveal animation isolates this box, so it needs its own paper backdrop for the multiply blend */
.hero-art { position: relative; aspect-ratio: 1; max-width: 640px; width: 100%; justify-self: center; background: var(--paper); }
.hero-art picture { display: block; position: relative; }
.splash { position: absolute; inset: -6%; width: 112%; height: 112%; }
.drips path { fill: var(--mist); opacity: .55; transform-origin: 50% 50%; animation: morph 14s ease-in-out infinite alternate; }
.dots circle { fill: var(--sky); animation: float 5s ease-in-out infinite alternate; }
.dots circle:nth-child(2n) { fill: var(--orange); animation-duration: 7s; }
@keyframes morph { to { transform: rotate(14deg) scale(1.05); } }
@keyframes float { to { transform: translateY(-14px); } }
.portrait {
  position: relative; width: 100%; height: auto; display: block;
  mix-blend-mode: multiply; filter: saturate(1.08) contrast(1.03);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 97%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.sticker {
  position: absolute; bottom: 9%; inset-inline-start: -2%;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
  display: grid; place-content: center; text-align: center;
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  transform: rotate(-12deg); box-shadow: 0 10px 30px rgba(13,36,53,.18);
  animation: spin-in .9s cubic-bezier(.2,1.4,.4,1) 1s both;
}
.sticker b { font: 800 40px/1 var(--display-en); letter-spacing: -.02em; }
@keyframes spin-in { from { transform: rotate(-120deg) scale(0); } }

/* marquee */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); transform: rotate(-1.4deg); margin: 0 -2vw; border-block: 2px solid var(--ink); }
.marquee-track { display: inline-block; white-space: nowrap; padding: 16px 0; font-size: clamp(15px, 1.6vw, 20px); animation: marquee 28s linear infinite; direction: ltr; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
section { scroll-margin-top: 80px; }
.section-head { max-width: 1360px; margin: 0 auto 40px; }
.kicker { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
h2 { font-family: var(--display); font-size: clamp(48px, 7vw, 104px); line-height: .92; margin: 0; font-weight: 800; letter-spacing: -.02em; }
html[lang="he"] h2 { font-weight: 700; letter-spacing: 0; }
.section-sub { max-width: 52ch; color: #3b4f5e; margin: 16px 0 0; }

.work { padding: clamp(80px, 10vw, 140px) var(--pad) clamp(40px, 6vw, 80px); }
.grid { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.card {
  position: relative; background: #fffdf8; border: 2px solid var(--ink); border-radius: 22px;
  padding: 26px; min-height: 300px; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  box-shadow: 0 0 0 var(--ink); overflow: hidden; text-decoration: none;
}
.card:hover { transform: translate(-4px, -4px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--ink); }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.chip { padding: 5px 10px; border-radius: 99px; border: 1.5px solid currentColor; }
.chip.live { background: var(--orange); border-color: var(--ink); }
.chip.beta { color: var(--ink-2); background: var(--mist); border-color: var(--ink-2); }
.chip.soon { color: #6b7a85; }
.card h3 { font-family: var(--display); font-size: clamp(36px, 3.4vw, 50px); line-height: .95; margin: auto 0 10px; padding-top: 40px; }
.card p { margin: 0; color: #3b4f5e; font-size: 16px; }
.card-blob { position: absolute; width: 180px; height: 180px; inset-inline-end: -50px; top: -50px; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: var(--mist); opacity: .5; transition: transform .6s; }
.card:hover .card-blob { transform: scale(1.25) rotate(30deg); }
.card.is-soon { border-style: dashed; background: transparent; }
.card.is-soon h3 { color: #8696a1; }
.card-link { margin-top: 18px; font: 500 13px var(--mono); display: inline-flex; gap: 6px; align-items: center; }

/* how */
.how { padding: clamp(60px, 8vw, 120px) var(--pad); background: var(--paper-2); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1360px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 26px 24px 30px; border-inline-start: 2px solid var(--ink); position: relative; }
.step:last-child { border-inline-end: 2px solid var(--ink); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 500; margin-bottom: 34px; transition: background .25s; }
.step:hover .step-n { background: var(--orange); }
.step h3 { font-family: var(--display); font-size: clamp(32px, 3vw, 44px); margin: 0 0 8px; line-height: 1; }
.step p { margin: 0; color: #3b4f5e; font-size: 16px; }

/* contact */
.contact { padding: clamp(80px, 10vw, 140px) var(--pad); }
.contact-card {
  max-width: 1360px; margin: 0 auto; background: var(--ink); color: var(--paper);
  border-radius: 32px; padding: clamp(28px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; width: 520px; height: 520px; inset-inline-start: -180px; bottom: -260px;
  background: radial-gradient(circle, rgba(61,156,196,.55), transparent 65%);
}
.contact-copy { position: relative; }
.contact .kicker { color: var(--mist); }
.contact h2 { font-size: clamp(42px, 5.4vw, 80px); }
.contact-copy p:last-child { color: #c3d6e2; margin-top: 18px; }
.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.form label { display: grid; gap: 8px; font-size: 14px; color: #c3d6e2; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; font: 400 17px/1.4 var(--body); color: var(--paper);
  background: rgba(244,241,234,.06); border: 1.5px solid rgba(244,241,234,.25);
  border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .2s, background .2s; resize: vertical;
}
.form input:focus, .form textarea:focus { border-color: var(--orange); background: rgba(244,241,234,.1); }
.form .btn-ink { background: var(--orange); color: var(--ink); border-color: var(--orange); box-shadow: 4px 4px 0 var(--sky); margin-top: 6px; }
.form .btn-ink:hover { box-shadow: 6px 6px 0 var(--sky); }
.form .btn-ink[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { margin: 0; min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: var(--orange); }
.form-status.err { color: #ffb3a8; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 26px var(--pad) 34px; font-size: 13px; color: #55697a; flex-wrap: wrap; }

/* load + scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 120ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
/* hidden only once app.js confirms IntersectionObserver is available */
.anim .in-view { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.anim .in-view.shown { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero-art { order: -1; max-width: 420px; }
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-inline-end: 0; border-bottom: 2px solid var(--ink); }
  .step:last-child { border-inline-end: 0; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .sticker { width: 88px; height: 88px; font-size: 10px; }
  .sticker b { font-size: 30px; }
  .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .anim .in-view { opacity: 1; transform: none; }
}
