

:root { --display: var(--font); --gutter: clamp(20px, 5vw, 72px); }
:root:lang(he) :is(h1, h2, h3, .facts strong, .question-list summary) { letter-spacing: 0; }

:root:lang(he) :is(h1, h2, .facts strong) { font-weight: 700; }

:root:lang(he) body { text-align: right; }
html { scroll-padding-top: 96px; -webkit-font-smoothing: antialiased; }
p { text-wrap: pretty; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 10; padding: 12px 20px; border-radius: 6px; background: var(--mint); color: var(--on-mint); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.top { max-width: 1440px; width: 100%; min-height: 96px; margin: auto; padding-block: 20px; }
.mark { font-size: 28px; letter-spacing: -1.2px; }
.top-nav { display: flex; align-items: center; gap: 34px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--sage); font-size: 14px; text-decoration: none; }
.nav-link:hover { color: var(--ivory); }
.lang-switch { min-width: 44px; justify-content: center; }
.top-open { gap: 8px; font-size: 14px; border-radius: 6px; } 

.hero { max-width: 1440px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 5%; align-items: start; padding-top: 30px; padding-bottom: 24px; } 
.copy { padding: 0 0 25px; align-self: center; }

.copy { container-type: inline-size; }
h1 { font-family: var(--display); font-size: min(10cqi, 64px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; max-width: none; text-wrap: initial; white-space: nowrap; }
.lede { max-width: 34ch; margin-top: 28px; font-size: 18px; line-height: 1.7; }

.use-one { display: none; }
.use-one, .use-word { color: var(--ivory); }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .use-all { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .use-q { display: block; }
  
  .use-one { display: inline-grid; justify-items: start; white-space: nowrap; overflow-x: clip; overflow-clip-margin: 4px; transition: width 420ms var(--ease); }
  
  .use-word { grid-area: 1 / 1; transition: opacity 340ms var(--ease-out) 80ms, filter 340ms var(--ease-out) 80ms, translate 340ms var(--ease-out) 80ms; }
  .use-word.is-entering { opacity: 0; filter: blur(2px); translate: 0 .38em; transition: none; }
  .use-word.is-leaving { opacity: 0; filter: blur(2px); translate: 0 -.38em; transition-duration: 220ms; transition-delay: 0ms; transition-timing-function: var(--ease); }
}
.act { margin-top: 31px; gap: 12px 25px; }

.open { min-height: 54px; padding-inline: 24px; gap: 12px; border-radius: 6px; font-size: 17px; box-shadow: none; }
.open::after { display: none; }
.open:hover { box-shadow: none; transform: none; }
.open:active { transform: scale(.96); }

.first { flex: 1 1 15em; min-width: 0; max-width: 22em; min-height: 54px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--field-deep); color: var(--ivory); font: inherit; font-size: 17px; }
.first::placeholder { color: var(--sage); opacity: 1; }
.first:hover { background: var(--field-hover); }
.first:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

@media (scripting: none) { .first, .first-says { display: none; } }
.try { gap: 9px; font-size: 14px; text-decoration: none; font-weight: 400; }

