:root {
  --fog: #ecefe9;
  --fog-2: #e1e5de;
  --ink: #0e1430;
  --mist: #50566e;
  --klein: #2b2bff;
  --klein-deep: #1f1fd1;
  --lilac: #cfcbff;
  --amber: #ffb224;
  --ink-rgb: 14, 20, 48;
  --klein-rgb: 43, 43, 255;
  --amber-rgb: 255, 178, 36;
  --line: rgba(var(--ink-rgb), 0.14);
  --display: "Karantina", "IBM Plex Sans Hebrew", "Arial Narrow", sans-serif;
  --text: "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grain-a: 0;
  --texture: none;
  --texture-size: auto;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fog: #0a0d1c;
    --fog-2: #151a33;
    --ink: #eef0ff;
    --mist: #a6abc6;
    --klein: #4b4bff;
    --klein-deep: #3a3ae6;
    --ink-rgb: 238, 240, 255;
    --klein-rgb: 91, 91, 255;
    --grain-a: 0.08;
    --texture: radial-gradient(rgba(var(--ink-rgb), 0.07) 1px, transparent 1.2px);
    --texture-size: 22px 22px;
    --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    color-scheme: dark;
  }
  .sent { background: var(--fog-2); border: 1px solid var(--line); }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  background-color: var(--fog);
  background-image: var(--texture);
  background-size: var(--texture-size);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--klein); color: #fff; }
:focus-visible { outline: 3px solid var(--klein); outline-offset: 3px; border-radius: 4px; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--noise); opacity: var(--grain-a);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; inset-inline-start: 12px; top: 12px; z-index: 100;
  background: var(--ink); color: var(--fog); padding: 10px 16px; border-radius: 999px;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }
main:focus { outline: none; }

/* Wordmark: text from config, glyph drawn in code */
.wordmark { display: inline-flex; align-items: center; gap: 0.12em; font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: 0.01em; direction: ltr; }
.wm-text { font-size: 2.1rem; transform: translateY(0.06em); }
.wm-node { width: 1.05rem; height: 1.05rem; overflow: visible; }
.wm-node .ring { fill: none; stroke: var(--klein); stroke-width: 2.4; }
.wm-node .core { fill: var(--klein); transition: transform 0.5s var(--ease); transform-origin: 9px 9px; }
.wm-node .tail { stroke: var(--klein); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10; stroke-dashoffset: 10; transition: stroke-dashoffset 0.4s var(--ease); }
.wordmark-link { text-decoration: none; border-radius: 6px; }
.wordmark-link:hover .wm-node .core { transform: scale(0.45); }
.wordmark-link:hover .wm-node .tail { stroke-dashoffset: 0; }

/* Header */
.top {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  transition: transform 0.45s var(--ease), background-color 0.3s, box-shadow 0.3s;
}
.top.is-solid { background: color-mix(in srgb, var(--fog) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top.is-hidden { transform: translateY(-110%); }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 1rem; padding: 8px 14px; border-radius: 999px; transition: background-color 0.25s, color 0.25s; }
.nav a:hover { background: var(--fog-2); }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.lang {
  background: none; border: 1.5px solid rgba(var(--ink-rgb), 0.3); border-radius: 999px; padding: 0 16px; min-height: 44px; cursor: pointer;
  font-weight: 500; font-size: 0.95rem; transition: border-color 0.25s, background-color 0.25s;
}
.lang:hover { border-color: var(--ink); }

/* Buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--klein); color: #fff; font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  will-change: transform;
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.97rem; }
.btn-label { position: relative; z-index: 1; display: inline-block; }
.btn-fill {
  position: absolute; z-index: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink); left: var(--fx, 50%); top: var(--fy, 50%);
  transform: translate(-50%, -50%) scale(0); transition: transform 0.55s var(--ease);
}
.btn:hover .btn-fill, .btn:focus-visible .btn-fill { transform: translate(-50%, -50%) scale(var(--fs, 60)); }
.btn:focus-visible { outline-color: var(--ink); }

.link { position: relative; text-decoration: none; font-weight: 500; padding-block: 4px; }
.link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0.25); transform-origin: var(--origin, right); transition: transform 0.45s var(--ease);
}
[dir="ltr"] .link::after { --origin: left; }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; overflow: hidden; }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative; width: 100%; max-width: var(--max); margin-inline: auto;
  padding: clamp(96px, 14vh, 150px) var(--gutter) clamp(28px, 5vh, 56px);
  display: grid; grid-template-rows: auto minmax(180px, 1fr) auto;
  pointer-events: none;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(4.6rem, min(13vw, 21vh), 12.5rem); line-height: 0.84; letter-spacing: -0.005em;
}
.hero-title .line { display: block; overflow: hidden; padding-block: 0.04em; margin-block: -0.04em; }
.hero-title .line > span { display: inline-block; }
.hero-band { min-height: 180px; }
.hero-foot { padding-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.hero-lede { max-width: 34em; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--ink); }
.hero-cta { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; max-width: 30rem; }
.hero-note { flex-basis: 100%; font-size: 0.95rem; color: var(--mist); }

/* Statement */
.statement-sec { max-width: var(--max); margin-inline: auto; padding: clamp(96px, 18vh, 200px) var(--gutter); }
.statement {
  max-width: 22em; font-weight: 500; font-size: clamp(1.75rem, 3.6vw, 3.25rem); line-height: 1.28; letter-spacing: -0.01em;
}
.statement .task {
  background-image: linear-gradient(var(--klein), var(--klein));
  background-repeat: no-repeat; background-size: calc(var(--strike, 0) * 100%) 0.09em;
  background-position: right 0 top 58%;
}
[dir="ltr"] .statement .task { background-position: left 0 top 58%; }
.statement .punch { color: var(--klein); }
.js .statement .w { opacity: var(--wo, 1); }

/* Section heads */
.sec-head { display: grid; gap: 14px; max-width: 40rem; }
.sec-head h2, .contact h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(3.75rem, 9vw, 8.5rem); line-height: 0.86;
}
.sec-head p { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--mist); max-width: 32em; }

