/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  --ink:        #1a1a1a;
  --ink-2:      #6e6e73;
  --ink-3:      #a1a1a6;
  --line:       #e5e5e7;
  --bg:         #ffffff;
  --bg-tint:    #f5f5f7;
  --bg-dark:    #1a1a1a;
  --accent:     #0071e3;

  --wrap:       1120px;
  --pad:        clamp(20px, 5vw, 40px);
  --sec-y:      clamp(88px, 12vw, 168px);
  --radius:     14px;
  --ease:       cubic-bezier(.22, .61, .36, 1);

  /* Hebrew leads with Assistant; Latin leads with the brand's Helvetica stack */
  --font-he: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
             Arial, "Assistant", sans-serif;
  --font: var(--font-he);
}

html[dir="ltr"] { --font: var(--font-en); }

/* ── reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── layout ─────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap.narrow { max-width: 760px; }

.section { padding-block: var(--sec-y); }

.section-dark {
  background: var(--bg-dark);
  color: #fff;
  --ink: #fff;
  --ink-2: #a1a1a6;
  --line: #333336;
}
.section-tint { background: var(--bg-tint); }

/* ── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}

/* the mark PNG carries ~25% internal padding — the negative margins pull the
   optical edges back in line with the wordmark */
.brand {
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand img {
  height: 38px;
  width: auto;
  margin-inline-start: -8px;
}
.brand-name {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-name b { font-weight: 600; letter-spacing: -.045em; }

.brand-lg img { height: 52px; margin-inline-start: -12px; }
.brand-lg .brand-name { font-size: 24px; color: #fff; display: block; }
.brand-tag {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #6e6e73;
}

.nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  margin-inline-start: clamp(8px, 2vw, 28px);
  margin-inline-end: auto;
  font-size: 14px;
  color: var(--ink-2);
}
.nav a { transition: color .2s var(--ease); }
.nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-toggle:hover { color: var(--ink); background: var(--bg-tint); }

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.btn:hover { opacity: .82; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 8px 18px; font-size: 14px; }

.btn-ghost {
  background: none;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink-3); opacity: 1; }

.btn-invert { background: #fff; color: var(--bg-dark); }

/* ── type ───────────────────────────────────────────────────────────── */
.eyebrow, .section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-label { margin-bottom: clamp(28px, 4vw, 48px); }

h1 {
  font-size: clamp(40px, 7.4vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-block: 24px 28px;
}

.lede {
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}

.statement {
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 28px;
}
.statement.sm { font-size: clamp(26px, 3.4vw, 40px); }
.accent { color: var(--accent); }

.note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-3);
  max-width: 56ch;
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(80px, 14vh, 150px) clamp(80px, 12vw, 140px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* ── what we do ─────────────────────────────────────────────────────── */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(36px, 5vw, 64px);
}
.offer h2 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.offer > p {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 22px;
}
.offer ul {
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.offer li {
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}

/* ── how we think ───────────────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-block: clamp(56px, 8vw, 90px) clamp(56px, 8vw, 90px);
  background: var(--line);
  border-block: 1px solid var(--line);
}
.process li {
  background: var(--bg-dark);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.process .num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
}

.diff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}
.diff h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.diff p { color: var(--ink-2); font-size: 15px; }

/* ── capabilities ───────────────────────────────────────────────────── */
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.capabilities li {
  background: var(--bg);
  padding: 30px 26px;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.capabilities li:hover { background: var(--bg-tint); color: var(--accent); }

/* ── selected work ──────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.steps li {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ── contact ────────────────────────────────────────────────────────── */
.contact-form {
  display: grid;
  gap: 22px;
  max-width: 560px;
  margin-top: 12px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  border-radius: 0;
  resize: vertical;
  transition: border-color .25s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field .invalid { border-bottom-color: #ff6b6b; }

.contact-form .btn { justify-self: start; }

.form-note {
  font-size: 13px;
  color: var(--ink-3);
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
}
.contact-direct a { transition: color .2s var(--ease); }
.contact-direct a:hover { color: var(--accent); }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: #a1a1a6;
  padding-block: 56px;
  border-top: 1px solid #2a2a2c;
}
.footer-inner { display: grid; gap: 26px; justify-items: start; }
.footer-line {
  font-size: 15px;
  max-width: 60ch;
  line-height: 1.6;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: #6e6e73;
}
.footer-meta a:hover { color: #fff; }

/* ── mobile nav ─────────────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 62px 0 auto;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    font-size: 17px;
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  .header-actions .btn-sm { display: none; }
}

/* ── reveal animation ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ── LTR (English) adjustments ──────────────────────────────────────── */
html[dir="ltr"] h1,
html[dir="ltr"] .statement { letter-spacing: -.035em; }
