/* DIRECTION: technical drawing on paper (Swiss precision row, RTL). SEED: "measuresolve" = 12 → 12 % 8 = 4→ swapped to 1 (dark-technical was the previous project).
   REFERENCE: named precedent. Engineering dimension sheets (DIN 406 dimension lines) + Teenage Engineering spec pages.
   TYPE: Rubik 700/400 (Hebrew) + IBM Plex Mono for units, indices, dims.   SCALE: perfect fourth.
   BASE: off-white #f4f2ec / charcoal #14181c.   ACCENT: LiDAR teal #26d07c on dark (8.5:1), #0f6b3f as ink on paper (5.4:1 on the surface tint too).
   LAYOUT PRIMITIVE: a "measurement sheet" row, oversized unit figure + dimension line + image with caption, repeated 5x.
   MOTION PERSONALITY: mathematical (expo-out, no bounce).
   ONE MEMORABLE THING: every feature is introduced by its output unit (מ״מ, מ³, %·°, STL) set at poster size, sitting on a real dimension line. */

:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --ink: #14181c;
  --ink-2: #3a4148;
  --ink-3: #5d636a;   /* 5.4:1 on paper; the old value sat at 4.4 */
  --line: #14181c;
  --hair: rgba(20, 24, 28, .16);
  --accent: #26d07c;
  --accent-ink: #0f6b3f;   /* 5.4:1 on the surface tint; 4.8 held on paper but not on #ebe8df */
  --on-dark: #f4f2ec;
  --on-dark-muted: #b9bec2;
  --wa: #26d07c;

  --font-he: 'Rubik', 'Heebo', 'Noto Sans Hebrew', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --step--1: clamp(.83rem, .8rem + .15vw, .9rem);
  --step-0:  clamp(1.02rem, .98rem + .25vw, 1.15rem);
  --step-1:  clamp(1.33rem, 1.25rem + .4vw, 1.5rem);
  --step-2:  clamp(1.77rem, 1.6rem + .85vw, 2.25rem);
  --step-3:  clamp(2.2rem, 1.9rem + 1.6vw, 3.1rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.4rem);
  --step-5:  clamp(4.4rem, 2.6rem + 9vw, 9rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem;
  --space-24: 6rem; --space-32: 8rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 82rem;
  --radius-sm: 2px; --radius-md: 6px; --radius-pill: 999px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 180ms; --dur-base: 260ms; --dur-slow: 420ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-he);
  font-size: var(--step-0);
  line-height: 1.75;
  letter-spacing: 0;
  word-spacing: .05em;
  text-align: start;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.latin { font-family: var(--font-mono); font-weight: 500; font-size: .7em; color: var(--ink-3); vertical-align: .12em; }
