/* ============================================================
   Components, rebuilt from live marketing.css against tokens.
   Rule: no literal values. Every number resolves to a token.
   RTL-first: logical properties only.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--w-bold); letter-spacing: var(--ls-head); margin: 0; }
a { color: var(--accent); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
.wrap-narrow { max-width: var(--measure); margin-inline: auto; padding-inline: var(--s-5); }

/* ---- eyebrow: the site's signature label ---------------- */
.eyebrow {
  font-size: var(--eyebrow-size, var(--fs-eyebrow)); font-weight: var(--w-bold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--eyebrow-color, var(--ink));
}
.eyebrow::after {
  content: ""; display: block; width: 26px; height: 3px;
  margin-top: var(--s-1); background: var(--accent); border-radius: 2px;
}
.eyebrow.center { text-align: center; }
.eyebrow.center::after { margin-inline: auto; }
/* Hebrew has no case, so uppercase is inert and the tracking hurts. */
:root[lang="he"] .eyebrow { text-transform: none; letter-spacing: 0;
  font-size: var(--eyebrow-size-he, var(--fs-xs)); }

/* ---- buttons -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  border-radius: var(--radius-pill); text-decoration: none;
  font-weight: var(--w-medium); font-family: var(--body); border: 0; cursor: pointer;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { padding: var(--s-3) var(--s-5); font-size: var(--fs-xs); color: #fff; background: var(--accent); }
.btn-primary:hover { box-shadow: var(--shadow-accent); }
.btn-lg { padding: var(--s-4) var(--s-7); font-size: 17px; background: var(--card); color: var(--ink); }
.btn-lg:hover { box-shadow: 0 10px 28px rgba(10, 20, 14, .25); }
.btn-ghost { padding: var(--s-3) var(--s-5); font-size: var(--fs-xs); color: var(--muted); background: transparent; border: 1px solid var(--hairline); }
.btn-ghost:hover { color: var(--ink); border-color: var(--faint); }

/* ---- nav: floating pill --------------------------------- */
.nav { position: fixed; top: var(--s-3); inset-inline: 0; z-index: 60; padding-inline: var(--s-4); }
.nav-inner {
  max-width: var(--wrap-nav); margin-inline: auto;
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-nav);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--head); font-weight: var(--w-regular); font-size: 17px; color: var(--ink); text-decoration: none; }
.brand img { width: 38px; height: 30px; object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(30, 91, 63, .30)) saturate(1.25);
  transition: transform var(--dur-fast) ease; }
.brand:hover img { transform: translateY(-1px) scale(1.06); }
/* the second word carries the weight, per the founder's call 18.8 */
.brand em { font-style: normal; font-weight: var(--w-bold); }
.nav-side { display: inline-flex; align-items: center; gap: var(--s-5); }
.nav-link { color: var(--muted); text-decoration: none; font-size: var(--fs-xs); }
.nav-link:hover { color: var(--ink); }

/* ---- cards ---------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); padding: var(--s-6) var(--s-7);
}
.card-h { font-size: var(--fs-card-h); margin-bottom: var(--s-3); }
.card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh-body); }

/* step card, with the dotted connector */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.step {
  position: relative; background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: var(--s-8) var(--s-7);
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.step::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: calc(var(--s-6) * -1 - 1px);
  width: var(--s-6); height: 2px;
  background-image: linear-gradient(90deg, var(--ink) 20%, transparent 20%);
  background-size: 7px 2px;
}
.step:last-child::after { display: none; }
.step-n {
  width: 34px; height: 34px; border-radius: var(--radius-pill);
  display: grid; place-items: center; margin-bottom: var(--s-7);
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--head); font-weight: var(--w-bold); font-size: var(--fs-sm);
}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* founder card. Geometry is production's: 4/5 portrait, auto-fit
   with a 340px cap so two, three or four founders sit at the same
   size, and a gradient foot on the photo. */
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  gap: var(--s-4); justify-content: center; }
.founder { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; }
.founder-photo { aspect-ratio: 4/5; position: relative; background: var(--accent-soft); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(8,14,10,.42) 100%); }
.founder-body { padding: var(--s-5) var(--s-6) var(--s-6); }
.founder h3 { font-size: var(--fs-card-h); }
/* accent + weight, same treatment as the stat labels (and what
   production's about page did with its teal) */
.founder .role { color: var(--accent); font-weight: 600; font-size: var(--fs-sm);
  margin: var(--s-1) 0 var(--s-3); }
