/* Studio Arva, Hebrew home (/he/). A sales page in the Arva skin: outcome headline, proof and one main button on
   the first screen, then the work, three steps, answers and the offer again. The English home keeps the older
   film-style page on site-en.css / main-en.js. */
:root {
  --beige: #ece3d2;
  --beige-2: #e3d8c4;
  --navy: #14203a;
  --green: #1e3a2f;
  --amber: #e08a2c;
  --he: 'Noto Sans Hebrew', system-ui, sans-serif;
  --latin: 'Montserrat', system-ui, sans-serif;
  --pad: 6vw;
}
* { box-sizing: border-box; }
html { background: var(--beige); scroll-padding-top: 84px; }
body { margin: 0; background: var(--beige); color: var(--navy); font-family: var(--he); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.pen-cursor, body.pen-cursor a, body.pen-cursor button, body.pen-cursor summary { cursor: none; }
img, video { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 6px; }
[data-field="navy"] :focus-visible, [data-field="green"] :focus-visible { outline-color: var(--beige); }
h1, h2, h3 { text-wrap: balance; }

/* Layers: section fields < paint < content < pen < nav */
#paint { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.up { position: relative; z-index: 2; }
#pen { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; will-change: transform; height: auto; max-width: none; user-select: none; filter: drop-shadow(0 6px 8px rgba(20, 32, 58, 0.25)); }
#pen:not([style]) { width: 1px; visibility: hidden; } /* never at its full file size before the script sizes it */

/* Nav: a solid bar in the colour of the section under it */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 4vw; background: var(--beige); transition: background-color 200ms ease-out, color 200ms ease-out; }
.nav[data-f="navy"] { background: var(--navy); }
.nav[data-f="green"] { background: var(--green); }
.nav.on-dark { color: var(--beige); }
.wordmark { display: inline-flex; align-items: center; --logo-h: 40px; text-decoration: none; }
.logo { display: block; height: var(--logo-h, 26px); aspect-ratio: 2.88; background: currentColor; -webkit-mask: url(/img/logo-arva.svg) center / contain no-repeat; mask: url(/img/logo-arva.svg) center / contain no-repeat; }
.links { display: flex; gap: 32px; font-size: 1.05rem; font-weight: 500; }
.links a { text-decoration: none; opacity: 0.86; }
.links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; border-radius: 999px; padding: 11px 20px; font: 700 1.02rem var(--he); text-decoration: none; border: 1.5px solid currentColor; transition: transform 140ms ease-out, background-color 140ms ease-out, color 140ms ease-out; }
.pill:active { transform: scale(0.97); }
.pill.dark { background: var(--navy); color: var(--beige); border-color: var(--navy); }
.pill.dark:hover { background: var(--green); border-color: var(--green); }
.pill.light { background: var(--beige); color: var(--navy); border-color: var(--beige); }
.pill.light:hover { background: #fff7ea; }
.pill.big { padding: 17px 30px; font-size: 1.12rem; }
.text-link { font-weight: 600; font-size: 1.02rem; text-underline-offset: 6px; }
.cta { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }

/* ---------- Hero: copy on the right, the work on the left ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 4vw; padding: 110px var(--pad) 64px; background: var(--beige); }
.hero h1 { margin: 0 0 22px; font-weight: 900; font-size: clamp(2.5rem, 4.4vw, 4.9rem); line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 .mark { position: relative; white-space: nowrap; }
html.still .hero h1 .mark, .no-paint .hero h1 .mark { text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.16em; }
.hero-sub { margin: 0 0 30px; max-width: 32rem; font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.6; font-weight: 500; }
.sure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 0.98rem; font-weight: 600; }
.sure li { display: inline-flex; align-items: center; gap: 8px; }
.sure li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ece3d2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.spots { margin: 14px 0 0; font-size: 0.95rem; font-weight: 500; opacity: 0.85; }
.spots b { font-weight: 800; color: var(--amber); }
[data-field="beige"] .spots b { color: #a0561d; }

.collage { position: relative; margin: 0; padding: 4% 0 14%; }
.browser { position: relative; border-radius: 16px; overflow: hidden; background: #13261e; box-shadow: 0 34px 60px rgba(20, 32, 58, 0.28), 0 6px 14px rgba(20, 32, 58, 0.14); }
.browser .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--beige-2); direction: ltr; }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(20, 32, 58, 0.28); }
.browser .bar span { margin-left: 10px; font: 500 0.78rem var(--he); color: rgba(20, 32, 58, 0.86); direction: rtl; }
.browser video { display: block; width: 100%; aspect-ratio: 16 / 9.3; object-fit: cover; object-position: top; }
.collage .browser { width: 88%; margin-inline-start: auto; will-change: transform; }
.ad-card { position: absolute; width: 27%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 22px 40px rgba(20, 32, 58, 0.3); will-change: transform; }
.a1 { left: 0; bottom: 0; }
.a2 { left: 23%; bottom: -4%; }
.a3 { left: 46%; bottom: 2%; }
.collage figcaption { position: absolute; inset: auto 0 -66px 0; font-size: 0.9rem; font-weight: 500; opacity: 0.75; text-align: start; }

/* Marquee band */
.band { position: relative; background: var(--beige); overflow: clip; padding: 26px 0 40px; }
.track { position: relative; z-index: 2; display: flex; gap: 28px; width: max-content; align-items: center; animation: slide 38s linear infinite; font-weight: 900; font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 1; white-space: nowrap; }
.track i { font-style: normal; font-size: 0.5em; }
.track .out { font-weight: 200; }
@keyframes slide { to { transform: translateX(50%); } }

/* Section heads */
.sec-head { max-width: 52rem; margin-bottom: 6vh; }
.sec-head h2 { margin: 0 0 14px; font-weight: 900; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.sec-head p { margin: 0; max-width: 38rem; font-size: 1.1rem; line-height: 1.6; font-weight: 500; opacity: 0.85; }

/* ---------- Work: everything visible, nothing hidden in a carousel ---------- */
.work { position: relative; background: var(--green); color: var(--beige); padding: 14vh var(--pad) 12vh; border-radius: 48px 48px 0 0; margin-top: -24px; }
.sites { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; }
.site-card, .film-card { position: relative; margin: 0; }
.site-card .browser { box-shadow: 0 34px 60px rgba(7, 14, 11, 0.45); }
.site-card figcaption, .film-card figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.site-card figcaption b, .film-card figcaption b { font: 800 1.2rem var(--latin); }
.site-card figcaption span, .film-card figcaption span { font-size: 1rem; opacity: 0.8; font-weight: 500; line-height: 1.5; }
.card-link { text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: 16px; }
.card-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid currentColor; outline-offset: 6px; }
.ads-title { margin: 10vh 0 22px; font-weight: 800; font-size: 1.5rem; }
.ads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2vw; margin: 0; padding: 0; list-style: none; }
.ads li { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; font-weight: 600; }
.ads img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 40px rgba(7, 14, 11, 0.4); }
.film-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3vw; align-items: center; margin-top: 10vh; }
.film-card video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 50px rgba(7, 14, 11, 0.45); }
.film-card figcaption { margin: 0; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 10vh; padding-top: 34px; border-top: 1px solid rgba(236, 227, 210, 0.25); }
.cta-row p { flex-basis: 100%; margin: 0 0 4px; font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 800; line-height: 1.2; }
.how .cta-row { border-top-color: rgba(20, 32, 58, 0.16); margin-top: 8vh; }

