/* VEIL landing v2: white product storytelling around one 3D phone. Shared by index.html (he, rtl) and en.html. */
:root {
  --ground: #FFFFFF;
  --stage: #E8E9EB;
  --tone: #F3F4F5;
  --ink: #16181D;
  --soft: #4B5059;
  --quiet: #80858F;
  --accent: #3D82F0;
  --accent-soft: #5A9BFC;
  --night: #0E1117;
  --face: 'Geist', 'Heebo', system-ui, -apple-system, sans-serif;
  --track: -0.035em;
  --s-small: clamp(0.875rem, 0.84rem + 0.12vw, 0.9375rem);
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  --s-head: clamp(2.375rem, 1.3rem + 3.6vw, 4.75rem);
  --s-display: clamp(2.875rem, 1.2rem + 5.4vw, 6.25rem);
  --m: clamp(1rem, 2.4vw, 2rem);
  --wide: 80rem;
  --gap: clamp(7.5rem, 16vh, 12rem);
  --r: 1.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html[lang="he"] { --track: -0.01em; --face: 'Heebo', 'Geist', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--face); font-size: var(--s-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: var(--track); line-height: 1.03; text-wrap: balance; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.nums { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 90; background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: 2rem; }
.skip:focus { top: 1rem; }
.col { width: min(var(--wide), 100% - var(--m) * 2); margin-inline: auto; }
section { padding-top: var(--gap); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.375rem; border-radius: 3rem; background: var(--ink); color: #fff; font-size: var(--s-small); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease), background-color 160ms ease; }
.btn:hover { background: #2B2F37; }
.btn:active { transform: scale(0.97); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #E9EAEC; }
.arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--s-small); font-weight: 500; text-decoration: none; }
.arrow::after { content: '→'; transition: transform 200ms var(--ease); }
html[dir="rtl"] .arrow::after { content: '←'; }
.arrow:hover::after { transform: translateX(4px); }
html[dir="rtl"] .arrow:hover::after { transform: translateX(-4px); }

/* the bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, 0.94); transition: transform 300ms var(--ease); }
.bar .col { display: flex; align-items: center; gap: 2rem; height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; font-size: 1.0625rem; }
.brand img { width: 1.5rem; height: auto; border-radius: 22.5%; }
.brand .by { font-weight: 400; letter-spacing: 0; color: var(--soft); font-size: 0.875rem; }
.bar nav { display: flex; gap: 1.75rem; margin-inline-start: auto; font-size: var(--s-small); }
.bar nav a { text-decoration: none; color: var(--soft); transition: color 160ms ease; }
.bar nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .bar nav a:not(.lang) { display: none; } .bar .col { gap: 1rem; } }

/* ============ story: the hero card that opens into the 3D scroll ============ */
.story { position: relative; height: 560vh; padding: 0; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.frame { position: absolute; inset: 0; background: var(--stage); clip-path: inset(calc(3.5rem + var(--inset, 1) * 0.25rem) calc(var(--inset, 1) * var(--m)) calc(var(--inset, 1) * var(--m)) round calc(var(--inset, 1) * var(--r))); }
.frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: absolute; z-index: 2; inset-inline-start: calc(var(--m) * 2.25); top: 50%; transform: translateY(-50%); width: min(36rem, 46%); opacity: calc(1 - var(--out, 0)); translate: 0 calc(var(--out, 0) * -3rem); }
.hero-copy h1 { font-size: var(--s-display); }
.hero-copy p { margin-top: 1.5rem; max-width: 30rem; font-size: var(--s-lead); line-height: 1.38; color: var(--soft); }
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.hero-film { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; width: min(22rem, 100%); padding: 0.5rem; padding-inline-end: 1rem; border-radius: 1rem; background: #fff; text-decoration: none; transition: transform 200ms var(--ease); }
.hero-film:hover { transform: translateY(-2px); }
.hero-film img { width: 7.5rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0.625rem; }
.hero-film span { font-size: var(--s-small); line-height: 1.35; }
.hero-film b { display: block; font-weight: 500; }
.scroll-cue { position: absolute; z-index: 2; inset-inline: 0; bottom: calc(var(--m) + 1.75rem); text-align: center; font-size: var(--s-small); color: var(--soft); opacity: calc(1 - var(--out, 0) * 3); }
.chapters { position: absolute; z-index: 3; inset-inline: 0; bottom: 1rem; display: flex; justify-content: center; gap: 0.375rem; pointer-events: none; }
.chapters i { width: 1.75rem; height: 3px; border-radius: 2px; background: rgba(22, 24, 29, 0.16); overflow: hidden; }
.chapters i::after { content: ''; display: block; height: 100%; width: calc(var(--fill, 0) * 100%); background: var(--ink); }
html[dir="rtl"] .chapters i::after { margin-inline-start: auto; }
.cap { position: absolute; z-index: 2; inset-inline-start: calc(var(--m) * 2.25); top: 50%; width: min(26rem, 40%); transform: translateY(-50%); opacity: 0; visibility: hidden; transition: opacity 400ms ease, translate 500ms var(--ease), visibility 0s linear 400ms; translate: 0 1.25rem; pointer-events: none; }
.cap.on { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
html[lang="he"] .hero-copy { width: min(40rem, 50%); }
html[lang="he"] .hero-copy h1 { font-size: clamp(2.75rem, 1.1rem + 4.6vw, 5.5rem); }
.cap h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.75rem); }
.cap p { margin-top: 1rem; font-size: var(--s-lead); line-height: 1.4; color: var(--soft); }
.cap.end { inset-inline-start: auto; inset-inline-end: calc(var(--m) * 2.25); }
.no-webgl-note { display: none; }
@media (max-width: 760px) {
  .story { height: 480vh; }
  .hero-copy { top: auto; bottom: calc(var(--m) + 3.5rem); transform: none; inset-inline: calc(var(--m) * 1.75); width: auto; }
  .hero-copy p { font-size: var(--s-body); }
  html[lang="he"] .hero-copy h1 { font-size: 2.125rem; }
  .hero-film { display: none; }
  .scroll-cue { display: none; }
  .cap, .cap.end { top: auto; bottom: 3rem; transform: none; inset-inline: calc(var(--m) * 1.5); width: auto; }
  .cap h2 { font-size: 1.875rem; }
  .cap p { font-size: var(--s-body); }
}
/* No WebGL or no script: the story becomes a plain sequence. */
.flat .story, html:not(.js) .story { height: auto; }
.flat .stage, html:not(.js) .stage { position: relative; height: auto; overflow: visible; }
.flat .frame, html:not(.js) .frame { position: relative; clip-path: none; margin: 3.5rem var(--m) 0; border-radius: var(--r); aspect-ratio: 16 / 9; background: var(--stage) url(../film/hero-poster.jpg) center / cover; }
.flat .hero-copy, html:not(.js) .hero-copy { position: relative; transform: none; top: auto; inset: auto; width: auto; margin: 3rem auto 0; max-width: var(--wide); padding-inline: var(--m); opacity: 1; translate: none; }
.flat .cap, html:not(.js) .cap { position: relative; opacity: 1; visibility: visible; translate: none; transform: none; top: auto; inset: auto; width: auto; max-width: var(--wide); margin: 4rem auto 0; padding-inline: var(--m); }
.flat .chapters, .flat .scroll-cue, html:not(.js) .chapters, html:not(.js) .scroll-cue { display: none; }

/* ============ shared section openers ============ */
.lede { display: grid; gap: 1.25rem; text-align: center; justify-items: center; }
.lede h2 { font-size: var(--s-head); max-width: 16ch; }
.lede p { max-width: 44rem; font-size: var(--s-lead); line-height: 1.45; color: var(--soft); }

/* ============ the live demo: phone, VEIL, control room ============ */
.relay { display: grid; grid-template-columns: 1fr 0.7fr 1fr; align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
.device { border-radius: 1.75rem; background: var(--ink); padding: 0.625rem; }
.device > div { position: relative; height: clamp(18.5rem, 26vw, 21rem); border-radius: 1.25rem; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.device header { display: flex; justify-content: space-between; padding: 0.75rem 1rem; font-size: 0.8125rem; color: var(--soft); background: var(--tone); }
.device header b { color: var(--ink); font-weight: 600; }
.pad { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem; align-items: center; }
.pad-read { display: grid; gap: 0.5rem; }
.pad-read p { font-size: 0.9375rem; font-weight: 500; }
.dots { display: flex; gap: 0.5rem; }
.dots span { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #DADCE0; transition: background-color 120ms ease, transform 160ms var(--ease); }
.dots span.on { background: var(--ink); transform: scale(1.1); }
.pad-msg { min-height: 1.3em; font-size: 0.8125rem; color: var(--soft); }
.keys { display: grid; grid-template-columns: repeat(3, 2.75rem); gap: 0.375rem; }
.keys button { height: 2.5rem; border-radius: 0.75rem; background: var(--tone); font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color 120ms ease, transform 100ms ease; }
.keys button:hover { background: #E6E8EB; }
.keys button:active { transform: scale(0.94); background: #DADDE1; }
.keys .ghost { background: none; }
.wallet { flex: 1; display: grid; align-content: start; gap: 0.75rem; padding: 1rem; }
.wallet small { display: block; font-size: 0.8125rem; color: var(--quiet); }
.wallet .total { font-size: 1.875rem; font-weight: 500; letter-spacing: -0.03em; }
.wallet .tok { display: flex; justify-content: space-between; padding: 0.75rem; border-radius: 0.75rem; background: var(--tone); font-size: 0.875rem; }
.wallet button { justify-self: start; font-size: 0.8125rem; color: var(--accent); font-weight: 500; }
.log { flex: 1; display: grid; align-content: end; gap: 0.375rem; padding: 1rem; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.log li { display: flex; justify-content: space-between; gap: 1rem; animation: rise 420ms var(--ease) both; }
.log li em { font-style: normal; color: var(--quiet); }
.log li.idle { color: var(--quiet); animation: none; }
.log li.hot { color: var(--accent); font-weight: 500; }
.state { font-size: 0.8125rem; }
.state.live { color: #D93445; font-weight: 600; }
.core { position: relative; display: grid; place-items: center; height: 100%; min-height: 10rem; }
.core::before, .core::after { content: ''; position: absolute; top: 50%; height: 2px; width: 50%; background: rgba(61, 130, 240, 0.18); }
.core::before { inset-inline-start: 0; }
.core::after { inset-inline-end: 0; }
.core .pulse { position: absolute; top: calc(50% - 1px); height: 2px; width: 30%; inset-inline-start: 0; background: var(--accent); opacity: 0; }
.core.firing .pulse { animation: travel 1100ms var(--ease) forwards; }
.core-box { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(6.5rem, 10vw, 8.5rem); aspect-ratio: 1; border-radius: 1.75rem; background: var(--tone); }
.core-box img { width: 58%; border-radius: 22.5%; }
.core.firing .core-box { animation: knock 600ms 380ms var(--ease); }
.relay-notes { display: grid; grid-template-columns: 1fr 0.7fr 1fr; margin-top: 1.5rem; text-align: center; font-size: var(--s-body); }
.relay-notes p { padding-inline: 1rem; color: var(--soft); }
.relay-notes b { display: block; color: var(--ink); font-weight: 600; }
@keyframes travel { 0% { opacity: 1; inset-inline-start: 0; width: 10%; } 60% { opacity: 1; } 100% { opacity: 0; inset-inline-start: 90%; width: 10%; } }
@keyframes knock { 50% { transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 900px) {
  .relay, .relay-notes { grid-template-columns: 1fr; }
  .core { min-height: 7rem; }
  .core::before, .core::after { top: 0; height: 50%; width: 2px; inset-inline-start: 50%; }
  .core::after { top: 50%; inset-inline-end: auto; }
  .core .pulse { display: none; }
  .relay-notes { display: none; }
  .device-cap { display: block !important; margin: 0.75rem 0 0; text-align: center; color: var(--soft); font-size: var(--s-small); }
}
.device-cap { display: none; }

/* ============ products bento ============ */
.bento { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 0.75rem; margin-top: clamp(3rem, 5vw, 4.5rem); }
.tile { position: relative; overflow: hidden; border-radius: var(--r); background: var(--stage); min-height: 14rem; text-decoration: none; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile.big { grid-row: span 2; min-height: clamp(26rem, 46vw, 38rem); }
.tile.wide { grid-column: 1 / -1; min-height: clamp(20rem, 38vw, 34rem); }
.tile .tab { position: absolute; inset-inline-start: 0; bottom: 0; max-width: min(26rem, 88%); padding: 0.875rem 1.125rem 0.875rem; padding-inline-end: 1.5rem; background: #fff; border-start-end-radius: 1.125rem; }
.tile .tab b { display: block; font-weight: 600; font-size: 0.9375rem; }
.tile .tab b::after { content: ' →'; }
html[dir="rtl"] .tile .tab b::after { content: ' ←'; }
.tile .tab span { display: block; margin-top: 0.125rem; font-size: var(--s-small); color: var(--soft); line-height: 1.4; }
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; }
.tile .play span { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1.25rem; border-radius: 3rem; background: #fff; font-weight: 500; font-size: var(--s-small); transition: transform 200ms var(--ease); }
.tile .play:hover span { transform: scale(1.04); }
.tile .play svg { width: 0.875rem; }
.film-wrap { position: relative; }
.film-wrap video { background: #000; }
.film-note { margin-top: 1rem; font-size: var(--s-small); color: var(--soft); max-width: 52rem; }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; } .tile.big { grid-row: auto; min-height: 24rem; } }

/* ============ built like a distress system ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split h2 { font-size: var(--s-head); max-width: 12ch; }
.split > p { font-size: var(--s-lead); line-height: 1.45; color: var(--soft); max-width: 34rem; padding-top: 0.5rem; }
.flow { position: relative; display: grid; grid-template-columns: 1fr 0.8fr 1fr; align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
.flow svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow .wires path { fill: none; stroke: rgba(61, 130, 240, 0.28); stroke-width: 2; }
.flow .wires path.lit { stroke: var(--accent); stroke-dasharray: 60 1000; stroke-dashoffset: 1060; animation: run 2600ms linear infinite; }
@keyframes run { to { stroke-dashoffset: 0; } }
.flow .sources { display: grid; gap: 0.75rem; position: relative; z-index: 1; }
.pic { position: relative; overflow: hidden; border-radius: 1.125rem; aspect-ratio: 16 / 10; background: var(--night); color: #fff; }
.pic img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.pic p { position: absolute; inset-inline: 1rem; bottom: 0.875rem; font-size: var(--s-small); line-height: 1.35; }
.pic p b { display: block; font-size: 1rem; font-weight: 600; }
.pic::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }
.pic p { z-index: 1; }
.flow .hub { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: clamp(7rem, 11vw, 9.5rem); aspect-ratio: 1; border-radius: 1.75rem; background: var(--tone); }
.flow .hub img { width: 56%; border-radius: 22.5%; }
.flow .target { position: relative; z-index: 1; }
.rules { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2vw, 2rem); margin-top: clamp(3.5rem, 6vw, 5rem); }
.rules h3 { font-size: 1.125rem; letter-spacing: -0.015em; font-weight: 600; }
.rules p { margin-top: 0.5rem; font-size: var(--s-small); line-height: 1.5; color: var(--soft); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 1.25rem; }
  .flow { grid-template-columns: 1fr; gap: 1rem; }
  .flow svg.wires { display: none; }
  .rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .rules { grid-template-columns: 1fr; } }

/* ============ who gains: expanding cards ============ */
.who-head { display: grid; gap: 1rem; }
.who-head h2 { font-size: var(--s-head); max-width: 14ch; }
.who-head p { max-width: 38rem; color: var(--soft); font-size: var(--s-body); }
.fan { display: flex; gap: 0.625rem; height: clamp(30rem, 44vw, 36rem); margin-top: 2.5rem; }
.leaf { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r); background: var(--night); color: #fff; text-align: start; transition: flex-grow 700ms var(--ease); }
.leaf.open { flex-grow: 4.2; }
.leaf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.75; transition: filter 700ms ease, opacity 700ms ease, transform 1200ms var(--ease); }
.leaf.open img { filter: none; opacity: 1; }
.leaf::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(5, 7, 12, 0.82)); }
.leaf .name { position: absolute; z-index: 1; inset-inline: 1.25rem; bottom: 1.25rem; line-height: 1.25; font-weight: 500; font-size: 1.0625rem; transition: opacity 300ms ease; }
.leaf.open .name { opacity: 0; }
.leaf .body { position: absolute; z-index: 1; inset-inline-start: 1.75rem; bottom: 1.75rem; width: min(32rem, calc(100vw - 6rem)); opacity: 0; translate: 0 1rem; transition: opacity 300ms ease, translate 500ms var(--ease); }
.leaf.open .body { opacity: 1; translate: 0 0; transition-delay: 250ms; }
.leaf .body h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.625rem); }
.leaf .body p { margin-top: 0.75rem; font-size: var(--s-body); line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
@media (max-width: 760px) {
  .fan { flex-direction: column; height: auto; }
  .leaf, .leaf.open { flex: none; min-height: 22rem; }
  .leaf img { filter: none; opacity: 1; }
  .leaf .name { display: none; }
  .leaf .body { opacity: 1; translate: none; }
}

/* ============ the threat in numbers ============ */
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.figs h2 { font-size: var(--s-head); max-width: 11ch; }
.figs dl { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.figs dt { font-size: clamp(3rem, 2rem + 3.4vw, 5.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.figs dd { margin-top: 0.75rem; color: var(--soft); max-width: 18rem; }
.figs .src { grid-column: 1 / -1; font-size: var(--s-small); color: var(--quiet); }
@media (max-width: 760px) { .figs { grid-template-columns: 1fr; } }

/* ============ privacy ============ */
.privacy { margin-top: var(--gap); padding: clamp(4rem, 8vw, 7rem) 0; background: var(--night); color: #fff; }
.privacy h2 { font-size: var(--s-head); max-width: 13ch; }
.privacy .lead { margin-top: 1.25rem; max-width: 36rem; font-size: var(--s-lead); color: rgba(255, 255, 255, 0.78); line-height: 1.45; }
.never { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.never li { padding: 0.5rem 1rem; border-radius: 3rem; background: rgba(255, 255, 255, 0.08); font-size: var(--s-small); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.45); }
.guards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.guards b { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.guards p { font-size: var(--s-small); line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
@media (max-width: 900px) { .guards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .guards { grid-template-columns: 1fr; } }

/* ============ questions ============ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.faq h2 { font-size: var(--s-head); max-width: 12ch; }
.faq details { padding: 1.25rem 0; }
.faq details + details { box-shadow: inset 0 1px 0 #E5E6E9; }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--quiet); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.75rem; color: var(--soft); max-width: 40rem; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ============ who it's for ============ */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.pair h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); max-width: 20ch; }
.pair .kind { margin-top: 1rem; font-weight: 500; font-size: var(--s-small); }
.pair p { margin-top: 0.75rem; color: var(--soft); max-width: 28rem; }
.pair .arrow { margin-top: 1.5rem; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; gap: 5rem; } }

/* ============ close ============ */
.close-card { position: relative; overflow: hidden; margin-top: var(--gap); border-radius: var(--r); min-height: clamp(30rem, 48vw, 40rem); background: var(--night); color: #fff; display: flex; align-items: center; }
.close-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.close-card::before { content: ''; position: absolute; inset: 0 40% 0 0; background: linear-gradient(90deg, rgba(5, 7, 12, 0.75), transparent); z-index: 1; }
html[dir="rtl"] .close-card::before { inset: 0 0 0 40%; background: linear-gradient(-90deg, rgba(5, 7, 12, 0.75), transparent); }
.close-card > div { position: relative; z-index: 2; padding: clamp(2rem, 5vw, 4rem); max-width: 40rem; }
.close-card h2 { font-size: var(--s-head); }
.close-card p { margin-top: 1.25rem; font-size: var(--s-lead); line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.close-card .hero-acts { margin-top: 2rem; }
.close-card .arrow { color: #fff; }

/* footer */
.foot { margin-top: 3rem; padding-bottom: 2rem; font-size: var(--s-small); color: var(--soft); }
.foot .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.25rem; box-shadow: inset 0 -1px 0 #E5E6E9; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot .legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; }

/* WhatsApp */
.wa { position: fixed; z-index: 60; inset-inline-end: 1.25rem; bottom: 1.25rem; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #1FA855; color: #fff; transition: transform 200ms var(--ease); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 1.5rem; }

/* reveal on entry */
.js [data-reveal] { opacity: 0; translate: 0 1.5rem; transition: opacity 700ms ease, translate 800ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  .flow .wires path.lit, .core.firing .pulse, .core.firing .core-box, .log li { animation: none; }
  .leaf, .leaf img, .leaf .body, .cap { transition: none; }
}

/* captions for the wide chapters sit above the scene, centred */
.cap.top { top: 6.5rem; inset-inline: 0; margin-inline: auto; width: min(46rem, 90%); transform: none; text-align: center; }
.cap.top p { margin-inline: auto; max-width: 36rem; }
@media (max-width: 760px) { .cap.top { top: 5rem; bottom: auto; } }

/* ============ the moment: film footage scrubbed by scroll ============ */
.moment { position: relative; height: 380vh; margin-top: var(--gap); padding: 0; background: var(--night); color: #fff; }
.moment-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.moment-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--night); }
.beat { position: absolute; z-index: 1; bottom: clamp(5rem, 11vh, 6.5rem); max-width: min(30rem, calc(100% - var(--m) * 2)); font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.25rem); font-weight: 500; letter-spacing: var(--track); line-height: 1.15; text-wrap: balance; opacity: 0; translate: 0 1.5rem; transition: opacity 450ms ease, translate 600ms var(--ease); }
.beat.on { opacity: 1; translate: 0 0; }
.beat.lead { inset-inline-start: calc(var(--m) * 2.25); }
.beat.trail { inset-inline-end: calc(var(--m) * 2.25); text-align: end; }
.beat.centre { inset-inline: 0; margin-inline: auto; text-align: center; max-width: min(34rem, calc(100% - var(--m) * 2)); }
/* A scrim only where the words sit, never a full-frame overlay. */
.moment-stage::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(5, 7, 12, 0.72)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .beat { transition: none; translate: none; } }
html:not(.js) .moment { height: auto; }
html:not(.js) .moment-stage { position: relative; height: auto; aspect-ratio: 16 / 9; background: url(../film/moment-poster.jpg) center / cover; }
html:not(.js) .beat { position: relative; opacity: 1; translate: none; inset: auto; bottom: auto; margin: 1rem var(--m); }

/* ============ the live demo, second pass: a real phone beside a Command screen ============ */
.relay, .relay-notes { grid-template-columns: 18.5rem 0.55fr 1.45fr; }
.phone-mock { width: 18.5rem; aspect-ratio: 9 / 19.2; padding: 0.5rem; border-radius: 3rem; background: #1B1E24; box-shadow: inset 0 0 0 2px #3A3F48, 0 30px 60px -30px rgba(10, 12, 18, 0.45); }
.phone-screen { position: relative; height: 100%; border-radius: 2.5rem; background: #fff; overflow: hidden; display: flex; flex-direction: column; font-family: 'Geist', system-ui, sans-serif; letter-spacing: 0; }
.status { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.4rem 0; font-size: 0.8125rem; font-weight: 600; }
.island { width: 5.75rem; height: 1.6rem; border-radius: 1rem; background: #000; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.7rem; }
.sig i { width: 3px; background: #16181D; border-radius: 1px; }
.sig i:nth-child(1) { height: 35%; } .sig i:nth-child(2) { height: 55%; } .sig i:nth-child(3) { height: 78%; } .sig i:nth-child(4) { height: 100%; }
.lock { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 1.4rem 1.25rem 0; }
.lock-logo { width: 3.25rem; border-radius: 22.5%; }
.lock-title { margin-top: 0.85rem; font-size: 1.0625rem; font-weight: 500; }
.lock .dots { margin-top: 0.9rem; gap: 0.85rem; }
.lock .dots span { width: 0.8rem; height: 0.8rem; }
.lock .pad-msg { min-height: 1.2rem; margin-top: 0.35rem; font-size: 0.75rem; text-align: center; }
.lock .keys { grid-template-columns: repeat(3, 3.6rem); gap: 0.6rem 1.15rem; margin-top: 0.25rem; }
.lock .keys button { width: 3.6rem; height: 3.6rem; border-radius: 50%; font-size: 1.375rem; font-weight: 400; background: #F1F2F4; }
.lock .keys .ghost { background: none; font-size: 1.125rem; }
.lock-links { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding: 0 0.6rem 1.6rem; font-size: 0.75rem; color: var(--soft); }
.phone-screen .wallet { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem 1.1rem 1.6rem; }
.w-top { display: flex; justify-content: space-between; align-items: flex-start; }
.w-top b { display: block; font-size: 0.875rem; }
.phone-screen .wallet small { display: block; font-size: 0.75rem; color: var(--soft); }
.phone-screen .wallet .total { font-size: 1.875rem; font-weight: 500; letter-spacing: -0.03em; }
.phone-screen .wallet em { font-style: normal; font-size: 0.8125rem; color: #C42B3B; }
.phone-screen #relock { padding: 0.35rem 0.8rem; border-radius: 1rem; background: #F1F2F4; font-size: 0.75rem; font-weight: 500; color: var(--ink); }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; text-align: center; font-size: 0.6875rem; }
.acts i { display: grid; place-items: center; height: 2.9rem; margin-bottom: 0.3rem; border-radius: 0.9rem; background: #F1F2F4; font-style: normal; font-size: 1.125rem; }
.phone-screen .tok { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem; padding: 0.65rem; border-radius: 1rem; background: #F6F7F8; font-size: 0.8125rem; }
.phone-screen .tok small { font-size: 0.6875rem; }
.coin { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #F2A93B; color: #fff; font-style: normal; font-size: 0.5625rem; font-weight: 700; }
.coin.eth { background: #5B6476; }
.home-bar { position: absolute; bottom: 0.5rem; left: 50%; width: 7.5rem; height: 0.3rem; margin-left: -3.75rem; border-radius: 1rem; background: #16181D; }
/* the control room as a Command screen */
.device.console { background: #23272F; border-radius: 1.25rem; padding: 0.5rem; }
.device.console > div { height: clamp(22rem, 30vw, 27rem); background: #0B0E14; color: #E9EDF3; border-radius: 0.875rem; }
.device.console header { background: #121722; color: #8A93A3; }
.device.console header b { color: #E9EDF3; }
.device.console .log li em { color: #6F7888; }
.device.console .log li.idle { color: #8A93A3; }
.device.console .log li.hot { color: #9CC2FF; }
.device.console .state.live { color: #FF6B7A; }
@media (max-width: 900px) {
  .relay { justify-items: center; }
  .relay > div { width: 100%; display: grid; justify-items: center; }
  .device.console { width: 100%; }
}
@media (max-width: 380px) { .phone-mock { width: 16.5rem; } .lock .keys { grid-template-columns: repeat(3, 3.2rem); gap: 0.5rem 0.9rem; } .lock .keys button { width: 3.2rem; height: 3.2rem; } }

/* ============ the demo's control room, drawn like VEIL Command ============ */
.device.console > div { height: clamp(24rem, 32vw, 29rem); }
.cmd { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.5rem; padding: 0.5rem; min-height: 0; }
.cmd-map { position: relative; overflow: hidden; border-radius: 0.625rem; background: #131924; }
.cmd-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-label { position: absolute; top: 0.6rem; inset-inline-start: 0.75rem; font-size: 0.75rem; color: #8A93A3; }
.g { position: absolute; left: var(--x); top: var(--y); width: 0.7rem; height: 0.7rem; margin: -0.35rem; border-radius: 50%; background: #2FD38A; box-shadow: 0 0 0 3px rgba(47, 211, 138, 0.22); transition: left 1600ms var(--ease), top 1600ms var(--ease); }
.pin { position: absolute; left: 48%; top: 52%; width: 1rem; height: 1rem; margin: -0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; opacity: 0; transform: scale(0.4); transition: opacity 300ms ease, transform 500ms var(--ease); }
.pin i { position: absolute; inset: -1.25rem; border-radius: 50%; background: rgba(61, 130, 240, 0.28); animation: ping 1600ms ease-out infinite; }
.live .pin { opacity: 1; transform: scale(1); }
.accepted .g.near { left: 53%; top: 47%; }
@keyframes ping { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.cmd-side { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.cmd-empty { display: grid; gap: 0.25rem; align-content: center; flex: 1; padding: 1rem; border-radius: 0.625rem; background: #121722; font-size: 0.9375rem; color: #C9D0DB; }
.cmd-empty small { font-size: 0.75rem; color: #8A93A3; }
.live .cmd-empty { display: none; }
.cmd-card { display: none; gap: 0.6rem; padding: 0.8rem; border-radius: 0.625rem; background: #121722; }
.live .cmd-card { display: grid; animation: rise 420ms var(--ease) both; }
.cmd-title b { display: block; font-size: 0.875rem; font-weight: 600; }
.cmd-title small { font-size: 0.6875rem; color: #8A93A3; }
.cmd-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.cmd-card dl div { padding: 0.4rem 0.5rem; border-radius: 0.5rem; background: #171D29; }
.cmd-card dt { font-size: 0.625rem; color: #8A93A3; }
.cmd-card dd { font-size: 0.8125rem; font-weight: 500; }
.wave { display: flex; align-items: center; gap: 3px; height: 1.5rem; font-size: 0.6875rem; color: #9CC2FF; }
.wave span { margin-inline-end: 0.4rem; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: #5A9BFC; }
.live .wave i { animation: talk 900ms ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-delay: -300ms; } .wave i:nth-child(3n+1) { animation-delay: -600ms; } .wave i:nth-child(4n) { animation-duration: 700ms; }
@keyframes talk { from { height: 20%; } to { height: 95%; } }
.device.console .log { flex: none; padding: 0.25rem 0.5rem 0.4rem; gap: 0.3rem; font-size: 0.75rem; }
.device.console .log li.idle { display: none; }
@media (max-width: 640px) { .cmd { grid-template-columns: 1fr; grid-template-rows: 9rem auto; } .device.console > div { height: auto; } }
@media (prefers-reduced-motion: reduce) { .pin i, .live .wave i { animation: none; } .g { transition: none; } }

.foot .legal.stacked { flex-direction: column; gap: 0.35rem; }

/* footer, second pass: brand and note, links; then one quiet legal row */
.foot { margin-top: clamp(3rem, 6vw, 5rem); }
.foot .top { align-items: flex-start; padding-bottom: 2rem; }
.foot-brand { display: grid; gap: 0.75rem; max-width: 34rem; }
.foot-brand p { color: var(--soft); line-height: 1.5; text-wrap: pretty; }
.foot .top nav { gap: 0.75rem 1.75rem; padding-top: 0.25rem; }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; color: var(--quiet); }
.foot .legal nav { display: flex; gap: 1.5rem; }
.foot .legal a { text-decoration: none; color: var(--soft); }
.foot .legal a:hover { color: var(--ink); }

/* ============ phones: the demo stacks, nothing is wider than the screen ============ */
@media (max-width: 900px) {
  .relay, .relay-notes { grid-template-columns: 1fr; }
  .relay { gap: 0; }
  .relay > div { width: 100%; display: grid; justify-items: center; }
  .core { min-height: 5.5rem; height: 5.5rem; }
  .core-box { width: 4.5rem; border-radius: 1.25rem; }
  .device.console { width: 100%; max-width: 34rem; }
}
/* the floating WhatsApp button steps aside while a pinned scene plays */
.wa { transition: transform 200ms var(--ease), opacity 250ms ease; }
.immersive .wa { opacity: 0; pointer-events: none; transform: scale(0.8); }
@media (max-width: 760px) {
  .wa { width: 2.875rem; height: 2.875rem; inset-inline-end: 1rem; bottom: 1rem; }
  .wa svg { width: 1.3rem; }
  .cap, .cap.end { bottom: 3.75rem; }
  .beat, .beat.lead, .beat.trail, .beat.centre { inset-inline: var(--m); margin-inline: 0; max-width: none; text-align: center; bottom: 3.5rem; font-size: 1.625rem; }
  .moment-stage::after { inset: 45% 0 0; }
  .foot { padding-bottom: 5rem; }
  .hero-copy h1 { font-size: 2.5rem; }
}
@media (max-width: 760px) {
  html[lang="he"] .hero-copy { width: auto; }
  html[lang="he"] .hero-copy h1 { font-size: 2.5rem; }
}

/* ============ phones: the whole demo on one screen ============
   A phone-sized mockup on a phone fills the screen and pushes the control room out of sight, so the visitor types and
   sees nothing happen. Here the control room goes on top, compact, with a smaller phone under it: both stay in view. */
@media (max-width: 760px) {
  .relay { margin-top: 2rem; }
  .relay > div:last-child { order: -1; }
  .relay .core { order: 0; height: 2.75rem; min-height: 2.75rem; }
  .relay .core-box { width: 2.75rem; border-radius: 0.75rem; }
  .relay .core-box img { width: 70%; }
  .device-cap { display: none !important; }
  .phone-mock { zoom: 0.7; }
  .device.console { padding: 0.375rem; border-radius: 1rem; }
  .device.console > div { height: auto; border-radius: 0.75rem; }
  .device.console header { padding: 0.5rem 0.75rem; }
  .cmd { grid-template-columns: 1fr; grid-template-rows: 5.25rem auto; gap: 0.375rem; padding: 0.375rem; }
  .cmd-empty { padding: 0.6rem 0.75rem; flex: none; }
  .cmd-card { padding: 0.55rem 0.7rem; gap: 0.35rem; }
  .cmd-card dl, .cmd-card .wave { display: none; }
  .relay > div:first-child { order: 1; }
  .device.console .log { padding: 0 0.4rem 0.3rem; font-size: 0.6875rem; gap: 0.15rem; }
  .device.console .log li:nth-last-child(n+5) { display: none; }
  .device.console:not(.live) .log { display: none; }
}

/* ============ phones and no-WebGL: a light page that simply scrolls ============ */
.flat-loop { display: none; }
.flat .flat-loop { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.flat .frame canvas { display: none; }
.flat .frame { overflow: hidden; }
.phone .story { padding-bottom: 1rem; }
.phone .frame { margin: 4rem var(--m) 0; aspect-ratio: 4 / 5; }
.phone .hero-copy { margin-top: 2rem; padding-inline: var(--m); }
.phone .hero-copy h1 { font-size: 2.5rem; }
.phone .hero-copy p { font-size: var(--s-body); }
.phone .cap, .phone .cap.top, .phone .cap.end { margin: 3rem auto 0; padding-inline: var(--m); text-align: start; }
.phone .cap h2 { font-size: 1.75rem; }
.phone .cap p { font-size: var(--s-body); margin-inline: 0; }
.phone .moment { height: auto; margin-top: var(--gap); padding: 0 0 2.5rem; }
.phone .moment-stage { position: relative; height: auto; overflow: visible; }
.phone .moment-stage::after { display: none; }
.phone .moment-video { position: relative; height: auto; aspect-ratio: 4 / 5; }
.phone .beat, .phone .beat.lead, .phone .beat.trail, .phone .beat.centre { position: relative; inset: auto; bottom: auto; margin: 1.5rem var(--m) 0; max-width: none; text-align: start; opacity: 1; translate: none; font-size: 1.5rem; }

/* ============ phones, designed: a cinematic first screen and the story as swipeable cards ============ */
.steps { display: none; }
.phone .steps { display: block; padding-top: 4.5rem; }
.phone .cap { display: none; }
.steps h2 { font-size: 2rem; }
.step-row { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); padding: 1.5rem var(--m) 0.5rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.step-row::-webkit-scrollbar { display: none; }
.step { flex: 0 0 78%; scroll-snap-align: start; }
.step img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1.25rem; background: var(--stage); }
.step h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin-top: 0.4rem; color: var(--soft); font-size: 0.9375rem; line-height: 1.5; }
/* the first screen: the film fills it, the headline sits on it */
.phone .story { padding: 0; height: auto; }
.phone .stage { position: relative; height: calc(100svh - 3.5rem); margin-top: 3.5rem; overflow: hidden; }
.phone .frame { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; clip-path: none; background: var(--night) url(../film/hero-poster.jpg) center / cover; }
.phone .frame::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(5, 7, 12, 0.88)); }
.phone .hero-copy { position: absolute; z-index: 2; inset: auto var(--m) 1.75rem; top: auto; margin: 0; padding: 0; width: auto; max-width: none; transform: none; translate: none; opacity: 1; color: #fff; }
.phone .hero-copy p { margin-top: 1rem; color: rgba(255, 255, 255, 0.86); font-size: 1.0625rem; }
.phone .hero-copy .hero-acts { margin-top: 1.5rem; }
.phone .hero-copy .arrow { color: #fff; }
.phone .hero-film { display: none; }
html.phone[lang="he"] .hero-copy h1, .phone .hero-copy h1 { font-size: 2.625rem; }
