/* WayScan marketing site.
   Palette: an underground garage at night. Asphalt and concrete greys, fluorescent tube white,
   exit-sign green for actions, sodium amber only for light in the dark scenes.
   Layout uses logical properties throughout so Hebrew (dir=rtl) mirrors without overrides. */

:root {
  --asph: #1D201F;
  --asph-2: #2A2E2C;
  --asph-3: #343936;
  --tube: #F3F4F1;
  --white: #FFFFFF;
  --conc: #D9DAD5;
  --conc-2: #C4C6C0;
  --graph: #545956;
  --muted: #6F736F; /* large text only (3:1+) */
  --step-off: #858984; /* inactive step words: 3.2:1 on tube white (large text) */
  --green: #1D7A4E;
  --green-2: #16633F;
  --amber: #E8A13A;
  --red: #B3362E; /* borders and rings (3:1+); text uses --red-ink */
  --red-ink: #7E241F; /* error text: 6.9:1 on concrete, 9.7:1 on white */

  --font-display: "Cutive Mono", "Noto Serif Hebrew", "Courier New", monospace;
  --font-ui: "Schibsted Grotesk", "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  /* Cutive Mono sits in wide typewriter cells; pulling the tracking in makes the display lines read
     as words rather than letters. -l for 28px and up, -m for 19-27px. Hebrew is never tracked. */
  --track-l: -.045em;
  --track-m: -.03em;

  --gutter: clamp(16px, 2vw, 28px);
  --max: 1440px;
  --space-section: clamp(104px, 12vw, 176px);
  --chrome-h: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--green);

  color-scheme: light;
}
/* Hebrew: the Hebrew faces come first so spaces and punctuation are not set in the wide mono. */
html:lang(he) {
  --font-display: "Noto Serif Hebrew", "Cutive Mono", "Courier New", serif;
  --font-ui: "IBM Plex Sans Hebrew", "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --track-l: 0;
  --track-m: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  background: var(--asph);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--asph);
  color: var(--asph);
  font: 400 15px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Hebrew is shown only after its dictionary is applied (boot.js adds the class); the animation
   is a no-JS-failure fallback that reveals the page after 2.5 s regardless. */
.i18n-pending body { visibility: hidden; animation: ws-reveal 0s linear 2.5s forwards; }
@keyframes ws-reveal { to { visibility: visible; } }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, input, select, textarea, label { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgba(29, 122, 78, .16); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
/* amber rings on dark (7.5:1 on asphalt); white cards inside a dark area go back to green (5.3:1 on
   white, amber would be 2.2:1) */
.on-dark { --focus: var(--amber); }
.on-dark .fcard, .on-dark .mcard { --focus: var(--green); }

.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; inset-inline-start: var(--gutter); top: 10px; z-index: 100;
  padding: 10px 14px; background: var(--white); color: var(--asph); border-radius: 4px;
  transform: translateY(-160%); transition: transform .2s var(--ease); text-decoration: none; font-weight: 600;
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--track-l);
}
:lang(he) .display, :lang(he).display { font-weight: 300; }

.label {
  font: 400 19px/1.3 var(--font-display);
  color: var(--graph);
  letter-spacing: var(--track-m);
}
:lang(he) .label { font-weight: 400; }
.label--light { color: rgba(243, 244, 241, .72); }


/* ---------- Buttons and links ---------- */
.sq { display: inline-block; width: 5px; height: 5px; background: currentColor; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: var(--chrome-h); padding-inline: 18px 16px;
  border: 0; border-radius: 4px; text-decoration: none;
  font: 600 11.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .2s, box-shadow .2s, color .2s;
}
:lang(he) .btn { letter-spacing: .02em; font-size: 13px; }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-2); }
.btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1px rgba(243, 244, 241, .38); }
.btn--ghost:hover { background: rgba(243, 244, 241, .1); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* tern-like text link: label and square on one line, a hatched bar beneath */
.link-cta {
  display: inline-flex; flex-direction: column; gap: 9px; min-width: 190px;
  color: var(--asph); text-decoration: none;
  font: 600 11.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
}
:lang(he) .link-cta { letter-spacing: .02em; font-size: 13px; }
.link-cta__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.link-cta::after {
  content: ""; height: 6px;
  background: repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 3.5px);
  opacity: .5; transition: opacity .2s;
}
.link-cta:hover::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .link-cta:hover::after { animation: hatch 1.2s linear infinite; }
}
@keyframes hatch { to { background-position: 14px 0; } }
.link-cta--light { color: var(--tube); }