.founder-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.founder .in { flex: none; width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); text-decoration: none;
  font-family: Georgia, serif; font-weight: 700; font-size: 15px;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease; }
.founder .in:hover { background: var(--accent); color: #fff; }
.founder p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh-body); }
@media (max-width: 560px) { .founders { grid-template-columns: 1fr; } }

/* ---- the two dark panels -------------------------------- */
.panel {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  color: #fff; padding: var(--s-11) var(--s-7); text-align: center;
  background: var(--surface-invite);
}
.panel::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(60% 80% at 80% 90%, rgba(255,255,255,.14), transparent 70%);
}
.panel > * { position: relative; }
.panel h2 { font-size: var(--fs-h1); line-height: 1.12; max-width: var(--measure); margin: 0 auto; }
.panel .sub { font-size: var(--fs-lead); line-height: 1.55; color: rgba(255,255,255,.88);
  max-width: 560px; margin: var(--s-5) auto var(--s-7); }

.deep { background: var(--surface-deep); color: #fff; border-radius: var(--radius-lg); padding: var(--s-7) var(--s-8); }
.deep h3 { font-size: var(--fs-h3); margin-bottom: var(--s-6); }
.deep ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); font-size: var(--fs-lead); line-height: 1.5; }
.deep li { display: flex; align-items: center; gap: var(--s-3); }
.deep li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-400); flex: none; }

/* ---- stats ---------------------------------------------- */
.stats { display: flex; gap: var(--s-7); flex-wrap: wrap; }
.stat strong { font-family: var(--head); font-size: var(--fs-stat); letter-spacing: var(--ls-head); display: block; line-height: 1.1; }
.stat span { display: block; max-width: 190px; font-size: var(--stat-label-size, var(--fs-eyebrow));
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--stat-label-color, var(--faint));
  font-weight: var(--stat-label-weight, var(--w-regular));
  margin-top: var(--s-1); line-height: 1.45; }
:root[lang="he"] .stat span { text-transform: none; letter-spacing: 0;
  font-size: var(--stat-label-size, var(--fs-xs)); }

/* ---- FAQ ------------------------------------------------ */
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: var(--s-5); padding: var(--s-6) var(--s-1);
  font-family: var(--head); font-weight: var(--w-bold); font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--s-6); font-weight: var(--w-regular);
  color: var(--faint); transition: transform var(--dur) ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 var(--s-6); padding-inline: var(--s-1);
  max-width: var(--measure); color: var(--muted); line-height: var(--lh-prose); }

/* ---- section rhythm ------------------------------------- */
.section { padding-block: var(--s-12); }
.section-sm { padding-block: var(--s-9); }
.section-head { text-align: center; margin-bottom: var(--s-9); }
.section-head h2 { font-size: var(--fs-h2); line-height: var(--lh-head); margin-top: var(--s-3); }
.section-head p:not(.eyebrow) { max-width: var(--measure); margin: var(--s-4) auto 0; color: var(--muted); font-size: var(--fs-lead); }

/* ---- prose ---------------------------------------------- */
.prose { max-width: var(--measure); }
.prose p { color: var(--muted); line-height: var(--lh-prose); margin: 0 0 var(--s-5); }
.prose h2 { font-size: var(--fs-h3); margin: var(--s-9) 0 var(--s-4); color: var(--ink); }
.prose strong { color: var(--ink); font-weight: var(--w-medium); }

/* ---- footer --------------------------------------------- */
.footer { padding-top: var(--s-8); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: var(--s-4); padding-bottom: var(--s-6); border-bottom: 1px solid var(--hairline);
}
.footer-links { display: flex; gap: var(--s-5); }
.footer a { color: var(--muted); text-decoration: none; font-size: var(--fs-xs); }
.footer a:hover { color: var(--ink); }
.footer-copy { color: var(--faint); font-size: 14px; padding-block: var(--s-5) var(--s-7); }
.meadow { display: block; width: 100%; height: 240px; object-fit: cover; object-position: bottom; background: var(--accent-soft); }

/* ---- page hero: inner pages open with a still from the same
   image family the homepage's video belongs to. Learned from the
   Claude Design About page: 62svh, content pinned bottom-start,
   3-stop scrim, eyebrow inverted to white. ---------------------- */
/* height dropped from the package's 62svh: the inner-page opener
   should sit above the fold's shoulder, not own the fold */