.arrow { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:root:lang(he) .arrow { scale: -1 1; } 
.play-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--field-deep); }
.play-mark svg { width: 13px; height: 13px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.note { max-width: none; margin-top: 18px; font-size: 14px; }

.note.speaks { width: fit-content; margin-top: 6px; }

.scene { position: relative; width: 100%; min-width: 0; padding: 6px 0 16px; }

.scene-heading { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scene-label { color: var(--sage); font-size: 15px; }

.stage { width: 100%; height: auto; aspect-ratio: 4/5; max-width: min(480px, max(340px, (100svh - 370px) * .8)); }
.panel { position: relative; width: 100%; max-width: 540px; margin-top: -28px; padding: 14px 18px 12px; border: 0; background: none; }
.phases { font-size: 13px; margin-bottom: 6px; }
.caption { font-size: 14px; min-height: 3.1em; max-width: 46ch; }

.controls { width: 100%; gap: 8px; margin-top: 4px; }
.pick-label { margin: 0 0 -4px; }
.branches { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.controls .branch { padding: 8px 6px; border-radius: 6px; font-size: 14px; line-height: 1.2; }
.controls .branch::before { display: none; }

.controls .branch { border-color: transparent; background: var(--field); }
.controls .branch:hover { border-color: transparent; background: var(--field-hover); }
.controls .branch[aria-pressed='true'] { border-color: transparent; background: var(--mint-wash); box-shadow: 0 -2px 0 var(--mint) inset; }

.panel .controls .branch { font-size: 14px; }
.moves { gap: 9px; }
.controls .find, .controls .over { min-height: 44px; }
.controls .find { font-size: 15px; }
.controls .over { font-size: 14px; }
.controls .find { border-radius: 6px; }
.controls button:active:not(:disabled) { transform: scale(.96); }

.story { --sheet: clamp(8px, 1.8vw, 24px); max-width: none; margin-inline: var(--sheet); padding: 90px calc(var(--gutter) - var(--sheet)) 96px; border-radius: 12px; background: var(--field-lift); color: var(--ivory); }
.story-inner { max-width: 1296px; margin: auto; }
.story h2, .grow h2, .home h2, .questions h2, .invite h2 { font: 600 clamp(34px, 3.6vw, 48px)/1.12 var(--display); letter-spacing: -.025em; }

.sec-head > p { max-width: 40ch; margin: 22px 0 0; color: var(--ink-text); font-size: 17px; line-height: 1.6; }
.story .frame { background: var(--field-deep); border-radius: 12px; }
.story .screen { background: var(--field-deep); }

.grow { max-width: 1440px; margin-top: 0; padding-top: 88px; padding-bottom: 72px; gap: 8%; }

.grow { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); } 
.grow-words { grid-column: 2; grid-row: 1; align-self: center; } 
.grow .views { grid-column: 1; grid-row: 1; }
.grow-words > p { max-width: 42ch; color: var(--ink-text); font-size: 17px; line-height: 1.65; }

.next-explainer { margin-top: 24px; max-width: 42ch; }
.next-explainer summary { min-height: 52px; padding-block: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 17px; list-style: none; transition: color 160ms var(--ease); }
.next-explainer summary:hover { color: var(--mint); }
.next-explainer summary::-webkit-details-marker { display: none; }
.next-explainer summary span { order: -1; }
.next-explainer[open] summary span { transform: rotate(90deg); }
.next-explainer p { margin-top: 0; padding-bottom: 12px; padding-inline-start: 22px; color: var(--ink-text); line-height: 1.7; }
.next-explainer + .next-explainer { margin-top: 0; }

@media (min-width: 900px) {
  .next-explainer summary { margin-inline-start: -22px; }
  .next-explainer p { padding-inline-start: 0; }
}

.why-explainer p { padding-bottom: 6px; }
.why-explainer .why-list { margin: 0 0 14px; padding: 0; list-style: none; font-size: 15px; line-height: 1.6; }
.why-explainer .why-list li { display: flex; align-items: center; gap: 8px; padding-block: 3px; }
.why-explainer .why-list li::before { content: ''; flex: none; width: 10px; height: 10px; border: 1.5px solid var(--sage); border-radius: 50%; }
.why-explainer .why-list li.done::before { border-color: var(--mint); background: var(--mint); }
.why-explainer .why-list span { color: var(--sage); }

.views-title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.views .tabs { margin-top: 14px; }
.views .tabs button { min-height: 44px; font-size: 15px; }
.views .frame { border-radius: 12px; }
.views-note { font-size: 15px; } 

.home { display: grid; grid-template-columns: 1fr; gap: 56px; max-width: 1440px; margin-top: 0; padding-block: 88px 104px; }
.home-heading > p { max-width: 38ch; margin: 20px 0 0; color: var(--ink-text); font-size: 20px; line-height: 1.55; }

.home { container-type: inline-size; }
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; align-items: start; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding: 0; list-style: none; }
.facts li { max-width: none; color: var(--ink-text); font-size: 17px; line-height: 1.6; }

.place-shot { display: block; perspective: 1100px; }
.places img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--field-lift); rotate: var(--tilt, 0 1 0 0deg); transition: rotate 500ms var(--ease-out); }
.facts picture { display: none; }
.facts strong { display: block; max-width: 22em; text-wrap: balance; color: var(--ivory); margin: 0 0 8px; font: 600 24px/1.2 var(--display); letter-spacing: -.015em; }
.facts span { display: block; max-width: 46ch; }
.questions { max-width: 1440px; margin: auto; padding: 45px var(--gutter) 110px; display: grid; grid-template-columns: 1fr; gap: 40px; }
.questions h2 { margin: 0; }


.question-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 4px 8%; }
.question-list summary { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-block: 14px; color: var(--ivory); font: 600 20px/1.3 var(--display); letter-spacing: -.01em; cursor: pointer; list-style: none; transition: color 160ms var(--ease); }
.question-list summary:hover { color: var(--mint); }
.question-list summary::-webkit-details-marker { display: none; }