/* ---------- Logo ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--asph);
  font: 600 17px/1 var(--font-ui); letter-spacing: -.01em;
}
.brand__mark { width: 26px; height: 26px; flex: none; --mark-bg: var(--asph); --mark-arrow: var(--amber); --mark-dot: var(--tube); }
.brand--light { color: var(--tube); }
.brand--light .brand__mark { --mark-bg: var(--tube); --mark-dot: var(--asph); }

/* ---------- Floating chrome ---------- */
/* viewport-fit=cover: the floating chrome, gutters and hero copy keep clear of notches (physical
   sides on purpose, the safe areas are physical) */
.chrome {
  position: fixed; z-index: 50; top: max(14px, env(safe-area-inset-top));
  left: max(var(--gutter), env(safe-area-inset-left)); right: max(var(--gutter), env(safe-area-inset-right));
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.chrome__left { width: clamp(300px, 27vw, 396px); }

.navbox {
  display: flex; align-items: center; gap: 14px; height: var(--chrome-h);
  padding-inline: 14px 6px; background: var(--white); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(29, 32, 31, .08), 0 14px 32px -18px rgba(29, 32, 31, .45);
}
.navbox .brand { margin-inline-end: auto; }

.lang { display: flex; align-items: center; gap: 2px; }
.lang a {
  display: inline-flex; align-items: center; min-height: 32px; padding-inline: 6px;
  font: 600 11.5px/1 var(--font-ui); letter-spacing: .08em; color: var(--muted); text-decoration: none;
}
.lang a[lang="he"] { font-size: 13px; letter-spacing: 0; }
.lang a:hover { color: var(--asph); }
.lang a[aria-current="true"] { color: var(--asph); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lang__sep { width: 1px; height: 12px; background: var(--conc-2); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 36px; padding-inline: 12px;
  border: 0; background: none; border-radius: 3px;
  font: 600 11.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--asph);
}
:lang(he) .menu-btn { letter-spacing: .02em; font-size: 13px; }
.menu-btn:hover { background: var(--tube); }
.menu-btn__icon {
  width: 3px; height: 3px; border-radius: 50%; background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; transition: transform .3s var(--ease);
}
.menu-btn[aria-expanded="true"] .menu-btn__icon { transform: rotate(45deg); }

.chrome__right {
  display: flex; align-items: stretch; height: var(--chrome-h); background: var(--white); border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(29, 32, 31, .08), 0 14px 32px -18px rgba(29, 32, 31, .45);
}
.tagline { display: flex; align-items: center; width: 200px; padding-inline: 14px; font-size: 12.5px; line-height: 1.3; color: var(--graph); }
.chrome__right .btn { border-radius: 0; min-width: 132px; }

/* news ticker under the nav box, with the switch that pauses the page's moving parts */
.newsbar {
  display: flex; gap: 4px; margin-top: 6px;
  transition: opacity .35s, transform .35s var(--ease), visibility .35s;
}
.ticker {
  flex: 1; min-width: 0; height: 30px; overflow: hidden; border-radius: 4px;
  background: rgba(29, 32, 31, .66); color: rgba(243, 244, 241, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; line-height: 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.motion-btn {
  display: none; flex: none; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 4px;
  background: rgba(29, 32, 31, .66); color: rgba(243, 244, 241, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: color .2s, background-color .2s;
}
.js .motion-btn { display: inline-flex; }
.motion-btn:hover { color: var(--white); background: rgba(29, 32, 31, .86); }
.motion-btn__icon { width: 8px; height: 10px; border-inline: 2.5px solid currentColor; }
/* a play triangle while paused (media glyphs keep their direction in RTL) */
.motion-btn[aria-pressed="true"] .motion-btn__icon {
  width: 9px; border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.motion-paused .ticker__track { animation-play-state: paused !important; }
.ticker__track { display: flex; width: max-content; }
.ticker__item { display: flex; gap: 8px; padding-inline: 14px 26px; white-space: nowrap; }
.ticker__item b { font-weight: 600; color: var(--amber); }
.ticker__item a { color: var(--white); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ticker__item time, .ticker__date { color: rgba(243, 244, 241, .62); }
@media (prefers-reduced-motion: no-preference) {
  .js .ticker__track { animation: ticker 52s linear infinite; }
  .js [dir="rtl"] .ticker__track, .js[dir="rtl"] .ticker__track { animation-name: ticker-rtl; }
  .ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }
.past-hero .newsbar, .menu-open .newsbar { opacity: 0; visibility: hidden; transform: translateY(-6px); }
/* the pause switch alone, under the nav box (404 page) */
.chrome__tools { display: flex; margin-top: 6px; }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto;
  padding: calc(14px + var(--chrome-h) + 52px) var(--gutter) 32px;
  overscroll-behavior: contain;
  background: rgba(29, 32, 31, .5);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.menu[hidden] { display: none; }
.menu__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 12px; }
.mcard { background: var(--white); border-radius: 10px; padding: 16px 18px 26px; min-height: 320px; }
.mcard__title { font: 500 12.5px/1.4 var(--font-ui); color: var(--graph); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--conc); }
.mcard__list a, .fcard__list a {
  display: inline-block; padding-block: 3px; text-decoration: none;
  font: 400 21px/1.35 var(--font-display); letter-spacing: var(--track-m); color: var(--asph);
}
:lang(he) .mcard__list a, :lang(he) .fcard__list a { font-weight: 300; }
.mcard__list a:hover, .fcard__list a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.mcard__sub { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--conc); }
.mcard__sub .lang a { font-size: 13px; min-height: 36px; }
@media (prefers-reduced-motion: no-preference) {
  .menu.is-open .mcard { animation: card-in .45s var(--ease) both; }
  .menu.is-open .mcard:nth-child(2) { animation-delay: .05s; }
  .menu.is-open .mcard:nth-child(3) { animation-delay: .1s; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 58% 42%, #3A3328 0%, var(--asph-2) 45%, var(--asph) 85%);
  color: var(--tube);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(29, 32, 31, .92) 0%, rgba(29, 32, 31, .55) 30%, rgba(29, 32, 31, 0) 58%),
    linear-gradient(to bottom, rgba(29, 32, 31, .55) 0%, rgba(29, 32, 31, 0) 22%);
}
.hero__dim { position: absolute; inset: 0; background: var(--asph); opacity: 0; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .hero__dim { animation: hero-dim linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
}
@keyframes hero-dim { to { opacity: .72; } }

.hero__inner {
  position: absolute; bottom: max(clamp(28px, 6vh, 64px), env(safe-area-inset-bottom));
  left: max(var(--gutter), env(safe-area-inset-left)); right: max(var(--gutter), env(safe-area-inset-right));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.hero__title {
  font: 400 clamp(40px, 6.1vw, 92px)/1.04 var(--font-display); letter-spacing: var(--track-l);
  color: var(--white); margin-bottom: clamp(18px, 2.4vw, 28px);
}
:lang(he) .hero__title { font-weight: 200; letter-spacing: 0; line-height: 1.1; font-size: clamp(40px, 6.4vw, 96px); }
.hero__sub { max-width: 46ch; margin-bottom: 26px; font-size: 15.5px; color: rgba(243, 244, 241, .8); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__card {
  flex: none; width: 300px; padding: 14px 14px 8px; border-radius: 10px;
  background: rgba(29, 32, 31, .52); border: 1px solid rgba(243, 244, 241, .1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero__card h2 { font: 500 12.5px/1.4 var(--font-ui); color: rgba(243, 244, 241, .78); padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(243, 244, 241, .13); }
.hero__card a {
  display: flex; align-items: center; gap: 14px; padding-block: 7px; text-decoration: none; color: var(--white);
  font: 400 19px/1.15 var(--font-display); letter-spacing: var(--track-m);
}
:lang(he) .hero__card a { font-weight: 300; }
.hero__card img { width: 64px; height: 44px; border-radius: 3px; }
.hero__card a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* The page's one orchestrated moment: hero.js switches the garage lights on (the tubes flicker, the
   feature points come up, then the floor arrows), and the words arrive as the light does. Runs once,
   after the Hebrew dictionary is in (i18n-pending), and never under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.i18n-pending) .hero__title { animation: hero-in 1.1s var(--ease) .45s both; }
  .js:not(.i18n-pending) .hero__sub { animation: hero-in 1s var(--ease) .7s both; }
  .js:not(.i18n-pending) .hero__ctas { animation: hero-in 1s var(--ease) .8s both; }
  .js:not(.i18n-pending) .hero__card { animation: hero-in 1s var(--ease) 1s both; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- The sheet ---------- */
.sheet {
  position: relative; z-index: 1;
  background: var(--tube); border-radius: 16px 16px 0 0;
  padding-block: clamp(88px, 10vw, 150px) var(--space-section);
}
.sheet__top { position: absolute; top: 0; inset-inline: 0; height: 1px; }
.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.sheet > section { margin-bottom: var(--space-section); }
.sheet > section:last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); }

/* statement */
.statement { align-items: start; }
.statement__art { grid-column: 1 / span 2; }
.statement__art img { width: 100%; max-width: 200px; border-radius: 6px; }
.statement__art figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--graph); max-width: 22ch; }
.statement__text { grid-column: 4 / span 6; font-size: clamp(21px, 2.5vw, 37px); line-height: 1.22; }
:lang(he) .statement__text { line-height: 1.3; }
.statement .link-cta { grid-column: 10 / span 3; justify-self: end; margin-top: 10px; }

/* why */
.why { align-items: center; }
.why__art { grid-column: 1 / span 4; grid-row: 1; z-index: 1; margin-block: 48px; }
.why__art img { width: 100%; border-radius: 8px; }
.why__panel {
  grid-column: 4 / -1; grid-row: 1; align-self: stretch;
  background: var(--conc); border-radius: 12px;
  padding-block: clamp(48px, 6vw, 88px); padding-inline: 24% clamp(24px, 5vw, 80px);
}
.why__panel .label { padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid #A9ACA6; max-width: 34rem; }
.why__tabs { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
.bigtab {
  position: relative; padding: 2px 0; padding-inline-start: .9em; border: 0; background: none; text-align: start;
  font: 400 clamp(24px, 2.3vw, 33px)/1.22 var(--font-display); letter-spacing: var(--track-l); color: var(--muted);
  transition: color .2s;
}
:lang(he) .bigtab { font-weight: 300; }
.bigtab::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(50% - 3px); width: 6px; height: 6px; background: currentColor; opacity: 0; transition: opacity .2s; }
.bigtab:hover { color: var(--asph); }
.bigtab[aria-selected="true"] { color: var(--asph); }
.bigtab[aria-selected="true"]::before { opacity: 1; }
.why__panels p { max-width: 46ch; font-size: 15px; color: var(--asph-3); }
.js [role="tabpanel"]:not(.is-active) { display: none; }

/* how it works */
.how { position: relative; }
.how__pin { align-items: center; }
.how__text { grid-column: 1 / span 4; }
.how__lead { max-width: 40ch; margin-block: 18px 30px; color: var(--asph-3); }
.how__steps { margin-bottom: 36px; }
.how__word {
  font: 400 clamp(30px, 3vw, 44px)/1.12 var(--font-display); letter-spacing: var(--track-l); color: var(--step-off);
  transition: color .45s var(--ease);
}
:lang(he) .how__word { font-weight: 300; }
.how__step.is-active .how__word, .how__step.is-done .how__word { color: var(--asph); }
/* each word is a link to its step: scrolls the sequence there (desktop) or brings its card up (mobile) */
.how__jump { color: inherit; text-decoration: none; }
.how__jump:hover { color: var(--asph); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.how__cap { max-width: 40ch; margin-block: 8px 14px; font-size: 14.5px; color: var(--graph); }
.how__num { font-variant-numeric: tabular-nums; color: var(--graph); margin-inline-end: 8px; }
.how__stack { grid-column: 6 / -1; position: relative; }
.how__card { position: relative; border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: 0 24px 48px -28px rgba(29, 32, 31, .55); }
.how__card img, .how__card svg { width: 100%; height: auto; }
/* the card's step, set in the empty band above each drawing so it stays visible in the cascade */
.how__tag {
  position: absolute; top: 0; inset-inline-start: 8.5%; height: 8.7%;
  display: flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--font-ui); color: var(--graph);
}
.how__tag b {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 2px;
  font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--asph);
}
.how__card--dark .how__tag { color: rgba(243, 244, 241, .7); }
.how__card--dark .how__tag b { color: var(--amber); border-color: rgba(232, 161, 58, .7); }
.how__triggers { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(4, 1fr); pointer-events: none; }

@media (min-width: 900px) {
  .how { height: 380vh; }
  .how__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
  .how__stack { height: min(76vh, 640px); }
  .how__card {
    position: absolute; width: min(48%, 380px);
    opacity: 0; transform: translateY(56px);
    transition: opacity .6s var(--ease), transform .8s var(--ease);
  }
  .how__card.is-in { opacity: 1; transform: none; }
  .how__card:nth-child(1) { inset-inline-start: 0; top: 2%; }
  .how__card:nth-child(2) { inset-inline-start: 17%; top: 9%; }
  .how__card:nth-child(3) { inset-inline-start: 34%; top: 16%; }
  .how__card:nth-child(4) { inset-inline-start: 51%; top: 23%; }
  .js .how__step:not(.is-active) .how__cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .how__card { transition: none; }
}
@media (max-width: 899.98px) {
  .how__triggers { display: none; }
  .how__text, .how__stack { grid-column: 1 / -1; }
  .how__step .how__word { color: var(--asph); }
  .how__stack { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 44px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 28px; scroll-padding-inline: var(--gutter); }
  .how__card { flex: 0 0 min(78%, 340px); scroll-snap-align: start; }
}

/* what a fingerprint sees (dark band) */
.sees { background: var(--asph); color: var(--tube); padding-block: clamp(88px, 9vw, 136px); }
.sees__head { margin-bottom: clamp(40px, 5vw, 64px); }
.sees__head .label { grid-column: 1 / span 3; }
.sees__text { grid-column: 4 / span 7; font-size: clamp(21px, 2.5vw, 37px); line-height: 1.22; }
:lang(he) .sees__text { line-height: 1.3; }
.sees__figure { position: relative; border-radius: 10px; overflow: hidden; background: var(--asph-2); }
.fp-svg { width: 100%; height: auto; direction: ltr; } /* a picture: its sign texts never mirror */
.fp-scene, .fp-layer, .fp-det { transition: opacity .3s; }
.fp-det { opacity: .6; }
.fp-layer[data-layer="structure"] { opacity: 0; }
.sees__figure[data-active]:not([data-active=""]) :is(.fp-det, .fp-layer) { opacity: .14; }
.sees__figure[data-active]:not([data-active=""]) .fp-scene { opacity: .55; }
/* same specificity as the dimming rule above (0,4,0) and later in the file, so the chosen layer wins */
.sees__figure[data-active="floor"] :is(.fp-layer, .fp-det)[data-layer="floor"],
.sees__figure[data-active="bay"] :is(.fp-layer, .fp-det)[data-layer="bay"],
.sees__figure[data-active="sign"] :is(.fp-layer, .fp-det)[data-layer="sign"],
.sees__figure[data-active="lights"] :is(.fp-layer, .fp-det)[data-layer="lights"],
.sees__figure[data-active="structure"] :is(.fp-layer, .fp-det)[data-layer="structure"],
.sees__figure[data-active="color"] :is(.fp-layer, .fp-det)[data-layer="color"] { opacity: 1; }
.sees__figure[data-active="lights"] .fp-scene { opacity: 1; }

.pins { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute; display: flex; align-items: center; gap: 6px;
  padding: 5px 9px 5px 8px; border-radius: 3px; background: rgba(243, 244, 241, .94); color: var(--asph);
  font: 500 12px/1.2 var(--font-ui); white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px)); transition: opacity .3s, background-color .3s;
}
.pin::before { content: ""; width: 5px; height: 5px; background: var(--amber); flex: none; }
.pin--below { transform: translate(-50%, 12px); }
.pin--floor { left: 10.6%; top: 33.1%; }
.pin--elevator { left: 50%; top: 38.1%; }
.pin--bay { left: 88.1%; top: 73.1%; }
.pin--lights { left: 66.9%; top: 25.8%; }
.pin--sign { left: 36.6%; top: 32.6%; }
.pin--color { left: 87%; top: 60.6%; }
.pin--structure { left: 30%; top: 43.1%; }
/* with a mouse the labels in the picture work like the signal buttons below (main.js forwards them) */
.js .pin { pointer-events: auto; cursor: pointer; }
.js .pin:hover { background: var(--white); }
.sees__figure[data-active]:not([data-active=""]) .pin { opacity: .25; }
.sees__figure[data-active="floor"] .pin[data-layer="floor"],
.sees__figure[data-active="bay"] .pin[data-layer="bay"],
.sees__figure[data-active="sign"] .pin[data-layer="sign"],
.sees__figure[data-active="lights"] .pin[data-layer="lights"],
.sees__figure[data-active="structure"] .pin[data-layer="structure"],
.sees__figure[data-active="color"] .pin[data-layer="color"] { opacity: 1; background: var(--amber); }

.sees__hint { margin-block: 18px 40px; font-size: 13px; color: rgba(243, 244, 241, .6); }
.sees__groups { row-gap: 40px; }
.sgroup { grid-column: span 4; }
.sgroup h3 { font: 400 21px/1.3 var(--font-display); letter-spacing: var(--track-m); margin-bottom: 14px; color: var(--white); }
:lang(he) .sgroup h3 { font-weight: 300; }
.sgroup li { border-top: 1px solid rgba(243, 244, 241, .13); }
.sig, .sgroup .sig-static {
  display: flex; gap: 12px; align-items: baseline; width: 100%; padding: 11px 0; border: 0; background: none; text-align: start;
  font: 400 15px/1.45 var(--font-ui); color: rgba(243, 244, 241, .8);
}
.sig::before, .sig-static::before { content: ""; flex: none; width: 5px; height: 5px; transform: translateY(-2px); background: rgba(243, 244, 241, .35); transition: background-color .2s; }
.sig:hover { color: var(--white); }
.sig:hover::before { background: var(--tube); }
.sig[aria-pressed="true"] { color: var(--amber); }
.sig[aria-pressed="true"]::before { background: var(--amber); }

.ride { margin-top: 18px; padding: 14px 14px 12px; border-radius: 8px; background: var(--asph-2); }
.ride figcaption { font-size: 12.5px; color: rgba(243, 244, 241, .7); margin-bottom: 8px; }
.ride__plot { position: relative; }
.ride__plot svg { width: 100%; height: auto; }
.ride__from, .ride__to { position: absolute; font: 400 12px/1 var(--font-ui); color: rgba(243, 244, 241, .7); }
.ride__from { left: 0; top: 2px; }
.ride__to { right: 0; bottom: 2px; }

/* AI semantic map */
.ai { align-items: stretch; }
.lamp {
  background:
    radial-gradient(110% 85% at 0% 0%, rgba(232, 161, 58, .42) 0%, rgba(232, 161, 58, 0) 58%),
    radial-gradient(85% 75% at 100% 100%, rgba(29, 122, 78, .42) 0%, rgba(29, 122, 78, 0) 62%),
    #2B2F2C;
  color: var(--tube);
}
.ai__card {
  grid-column: 1 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 480px; border-radius: 12px; padding: clamp(28px, 4vw, 52px);
}
.ai__text { margin-top: 22px; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.24; color: var(--white); }
:lang(he) .ai__text { line-height: 1.32; }
.ai__card .link-cta { align-self: flex-end; }
.ai__list { grid-column: 8 / -1; padding-top: clamp(8px, 2vw, 28px); }
.ai__list .label { margin-bottom: 18px; }

.rows .row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; padding-block: 16px; align-items: start; }
.rows .row + .row { border-top: 1px solid var(--conc); }
.row img { width: 64px; height: 64px; border-radius: 6px; }
.row h3, .row h4 { font: 500 15.5px/1.4 var(--font-ui); color: var(--asph); }
.row p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--graph); }
.row .meta { margin-top: 10px; font-size: 12px; color: var(--graph); }