/* Services */
.services { max-width: var(--max); margin-inline: auto; padding: 40px var(--gutter) clamp(80px, 14vh, 160px); }
.svc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 8vh, 96px); }
.svc-list { list-style: none; }
.svc {
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  border-top: 1.5px solid var(--line); padding-block: 40px;
}
.svc:first-child { border-top: 0; }
.svc h3 { color: rgba(var(--ink-rgb), 0.55); transition: color 0.5s var(--ease); }
.svc.is-active h3, .no-motion .svc h3 { color: var(--ink); }
.svc h3 { font-family: var(--display); font-weight: 700; font-size: clamp(2.75rem, 5.4vw, 5rem); line-height: 0.9; }
.svc p { max-width: 28em; color: var(--mist); font-size: 1.125rem; }
.svc-fig { display: none; }
.svc-stage {
  position: sticky; top: calc(50vh - min(19vw, 290px)); align-self: start;
  aspect-ratio: 1; width: 100%; max-width: 580px; justify-self: end;
  background: var(--fog-2); border-radius: 40px; margin-top: 12vh;
}
.svc-stage .dia { position: absolute; inset: 6%; width: 88%; height: 88%; opacity: 0; transition: opacity 0.5s var(--ease); }
.svc-stage .dia.is-active { opacity: 1; }
.dia .ln, .dia .ln * { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0.32; stroke-linecap: round; stroke-linejoin: round; }
.dia .ln * { opacity: 1; }
.dia .k * { fill: none; stroke: var(--klein); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dia .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease); }
.dia.is-active .draw, .svc-fig .dia .draw { stroke-dashoffset: 0; }
.dia .orbit { stroke-dasharray: 3 9; opacity: 0.6; transform-origin: 300px 200px; animation: spin 14s linear infinite; }
.dia .fill-k { fill: var(--klein); }
.dia .pk { fill: var(--amber); }
.dia .pk-k { fill: var(--klein); }
.dia .dots circle { fill: var(--ink); opacity: 0.28; }
.dia .scan { fill: var(--klein); opacity: 0.8; }
.dia .cell { fill: var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }
[dir="rtl"] .dia { transform: scaleX(-1); }

/* Process */
.process { background: var(--klein); color: #fff; }
.process-pin { max-width: var(--max); margin-inline: auto; padding: clamp(80px, 14vh, 140px) var(--gutter); overflow: hidden; }
.process .sec-head p { color: rgba(255, 255, 255, 0.86); }
.process-viewport { margin-top: clamp(48px, 9vh, 96px); }
.process-track { list-style: none; position: relative; display: grid; gap: 56px; padding-inline-start: 40px; }
.pipe { position: absolute; inset-inline-start: 11px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, 0.28); }
.pipe-fill { position: absolute; inset: 0; background: var(--amber); transform-origin: top; transform: scaleY(var(--p, 1)); }
.step { position: relative; display: grid; gap: 10px; max-width: 30rem; }
.step-node {
  position: absolute; inset-inline-start: -40px; top: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--klein); border: 2px solid rgba(255, 255, 255, 0.5); transition: background-color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.step.is-on .step-node, .no-motion .step-node { background: var(--amber); border-color: var(--amber); transform: scale(1.15); }
.step-n { font-family: var(--display); font-weight: 400; font-size: clamp(4.5rem, 8vw, 7.5rem); line-height: 0.8; color: var(--lilac); }
.step h3 { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 0.92; }
.step p { color: rgba(255, 255, 255, 0.9); max-width: 24em; }
.process :focus-visible { outline-color: #fff; }

@media (min-width: 900px) {
  .process-track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-inline-start: 0; padding-top: 64px; }
  .pipe { inset-inline: 0; top: 11px; bottom: auto; width: auto; height: 2px; }
  .pipe-fill { transform-origin: var(--po, right); transform: scaleX(var(--p, 1)); }
  [dir="ltr"] .pipe-fill { --po: left; }
  .step-node { inset-inline-start: 0; top: -64px; }

  .process.is-h .process-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 72px; }
  .process.is-h .process-viewport { margin-top: clamp(32px, 6vh, 72px); }
  .process.is-h .process-track { display: flex; gap: 0; width: max-content; }
  .process.is-h .step { width: min(46vw, 640px); padding-inline-end: 8vw; }
  .process.is-h .step:last-child { width: min(36vw, 520px); }
}