.page-hero { position: relative; min-height: var(--page-hero-h, 42svh); display: grid;
  place-items: end start; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,14,10,.34) 0%, rgba(8,14,10,.10) 40%, rgba(8,14,10,.55) 100%); }
.page-hero-content { position: relative; z-index: 1; color: #fff;
  max-width: var(--wrap); width: 100%; margin-inline: auto;
  padding: 0 var(--s-5) var(--s-9); }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::after { background: #fff; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.15;
  margin-top: var(--s-4); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.page-hero .lead { max-width: 620px; margin: var(--s-4) 0 0;
  font-size: var(--fs-lead); line-height: 1.55; color: rgba(255,255,255,.95);
  text-shadow: 0 1px 16px rgba(0,0,0,.3); }

/* ---- homepage hero: video variant, same geometry ------------- */
.video-hero { position: relative; min-height: 100svh; display: grid;
  place-items: center; overflow: hidden; }
.video-hero video, .video-hero > img.poster { position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; }
.video-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,14,10,.30) 0%, rgba(8,14,10,.12) 45%, rgba(8,14,10,.30) 100%); }
.video-hero-content { position: relative; z-index: 1; text-align: center; color: #fff; padding-top: var(--s-7); }
.video-hero h1 { font-size: var(--fs-display); line-height: var(--lh-tight);
  text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.video-hero .lead { max-width: 560px; margin: var(--s-5) auto var(--s-7);
  font-size: var(--fs-lead); line-height: 1.55; color: rgba(255,255,255,.95);
  text-shadow: 0 1px 16px rgba(0,0,0,.3); }

/* ---- logo marquee, from live marketing.css ------------------- */
.marquee { overflow: hidden; margin-top: var(--s-8);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 72px; white-space: nowrap;
  padding-inline-end: 72px; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--head); font-weight: var(--w-bold);
  font-size: 24px; color: var(--marquee-grey); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- step icons, from live marketing.css --------------------- */
.step-icon { width: 58px; height: 58px; margin-bottom: var(--s-8); }
.step-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--ink);
  stroke-width: 2.6; stroke-linecap: round; }
.icon-orbit .spin { transform-origin: 32px 32px; animation: orbit 9s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.icon-wire .pulse { stroke-dasharray: 5 7; animation: dashmove 1.6s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -24; } }
.icon-grow .lift { animation: lift 2.6s ease-in-out infinite; }
@keyframes lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .icon-orbit .spin, .icon-wire .pulse, .icon-grow .lift { animation: none; } }