/* use cases */
.uses { align-items: start; }
.uses .label { grid-column: 1 / span 2; padding-top: 10px; }
.uses__tabs { grid-column: 3 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pilltab {
  border: 0; background: none; padding: 4px 14px; border-radius: 8px; text-align: start;
  font: 400 clamp(26px, 2.7vw, 40px)/1.15 var(--font-display); letter-spacing: var(--track-l); color: var(--asph);
  transition: background-color .25s, color .25s;
}
:lang(he) .pilltab { font-weight: 300; }
.pilltab:hover { background: var(--conc); }
.pilltab[aria-selected="true"] { background: var(--asph); color: var(--white); }
.uses__panels { grid-column: 9 / -1; padding-top: 12px; }
.uses__panels h3 { font: 400 clamp(21px, 1.8vw, 26px)/1.25 var(--font-display); letter-spacing: var(--track-m); margin-bottom: 14px; }
:lang(he) .uses__panels h3 { font-weight: 300; }
.uses__panels p { max-width: 44ch; color: var(--asph-3); margin-bottom: 28px; }

/* milestones */
.ms { align-items: start; }
.ms__list { grid-column: 1 / span 7; }
.ms__list .label { margin-bottom: 14px; }
.ms__list .row h3 { font-size: 16px; }
.ms__list .row .note { margin-top: 8px; max-width: 58ch; color: var(--asph-3); }
.beta { grid-column: 9 / -1; padding: 12px 12px 28px; border-radius: 12px; background: var(--conc); }
.beta img { width: 100%; border-radius: 6px; }
.beta__body { padding: 22px 12px 0; }
.beta h3 { font: 400 clamp(26px, 2.3vw, 34px)/1.15 var(--font-display); letter-spacing: var(--track-l); }
:lang(he) .beta h3 { font-weight: 300; }
.beta p { margin-block: 10px 28px; color: var(--asph-3); }

/* CTA panel */
.cta-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  border-radius: 12px; padding: clamp(36px, 6vw, 88px) clamp(24px, 7vw, 104px);
}
.cta-panel .label { margin-bottom: 18px; }
.cta-panel h2 { max-width: 24ch; font-size: clamp(28px, 3.3vw, 48px); line-height: 1.14; color: var(--white); }
:lang(he) .cta-panel h2 { line-height: 1.24; }