/* Contact */
.contact {
  max-width: var(--max); margin-inline: auto; padding: clamp(96px, 16vh, 180px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start;
}
.contact-intro { display: grid; gap: 20px; position: sticky; top: 120px; }
.contact-intro > p { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--mist); max-width: 26em; }
.contact-intro .direct { color: var(--ink); }
.mail-link { direction: ltr; unicode-bidi: isolate; }
.form { display: grid; gap: 30px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; }
.opt { font-weight: 400; color: var(--mist); }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(var(--ink-rgb), 0.35);
  padding: 10px 0; font-size: 1.125rem; border-radius: 0; resize: vertical;
  background-image: linear-gradient(var(--klein), var(--klein)); background-repeat: no-repeat;
  background-size: 0 2px; background-position: right 0 bottom 0; transition: background-size 0.45s var(--ease), border-color 0.3s;
}
[dir="ltr"] .field input, [dir="ltr"] .field textarea { background-position: left 0 bottom 0; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input::placeholder, .field textarea::placeholder { color: #6d7287; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 2px; border-bottom-color: transparent; }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 6px 0 -3px var(--klein); }
.field [aria-invalid="true"] { border-bottom-color: #c4132e; }
.err { color: #b0102a; font-size: 0.95rem; min-height: 0; }
.err:empty { display: none; }
.form-foot { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 6px; }
.hint { font-size: 0.95rem; color: var(--mist); max-width: 26em; flex: 1 1 16em; }
.sent { background: var(--ink); color: #fff; border-radius: 28px; padding: 28px; display: grid; gap: 10px; }
.sent[hidden] { display: none; }
.sent:focus { outline: none; }
.sent-title { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.sent [data-email-text] { direction: ltr; unicode-bidi: isolate; font-weight: 600; }
.sent-alt { color: rgba(255, 255, 255, 0.85); font-size: 0.97rem; }
.copy { background: none; border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; border-radius: 999px; padding: 0 16px; min-height: 40px; cursor: pointer; margin-inline-start: 6px; margin-top: 6px; }
.copy:hover { border-color: #fff; }
.sent :focus-visible { outline-color: var(--amber); }

/* Footer */
.foot { position: relative; overflow: hidden; border-top: 1.5px solid var(--line); }
.foot-row {
  max-width: var(--max); margin-inline: auto; padding: 36px var(--gutter) 0;
  display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: baseline; font-size: 1rem;
}
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links .link { padding-block: 10px; }
.foot-links [data-email] { direction: ltr; unicode-bidi: isolate; }
.foot-c { color: var(--mist); }
.foot-mark { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); height: calc(var(--fitpx, 30vw) * 0.62); overflow: hidden; direction: ltr; }
.foot-word {
  display: block; font-family: var(--display); font-weight: 700; color: var(--klein);
  font-size: var(--fit, 30vw); line-height: 0.74; white-space: nowrap; width: max-content; letter-spacing: -0.01em; transform: translateY(var(--fy2, 0%));
}

/* Language wipe and cursor */
.wipe { position: fixed; inset: 0; z-index: 90; background: var(--klein); transform: scaleX(0); pointer-events: none; }
.cursor { display: none; }
.has-cursor .cursor {
  display: block; position: fixed; z-index: 95; top: 0; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid var(--klein); border-radius: 50%; pointer-events: none;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background-color 0.3s, border-color 0.3s, opacity 0.3s;
  mix-blend-mode: multiply;
}
.has-cursor .cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(var(--klein-rgb), 0.12); }
.has-cursor .cursor.is-text { opacity: 0; }
.has-cursor .cursor.is-hidden { opacity: 0; }
.has-cursor .cursor.on-dark { border-color: #fff; mix-blend-mode: normal; }

/* Tablet and phone */
@media (max-width: 1080px) {
  .nav { display: none; }
  .top { grid-template-columns: auto 1fr; }
}
@media (max-width: 899px) {
  .svc-wrap { grid-template-columns: 1fr; margin-top: 24px; }
  .svc-stage { display: none; }
  .svc { min-height: 0; padding-block: 36px; }
  .svc h3 { color: var(--ink); }
  .svc-fig { display: block; width: 100%; max-width: 360px; aspect-ratio: 1.25; background: var(--fog-2); border-radius: 28px; position: relative; margin-bottom: 8px; }
  .svc-fig .dia { position: absolute; inset: 4% 10%; width: 80%; height: 92%; }
  .contact { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
}
@media (max-width: 560px) {
  .wm-text { font-size: 1.85rem; }
  .lang { padding: 0 12px; }
  .btn-sm { padding: 0 16px; }
  .hero-inner { grid-template-rows: auto minmax(150px, 1fr) auto; }
  .hero-title { font-size: clamp(4rem, 21vw, 6rem); }
  .hero-cta { gap: 20px; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .statement { font-size: 1.6rem; }
  .form-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .svc h3 { color: var(--ink); }
}