/* ---- reveal, from live marketing.css ------------------------- */
.reveal { opacity: 0; transform: translateY(26px);
  transition: opacity var(--dur-slow) ease, transform var(--dur-slow) ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- manifesto: particle sphere + word reveal ---------------- */
.manifesto { padding: var(--s-12) 0; }
.manifesto .wrap { display: grid; grid-template-columns: 420px 1fr; gap: var(--s-9); align-items: center; }
#sphere { width: 100%; aspect-ratio: 1; }
.manifesto p { margin: 0; font-family: var(--body); font-weight: var(--w-regular);
  font-size: var(--fs-h3); line-height: 1.45; color: var(--muted); letter-spacing: var(--ls-head); }
.manifesto .w, .wordreveal .w { opacity: .16; transition: opacity var(--dur) ease; }
.manifesto .w.on, .wordreveal .w.on { opacity: 1; }
@media (max-width: 900px) { .manifesto .wrap { grid-template-columns: 1fr; }
  #sphere { max-width: 320px; margin-inline: auto; } }

.wordreveal { max-width: 800px; margin: var(--s-10) auto 0; padding-inline: var(--s-5);
  text-align: center; font-size: var(--fs-quote); line-height: 1.55; color: var(--muted); }

/* ---- sky panel ----------------------------------------------- */
.sky { padding: var(--s-8) 0; }
.sky-panel { position: relative; border-radius: var(--radius-xl); overflow: hidden;
  min-height: 74vh; display: grid; place-items: center; text-align: center; }
.sky-panel img.sky-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sky-scrim { position: absolute; inset: 0; background: rgba(10, 20, 14, .18); }
.sky-content { position: relative; color: #fff; padding: var(--s-10) var(--s-5); }
.sky-badge { display: inline-flex; align-items: center; gap: var(--s-2); background: #fff;
  color: var(--ink); border-radius: var(--radius-pill); padding: var(--s-2) var(--s-4);
  font-weight: var(--w-medium); font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.sky h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1.08; margin-top: var(--s-5);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.sky-card { margin: var(--s-8) auto 0; max-width: var(--sky-card-w, 420px); text-align: start;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-radius: var(--radius-md); padding: var(--sky-card-pad, var(--s-4) var(--s-5)); color: var(--ink);
  box-shadow: var(--shadow-float); }
.sky-card .from { font-size: var(--sky-card-meta, var(--fs-eyebrow)); color: var(--faint); margin: 0 0 var(--s-2); }
.sky-card p { margin: 0 0 var(--s-2); font-size: var(--sky-card-fs, 14px); line-height: 1.55; }
.sky-card p:last-child { margin: 0; }

/* ---- chaos chips --------------------------------------------- */
.chaos { padding: var(--s-11) 0 var(--s-7); text-align: center; overflow: hidden; }
.chaos h2 { font-size: var(--fs-h2); line-height: var(--lh-head); margin-bottom: var(--s-9); }
.chip-pile { position: relative; height: 300px; max-width: 760px; margin-inline: auto; }
.chip { position: absolute; padding: var(--s-4) var(--s-6); border-radius: var(--radius-pill);
  color: #fff; font-weight: var(--w-medium); font-size: var(--fs-body);
  box-shadow: var(--shadow-chip); opacity: 0; transform: translateY(-340px) rotate(0deg); }
.chip-pile.play .chip { animation: chipdrop .9s var(--ease) forwards; animation-delay: var(--d); }
@keyframes chipdrop { 0% { opacity: 0; transform: translateY(-340px) rotate(0deg); }
  60% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .chip { opacity: 1; transform: rotate(var(--r)); } }

/* ---- problems: horizontal scroller --------------------------- */
.problems-head { text-align: center; padding: var(--s-11) var(--s-5) 0;
  font-size: var(--fs-h2); line-height: var(--lh-head); }
.problems-track { display: flex; gap: var(--s-6); padding: var(--s-9) 8vw var(--s-10);
  overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; }
.problems-track::-webkit-scrollbar { display: none; }
.pcard { position: relative; flex: 0 0 460px; height: 66vh; border-radius: var(--radius-lg);
  overflow: hidden; scroll-snap-align: center; margin: 0; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,14,10,.5), rgba(8,14,10,0) 55%); }
.pcard h3 { position: absolute; z-index: 1; top: var(--s-6); inset-inline: var(--s-6); color: #fff;
  font-size: 23px; line-height: 1.3; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
@media (max-width: 700px) { .pcard { flex-basis: 78vw; height: 58vh; } }

/* current page in the nav */
.nav-link.is-here { color: var(--ink); font-weight: var(--w-medium); }

/* ---- mobile nav ------------------------------------------------ */
.nav-burger { display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 0; border-radius: var(--radius-pill);
  background: rgba(27,31,28,.06); color: var(--ink); cursor: pointer; padding: 0; }
.nav-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(12,20,15,.4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nav-sheet-panel { position: absolute; inset: 0 0 auto 0; background: #fff;
  padding: 14px 26px 30px; display: grid; gap: 4px;
  border-radius: 0 0 26px 26px; box-shadow: 0 20px 50px rgba(15,25,18,.2); }
.sheet-link { color: var(--ink); text-decoration: none; font-size: 20px;
  font-weight: var(--w-medium); padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.sheet-link.alt { color: var(--muted); border-bottom: 0; margin-bottom: var(--s-3); }
@media (max-width: 720px) {
  .nav-side .nav-link { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { padding: 8px 10px 8px 16px; gap: 10px; }
  .nav-side { gap: var(--s-3); }
  .brand { font-size: 15px; }
  .brand img { width: 22px; height: 17px; }
  .nav-cta { padding: 8px 16px; font-size: 13.5px; }
}

/* ---- responsive grid utilities: collapse is part of the component ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: center; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-2 { gap: var(--s-7); } }

/* manifesto mobile gap (sphere + text breathe less) */
@media (max-width: 700px) { .manifesto { padding: var(--s-9) 0; } .manifesto .wrap { gap: var(--s-6); } }

.sheet-head { display: flex; align-items: center; justify-content: space-between; padding-block: 8px 14px; }
.sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 0; border-radius: var(--radius-pill); background: rgba(27,31,28,.06); color: var(--ink); cursor: pointer; padding: 0; }