[dir="ltr"] { unicode-bidi: isolate; }
.nowrap { white-space: nowrap; }
.unit sup { font-size: .42em; line-height: 0; vertical-align: .9em; margin-inline-start: .05em; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--accent-ink);
  margin-block-end: var(--space-4);
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.7vw, 3.6rem); font-weight: 700; line-height: 1.15; max-width: 22ch; }
h2 { font-size: var(--step-3); font-weight: 700; line-height: 1.2; max-width: 22ch; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.accent { color: var(--accent); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--on-dark-muted); max-width: 34ch; margin-block-start: var(--space-6); }
.sec-head { margin-block-end: var(--space-16); }
.sec-sub { color: var(--ink-2); max-width: 46ch; margin-block-start: var(--space-4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 3rem; padding-inline: var(--space-6);
  background: var(--wa); color: var(--ink);
  font-weight: 600; font-size: var(--step-0);
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: #3fe08e; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 2.5rem; padding-inline: var(--space-4); font-size: var(--step--1); }
.btn-lg { min-height: 3.5rem; padding-inline: var(--space-8); font-size: var(--step-1); }
.link-arrow { font-weight: 500; color: var(--on-dark-muted); border-block-end: 1px solid currentColor; padding-block-end: 2px; }
.link-arrow:hover { color: var(--on-dark); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 3.75rem; padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
}
.brand { display: inline-flex; align-items: baseline; gap: var(--space-2); font-weight: 500; white-space: nowrap; }
.wordmark { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; }
.brand-sep { color: var(--accent); }
.brand-dept { font-size: var(--step--1); color: var(--on-dark-muted); }
.topnav { display: flex; align-items: center; gap: var(--space-4); }
.toplink { font-size: var(--step--1); color: var(--on-dark-muted); white-space: nowrap; }
.toplink:hover { color: var(--on-dark); }

/* language switch. A quiet text button in the sheet's own mono voice */
.lang {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.5rem; min-width: 2.75rem; padding-inline: var(--space-3);
  margin: 0; border: 1px solid rgba(244, 242, 236, .28); border-radius: var(--radius-pill);
  background: none; color: var(--on-dark-muted);
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600; line-height: 1;
  letter-spacing: .02em; white-space: nowrap; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.lang::after { /* 44px touch target without a 44px-looking button */
  content: ""; position: absolute; inset-inline: 0; top: 50%; translate: 0 -50%; height: 2.75rem;
}
.lang:hover { color: var(--accent); border-color: var(--accent); }
.lang:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink); color: var(--on-dark);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::before { /* faint drafting grid, not decoration: it is the sheet */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244,242,236,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,242,236,.045) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-grid { position: relative; display: grid; gap: var(--space-12); align-items: center; }
.hero-copy .eyebrow { color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin-block-start: var(--space-8); }

.hero-units {
  display: grid; grid-template-columns: repeat(5, auto); justify-content: start;
  gap: var(--space-6);
  margin-block-start: var(--space-12);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid rgba(244,242,236,.18);
}
.hero-units dt { font-size: var(--step--1); color: var(--on-dark-muted); }
.hero-units dd { margin: 0; font-family: var(--font-mono), var(--font-he); font-weight: 600; font-size: var(--step-1); color: var(--on-dark); line-height: 1.2; }

/* the measured image: dimension lines on two sides */
.measured {
  position: relative;
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  grid-template-rows: 1.4rem 1fr auto;
  column-gap: var(--space-2); row-gap: var(--space-2);
  --dim-color: var(--accent);
}
.measured img { grid-column: 2; grid-row: 2; border-radius: var(--radius-md); }
.measured figcaption { grid-column: 2; grid-row: 3; }
.dim-top { grid-column: 2; grid-row: 1; }
.dim-side { grid-column: 1; grid-row: 2; }
figcaption { font-size: var(--step--1); color: var(--on-dark-muted); line-height: 1.5; padding-block-start: var(--space-2); }
.features figcaption { color: var(--ink-3); }

/* ---------- dimension line component ---------- */
.dim {
  --dim-color: var(--accent-ink);
  position: relative; display: block; height: 1.4rem;
  color: var(--dim-color);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; line-height: 1;
}
.dim::before { /* the line */
  content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: currentColor;
}
.dim::after { /* end ticks */
  content: ""; position: absolute; inset-inline: 0; top: 50%; height: 9px; translate: 0 -50%;
  border-inline: 1px solid currentColor;
}
.dim b { /* centred by auto inline margins. `translate` has no logical form,
            so a percentage nudge would mis-centre the moment dir flips */
  position: absolute; inset-inline: 0; top: 50%; translate: 0 -50%;
  width: max-content; margin-inline: auto;
  padding-inline: var(--space-2); font-weight: 500; white-space: nowrap; z-index: 1;
  background: var(--paper);
}
.hero .dim b { background: var(--ink); }
.dim-side { height: auto; width: 1.4rem; }
.dim-side::before { inset: 0 auto 0 50%; width: 1px; height: auto; }
.dim-side::after { inset: 0 auto 0 50%; width: 9px; height: auto; translate: -50% 0; border-inline: 0; border-block: 1px solid currentColor; }
/* the vertical dimension line is symmetric about its own centre: physical
   left/translate here are direction-free on purpose, so it must not mirror. */
.dim-side b { inset: 50% auto auto 50%; translate: -50% -50%; margin-inline: 0; writing-mode: vertical-rl; rotate: 180deg; padding-inline: 0; padding-block: var(--space-2); }

/* ---------- features ---------- */
.features { padding-block: clamp(4rem, 10vw, 9rem); }
.feat {
  display: grid; gap: var(--space-8);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  border-block-start: 1px solid var(--hair);
}
.feat:last-of-type { border-block-end: 1px solid var(--hair); }
.feat-copy { display: flex; flex-direction: column; }
/* the index and the unit hug the reading edge of the column. align-self on a
   column flex container follows the CONTAINER's direction, so a dir="ltr"
   chip ("01", "STL", "%·°") still lands on the Hebrew right / English left. */
.feat-idx { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-3); order: -2; align-self: start; }
.feat-copy .unit { align-self: start; }
.unit {
  font-family: var(--font-mono), var(--font-he); font-weight: 600;
  font-size: var(--step-5); line-height: .95; letter-spacing: -.02em;
  color: var(--ink);
  margin-block: var(--space-2) var(--space-3);
  order: -1;
  overflow-wrap: anywhere;
}
.unit:lang(he) { letter-spacing: 0; }
.feat .dim { margin-block-end: var(--space-6); max-width: 22rem; }
.feat h3 { font-size: var(--step-2); }
.feat p { margin-block-start: var(--space-3); color: var(--ink-2); max-width: 44ch; }
.gives { color: var(--ink); }
.gives strong { color: var(--accent-ink); font-weight: 600; }
.feat-fig img { border-radius: var(--radius-md); background: var(--paper-2); }

/* ---------- proof ---------- */
.proof { background: var(--paper-2); padding-block: clamp(4rem, 9vw, 8rem); }
.proof-list { display: grid; gap: var(--space-4); }
.proof-list a {
  display: grid; gap: var(--space-2);
  padding: var(--space-6);
  background: var(--paper);
  border-radius: var(--radius-md);
  transition: transform var(--dur-base) var(--ease-out);
}
.proof-list a:hover { transform: translateY(-2px); }
.proof-name { font-family: var(--font-mono); font-weight: 600; font-size: var(--step-1); }
.proof-desc { color: var(--ink-2); font-size: var(--step-0); }
.proof-url { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-ink); }
.team { margin-block-start: var(--space-12); color: var(--ink-2); max-width: 60ch; display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-4); align-items: center; }
.dim-inline { height: 1rem; }
.dim-inline::after { height: 7px; }

