/* Neutrino · Early Signal D "Beam" · צעד אחד לפני האור
   A warm beam of light moving forward, and one blue dot already a little ahead of it.
   Light is always sunrise orange, fading in from nothing. The dot is deep sea on light, sky on dark.
   Contrast (WCAG AA) is noted next to each text colour. Sunrise is never used for text on light
   backgrounds (2:1); it is decoration only. */

/* ============ Tokens ============ */
:root{
  --morning:#F7FAFB;        /* page */
  --white:#FFFFFF;          /* cards */
  --ink:#1B2A33;            /* text, dark bands — 14.6:1 on white */
  --ink-2:#3F4F58;          /* body copy on light — 8.4:1 */
  --slate:#56656E;          /* secondary text — 5.8:1 on morning; also outline borders (non-text 3:1+) */
  --line:#DDE7EB;           /* hairlines, card edges (decorative) */
  --sunrise:#F2A65A;        /* the beam (decorative on light; 7.3:1 on ink) */
  --sea:#1F6F8B;            /* the dot, links, primary buttons — 5.7:1 on white, white text on it 5.7:1 */
  --sea-hover:#185A72;
  --sky:#5EC2E8;            /* the dot on dark — 7.3:1 on ink */
  --on-dark:#F7FAFB;
  --on-dark-soft:#B8CBD2;   /* secondary text on ink — 8.8:1 */

  --font:"Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono:"IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --measure:62ch;
  --gutter:clamp(20px, 5vw, 64px);
  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ============ Base ============ */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--morning); color:var(--ink);
  font-family:var(--font); font-size:1.0625rem; font-weight:400; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img, svg{ max-width:100%; }
a{ color:var(--sea); text-underline-offset:.2em; }
a:hover{ color:var(--sea-hover); }
p{ margin:0; }
h1,h2,h3{ margin:0; font-weight:300; line-height:1.08; }
h1{ font-size:clamp(2.75rem, 7vw, 5.25rem); letter-spacing:-0.01em; }
h2{ font-size:clamp(2rem, 4vw, 3.1rem); }
h3{ font-size:1.375rem; font-weight:400; line-height:1.3; }

/* Bilingual: only the active language is rendered (and so only it reaches screen readers) */
html[lang="en"] [lang="he"], html[lang="he"] [lang="en"]{ display:none !important; }

.wrap{ max-width:1180px; margin-inline:auto; padding-inline:var(--gutter); }
.mono, .eyebrow{ font-family:var(--mono); font-size:.8125rem; letter-spacing:.02em; }
.eyebrow{ color:var(--slate); display:block; }
/* Plex Mono has no Hebrew glyphs: Hebrew labels use Heebo instead of a fallback monospace */
html[lang="he"] .eyebrow{ font-family:var(--font); font-size:.875rem; letter-spacing:0; }