/* contact */
.contact { align-items: start; }
.contact__intro { grid-column: 1 / span 5; }
.contact__title { font-size: clamp(34px, 4vw, 58px); line-height: 1.06; margin-bottom: 18px; }
.contact__intro p { max-width: 40ch; color: var(--asph-3); }
.form { grid-column: 7 / -1; padding: clamp(20px, 2.6vw, 32px); border-radius: 12px; background: var(--conc); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--asph); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 46px; padding: 11px 12px;
  border: 1px solid var(--conc-2); border-radius: 4px; background: var(--white); color: var(--asph);
  font-size: 15px; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231D201F' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] .field select { background-position: left 14px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(29, 122, 78, .22); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 54, 46, .2); }
.field__err { margin-top: 6px; font-size: 13px; color: var(--red-ink); }
.field__err[hidden] { display: none; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.form__note { font-size: 13px; color: var(--graph); max-width: 36ch; }
.form__note a { color: var(--asph); text-underline-offset: 3px; white-space: nowrap; }
.form__status:empty { display: none; }
.form__status {
  margin-bottom: 18px; padding: 12px 14px; border-radius: 4px; font-size: 14px;
  background: var(--white); border-inline-start: 3px solid var(--graph);
}
.form__status.is-error { border-color: var(--red); color: var(--red-ink); }
.form__status.is-ok { border-color: var(--green); color: var(--asph); }
.form__status:focus { outline: none; }
/* shown only without JavaScript (the submit button stays disabled then) */
.form__nojs {
  margin-bottom: 18px; padding: 12px 14px; border-radius: 4px; font-size: 14px;
  background: var(--white); border-inline-start: 3px solid var(--red); color: var(--red-ink);
}
/* visual-only "0:42" on the submit button while a short rate limit runs (the status says it once) */
.form__countdown { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.form__countdown:empty { display: none; }
.form__done { display: none; }
.form.is-sent .form__grid, .form.is-sent .form__foot { display: none; }
.form.is-sent .form__done { display: block; }
.form__done .btn { margin-top: 6px; background: var(--asph); color: var(--white); }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1; overflow: hidden; color: var(--tube);
  background:
    radial-gradient(70% 120% at 12% 110%, rgba(232, 161, 58, .3) 0%, rgba(232, 161, 58, 0) 60%),
    linear-gradient(160deg, #2E322F 0%, var(--asph) 62%);
}
/* the lamp glow follows the brand to the inline start in Hebrew */
[dir="rtl"] .footer {
  background:
    radial-gradient(70% 120% at 88% 110%, rgba(232, 161, 58, .3) 0%, rgba(232, 161, 58, 0) 60%),
    linear-gradient(200deg, #2E322F 0%, var(--asph) 62%);
}
.footer::before, .footer::after {
  content: ""; position: absolute; top: 0; height: 100%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(243, 244, 241, .09), rgba(243, 244, 241, 0) 85%);
}
.footer::before { inset-inline-start: 8%; width: 34%; clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.footer::after { inset-inline-start: 52%; width: 26%; clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); opacity: .6; }
.footer__in {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 340px)); gap: 14px;
  align-items: end; padding-block: clamp(72px, 9vw, 128px) 28px;
}
.footer__brand .brand { font-size: 28px; gap: 14px; }
.footer__brand .brand__mark { width: 40px; height: 40px; }
.footer__brand p { margin-top: 16px; color: rgba(243, 244, 241, .7); font-size: 14px; }
.footer__copy { font-size: 12.5px; }
.fcard { background: var(--white); color: var(--asph); border-radius: 10px; padding: 16px 18px 22px; min-height: 330px; }
.fcard__title { font: 500 12.5px/1.4 var(--font-ui); color: var(--graph); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--conc); }
.fcard__list a { font-size: 20px; }
.fcard__sub { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--conc); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fcard__sub h3 { font: 500 12.5px/1.4 var(--font-ui); color: var(--graph); }
.fcard__sub .lang a { font-size: 13px; min-height: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tagline { display: none; }
  .hero__card { width: 280px; }
  .hero__title { font-size: clamp(40px, 5.6vw, 92px); } /* both lines still fit beside the card */
  .statement__text { grid-column: 4 / -1; }
  .statement .link-cta { grid-column: 4 / -1; justify-self: start; margin-top: 36px; }
  .uses__tabs { grid-column: 1 / span 6; }
  .uses .label { grid-column: 1 / -1; margin-bottom: 18px; }
  .uses__panels { grid-column: 7 / -1; }
  .ms__list { grid-column: 1 / span 7; }
  .beta { grid-column: 8 / -1; }
}
@media (max-width: 899.98px) {
  :root { --space-section: 96px; }
  .chrome__right { display: none; }
  .chrome__left { width: 100%; }
  .hero__card { display: none; }
  .hero__inner { bottom: max(28px, env(safe-area-inset-bottom)); }
  .menu__cards { grid-template-columns: 1fr; }
  .mcard { min-height: 0; }
  .statement__art { grid-column: 1 / -1; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: end; order: 2; margin-top: 36px; }
  .statement__text { grid-column: 1 / -1; }
  .statement .link-cta { grid-column: 1 / -1; order: 3; }
  .why__art { grid-column: 1 / -1; grid-row: 1; margin: 0 0 -40px; max-width: 420px; justify-self: center; width: 78%; }
  .why__panel { grid-column: 1 / -1; grid-row: 2; padding: 72px 22px 40px; }
  .sees__head .label, .sees__text { grid-column: 1 / -1; }
  .sees__text { margin-top: 14px; }
  .sgroup { grid-column: 1 / -1; }
  .ai__card, .ai__list { grid-column: 1 / -1; }
  .ai__card { min-height: 0; }
  .ai__list { margin-top: 40px; }
  .uses__tabs, .uses__panels { grid-column: 1 / -1; }
  .uses__panels { padding-top: 28px; }
  .ms__list, .beta { grid-column: 1 / -1; }
  .beta { margin-top: 40px; }
  .cta-panel { grid-template-columns: 1fr; }
  .contact__intro, .form { grid-column: 1 / -1; }
  .form { margin-top: 32px; }
  .footer__in { grid-template-columns: 1fr; }
  .fcard { min-height: 0; }
  .footer__brand { margin-bottom: 28px; }
}
@media (max-width: 760px) {
  .pins { display: none; }
  .sees__figure { border-radius: 8px; }
}
/* Phones: the picture stays in view under the nav while the signal list scrolls beneath it, so a
   tapped signal is highlighted where you can see it. */