/* ---------- how ---------- */
.how { padding-block: clamp(4rem, 9vw, 8rem); }
.steps { display: grid; gap: var(--space-8); position: relative; counter-reset: step; }
.steps li { position: relative; padding-block-start: var(--space-4); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-ink); font-weight: 500;
  display: block; margin-block-end: var(--space-2);
}
.step-tick { position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 1px; background: var(--line); }
.step-tick::before { content: ""; position: absolute; inset-inline-start: 0; top: -4px; width: 1px; height: 9px; background: var(--line); }
.steps li p { color: var(--ink-2); margin-block-start: var(--space-2); max-width: 32ch; }

/* ---------- cta ---------- */
.cta { background: var(--ink); color: var(--on-dark); padding-block: clamp(4rem, 9vw, 8rem); }
.cta-grid { display: grid; gap: var(--space-8); align-items: center; }
.cta h2 { max-width: 20ch; }
.cta p { color: var(--on-dark-muted); margin-block-start: var(--space-4); max-width: 40ch; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--on-dark-muted); padding-block: var(--space-12) var(--space-16); border-block-start: 1px solid rgba(244,242,236,.12); }
.foot-grid { display: grid; gap: var(--space-8); }
.foot .brand { color: var(--on-dark); }
.foot-note { margin-block-start: var(--space-4); font-size: var(--step--1); max-width: 40ch; }
/* --ink-3 is an ink token, meant for the paper surfaces; the footer sits on
   --ink, so it needs the on-dark muted token that already exists. Was 3.61:1,
   now 9.5:1. */
.foot-label { font-family: var(--font-mono); font-size: .72rem; color: var(--on-dark-muted); margin-block-end: var(--space-2); }
.foot-nav { display: grid; gap: var(--space-2); font-size: var(--step--1); }
.foot-nav a:hover { color: var(--on-dark); }
.tag { display: inline-block; margin-inline-start: var(--space-2); padding-inline: var(--space-2); font-family: var(--font-mono); font-size: .68rem; color: var(--accent); border: 1px solid currentColor; border-radius: var(--radius-pill); line-height: 1.5; }

/* ---------- motion ---------- */
.stagger > * { opacity: 0; transform: translateY(10px); animation: rise var(--dur-slow) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
.hero-fig { opacity: 0; animation: rise var(--dur-slow) var(--ease-out) 300ms forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .stagger > *, .hero-fig, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 47.99rem) {
  .brand-dept { display: none; }
  .toplink { display: none; }
  .hero-units { grid-template-columns: repeat(3, auto); gap: var(--space-4) var(--space-6); }
  .measured { grid-template-columns: 1.1rem 1fr; }
  .cta-row { gap: var(--space-4); }
}
@media (min-width: 48rem) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .feat { grid-template-columns: 5fr 7fr; align-items: center; gap: var(--space-12); }
  .feat:nth-of-type(even) .feat-copy { order: 2; }
  .proof-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .cta-grid { grid-template-columns: 1fr auto; }
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: 6fr 7fr; gap: var(--space-16); }
  .feat { grid-template-columns: 4fr 8fr; }
}

/* the credentials line, now with the person in it: the URSI photograph says
   "radio science" better than the sentence does */
.team-card {
  margin-block-start: var(--space-12);
  display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr;
  gap: var(--space-6); align-items: center; max-width: 44rem;
}
.team-card .team { margin-block-start: 0; display: block; }
.team-card__img { inline-size: 100%; block-size: auto; border-radius: 8px; display: block; }
@media (max-width: 560px) { .team-card { grid-template-columns: 1fr; } .team-card__img { max-inline-size: 16rem; } }

/* the shared clients pause control dims itself with opacity, which lands at
   3.84:1 on this paper; solid colour keeps the look and the contrast */
.cw-clients__pause { opacity: 1 !important; color: var(--ink-2); }