/* ---------- How it works: three steps, one render each ---------- */
.how { position: relative; background: var(--beige); padding: 16vh var(--pad) 10vh; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 30px 28px 32px; border-radius: 26px; background: #f4ede0; box-shadow: 0 1px 0 rgba(20, 32, 58, 0.06); overflow: visible; }
.steps .obj { display: block; width: 46%; height: auto; margin: -64px 0 8px auto; filter: drop-shadow(0 22px 26px rgba(20, 32, 58, 0.28)); will-change: transform; }
.steps .n { display: block; font: 900 1.05rem var(--latin); color: #a0561d; margin-bottom: 8px; }
.steps h3 { margin: 0 0 10px; font-weight: 900; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.1; }
.steps p { margin: 0; font-size: 1.04rem; line-height: 1.6; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { position: relative; background: var(--beige); padding: 10vh var(--pad) 16vh; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 6vw; align-items: start; }
.faq h2 { position: sticky; top: 16vh; margin: 0; font-weight: 900; font-size: clamp(2.2rem, 4.2vw, 4.3rem); line-height: 1; letter-spacing: -0.02em; }
.faq-list details { border-top: 1.5px solid rgba(20, 32, 58, 0.18); }
.faq-list details:last-of-type { border-bottom: 1.5px solid rgba(20, 32, 58, 0.18); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 800; line-height: 1.3; }
.faq-list summary::after { content: '+'; flex: none; font: 400 2rem/1 var(--latin); transition: transform 200ms ease-out; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 24px; max-width: 40rem; font-size: 1.04rem; line-height: 1.65; font-weight: 500; }

/* ---------- The offer again, before the footer ---------- */
.last { position: relative; background: var(--navy); color: var(--beige); padding: 16vh var(--pad) 18vh; border-radius: 48px 48px 0 0; margin-top: -24px; }
.last > div { max-width: 46rem; }
.last h2 { margin: 0 0 18px; font-weight: 900; font-size: clamp(2.6rem, 6vw, 6rem); line-height: 0.98; letter-spacing: -0.02em; }
.last p { margin: 0 0 30px; font-size: 1.15rem; line-height: 1.6; font-weight: 500; max-width: 36rem; }
.last .spots { margin-top: 18px; }

/* Footer */
.foot { position: relative; background: var(--navy); color: var(--beige); padding: 4vh 4vw 6vh; overflow: clip; }
.foot-word { margin: 0; font: 400 clamp(3rem, 11.4vw, 13rem)/1 var(--latin); letter-spacing: -0.03em; text-align: center; white-space: nowrap; opacity: 0.9; }
.foot-row { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-top: 6vh; font-weight: 500; }
.foot-row a { text-underline-offset: 6px; }
.foot-legal { display: flex; justify-content: center; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 5vh; font-size: 0.95rem; }
.foot-legal a { text-underline-offset: 5px; }
.still-btn { font: 600 0.95rem var(--he); color: inherit; background: none; border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.still-btn[aria-pressed="true"] { background: var(--beige); color: var(--navy); }
.foot-niches { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 4vh; font-size: 0.92rem; color: rgba(236, 227, 210, 0.85); }
.foot-niches a { text-underline-offset: 4px; }
.foot-note { max-width: 44rem; margin: 3vh auto 0; text-align: center; font-size: 0.85rem; line-height: 1.55; color: rgba(236, 227, 210, 0.78); }
.foot-note + .foot-note { margin-top: 10px; }

/* Skip link and the "stop animations" mode (WCAG 2.2.2) */
.skip { position: fixed; top: -80px; right: 12px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: var(--beige); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
#main:focus { outline: none; }
html.still .track { animation: none; }

/* ---------- Phones: copy first, then the work, all inside the first screen ---------- */
@media (max-width: 860px) {
  :root { --pad: 5vw; }
  .links { display: none; }
  .nav { padding: 12px 5vw; gap: 12px; }
  .wordmark { --logo-h: 28px; }
  .nav .pill { padding: 8px 15px; font-size: 0.92rem; }
  .hero { grid-template-columns: 1fr; align-content: start; gap: 22px; min-height: 0; padding: 78px var(--pad) 70px; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); line-height: 1.06; margin-bottom: 12px; }
  .hero-sub { font-size: 1.02rem; line-height: 1.5; margin-bottom: 18px; }
  .pill.big { padding: 15px 22px; font-size: 1.04rem; }
  .hero .cta { gap: 10px 18px; }
  .hero .cta .pill { flex: 1 1 100%; }
  .hero .cta .text-link { flex: 1 1 100%; text-align: center; }
  .sure { gap: 6px 14px; margin-top: 14px; font-size: 0.86rem; justify-content: center; }
  .sure li::before { width: 16px; height: 16px; background-size: 10px; }
  .hero .spots { text-align: center; margin-top: 8px; font-size: 0.88rem; }
  .collage { padding: 0 0 27%; margin-bottom: 52px; }
  .collage .browser { width: 92%; }
  .browser .bar { height: 22px; }
  .browser .bar span { font-size: 0.7rem; }
  .ad-card { width: 30%; border-radius: 9px; }
  .collage figcaption { inset: auto 0 -60px 0; font-size: 0.82rem; text-align: center; }
  .band { padding: 6px 0 28px; }
  .work, .last { border-radius: 28px 28px 0 0; padding: 10vh var(--pad) 9vh; }
  .sec-head { margin-bottom: 30px; }
  .sec-head h2 { font-size: 2.3rem; }
  .sec-head p { font-size: 1rem; }
  .sites { grid-template-columns: 1fr; gap: 34px; }
  .ads-title { margin: 48px 0 16px; font-size: 1.3rem; }
  .ads { grid-template-columns: 1fr 1fr; gap: 14px; }
  .film-card { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .film-card figcaption { margin-top: 16px; }
  .cta-row { margin-top: 48px; padding-top: 26px; }
  .cta-row .pill { flex: 1 1 100%; }
  .how { padding: 11vh var(--pad) 8vh; }
  .steps { grid-template-columns: 1fr; gap: 54px; }
  .steps li { padding: 24px 22px 26px; }
  .steps .obj { width: 38%; margin-top: -54px; }
  .faq { grid-template-columns: 1fr; padding: 6vh var(--pad) 12vh; gap: 24px; }
  .faq h2 { position: static; font-size: 2.2rem; }
  .last h2 { font-size: 2.6rem; }
  .last .cta .pill { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .pill, .faq-list summary::after { transition: none; } }

/* ---------- Motion layer: the steps become a pinned scroll film (html.motion, set by main.js; off in still mode) ----------
   Without the script, or with motion stopped, the steps stay the three cards above. */
.hfield, .hnum { display: none; }
.steps .copy { display: block; }
html.motion .how { height: 420vh; padding: 0; }
html.motion .how-stage { position: sticky; top: 0; height: 100dvh; overflow: clip; }
html.motion .hfield { display: block; position: absolute; inset: 0; }
.hfield[data-field="beige"] { background: var(--beige); }
.hfield[data-field="green"] { background: var(--green); }
.hfield[data-field="navy"] { background: var(--navy); }
html.motion .hnum { display: flex; position: absolute; left: 6vw; top: 52%; transform: translateY(-50%); font: 900 clamp(13rem, 30vw, 30rem)/0.8 var(--latin); letter-spacing: -0.04em; color: var(--green); }
.hnum .roll { display: inline-block; height: 0.8em; overflow: hidden; }
.hnum .strip { display: flex; flex-direction: column; will-change: transform; }
.hnum .strip span { height: 0.8em; }
html.motion .how .sec-head { position: absolute; top: 96px; right: 6vw; left: 6vw; margin: 0; }
html.motion .how .sec-head h2 { font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1.15; font-weight: 800; }
html.motion .steps { position: absolute; inset: 0; display: block; }
html.motion .steps li { position: absolute; inset: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; pointer-events: none; }
html.motion .steps .obj { position: absolute; left: 0; top: 0; width: clamp(240px, 29vw, 450px); margin: 0; opacity: 0; filter: drop-shadow(0 28px 34px rgba(20, 32, 58, 0.3)); }
html.motion .steps .copy { position: absolute; right: 6vw; top: 50%; transform: translateY(-50%); max-width: 31rem; visibility: hidden; }
html.motion .steps h3 { font-size: clamp(2.6rem, 5.2vw, 5.4rem); line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 18px; }
html.motion .steps p { font-size: 1.14rem; max-width: 27rem; }
html.motion .steps .n { color: inherit; opacity: 0.7; }
html.motion .how .cta-row { position: absolute; inset: auto 6vw 5vh 6vw; margin: 0; padding-top: 22px; border-top: 1px solid currentColor; }
html.motion .how .cta-row .text-link { color: inherit; }
.how-stage.dark .pill.dark { background: var(--beige); color: var(--navy); border-color: var(--beige); }
.how-stage.dark .pill.dark:hover { background: #fff7ea; }
.how-stage.dark :focus-visible { outline-color: var(--beige); }
/* the section headlines get heavier as they cross the screen (variable weight, never under 300) */
.morph { font-variation-settings: 'wght' 900; }
@media (max-width: 860px) {
  html.motion .how { height: 380vh; }
  html.motion .hnum { left: 50%; top: 31%; transform: translate(-50%, -50%); font-size: 44vw; }
  html.motion .how .sec-head { top: 70px; }
  html.motion .how .sec-head h2 { font-size: 1.2rem; }
  html.motion .steps .obj { width: 52vw; }
  html.motion .steps .copy { right: 6vw; left: 6vw; top: auto; bottom: calc(5vh + 92px); transform: none; }
  html.motion .steps h3 { font-size: 2.3rem; margin-bottom: 10px; }
  html.motion .steps p { font-size: 1rem; }
  html.motion .how .cta-row { gap: 8px; padding-top: 14px; bottom: 3vh; }
  html.motion .how .cta-row .pill { flex: 1 1 100%; }
  html.motion .how .cta-row .text-link { flex: 1 1 100%; text-align: center; }
}

/* ---------- English (studio-arva.com/): the same page, mirrored left to right, in Montserrat ---------- */
[dir="ltr"] body, [dir="ltr"] .pill, [dir="ltr"] .still-btn { font-family: var(--latin); }
[dir="ltr"] .browser .bar span { direction: ltr; font-family: var(--latin); }
[dir="ltr"] .a1 { left: auto; right: 0; }
[dir="ltr"] .a2 { left: auto; right: 23%; }
[dir="ltr"] .a3 { left: auto; right: 46%; }
[dir="ltr"] .skip { right: auto; left: 12px; }
[dir="ltr"] .track { animation-name: slide-ltr; }
@keyframes slide-ltr { to { transform: translateX(-50%); } }
[dir="ltr"] .hero h1, [dir="ltr"] .sec-head h2, [dir="ltr"] .last h2, [dir="ltr"] .faq h2 { letter-spacing: -0.03em; }
[dir="ltr"] .hero h1 { font-size: clamp(2.4rem, 4.1vw, 4.6rem); }
[dir="ltr"].motion .hnum { left: auto; right: 6vw; }
[dir="ltr"].motion .steps .copy { right: auto; left: 6vw; }
[dir="ltr"].motion .steps h3 { font-size: clamp(2.3rem, 4vw, 4.2rem); }
@media (max-width: 860px) {
  [dir="ltr"] .hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.5rem); }
  [dir="ltr"].motion .hnum { right: auto; left: 50%; }
  [dir="ltr"].motion .steps .copy { left: 6vw; right: 6vw; }
}