.question-list summary > span, .next-explainer summary span { order: -1; flex: none; width: 12px; height: 12px; font-size: 0; background: var(--sage); clip-path: polygon(25% 10%, 85% 50%, 25% 90%); transition: transform 160ms var(--ease); }
:root:lang(he) :is(.question-list summary > span, .next-explainer summary span) { scale: -1 1; }
.question-list details[open] summary > span { transform: rotate(90deg); }
.question-list details > p { max-width: 62ch; color: var(--ink-text); margin: 0; padding-block: 0 24px; padding-inline: 26px 30px; font-size: 17px; line-height: 1.7; }
.invite { max-width: 1296px; margin: 0 auto clamp(40px, 5vw, 72px); padding: 96px 24px 92px; border-radius: 12px; background: var(--band); }

.invite { --band: #1f4d38; --band-ink: #fff; --band-text: #e3efe8; }
@media (prefers-color-scheme: dark) { .invite { --band: #1b4130; --band-ink: #f2faf5; --band-text: #d3e6db; } }
.invite h2 { max-width: 11ch; margin-inline: auto; font-size: clamp(38px, 5vw, 72px); color: var(--band-ink); text-wrap: balance; } 
.invite > p:not(.again) { margin-top: 16px; color: var(--band-text); font-size: 20px; }
.invite .open { background: var(--band-ink); color: var(--band); }
.invite .open:hover { background: var(--band-text); }
.invite :focus-visible { outline-color: var(--band-ink); }
.invite .again { margin-top: 30px; }

.invite-branch { display: block; width: 280px; max-width: 100%; height: auto; margin: 0 auto 32px; overflow: visible; }
.ib-card { fill: var(--card); stroke: var(--hair); stroke-width: 1; }
.ib-blank { fill: var(--card); opacity: .9; } 
.ib-ring { fill: none; stroke: var(--sage); stroke-width: 1.6; }
.ib-bar { fill: var(--ivory); opacity: .5; }
.ib-bar.soft { opacity: .28; }
.ib-blank ~ .ib-bar { opacity: .2; }
.ib-blank ~ .ib-bar.soft { opacity: .12; }
.ib-stem { fill: none; stroke: #9fdcbc; stroke-width: 2; stroke-linecap: round; opacity: .85; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ib-stem { stroke-dasharray: 120; animation: ib-draw linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
    .ib-blank, .ib-blank ~ .ib-bar { animation: ib-in linear both; animation-timeline: view(); animation-range: entry 45% cover 45%; }
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    
    .places img { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :is(.story, .grow, .home) h2, .sec-head > p, .grow-words > p, .home-heading > p, .question-list details, .facts li, .invite-branch ~ * {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%;
    }
    .facts li:nth-child(2) { animation-range: entry 8% entry 88%; }
    .facts li:nth-child(3) { animation-range: entry 16% entry 96%; }
    .facts li:nth-child(4) { animation-range: entry 24% entry 100%; }
    
    .grow .views .frame { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    
    .story .frame { transform-origin: 50% 100%; animation: stand-up linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes rise { from { opacity: .3; translate: 0 32px; } } 
@keyframes settle { from { opacity: .5; translate: 0 24px; } } 
@keyframes stand-up { from { opacity: .5; transform: perspective(1600px) rotateX(12deg) scale(.95); } to { transform: perspective(1200px) rotateX(0) scale(1); } }
.facts span { text-wrap: pretty; }
@keyframes ib-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes ib-in { from { opacity: 0; translate: 0 6px; } }
.foot { max-width: 1440px; width: 100%; margin: auto; padding: 42px var(--gutter); gap: 24px; }

.footer-brand { color: var(--forest); } 
.foot p { margin: 0; margin-inline-end: auto; font-size: 15px;  color: var(--sage); }
.foot .foot-facts { max-width: 36em; margin: 0; text-wrap: pretty; } 
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

.nav-link, .top-open, .note, .caption, .try, .real-play, .own-form label, .foot a, .skip-link, .steps li, .controls .over, .panel .controls .branch { font-size: 15px; }
.phases .n, .chapters .n { font-size: 13px; }
.lede { font-size: 20px; }

.ch-name, .ch-copy, .ch-now, .next-explainer p { font-size: 17px; }
.real-note, .own-note { font-size: 15px; }

.question-list details > p, .next-explainer > :not(summary) { transition: visibility 0s linear 360ms; }
.question-list details:not([open]) > p, .next-explainer:not([open]) > :not(summary) { visibility: hidden; }
.question-list details[open] > p, .next-explainer[open] > :not(summary) { transition-delay: 0s; }
@media (min-width:1441px) { .invite { width: calc(100% - 144px); } }

@media (min-width:900px) {
  .story { width: calc(100% - 2 * var(--gutter)); max-width: 1296px; margin-inline: auto; padding-inline: clamp(32px, 5vw, 72px); }
}
@media (max-width:1440px) { .invite { margin-inline: var(--gutter); } }
@media (max-width:1150px) {
  .hero { gap: 4%; }
  .lede { font-size: 17px; }
  .act { gap: 12px 18px; }
  
  .places { grid-template-columns: 1fr; }
  .place-shot { max-width: 640px; }
  
  .grow { gap: 38px; grid-template-columns: minmax(0, 1fr); }
  .grow-words, .grow .views { grid-column: auto; grid-row: auto; }
  .grow-words { display: contents; }
  .grow { row-gap: 0; }
  .grow .views { order: 1; margin-top: 32px; max-width: 680px; } 
  .grow .next-explainer { order: 2; }
  .grow .why-explainer { margin-top: 20px; }
}
@media (max-width:899px) {
  .grow .views { max-width: none; }
  .top { min-height: 84px; }
  .top-nav { gap: 22px; }
  .hero { grid-template-columns: minmax(0,1fr); padding-top: 36px; gap: 32px; }
  .copy { width: 100%; padding-bottom: 0; }
  .lede { max-width: 43ch; font-size: 20px; }
  .scene { width: min(100%,560px); margin: 0 auto; }
  .stage { width: 100%; max-width: 440px; }
  .panel { margin-top: -25px; }
  .story { padding-block: 64px; }
  .sec-head > p { max-width: none; }
  .grow { padding-block: 78px; }
  .questions { gap: 32px; }
  .home { padding-block: 72px; gap: 40px; }
  .places { column-gap: 32px; }
  .invite { padding-block: 58px; }
}

@media (min-width:601px) and (max-width:899px) {
  .scene { width: 100%; }
}
@media (max-width:600px) {
  
  .top { min-height: 64px; padding-block: 10px; }
  .top-nav .nav-link:not(.lang-switch) { display: none; } 
  .top-open { min-height: 44px; padding-inline: 14px; gap: 8px; }
  .hero { padding-top: 14px; padding-bottom: 37px; gap: 18px; }
  .lede { margin-top: 16px; max-width: 34ch; font-size: 17px; line-height: 1.65; }
  .act { margin-top: 20px; gap: 10px 12px; }
  .open { padding-inline: 18px; gap: 10px; } 
  .first { flex-basis: 100%; max-width: none; }
  .try { gap: 5px; }
  .play-mark { width: 22px; height: 22px; }
  .note { margin-top: 12px; }
  .note.speaks { display: none; }
  .stage { width: 100%; max-width: 390px; }
  .panel { margin-top: -12px; padding: 14px 10px 12px; }
  .caption { font-size: 15px; } 
  .phases { font-size: 13px; }
  .phases li + li { margin-inline-start: 14px; }
  .phases li + li::before { inset-inline-end: calc(100% + 2px); }
  .phases li { gap: 5px; padding-inline-end: 7px; }
  .controls .branch { padding: 6px; }
  .story { padding-block: 55px; }
  .story h2, .grow h2, .home h2, .questions h2, .own h2, .invite h2 { font-size: min(32px, 8vw); } 
  .sec-head > p { font-size: 17px; }
  .grow { padding-block: 62px; }
  .grow-words > p { font-size: 17px; }
  .home { grid-template-columns: 1fr; gap: 32px; padding-block: 54px; }
  
  .places, .facts { grid-template-columns: 1fr; }
  .place-shot { display: none; }
  .facts picture { display: block; margin-top: 20px; }
  .facts img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 50%; }
  .questions { grid-template-columns: 1fr; gap: 30px; padding-block: 15px 60px; }
  .question-list { grid-template-columns: 1fr; }
  .question-list summary { font-size: 17px; }
  .invite { padding: 48px 20px 42px; }
  .invite-branch { width: 232px; margin-bottom: 24px; }
  .foot { flex-wrap: wrap; padding-block: 26px; gap: 0 20px; }
  .foot p { order: 3; flex-basis: 100%; }
  .foot a { margin-inline-start: auto; }
}

@media (max-width:380px) {
  .mark { font-size: 24px; }
  .top-nav { gap: 12px; }
  .top-open { padding-inline: 12px; gap: 6px; white-space: nowrap; }
}
@media (prefers-reduced-motion:no-preference) {
  .lede, .act, .note { animation: none; }
  h1 { animation: arrive 650ms var(--ease-out) both; }
  
  .question-list details, .next-explainer { interpolate-size: allow-keywords; }
  .question-list details::details-content, .next-explainer::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size 360ms cubic-bezier(.16, 1, .3, 1), opacity 240ms ease-out, content-visibility 360ms allow-discrete;
  }
  .question-list details[open]::details-content, .next-explainer[open]::details-content { block-size: auto; opacity: 1; }
  .next-explainer summary span { transition: transform 160ms var(--ease); }
}
@media print { .top-nav, .skip-link, .act, .questions, .invite { display: none; } .story { break-inside: avoid; } }
