﻿/* ---------- Tokens ---------- */
:root {
  --paper: #F3F0E8;
  --paper-2: #E9E5DA;
  --ink: #141414;
  --muted: #55524A;
  --line: #141414;
  --hair: rgba(20, 20, 20, .16);
  --accent: #FF5A1F;
  --on-accent: #141414;
  --inverse-bg: #141414;
  --inverse-fg: #F3F0E8;
  --inverse-muted: #ABA79C;
  --inverse-hair: rgba(243, 240, 232, .18);

  --font-sans: "IBM Plex Sans", "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Sans Hebrew", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: 16px;
  --section-y: 80px;
  --border: 2px solid var(--line);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 128px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121212;
    --paper-2: #1B1B1A;
    --ink: #F0EDE5;
    --muted: #A9A59B;
    --line: #F0EDE5;
    --hair: rgba(240, 237, 229, .16);
    --inverse-bg: #F0EDE5;
    --inverse-fg: #141414;
    --inverse-muted: #55524A;
    --inverse-hair: rgba(20, 20, 20, .18);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
html:not(.motion) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 8px; }

.label {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* Split text helpers (built by script.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.c, .wi { display: inline-block; will-change: transform; }
.split { perspective: 600px; }

/* ---------- Loader ---------- */
.loader { display: none; }
.motion .loader {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
  background: var(--inverse-bg); color: var(--inverse-fg);
}
.loader__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.loader__brand { font-weight: 700; font-size: clamp(1.2rem, 3vw, 2rem); letter-spacing: -0.03em; }
.loader__count { font: 500 clamp(4rem, 18vw, 14rem)/.8 var(--font-mono); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.loader__bar { height: 2px; margin: 20px 0 14px; background: var(--inverse-hair); }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.loader__line { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--inverse-muted); }


/* ---------- Scroll progress ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 24px;
  background: var(--ink); color: var(--paper);
  border: var(--border);
  font: 500 1rem/1 var(--font-sans);
  text-decoration: none; cursor: pointer;
  transition: color .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--on-accent); }
.btn > span { position: relative; display: inline-block; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--accent::before { background: var(--paper); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--border);
  transition: transform .45s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.wordmark span { color: var(--muted); font-weight: 500; }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: var(--border); color: var(--ink); cursor: pointer;
}
.nav__menu {
  position: absolute; left: 0; right: 0; top: 64px;
  display: none; flex-direction: column;
  background: var(--paper); border-bottom: var(--border);
  padding: 8px var(--gutter) 20px;
}
.nav__menu.is-open { display: flex; }
.nav__menu a:not(.btn) {
  padding: 14px 0; border-bottom: 1px solid var(--hair);
  text-decoration: none; font-weight: 500; font-size: 1.1rem;
}
.nav__menu .btn { margin-top: 16px; }

@media (min-width: 880px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 28px;
    padding: 0; border: 0; background: none;
  }
  .nav__menu a:not(.btn) { padding: 0; border: 0; font-size: .98rem; }
  .nav__menu .btn { margin: 0; }
  /* Text roll on hover */
  .roll { overflow: hidden; display: inline-block; height: 1.6em; }
  .roll span { display: inline-block; position: relative; transition: transform .45s var(--ease-out); }
  .roll span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--accent); }
  .roll:hover span { transform: translateY(-100%); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 88px; border-bottom: var(--border); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__ghost {
  position: absolute; right: -2vw; top: 4%;
  font-weight: 700; font-size: clamp(7rem, 26vw, 24rem); line-height: .8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px var(--hair);
  white-space: nowrap; user-select: none;
}
.hero__ghost--2 { top: auto; bottom: -4%; right: auto; left: -3vw; }
.hero__grid { position: relative; display: grid; gap: 56px; }
.hero h1 {
  margin: 20px 0 24px;
  font-size: clamp(2.5rem, 7.2vw, 5.8rem);
  line-height: .96;
  letter-spacing: -0.045em;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; position: relative; display: inline-block; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .3em; z-index: -1;
  background: var(--accent); transform-origin: left; transform: scaleX(var(--hl, 1));
}
.motion .hero h1 em::after { --hl: 0; }
.motion .hero h1.is-done em::after { --hl: 1; transition: transform .7s var(--ease-out); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 54ch; }
/* Kicker: a small mark before each item */
.hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.kick { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.kick svg { width: 1.45em; height: 1.45em; flex: none; overflow: visible; }
.kick__sep { color: var(--muted); }
@media (max-width: 639px) {
  .kick__sep { display: none; }
  /* All four items on one row, spread edge to edge */
  .hero__kicker { flex-wrap: nowrap; justify-content: space-between; gap: 8px; font-size: clamp(.5rem, 2.5vw, .78rem); letter-spacing: .06em; }
  .kick { gap: 5px; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; border-top: 1px solid var(--hair);
}
.hero__facts li { padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: .98rem; color: var(--muted); }
.hero__facts strong { color: var(--ink); font-weight: 700; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 8px;
  font: 500 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--muted);
}
.hero__scroll i { width: 2px; height: 36px; background: var(--hair); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--ink); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

@media (min-width: 640px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .hero__facts li { border-bottom: 0; border-left: 1px solid var(--hair); padding: 2px 16px; }
  .hero__facts li:first-child { border-left: 0; padding-left: 0; }
}
@media (min-width: 1024px) {
  .hero { padding: 88px 0 120px; min-height: calc(100svh - 66px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 64px; }
  .hero__scroll { display: flex; }
}

/* Hero visual: big glass funnel (clicks in, leads out) in the background, report card in front */
.hero__visual { position: relative; min-width: 0; }
.funnel {
  position: absolute; z-index: 0; top: 0; right: -6px;
  width: 64%; aspect-ratio: 400 / 560;
  pointer-events: none;
  color: var(--ink);
  filter: drop-shadow(0 28px 36px rgba(70, 12, 0, .2));
}
.funnel__svg { width: 100%; height: 100%; overflow: visible; }
/* Idle drop only runs in full-motion mode. Optimized mode shows the fixed funnel: tape + builder mascot on the ladder. */
.fn__drop, .fn__ripple { opacity: 0; }
.report-wrap { position: relative; z-index: 1; perspective: 1200px; min-width: 0; padding-top: calc((100vw - 32px) * .5); }

@media (min-width: 640px) and (max-width: 1023px) {
  .funnel { width: 46%; }
  .report-wrap { padding-top: 300px; max-width: 520px; }
}
@media (min-width: 1024px) {
  .hero__visual { align-self: stretch; min-height: 600px; }
  .funnel { width: 400px; top: -12px; right: -36px; }
  .report-wrap { position: absolute; left: -48px; bottom: 0; width: 380px; padding-top: 0; }
}

/* Honey dripping from the header edge (built by script.js) */
.honey-edge {
  position: absolute; left: 0; top: 100%; width: 100%; height: 170px;
  pointer-events: none; overflow: visible; z-index: -1;
  margin-top: -2px;
}
.nav:has(.nav__menu.is-open) .honey-edge { opacity: 0; }

/* Report card */
.report {
  border: var(--border);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: .82rem;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.report__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: var(--border);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
}
.report__tag { background: var(--accent); color: var(--on-accent); padding: 0 8px; }
.live { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #1FA34A; box-shadow: 0 0 0 0 rgba(31, 163, 74, .6); animation: pulse 1.8s infinite; vertical-align: 1px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(31, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 163, 74, 0); } }
.report table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.report th, .report td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.report th:first-child, .report td:first-child { text-align: left; white-space: normal; padding-left: 16px; }
.report th:last-child, .report td:last-child { padding-right: 16px; }
.report th:not(:first-child) { white-space: normal; }
.report th { font-weight: 500; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.report tfoot td { font-weight: 500; border-bottom: var(--border); background: var(--paper-2); }
.report__chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; padding: 12px 16px 0; border-bottom: 1px solid var(--hair); }
.report__chart span { flex: 1; height: calc(var(--h) * 100%); background: var(--ink); transform-origin: bottom; }
.report__chart span:last-child { background: var(--accent); }
.report__note { padding: 14px 16px; display: grid; gap: 10px; font-family: var(--font-sans); font-size: .92rem; line-height: 1.45; }
.report__note p { display: grid; grid-template-columns: 12px 1fr; gap: 10px; }
.dot { width: 8px; height: 8px; background: var(--accent); margin-top: 6px; }
.report__foot { padding: 12px 16px; border-top: 1px solid var(--hair); color: var(--muted); }

@media (max-width: 420px) {
  .report th, .report td { padding: 9px 8px; }
  .report { font-size: .76rem; }
}

/* ---------- Bands ---------- */
.bands { position: relative; height: 230px; overflow: hidden; border-bottom: var(--border); background: var(--paper-2); }
.band { position: absolute; left: -10%; right: -10%; top: 50%; padding: 18px 0; border-block: var(--border); overflow: hidden; }
.band--a { background: var(--accent); color: var(--on-accent); transform: translateY(-50%) rotate(-4deg); z-index: 2; border-color: var(--ink); }
.band--b { background: var(--inverse-bg); color: var(--inverse-fg); transform: translateY(-50%) rotate(3deg); border-color: var(--inverse-bg); }
.band__track { display: flex; width: max-content; gap: 28px; align-items: center; white-space: nowrap; will-change: transform; }
.band span { font-weight: 700; font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.band--b span { font: 500 clamp(1rem, 2.2vw, 1.5rem)/1 var(--font-mono); letter-spacing: .02em; }
.band b { font-weight: 400; font-size: clamp(1.2rem, 3vw, 2.2rem); opacity: .9; }
.band--b b { color: var(--accent); }
/* Without JS motion, bands scroll by CSS */
html:not(.motion) .band__track { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .band--a .band__track { animation: marquee 28s linear infinite; }
  .band--b .band__track { animation: marquee 34s linear infinite reverse; }
  .motion.js-ready .band__track { animation: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; border-bottom: var(--border); }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--inverse-bg); color: var(--inverse-fg); border-bottom-color: var(--inverse-bg); }
.section--ink .label { color: var(--inverse-muted); }
.section__head { margin-bottom: 56px; max-width: 820px; }
.section__head h2 { margin-top: 14px; font-size: clamp(2.2rem, 5.6vw, 4.4rem); letter-spacing: -0.045em; line-height: .98; }
.section__aside { color: var(--muted); font-size: .95rem; max-width: 42ch; }
.section__head--row { max-width: none; display: grid; gap: 20px; }
@media (min-width: 900px) {
  .section__head--row { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Services ---------- */
.services { display: grid; border: var(--border); }
.service { position: relative; padding: 28px 20px 24px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; isolation: isolate; }
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-2);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.service:hover::before { transform: scaleY(1); }
.service + .service { border-top: var(--border); }
.service__top { display: flex; align-items: flex-start; gap: 16px; }
.service__num {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--accent); color: var(--on-accent);
  font: 500 1rem/1 var(--font-mono);
  transition: transform .6s var(--ease-out);
}
.service:hover .service__num { transform: rotate(-90deg); }
.service h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); padding-top: 4px; }
.service > p { color: var(--muted); max-width: 48ch; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.ticks li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--hair); transition: padding .35s var(--ease-out); }
.ticks li:hover { padding-left: 36px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.service__meta { margin: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 8px; }
.service__meta dt { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.service__meta dd { margin: 4px 0 0; font-weight: 700; }
@media (min-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding: 44px 40px 36px; }
  .service + .service { border-top: 0; }
  .service:nth-child(even) { border-left: var(--border); }
  .service:nth-child(n + 3) { border-top: var(--border); }
}
.contact__about { margin-top: 16px; color: var(--inverse-muted); max-width: 44ch; font-size: .98rem; }
blockquote.case__body { margin: 0; color: var(--ink); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; letter-spacing: -0.01em; }
.metrics dd a { text-underline-offset: 4px; font-size: 1.05rem; }
.metrics dd a:hover { color: var(--accent); }

/* ---------- Leak (horizontal pin) ---------- */
.leak { padding: var(--section-y) 0; overflow: hidden; }
.leak__head { display: grid; gap: 28px; margin-bottom: 48px; }
/* NYH mark: faint outline behind everything in the section, top right */
.leak__pin { position: relative; }
.leak__head, .leak__track { position: relative; z-index: 1; }
.leak__mark {
  position: absolute; z-index: 0; top: 24px; right: var(--gutter);
  width: clamp(220px, 36vw, 480px); height: auto;
  color: var(--inverse-fg); opacity: .09; pointer-events: none;
}
[dir="rtl"] .leak__mark { right: auto; left: var(--gutter); }
.leak__head h2 { margin-top: 14px; font-size: clamp(2.2rem, 5.6vw, 4.4rem); letter-spacing: -0.045em; line-height: .98; max-width: 14ch; }
.hl { color: var(--accent); }
.leak__meter { display: none; }
.leak__track { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1280px; display: grid; gap: 16px; }
.leak__intro p { font-size: 1.15rem; color: var(--inverse-muted); max-width: 40ch; }
.leak__hint { display: none; }
.leak__card {
  position: relative; border: 2px solid var(--inverse-fg); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.leak__n {
  font: 700 clamp(4rem, 9vw, 7.5rem)/.8 var(--font-sans); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
}
.leak__card h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.leak__card > p { color: var(--inverse-muted); }
.leak__fix { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--inverse-hair); color: var(--inverse-fg) !important; font-weight: 500; }
.leak__fix span { display: inline-block; margin-right: 8px; padding: 2px 8px; background: var(--accent); color: var(--on-accent); font: 500 .72rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; vertical-align: 2px; }

@media (min-width: 760px) and (max-width: 1023px) {
  .leak__track { grid-template-columns: 1fr 1fr; }
  .leak__intro { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .leak__head { grid-template-columns: 1fr auto; align-items: end; }
  .leak__meter { display: grid; gap: 10px; width: 240px; font: 500 .8rem/1 var(--font-mono); color: var(--inverse-muted); letter-spacing: .06em; }
  .leak__cur { color: var(--inverse-fg); font-weight: 500; font-size: 1.4rem; }
  .leak__bar { height: 2px; background: var(--inverse-hair); }
  .leak__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
  .motion .leak { padding: 0; }
  .motion .leak__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .motion .leak__track {
    display: flex; gap: 24px; max-width: none; margin: 0;
    padding-left: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
    padding-right: 10vw; width: max-content; will-change: transform;
  }
  .motion .leak__intro { width: 360px; flex: none; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 0; }
  .motion .leak__hint { display: block; font: 500 .8rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
  .motion .leak__card { width: min(440px, 34vw); min-height: 440px; flex: none; padding: 36px 32px; }
  .leak__card { transition: background .4s var(--ease); }
  .leak__card.is-active { background: linear-gradient(rgba(255, 90, 31, .08), rgba(255, 90, 31, .08)), var(--inverse-bg); }
}

/* ---------- Cases ---------- */
.cases { display: grid; gap: 24px; }
.case {
  position: relative; display: grid; gap: 20px;
  border: var(--border); padding: 24px 20px;
  background: var(--paper);
  transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.case:hover { box-shadow: 10px 10px 0 0 var(--accent); transform: translate(-4px, -4px); }
/* NYH mascot: 16×14 pixel grid, row 12 (2/14 up from the bottom) sits on the card's top border */
.case--mini { --mini-w: clamp(84px, 9vw, 116px); margin-top: calc(var(--mini-w) * .8); }
.mini-me {
  position: absolute; z-index: 2; right: clamp(20px, 6vw, 72px);
  bottom: calc(100% - var(--mini-w) * .125);
  width: var(--mini-w); height: auto; overflow: visible; pointer-events: none;
  transform-origin: 50% 100%;
}
.mascot__eyes { transform-box: fill-box; transform-origin: center; animation: mascot-look 6s steps(1) infinite; }
@keyframes mascot-look {
  0%, 30% { transform: none; }
  31% { transform: scaleY(.15); }          /* blink */
  33%, 55% { transform: none; }
  56%, 70% { transform: translateX(-16.67%); } /* look left, one pixel */
  71%, 85% { transform: translateX(16.67%); }  /* look right, one pixel */
  86% { transform: scaleY(.15); }
  88%, 100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .mascot__eyes { animation: none; } }
[dir="rtl"] .mini-me { right: auto; left: clamp(20px, 6vw, 72px); }
.case__type { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.case h3 { margin-top: 10px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); max-width: 26ch; }
/* Client logo: small square tile before the name */
.case__name { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.case__name h3 { margin-top: 0; }
.case__logo { width: 44px; height: 44px; flex: none; border: 1px solid var(--hair); object-fit: cover; }
.case__body { color: var(--muted); max-width: 60ch; }
.metrics { margin: 0; display: grid; border-top: var(--border); }
.metrics div { padding: 14px 0; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.metrics div:last-child { border-bottom: 0; padding-bottom: 0; }
.metrics dt { font-size: .95rem; color: var(--muted); }
.metrics dd { margin: 0; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; }
.metrics dd.is-scrambling { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; color: var(--accent); }
@media (min-width: 960px) {
  .case { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(260px, .9fr); gap: 40px; padding: 36px; align-items: start; }
  .case__body { padding-top: 26px; }
  .metrics { border-top: 0; border-left: var(--border); padding-left: 28px; }
  .metrics div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 0 14px; margin-bottom: 14px; }
  .metrics div:last-child { margin-bottom: 0; }
  .metrics dd { text-align: left; font-size: 1.8rem; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { position: relative; padding: 24px 0 28px; display: grid; gap: 8px; }
.step__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; }
.step__when { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.step h3 { font-size: 1.6rem; }
.step p:last-child { color: var(--muted); max-width: 46ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 28px 28px 0 0; }
  .step + .step { padding-left: 24px; border-left: 1px solid var(--hair); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq__list { border-top: var(--border); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; min-height: 44px;
  font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.35rem); letter-spacing: -0.015em;
  transition: padding .35s var(--ease-out), color .2s;
}
.faq summary:hover { padding-left: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border: var(--border);
  font: 500 1.1rem/1 var(--font-mono);
  transition: transform .4s var(--ease-out), background .2s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
@media (min-width: 960px) {
  .faq { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .faq .section__head { position: sticky; top: 100px; }
}

/* ---------- Big CTA ---------- */
.bigcta { padding: 120px 0 80px; overflow: hidden; }
.bigcta__inner { display: grid; justify-items: center; gap: 24px; text-align: center; padding: 0 var(--gutter); }
.bigcta__text {
  font-weight: 700; font-size: clamp(4.5rem, 21vw, 20rem); line-height: .82; letter-spacing: -0.07em;
  white-space: nowrap;
}
.bigcta__text span { display: inline-block; }
.bigcta__text span:last-child { color: var(--accent); }
.bigcta__btn {
  display: grid; place-items: center;
  width: 168px; height: 168px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 1.05rem; text-decoration: none; text-align: center; line-height: 1.2;
  margin-top: 8px;
  transition: background .3s;
}
.bigcta__btn span { display: block; max-width: 9ch; }
.bigcta__btn:hover { background: var(--inverse-fg); color: var(--inverse-bg); }

/* ---------- Contact ---------- */
#contact { border-top: 1px solid var(--inverse-hair); }
.contact { display: grid; gap: 48px; }
.contact__intro h2 { margin: 14px 0 20px; font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.04em; }
.contact__intro > p { color: var(--inverse-muted); max-width: 44ch; font-size: 1.08rem; }
.contact__direct { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--inverse-hair); }
.contact__direct li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--inverse-hair); }
.contact__direct a { font-weight: 500; text-underline-offset: 5px; overflow-wrap: anywhere; text-align: right; }
.contact__direct a:hover { color: var(--accent); }

.form {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--inverse-fg);
  padding: 24px 20px;
  display: grid; gap: 20px;
}
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: .98rem; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
/* Required marker: orange asterisk after the label, plus a note at the top of the form */
.field label.is-req::after, .field legend.is-req::after { content: " *"; color: var(--accent); font-weight: 700; }
.req { color: var(--accent); font-weight: 700; }
.form__req { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--paper); color: var(--ink);
  border: var(--border); border-radius: 0;
  font: 400 1rem/1.4 var(--font-sans);
  appearance: none;
  transition: box-shadow .25s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 5px 5px 0 0 var(--accent); }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field [aria-invalid="true"] { border-color: #C2290A; }
.field__error { color: #C2290A; font-size: .9rem; font-weight: 500; }
@media (prefers-color-scheme: dark) {
  .field [aria-invalid="true"] { border-color: #FF7A57; }
  .field__error { color: #FF7A57; }
}
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  border: var(--border); font-weight: 500; font-size: .95rem;
  transition: background .15s var(--ease), color .15s;
}
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice:hover span { background: var(--paper-2); }
.choice:hover input:checked + span { background: var(--ink); }
.form__status { font-size: .95rem; min-height: 1.4em; }
@media (min-width: 960px) {
  .contact { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
  .form { padding: 36px; }
}

/* ---------- Footer ---------- */
.footer { padding: 28px 0; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; color: var(--muted); }
.footer a { text-underline-offset: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ---------- Language switch ---------- */
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: var(--border); }
.lang button {
  min-width: 44px; height: 40px; padding: 0 10px; border: 0; background: none; color: var(--ink);
  font: 500 .8rem/1 var(--font-mono); letter-spacing: .06em; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang button + button { border-inline-start: var(--border); }
.lang button[lang="he"] { font-family: var(--font-sans); font-size: .95rem; font-weight: 700; }
.lang button:hover { background: rgba(255, 90, 31, .12); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (min-width: 880px) { .nav__right { gap: 24px; } }

/* ---------- Optimized (low-motion) toggle ---------- */
.lite-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-width: 44px; height: 42px; padding: 0 12px;
  border: var(--border); background: none; color: var(--ink); cursor: pointer;
  font: 500 .8rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lite-toggle svg { width: 16px; height: 16px; flex: none; }
.lite-toggle:hover { background: rgba(255, 90, 31, .12); }
.lite-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lite-toggle[aria-pressed="true"] svg { color: var(--accent); }
.lite-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[lang="he"] .lite-toggle { font-family: var(--font-sans); font-weight: 700; font-size: .9rem; letter-spacing: 0; }
/* Phones: icon only (the word stays for screen readers) */
@media (max-width: 639px) {
  .lite-toggle { padding: 0; justify-content: center; }
  .lite-toggle__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav__right { gap: 8px; }
}

/* Optimized mode: no CSS animations or transitions either */
.lite *, .lite *::before, .lite *::after { transition-duration: 0s !important; animation: none !important; }

/* ---------- Skeleton hand juggler (leak section) ---------- */
.juggler { position: relative; width: min(260px, 70vw); aspect-ratio: 320 / 412; margin: -8px auto 0; pointer-events: none; }
.juggler svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
@media (min-width: 640px) {
  .leak__head { position: relative; }
  .juggler { position: absolute; top: -40px; right: var(--gutter); width: min(270px, 32vw); margin: 0; }
}
@media (min-width: 1024px) {
  /* Sit on the heading's baseline so the hand never hangs into the sliding cards. */
  .juggler { right: calc(var(--gutter) + 280px); top: auto; bottom: -44px; width: 230px; }
  .leak__card { background: var(--inverse-bg); }
}

/* ---------- Hebrew / right-to-left ---------- */
/* Scroll-reveal start offsets (x: -40 etc.) point into the scrollable side in RTL; clip them. */
main { overflow-x: clip; }
[lang="he"] body { letter-spacing: 0; }
[lang="he"] .label, [lang="he"] .kicker { letter-spacing: .02em; }
[lang="he"] h1, [lang="he"] h2, [lang="he"] h3 { letter-spacing: -0.02em; }
[dir="rtl"] .skip { left: auto; right: 8px; }
[dir="rtl"] .loader__bar span, [dir="rtl"] .progress span, [dir="rtl"] .leak__bar i, [dir="rtl"] .step__line { transform-origin: right; }
[dir="rtl"] h1 em::after { transform-origin: right; }
[dir="rtl"] .live { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .report th, [dir="rtl"] .report td { text-align: left; }
[dir="rtl"] .report th:first-child, [dir="rtl"] .report td:first-child { text-align: right; padding-left: 12px; padding-right: 16px; }
[dir="rtl"] .report th:last-child, [dir="rtl"] .report td:last-child { padding-right: 12px; padding-left: 16px; }
[dir="rtl"] .ticks li { padding: 11px 28px 11px 0; }
[dir="rtl"] .ticks li:hover { padding-left: 0; padding-right: 36px; }
[dir="rtl"] .ticks li::before { left: auto; right: 2px; }
[dir="rtl"] .leak__fix span { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .leak__track { direction: ltr; }
/* The pinned row is wider than the screen. In RTL it would hang off the left edge (hiding the intro and step 1),
   so anchor it to the left like in English; the scroll then moves it left from step 1 to step 4. */
html[dir="rtl"].motion .leak__track { align-self: flex-end; }
[dir="rtl"] .leak__track > li { direction: rtl; }
[dir="rtl"] .bands, [dir="rtl"] .band { direction: ltr; }
[dir="rtl"] .metrics dd { text-align: left; }
[dir="rtl"] .faq summary:hover { padding-left: 0; padding-right: 10px; }
[dir="rtl"] .contact__direct a { text-align: left; }
[dir="rtl"] .field select { background-position: 20px 50%, 14px 50%; padding-right: 14px; padding-left: 40px; }
[dir="rtl"] .funnel { right: auto; left: -6px; }
/* RTL: the report sits on the right, so mirror the ladder + builder mascot to the funnel's left side */
[dir="rtl"] .fn__crew { transform: matrix(-1, 0, 0, 1, 400, 0); }
@media (min-width: 640px) { [dir="rtl"] .juggler { right: auto; left: var(--gutter); } }
@media (min-width: 1024px) { [dir="rtl"] .juggler { left: calc(var(--gutter) + 280px); } }
@media (min-width: 640px) {
  [dir="rtl"] .hero__facts li { border-left: 0; border-right: 1px solid var(--hair); }
  [dir="rtl"] .hero__facts li:first-child { border-right: 0; padding-left: 16px; padding-right: 0; }
}
@media (min-width: 900px) {
  [dir="rtl"] .service:nth-child(even) { border-left: 0; border-right: var(--border); }
  [dir="rtl"] .step + .step { padding-left: 0; padding-right: 24px; border-left: 0; border-right: 1px solid var(--hair); }
}
@media (min-width: 960px) {
  [dir="rtl"] .metrics { border-left: 0; padding-left: 0; border-right: var(--border); padding-right: 28px; }
  [dir="rtl"] .metrics dd { text-align: right; }
}
@media (min-width: 1024px) {
  [dir="rtl"] .funnel { right: auto; left: -36px; }
  [dir="rtl"] .report-wrap { left: auto; right: -48px; }
}