@media (max-width: 560px) and (min-height: 600px) {
  .sees__figure {
    position: sticky; top: calc(14px + var(--chrome-h) + 8px); z-index: 2;
    box-shadow: 0 0 0 1px rgba(243, 244, 241, .08), 0 22px 30px -18px rgba(0, 0, 0, .9);
  }
}
@media (max-width: 560px) {
  .navbox { gap: 6px; padding-inline: 12px 4px; }
  .menu-btn { padding-inline: 10px; gap: 10px; }
  /* keep the two authored lines intact on phones (18 mono cells must fit the column) */
  .hero__title { font-size: min(40px, 9vw); }
  .hero__sub { font-size: 15px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .form__grid { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .bigtab { font-size: 24px; }
  .rows .row { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .row img { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .ticker__track { animation: none !important; }
}

/* ---------- Secondary pages (privacy, 404) ---------- */
.page-top {
  position: relative; z-index: 0; color: var(--tube); overflow: hidden;
  background: radial-gradient(ellipse 80% 90% at 70% 0%, #3A3328 0%, var(--asph-2) 45%, var(--asph) 85%);
  padding-block: calc(14px + var(--chrome-h) + clamp(72px, 10vw, 140px)) clamp(56px, 7vw, 96px);
}
.page-top h1 { font: 400 clamp(44px, 6vw, 88px)/1.04 var(--font-display); letter-spacing: var(--track-l); color: var(--white); }
:lang(he) .page-top h1 { font-weight: 200; letter-spacing: 0; }
.page-top p { margin-top: 18px; color: rgba(243, 244, 241, .7); }
.page-sheet { position: relative; z-index: 1; margin-top: -16px; background: var(--tube); border-radius: 16px 16px 0 0; padding-block: clamp(56px, 7vw, 104px) clamp(80px, 9vw, 140px); }
.prose { max-width: 68ch; }
.prose .lead { font: 400 clamp(21px, 2vw, 28px)/1.3 var(--font-display); letter-spacing: var(--track-m); margin-bottom: 48px; }
:lang(he) .prose .lead { font-weight: 300; line-height: 1.4; }
.prose h2 { font: 400 clamp(22px, 1.9vw, 27px)/1.25 var(--font-display); letter-spacing: var(--track-m); margin: 44px 0 12px; padding-top: 18px; border-top: 1px solid var(--conc); }
:lang(he) .prose h2 { font-weight: 300; }
.prose p { color: var(--asph-3); }
.prose p + p { margin-top: 12px; }
.prose .link-cta { margin-top: 56px; }
@media (min-width: 1100px) {
  .page-top .wrap > *, .page-sheet .prose { margin-inline-start: 25%; }
}
.nf { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; }
.nf .hero__canvas { opacity: .8; }
.nf__in { position: relative; z-index: 1; width: 100%; padding-block: 0 clamp(40px, 8vh, 88px); }
.nf__in .hero__title { max-width: 15ch; }
.nf__in p { max-width: 46ch; margin-block: 18px 28px; color: rgba(243, 244, 241, .8); }