/* ============ Accessibility helpers ============ */
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; inset-inline-start:16px; top:-100px; z-index:100;
  background:var(--ink); color:#fff; padding:12px 18px; border-radius:999px;
  font-weight:600; text-decoration:none;
}
.skip-link:focus{ top:12px; color:#fff; }
:focus-visible{ outline:3px solid var(--sea); outline-offset:3px; border-radius:6px; }
.on-dark :focus-visible{ outline-color:var(--sky); }
[tabindex="-1"]:focus{ outline:none; }

/* ============ The mark: beam + dot ============ */
.mark{ flex:none; height:auto; }
.mark .dot{ fill:var(--sea); }
.on-dark .mark .dot{ fill:var(--sky); }
html[dir="rtl"] .mark{ transform:scaleX(-1); }

/* ============ Header ============ */
.site-header .wrap{ display:flex; align-items:center; gap:28px; min-height:84px; flex-wrap:wrap; }
.wordmark{ display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font-size:1.5rem; font-weight:300; line-height:1; }
.wordmark:hover{ color:var(--ink); }
.wordmark .mark{ width:44px; }
.nav{ margin-inline-start:auto; }
.nav ul{ list-style:none; margin:0; padding:0; display:flex; gap:28px; font-size:.95rem; }
.nav a{ color:var(--ink-2); text-decoration:none; display:inline-block; padding-block:10px; }
.nav a:hover{ color:var(--sea); text-decoration:underline; }
.lang-toggle{
  font:inherit; font-size:.95rem; color:var(--ink-2); background:transparent; cursor:pointer;
  border:1px solid transparent; border-radius:999px; padding:8px 14px; min-height:44px; min-width:44px;
}
.lang-toggle:hover{ border-color:var(--slate); color:var(--ink); }
/* The toggle names the *other* language in that language, so it opts out of the bilingual hiding rule */
.lang-toggle .opt[lang]{ display:inline !important; }
html[lang="en"] .lang-toggle .show-he, html[lang="he"] .lang-toggle .show-en{ display:none !important; }

/* ============ Buttons (pills) ============ */
.actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; min-height:48px;
  padding:12px 24px; border-radius:999px; border:1px solid transparent;
  font-weight:600; font-size:1rem; text-decoration:none;
  transition:background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary{ background:var(--sea); color:#fff; }
.btn-primary:hover{ background:var(--sea-hover); color:#fff; box-shadow:0 8px 22px -10px rgba(31,111,139,.8); }
.btn-ghost{ border-color:var(--slate); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--ink); color:var(--ink); background:var(--white); }
.on-dark .btn-primary{ background:var(--sky); color:var(--ink); }
.on-dark .btn-primary:hover{ background:#8AD3EF; color:var(--ink); box-shadow:none; }
.btn:hover{ transform:translateY(-1px); }

/* ============ Hero: a bright card with the beam along its floor ============ */
.hero{ padding-block:8px clamp(40px, 6vw, 72px); }
.hero-card{
  position:relative; overflow:hidden; background:var(--white); border-radius:28px; box-shadow:0 0 0 1px var(--line);
  padding:clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px) clamp(150px, 16vw, 190px);
}
.hero h1{ margin-top:16px; max-width:11ch; }
.hero .lede{ margin-top:24px; max-width:44ch; font-size:clamp(1.075rem, 1.6vw, 1.2rem); color:var(--ink-2); }
/* The beam: two soft pills fading in from nothing, the dot one step past their end (from the Beam artboard) */
:root{ --beam-dir:to right; --beam-origin:left center; }
html[dir="rtl"]{ --beam-dir:to left; --beam-origin:right center; }
.hero-beam{ position:absolute; inset-inline:0; bottom:clamp(28px, 4vw, 44px); height:80px; pointer-events:none; }
.beam-outer, .beam-inner, .beam-dot{ position:absolute; }
.beam-outer{
  top:0; height:80px; inset-inline-start:-80px; inset-inline-end:16%; border-radius:40px;
  background:linear-gradient(var(--beam-dir), rgba(242,166,90,0), rgba(242,166,90,.25));
}
.beam-inner{
  top:20px; height:40px; inset-inline-start:-40px; inset-inline-end:19.8%; border-radius:20px;
  background:linear-gradient(var(--beam-dir), rgba(242,166,90,0) 0%, rgba(242,166,90,.55) 75%, rgba(242,166,90,.95) 100%);
}
.beam-dot{ top:28px; width:24px; height:24px; border-radius:50%; background:var(--sea); inset-inline-start:calc(88.6% - 12px); }
.on-dark .beam-dot{ background:var(--sky); }

/* ============ Proof ============ */
.proof{ padding-block:clamp(40px, 6vw, 64px); }
.proof .wrap{ display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:28px 64px; align-items:center; }
.stat .num{ display:block; font-size:clamp(3.2rem, 6vw, 4.75rem); font-weight:300; line-height:1; color:var(--sea); }
.stat .label{ display:block; margin-top:12px; color:var(--ink-2); max-width:30ch; }
.clients{
  list-style:none; margin:14px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:10px 28px;
  font-size:clamp(1.1rem, 1.7vw, 1.3rem);
}
.clients li{ display:flex; align-items:center; gap:10px; }
.clients li::before{ content:""; flex:none; width:8px; height:8px; border-radius:50%; background:var(--sea); }
.proof-note{ margin-top:18px; font-size:.95rem; color:var(--slate); max-width:var(--measure); }

/* ============ Sections ============ */
section.block{ padding-block:clamp(64px, 9vw, 120px); }
section.block + section.block{ padding-top:0; }
.section-head{ max-width:var(--measure); margin-bottom:48px; }
.section-head .eyebrow{ margin-bottom:14px; }
.section-head p{ margin-top:16px; color:var(--ink-2); font-size:1.125rem; }

/* Services */
.services{ display:grid; gap:16px; }
.service{
  display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:16px 56px;
  background:var(--white); border-radius:24px; box-shadow:0 0 0 1px var(--line); padding:clamp(28px, 4vw, 44px);
}
.service h3{ font-size:clamp(1.6rem, 2.6vw, 2.1rem); font-weight:300; }
.service h3 .mono{ display:block; color:var(--slate); margin-bottom:10px; font-size:.8125rem; }
.service .summary{ font-size:1.1rem; color:var(--ink-2); max-width:var(--measure); }
.service dl{ display:grid; grid-template-columns:auto 1fr; gap:6px 20px; margin:20px 0 0; font-size:.97rem; color:var(--slate); }
.service dt{ font-weight:600; color:var(--ink); }
.service dd{ margin:0; }

/* Audiences */
.audiences{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; list-style:none; margin:0; padding:0; }
.audience{ background:var(--white); border-radius:24px; box-shadow:0 0 0 1px var(--line); padding:32px 30px 36px; }
.audience .mark{ width:72px; display:block; margin-bottom:20px; }
.audience h3{ margin-bottom:10px; }
.audience p{ color:var(--ink-2); }

/* Process: three stops along one beam */
.process{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:40px; position:relative; }
.process::before{
  /* ends just short of the third stop, so the last dot sits one step past the light */
  content:""; position:absolute; top:4px; inset-inline-start:0; inset-inline-end:calc((100% - 80px) / 3 + 18px); height:26px; border-radius:13px;
  background:linear-gradient(var(--beam-dir), rgba(242,166,90,0), rgba(242,166,90,.95));
  transform-origin:var(--beam-origin);
}
.process li{ position:relative; padding-top:62px; }
.process li::before{
  content:""; position:absolute; top:7px; inset-inline-start:0; width:20px; height:20px; border-radius:50%;
  background:var(--white); border:2px solid var(--sea);
}
.process li:last-child::before{ background:var(--sea); }
.process .mono{ display:block; color:var(--slate); margin-bottom:8px; }
.process h3{ margin-bottom:8px; }
.process p{ color:var(--ink-2); }

/* Why */
.why{ display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:32px 64px; align-items:start; }
.why h2{ margin-top:14px; }
.why blockquote{ margin:0; font-size:clamp(1.4rem, 2.4vw, 1.9rem); font-weight:300; line-height:1.4; max-width:34ch; }
.why .note{ margin-top:22px; color:var(--ink-2); max-width:var(--measure); }

/* Contact: ink band, the beam reaching toward the sky dot */
.contact{ position:relative; overflow:hidden; background:var(--ink); color:var(--on-dark); padding-block:clamp(72px, 9vw, 112px) clamp(120px, 12vw, 150px); }
.contact .wrap{ position:relative; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:32px; }
.contact h2{ max-width:18ch; }
.contact p{ margin-top:16px; color:var(--on-dark-soft); max-width:48ch; }
.contact .eyebrow{ color:var(--sunrise); margin-bottom:14px; }
.contact .hero-beam{ bottom:28px; height:60px; }

/* Footer */
footer{ background:#121D24; color:var(--on-dark-soft); font-size:.9rem; }
footer .wrap{ display:flex; flex-wrap:wrap; gap:12px 28px; justify-content:space-between; align-items:center; padding-block:26px; }
footer a{ color:var(--on-dark); }
footer a:hover{ color:var(--sky); }
footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px 24px; }

/* Long-form pages (accessibility statement) */
.prose{ max-width:72ch; padding-block:clamp(40px, 7vw, 88px); }
.prose h1{ font-size:clamp(2.2rem, 5vw, 3.4rem); margin-bottom:24px; }
.prose h2{ font-size:1.5rem; font-weight:400; margin:40px 0 12px; }
.prose p, .prose li{ color:var(--ink-2); }
.prose p + p{ margin-top:12px; }
.prose ul{ padding-inline-start:1.3em; }
.prose li{ margin-block:6px; }

/* ============ Responsive ============ */
@media (max-width: 900px){
  .nav{ display:none; }
  .lang-toggle{ margin-inline-start:auto; border-color:var(--line); }
  .service, .why, .proof .wrap{ grid-template-columns:1fr; }
  .audiences{ grid-template-columns:1fr; }
  .process{ grid-template-columns:1fr; gap:36px; }
  .process::before{
    top:0; bottom:calc(var(--last-step-h, 24px) + 13px); inset-inline:-3px auto; width:26px; height:auto;
    background:linear-gradient(to bottom, rgba(242,166,90,0), rgba(242,166,90,.95)); transform-origin:center top !important;
  }
  .process li{ padding-top:0; padding-inline-start:48px; }
  .process li::before{ top:5px; }
}

/* ============ Motion ============
   site.js adds .reveal / .in. Nothing loops, nothing flashes, every sequence ends within ~3s (WCAG 2.2.2).
   Without JS, or with reduced motion, the page is fully static and fully visible. */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .9s var(--ease), transform .9s var(--ease); transition-delay:var(--d, 0ms); }
.reveal.in{ opacity:1; transform:none; }

/* The beam grows toward the dot; the dot is already there, a step ahead */
.js-motion .beam-outer, .js-motion .beam-inner{ transform:scaleX(0); transform-origin:var(--beam-origin); transition:transform 2.2s var(--ease) .5s; }
.js-motion .beam-dot{ opacity:0; scale:.4; transition:opacity .6s ease .2s, scale .7s var(--ease) .2s; }
.js-motion .in .beam-outer, .js-motion .in .beam-inner{ transform:scaleX(1); }
.js-motion .in .beam-dot{ opacity:1; scale:1; }

.js-motion .process::before{ transform:scaleX(0); transition:transform 1.6s var(--ease) .3s; }
.js-motion .process.in::before{ transform:scaleX(1); }
@media (max-width: 900px){
  .js-motion .process::before{ transform:scaleY(0); }
  .js-motion .process.in::before{ transform:scaleY(1); }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ transition:none !important; animation:none !important; }
  .btn:hover{ transform:none; }
}
