/* Midrasha AI v3: blueprint / drafting-table style (after heronaiapp.com).
   Grainy paper, an inset frame, hairline cell grids, orange markers, mono labels.
   Logical properties throughout so RTL/LTR flip with <html dir>. */
:root {
  --paper: #1C1B19;
  --paper-2: #272623;
  --surface: #242320;
  --ink: #EEECE5;
  --ink-2: #C9C7BE;
  --grey: #A3A198;
  --line: #4A4944;
  --line-strong: #85837A;
  --orange: #FA3600;
  --orange-ink: #FF7E52;
  --btn: #FF5C26;
  --on-ink: #1C1B19;
  --gutter: 16px;
  --sans: 'IBM Plex Sans Hebrew', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'Geist Mono', 'IBM Plex Sans Hebrew', ui-monospace, Menlo, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 8px; color: var(--ink);
  background-color: var(--paper); background-image: var(--grain);
  font-family: var(--sans); font-size: 15.5px; line-height: 1.5; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--btn); color: var(--on-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.wrap { width: 100%; padding-inline: var(--gutter); }
/* Geist Mono has no Hebrew: Hebrew letters fall back to Plex, but the space glyph stays
   monospace-wide, so Hebrew words in mono labels drift apart. Pull the spaces back in. */
html[lang="he"] :is(.mono, .btn, .nav > .cell, .nav__links > .cell, .term, .field > span, .field legend,
  .cohort__status, .wcard__n, .wcard__cta, .rows .row--link, .card .eyebrow, .tab, .hnext__info .mono, .hfact dt) { word-spacing: -.32em; }
/* Hebrew buttons and nav items read better in the sans; mono stays for small labels and numbers */
html[lang="he"] :is(.btn, .nav > .cell, .nav__links > .cell) {
  font-family: var(--sans); font-size: 14.5px; font-weight: 500; letter-spacing: 0; word-spacing: normal; text-transform: none; }
.arr::before { content: '←'; font-family: var(--sans); }
[dir="ltr"] .arr::before { content: '→'; }
.sq { display: block; width: 10px; height: 10px; background: var(--orange); }

/* the inset drawing frame with registration marks */
.frame { position: fixed; inset: 8px; border: 1px solid var(--line); pointer-events: none; z-index: 90; }
.frame__p { position: absolute; font-style: normal; font-family: var(--mono); font-size: 14px; line-height: 1; color: var(--grey); }
.frame__p--1 { top: 4px; inset-inline-start: 5px; }
.frame__p--2 { top: 4px; inset-inline-end: 5px; }
.frame__p--3 { bottom: 4px; inset-inline-start: 5px; }
.frame__p--4 { bottom: 4px; inset-inline-end: 5px; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 0; border: 1px solid var(--ink);
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { --h: 36px; padding: 0 14px; }
.btn--lg { --h: 52px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn); border-color: var(--btn); color: var(--on-ink); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--danger { background: transparent; border-color: var(--orange-ink); color: var(--orange-ink); }
.btn--danger:hover { background: var(--orange-ink); color: var(--on-ink); }

/* ---------------------------------------------------------------- nav (row of cells) */
.cell { border-inline-start: 1px solid var(--line); }
.nav {
  position: sticky; top: 8px; z-index: 50; display: flex; align-items: stretch; height: 46px;
  border-bottom: 1px solid var(--line); background-color: var(--paper); background-image: var(--grain);
}
.nav > .cell, .nav__links > .cell { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); transition: background-color .15s, color .15s; }
.nav > .cell:first-child { border-inline-start: 0; }
.nav__logo { margin-inline-end: auto; color: var(--ink) !important; }
.logo__mark { width: 22px; height: 22px; color: var(--ink); fill: var(--orange); }
.logo__word { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: -.02em; text-transform: none; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.nav__links { display: none; }
.nav__links > .cell:hover, .lang:hover { background: var(--paper-2); color: var(--ink); }
.lang { background: transparent; border-top: 0; border-bottom: 0; border-inline-end: 0; cursor: pointer; min-width: 52px; justify-content: center; }
.nav__cta { color: var(--orange-ink) !important; font-weight: 500; white-space: nowrap; }
.nav__cta:hover { background: var(--btn); color: var(--on-ink) !important; }
@media (min-width: 900px) { .nav__links { display: flex; } }
@media (max-width: 389px) { .nav > .cell { padding: 0 10px; } .lang { min-width: 44px; } }
@media (max-width: 359px) { .nav__logo .logo__mark { display: none; } .logo__word { font-size: 14px; } }

/* ---------------------------------------------------------------- hero */
.hero { border-bottom: 1px solid var(--line); }
.stage { position: relative; padding: 64px var(--gutter); display: grid; justify-items: center; align-items: center; gap: 64px 72px; overflow: hidden; }
.guide { position: absolute; inset-inline: 0; height: 1px; background: var(--orange); opacity: .55; }
.guide--t { top: 64px; }
.guide--b { bottom: 64px; }
.vidwrap { position: relative; width: min(100%, 440px); }
.vid { position: relative; margin: 0; z-index: 1; }
.vid__ph, .vid video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--ink); }
.vid__ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--paper-2) 1px, transparent 1px), linear-gradient(90deg, var(--paper-2) 1px, transparent 1px),
    linear-gradient(transparent calc(50% - .5px), rgba(238, 236, 229, .14) calc(50% - .5px), rgba(238, 236, 229, .14) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(238, 236, 229, .14) calc(50% - .5px), rgba(238, 236, 229, .14) calc(50% + .5px), transparent calc(50% + .5px));
  background-size: 24px 24px, 24px 24px, 100% 100%, 100% 100%;
}
.vid video { object-fit: cover; background: var(--ink); }
.vid__start {
  position: absolute; inset: 0; z-index: 2; width: 100%;
  --s: 56px; display: flex; align-items: center; justify-content: center;
  background: rgba(28, 27, 25, .16); border: 0; border-radius: 0; padding: 0; cursor: pointer; color: inherit;
}
/* the square sits dead centre; the label hangs below it without pushing it up */
.vid__start .vid__play { width: var(--s); height: var(--s); background: var(--paper); border: 1px solid var(--ink); transition: background-color .15s; }
.vid__start .vid__play svg { width: 24px; height: 24px; fill: var(--ink); transition: fill .15s; }
.vid__start .vid__txt { position: absolute; top: calc(50% + var(--s) / 2 + 8px); inset-inline: 0; margin-inline: auto; width: max-content; white-space: nowrap; border: 1px solid var(--ink); }
.vid__start:hover .vid__play { background: var(--ink); }
.vid__start:hover .vid__play svg { fill: var(--paper); }
.vid__start:focus-visible { outline: none; }
.vid__start:focus-visible .vid__play { outline: 2px solid var(--ink); outline-offset: 4px; }
.vid__play { display: grid; place-items: center; width: 64px; height: 64px; background: var(--orange); }
.vid__play svg { width: 26px; height: 26px; fill: var(--on-ink); }
[dir="rtl"] .vid__play svg { transform: none; }
.vid__txt { color: var(--ink-2); background: var(--surface); padding: 2px 8px; }
.dim { position: absolute; color: var(--ink-2); }
.dim b { font-weight: 400; font-size: 10.5px; background: var(--paper); padding: 0 6px; }
.dim--h { inset-inline: 0; bottom: -30px; height: 10px; border-bottom: 1px solid var(--ink-2); border-inline: 1px solid var(--ink-2); display: flex; justify-content: center; }
.dim--h b { transform: translateY(2px); }
.dim--v { display: none; top: 0; bottom: 0; inset-inline-end: -30px; width: 10px; border-inline-end: 1px solid var(--ink-2); border-block: 1px solid var(--ink-2); }
.dim--v b { position: absolute; top: 50%; inset-inline-end: -4px; transform: translateY(-50%) rotate(-90deg); transform-origin: center; white-space: nowrap; }
.sq--1, .sq--2 { position: absolute; z-index: 2; }
.sq--1 { top: 22%; inset-inline-start: -5px; }
.sq--2 { bottom: 30%; inset-inline-end: -5px; }
@media (min-width: 760px) { .dim--v { display: block; } }

/* the crucial information beside the video */
.hinfo { width: 100%; max-width: 640px; }
.hinfo__title { margin: 0 0 12px; font-size: clamp(32px, 3.4vw, 50px); font-weight: 600; line-height: 1.02; letter-spacing: -.025em; }
.hinfo__title span { display: block; }
.hinfo__lead { margin: 0 0 18px; max-width: 56ch; color: var(--ink-2); font-size: 15.5px; }
.hfacts { display: grid; margin: 0 0 16px; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.hfact { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: var(--paper); }
.hfact dt { color: var(--grey); font-size: 11px; }
.hfact dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
@media (min-width: 600px) { .hfacts { grid-template-columns: 1fr 1fr; } }
.hnext { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.hnext__info { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14.5px; color: var(--ink-2); }
.hnext__info .mono { color: var(--grey); }
.hnext__info b { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.hnext__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1000px) {
  /* video on the left and information on the right in both languages */
  .stage { direction: ltr; grid-template-columns: 440px minmax(0, 1fr); padding-inline: 56px; }
  html[dir="rtl"] .stage > * { direction: rtl; }
  html[dir="ltr"] .stage > * { direction: ltr; }
  .hinfo { max-width: 900px; padding-block: 28px; justify-self: start; }
  html[dir="rtl"] .hinfo { justify-self: end; }
}

.intro { border-bottom: 1px solid var(--line); }

.ticker { overflow: hidden; height: 36px; display: flex; align-items: stretch; color: var(--ink-2); font-size: 11.5px; }
.ticker__view { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ticker__btn { flex: none; width: 40px; display: grid; place-items: center; padding: 0; border: 0; border-inline-start: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.ticker__btn:hover { background: var(--paper-2); color: var(--ink); }
.ticker__ico { width: 12px; height: 12px; fill: currentColor; }
.ticker__ico--play { display: none; }
.ticker.is-paused .ticker__ico--play { display: block; }
.ticker.is-paused .ticker__ico--pause { display: none; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__track { display: flex; gap: 0; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 10px; padding-inline: 22px; white-space: nowrap; }
.ticker__track span::before { content: ''; width: 9px; height: 9px; border: 1px solid var(--ink-2); border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .ticker__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------------------------------------------------------------- welcome */
.welcome { display: grid; border-bottom: 1px solid var(--line); }
.welcome > .cell { padding: 28px var(--gutter) 32px; border-inline-start: 0; }
.welcome > .cell + .cell { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .welcome { grid-template-columns: 1fr 1fr; }
  .welcome > .cell { padding: 32px 24px 36px; }
  .welcome > .cell + .cell { border-top: 0; border-inline-start: 1px solid var(--line); }
}
.welcome__t { margin: 0; color: var(--ink); }
.dash { margin: 12px 0 18px; border-top: 1px dashed var(--ink-2); }
.facts { margin: 0; display: grid; gap: 8px; }
.fact { display: grid; grid-template-columns: 112px 1fr; gap: 0 10px; }
.fact dt { color: var(--grey); }
.fact dd { margin: 0; color: var(--ink); }
.fact dd::before { content: ':'; margin-inline-end: 12px; color: var(--grey); }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.log li { display: flex; gap: 14px; color: var(--ink); transition: opacity .4s ease; }
.log__n { color: var(--grey); }
.log.is-pending li { opacity: 0; }
.log.is-seen li:nth-child(2) { transition-delay: .12s; }
.log.is-seen li:nth-child(3) { transition-delay: .24s; }
.log.is-seen li:nth-child(4) { transition-delay: .36s; }
.log.is-seen li:nth-child(5) { transition-delay: .48s; }
.log.is-pending { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- statement */
.stmt { position: relative; display: grid; place-items: center; min-height: clamp(320px, 62vh, 620px); padding: 48px var(--gutter); border-bottom: 1px solid var(--line); text-align: center; }
.stmt__t { margin: 0; font-size: clamp(34px, 5.4vw, 80px); font-weight: 600; line-height: 1; letter-spacing: -.035em; max-width: 16ch; }
.stmt__sq { position: absolute; top: calc(50% + clamp(34px, 5.4vw, 80px) * .9); left: 50%; transform: translateX(-50%); }
.stmt__hint { position: absolute; bottom: 18px; inset-inline-start: var(--gutter); margin: 0; color: var(--grey); font-size: 11px; }

/* ---------------------------------------------------------------- sections */
.sec { border-bottom: 1px solid var(--line); }
.head { display: grid; border-bottom: 1px solid var(--line); }
.head > .cell { margin: 0; padding: 22px var(--gutter); border-inline-start: 0; }
.head__lbl { color: var(--grey); }
.head__title { font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; }
.head__side { color: var(--ink-2); font-size: 15px; max-width: 56ch; }
.head__side:empty { display: none; }
@media (min-width: 900px) {
  .head { grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 4fr); }
  .head > .cell { padding: 28px 24px 34px; }
  .head > .cell + .cell { border-inline-start: 1px solid var(--line); }
  .head__side:empty { display: block; }
}
html[lang="en"] .head__title, html[lang="en"] .hinfo__title, html[lang="en"] .stmt__t, html[lang="en"] .ins__name,
html[lang="en"] .dcell__t, html[lang="en"] .rows summary, html[lang="en"] .rows .row, html[lang="en"] .faq__list summary,
html[lang="en"] .foot__title, html[lang="en"] .dlg__title, html[lang="en"] .done__title, html[lang="en"] .wcard__title { text-transform: uppercase; }

.reveal { transition: opacity .5s ease, transform .5s ease; }
.reveal.is-pending { opacity: 0; transform: translateY(10px); }

/* course: five day cells with line drawings */
.dcells { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.dcell { display: flex; flex-direction: column; padding: 16px; min-height: 300px; }
.dcells > .dcell:nth-child(odd) { border-inline-start: 0; }
.dcells > .dcell:nth-child(n+3) { border-top: 1px solid var(--line); }
.dcells > .dcell:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .dcells { grid-template-columns: repeat(5, 1fr); }
  .dcell { padding: 18px 20px 22px; min-height: 380px; }
  .dcells > .dcell:nth-child(odd) { border-inline-start: 1px solid var(--line); }
  .dcells > .dcell:first-child { border-inline-start: 0; }
  .dcells > .dcell:nth-child(n+3) { border-top: 0; }
  .dcells > .dcell:last-child:nth-child(odd) { grid-column: auto; }
}
.dcell__top { display: flex; justify-content: space-between; margin: 0; color: var(--grey); }
.iso { width: 70%; max-width: 170px; margin: auto; padding-block: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-linejoin: round; }
.iso .iso__c { stroke: var(--line); stroke-dasharray: 3 3; }
.iso circle { fill: none; }
.dcell:hover .iso { stroke: var(--orange); }
.dcell__t { margin: 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.note { margin: 0; padding: 12px var(--gutter); color: var(--grey); border-bottom: 1px solid var(--line); font-size: 11px; }
@media (min-width: 900px) { .note { padding-inline: 24px; } }
.feats { display: grid; }
.feat { padding: 20px var(--gutter) 26px; border-inline-start: 0; }
.feat + .feat { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .feats { grid-template-columns: repeat(3, 1fr); }
  .feat { padding: 24px 24px 30px; }
  .feat + .feat { border-top: 0; border-inline-start: 1px solid var(--line); }
}
.tab { display: inline-flex; gap: 10px; margin: 0 0 14px; padding: 6px 10px; background: var(--paper-2); border: 1px solid var(--line-strong); color: var(--ink); font-size: 11.5px; }
.tab span:first-child { color: var(--orange-ink); }
.feat__p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 44ch; }

/* booking */
.cohorts { display: grid; border-bottom: 1px solid var(--line); }
/* one compact row per week: id | dates | seats | status | button */
@media (min-width: 1000px) {
  .cohorts > .cohort {
    display: grid; column-gap: 24px; align-items: center;
    grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) 170px minmax(0, 2fr) minmax(0, 2.4fr);
  }
  .cohort > .seats { margin: 0; width: 170px; }
  .cohort > .cohort__status { margin: 0; }
  .cohort > .cohort__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cohort > .cohort__main { margin: 0; }
}
.cohorts__msg { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; padding: 24px var(--gutter); color: var(--grey); }
.cohorts__msg p { margin: 0; }
.cohort { --accent: var(--ink); display: flex; flex-direction: column; padding: 16px var(--gutter) 20px; }
.cohort + .cohort { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .cohort { padding: 14px 24px; }
}
.cohort[data-state="full"] { --accent: var(--orange-ink); }
.cohort[data-state="closed"] { --accent: var(--grey); opacity: .6; }
.cohort__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cohort__id { font-size: 11.5px; color: var(--grey); direction: ltr; }
.cohort__chip { font-size: 11px; padding: 2px 8px; color: var(--accent); border: 1px solid currentColor; }
.cohort[data-state="open"] .cohort__chip { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
.cohort__main { margin: 12px 0 0; }
.cohort__dates { margin: 0 0 2px; font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; }
.cohort__sub { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.cohort__status { margin: 0 0 16px; color: var(--accent); font-family: var(--mono); font-size: 12px; text-transform: uppercase; min-height: 1.5em; }
.seats { display: block; width: 170px; max-width: 100%; height: auto; margin: 14px 0 8px; overflow: visible; }
.seat__core { fill: var(--orange); transition: fill .15s; }
.seat.is-taken .seat__core { fill: transparent; stroke: var(--line-strong); stroke-width: 1.2; }
.seat__ring { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0; transition: opacity .15s; }
.seat__ring, .seat__core { pointer-events: none; }
.seat__hit { fill: transparent; pointer-events: none; }
.seat.is-open .seat__hit { pointer-events: all; cursor: pointer; }
.seat.is-open:hover .seat__ring, .seat.is-picked .seat__ring { opacity: 1; }
.info { display: grid; margin: 0; }
@media (min-width: 760px) { .info { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .info { grid-template-columns: repeat(4, 1fr); } }
.info__item { padding: 16px var(--gutter) 20px; border-inline-start: 0; }
.info__item + .info__item { border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .info__item { padding: 18px 24px 22px; }
  .info__item + .info__item { border-top: 0; border-inline-start: 1px solid var(--line); }
  .info__item:nth-child(odd) { border-inline-start: 0; }
  .info__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1200px) {
  .info__item:nth-child(odd) { border-inline-start: 1px solid var(--line); }
  .info__item:first-child { border-inline-start: 0; }
  .info__item:nth-child(n+3) { border-top: 0; }
}
.info dt { color: var(--grey); }
.info dd { margin: 4px 0 0; font-weight: 600; font-size: 17px; }
.info dd.info__note { font-weight: 400; font-size: 13.5px; color: var(--ink-2); }

/* cancel block: the law wants it prominent, with every way to cancel side by side */
.cxb { display: grid; border-top: 1px solid var(--line); background: var(--paper-2); }
.cxb > .cell { padding: 20px var(--gutter) 24px; border-inline-start: 0; }
.cxb > .cell + .cell { border-top: 1px solid var(--line); }
.cxb__t { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.cxb__a p { margin: 0 0 16px; max-width: 54ch; color: var(--ink); font-size: 15.5px; }
.cxb__how { margin: 0 0 8px; font-weight: 600; font-size: 15.5px; }
.cxb__list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 15.5px; }
.cxb__list li { overflow-wrap: anywhere; }
.cxb__list a { color: var(--orange-ink); text-underline-offset: 3px; }
.cxb__need { margin: 0; color: var(--ink); font-size: 15.5px; }
@media (min-width: 900px) {
  .cxb { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .cxb > .cell { padding: 24px 24px 28px; }
  .cxb > .cell + .cell { border-top: 0; border-inline-start: 1px solid var(--line); }
}

/* instructor: the only place the photo appears */
.ins { display: grid; }
@media (min-width: 900px) { .ins { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.ins__media { position: relative; margin: 0; padding: 40px var(--gutter); border-inline-start: 0; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; justify-content: flex-end; }
.ins__circle { position: absolute; top: 34px; inset-inline-start: 24px; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); }
.ins__bar { position: absolute; top: 0; inset-inline-end: 28%; width: 12%; height: 62%; background: var(--orange); opacity: .9; }
.ins__media img { position: relative; z-index: 1; width: 74%; aspect-ratio: 976 / 1080; object-fit: cover; filter: grayscale(1) contrast(1.06); border: 1px solid var(--ink); }
.ins__text { padding: 28px var(--gutter) 36px; border-inline-start: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .ins__media { padding: 48px 32px; min-height: 620px; }
  .ins__text { padding: 32px 32px 40px; border-top: 0; border-inline-start: 1px solid var(--line); }
}
.ins__text .head__lbl { margin: 0 0 18px; }
.ins__name { margin: 0 0 28px; font-size: clamp(38px, 4.6vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.rows { border-top: 1px solid var(--line); }
.rows details, .rows .row { border-bottom: 1px solid var(--line); }
.rows summary, .rows .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; padding: 14px 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; list-style: none; }
.rows summary { cursor: pointer; }
.rows summary::-webkit-details-marker { display: none; }
.rows summary::after { content: '+'; font-family: var(--mono); font-weight: 400; color: var(--grey); font-size: 18px; }
.rows details[open] summary::after { content: '−'; color: var(--orange-ink); }
.rows details p { margin: -4px 0 18px; color: var(--ink-2); font-size: 15px; max-width: 60ch; }
.rows .row--link { text-decoration: none; color: var(--orange-ink); font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.rows .row--link:hover { color: var(--ink); }

/* work */
.work { display: grid; }
@media (min-width: 760px) { .work { grid-template-columns: repeat(3, 1fr); } }
.wcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 18px var(--gutter) 24px; }
.wcard + .wcard { border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .wcard { padding: 20px 24px 26px; }
  .wcard + .wcard { border-top: 0; border-inline-start: 1px solid var(--line); }
}
.wcard__img { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: var(--surface); order: 2; margin: 14px 0 16px; }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(1); transition: filter .3s; }
a.wcard:hover .wcard__img img { filter: none; }
.wcard__body { display: contents; }
.wcard__n { order: 1; color: var(--grey); font-family: var(--mono); font-size: 11.5px; }
.wcard__n::before { content: '['; } .wcard__n::after { content: ']'; }
.wcard__title { order: 3; margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.wcard__desc { order: 4; margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; flex: 1; }
.wcard__cta { order: 5; color: var(--orange-ink); font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
article.wcard .wcard__cta { color: var(--grey); }

/* faq */
.faq__list details { border-bottom: 1px solid var(--line); padding-inline: var(--gutter); }
.faq__list details:last-child { border-bottom: 0; }
@media (min-width: 900px) { .faq__list details { padding-inline: 24px; } }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-size: 17.5px; font-weight: 600; letter-spacing: -.015em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; font-family: var(--mono); font-weight: 400; color: var(--grey); font-size: 18px; }
.faq__list details[open] summary::after { content: '−'; color: var(--orange-ink); }
.faq__list details p { margin: -4px 0 18px; color: var(--ink-2); max-width: 64ch; }

/* footer: cell grid + outlined blueprint wordmark */
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.foot__grid > .cell { padding: 20px var(--gutter) 24px; display: flex; flex-direction: column; gap: 4px; }
.foot__grid > .cell:nth-child(odd) { border-inline-start: 0; }
.foot__grid > .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
.foot__grid > .cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); }
  .foot__grid > .cell { padding: 22px 24px 28px; }
  .foot__grid > .cell:nth-child(odd) { border-inline-start: 1px solid var(--line); }
  .foot__grid > .cell:first-child { border-inline-start: 0; }
  .foot__grid > .cell:nth-child(n+3) { border-top: 0; }
  .foot__grid > .cell:last-child:nth-child(odd) { grid-column: auto; }
}
.foot__title { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.foot__title span { display: block; }
.foot__lbl { margin: 0 0 8px; color: var(--grey); }
.foot__a { margin: 0; font-size: 14.5px; text-decoration: none; }
a.foot__a:hover { color: var(--orange-ink); }
.foot__a--o { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.foot__muted { color: var(--grey); }
.word { position: relative; overflow: hidden; padding: 26px var(--gutter) 18px; border-bottom: 1px solid var(--line); text-align: center; direction: ltr; }
.word span {
  display: block; font-weight: 600; font-size: clamp(30px, 10.5vw, 200px); line-height: .9; letter-spacing: -.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--ink-2);
}
.word::before, .word::after { content: ''; position: absolute; inset-inline: 0; height: 1px; background: var(--orange); opacity: .5; }
.word::before { top: 26px; }
.word::after { bottom: 18px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 14px var(--gutter) 96px; color: var(--grey); font-size: 11px; } /* room for the WhatsApp button */
.foot__base a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__seller { direction: inherit; text-transform: none; }

.wa {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 90;
  display: inline-flex; align-items: stretch; background: var(--paper-2); color: var(--ink); border: 1px solid var(--line-strong);
  text-decoration: none; transition: background-color .15s;
}
.wa__ico { display: grid; place-items: center; width: 48px; height: 48px; background: #25D366; }
.wa__ico svg { width: 26px; height: 26px; fill: #fff; }
.wa__txt { display: flex; align-items: center; padding: 0 18px; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
html[lang="he"] .wa__txt { font: 500 14.5px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.wa:hover { background: #000; }
.wa:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (max-width: 600px) {
  /* icon only on phones, so it doesn't sit over the seats */
  .wa { bottom: 14px; inset-inline-end: 14px; }
  .wa__ico { width: 52px; height: 52px; }
  .wa__ico svg { width: 28px; height: 28px; }
  .wa__txt { display: none; }
}
.demo { position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 95; margin: 0; padding: 5px 10px; background: var(--ink); color: var(--on-ink); font-size: 10.5px; }

/* ---------------------------------------------------------------- dialog */
.dlg { width: min(560px, calc(100% - 2 * var(--gutter))); max-height: calc(100svh - 32px); padding: 0; margin: auto; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.dlg::backdrop { background: rgba(0, 0, 0, .65); }
.dlg[open] { animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.dlg__panel { position: relative; max-height: calc(100svh - 32px); overflow-y: auto; padding: 26px 22px 24px; background-color: var(--paper); background-image: var(--grain); border: 1px solid var(--ink); }
@media (min-width: 600px) { .dlg__panel { padding: 30px; } }
@media (max-width: 599px) {
  .dlg { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 94svh; }
  .dlg__panel { max-height: 94svh; border-inline: 0; border-bottom: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .dlg[open] { animation: sheet .25s ease; }
  @keyframes sheet { from { transform: translateY(32px); opacity: 0; } }
}
.dlg__x { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border: 1px solid var(--line-strong); background: transparent; font-size: 18px; line-height: 1; cursor: pointer; }
.dlg__x:hover { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.dlg__head { padding-inline-end: 44px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--ink-2); }
.dlg__tag { margin: 0 0 8px; color: var(--orange-ink); direction: ltr; text-align: start; unicode-bidi: plaintext; font-size: 11px; }
.dlg__title { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.dlg__dates { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }

.dlg__panel .form, .dlg__panel .term, .dlg__panel .done, .dlg__panel .fail { display: none; }
.dlg__panel[data-step="form"] .form { display: block; }
.dlg__panel[data-step="run"] .term, .dlg__panel[data-step="done"] .term, .dlg__panel[data-step="fail"] .term { display: block; }
.dlg__panel[data-step="done"] .done { display: block; }
.dlg__panel[data-step="fail"] .fail { display: block; }

.form__note { margin: 0 0 16px; padding: 10px 12px; font-size: 14.5px; color: var(--orange-ink); border: 1px solid var(--orange-ink); }
.form__row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { display: block; margin-bottom: 6px; padding: 0; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em; color: var(--grey); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 0;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; transition: border-color .15s;
}
.field input[dir="ltr"] { text-align: start; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field.has-err input { border-color: var(--orange-ink); }
.field__err { display: block; margin-top: 5px; font-style: normal; font-size: 13.5px; color: var(--orange-ink); }
.field__err:empty { display: none; }
.pills { display: grid; gap: 8px; }
@media (min-width: 600px) { .pills { grid-template-columns: repeat(3, 1fr); } }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14.5px; line-height: 1.25; transition: border-color .15s, background-color .15s, color .15s; }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pill input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__summary { margin: 4px 0 10px; font-size: 14px; color: var(--ink); }
.form__privacy { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.form__links { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.form__links a { color: var(--orange-ink); text-underline-offset: 3px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--btn); }

/* booking progress steps: a mono log, like the reference's boot sequence */
.term { margin: 0; padding: 14px 16px; min-height: 150px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; line-height: 1.9; }
.term__line { display: flex; gap: 12px; margin: 0; color: var(--ink-2); animation: lineIn .3s ease both; }
.term__p { color: var(--grey); flex: none; }
.term__line.is-ok { color: var(--ink); font-weight: 500; }
.term__line.is-ok .term__p { color: var(--orange-ink); }
.term__line.is-err, .term__line.is-err .term__p { color: var(--orange-ink); }
@keyframes lineIn { from { opacity: 0; } }

.done { text-align: center; padding-top: 22px; }
.done__mark { width: 52px; height: 52px; margin: 0 auto 14px; }
.done__mark svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: square; }
.done__mark rect { stroke-dasharray: 168; stroke-dashoffset: 168; animation: draw .6s ease forwards; }
.done__mark path { stroke: var(--orange); stroke-width: 2.4; stroke-dasharray: 32; stroke-dashoffset: 32; animation: draw .35s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__title { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.done__body { margin: 8px auto 22px; max-width: 420px; color: var(--ink-2); }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fail { padding-top: 18px; text-align: center; }
.fail__msg { margin: 0 0 18px; }

/* ---------------------------------------------------------------- cancel page */
.solo { min-height: 100svh; display: flex; flex-direction: column; }
.solo .nav { position: static; height: auto; }
.solo .nav__in { display: flex; align-items: center; gap: 16px; min-height: 46px; }
.solo .logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.solo .nav__actions { margin-inline-start: auto; }
.solo .lang { height: 46px; border-inline-start: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.solo main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 48px var(--gutter); }
.card { width: 100%; max-width: 540px; padding: 28px 24px; background-color: var(--paper); border: 1px solid var(--ink); }
.card .eyebrow { margin: 0 0 10px; color: var(--orange-ink); font-family: var(--mono); font-size: 11px; }
.card h1 { margin: 0 0 10px; font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.card p { color: var(--ink-2); }
.card__box { margin: 18px 0 22px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); }
.card__box p { margin: 0; color: var(--ink); }
.card__box .mono { color: var(--grey); }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card__actions .btn { white-space: normal; text-align: center; padding-block: 8px; }

/* ---------------------------------------------------------------- legal pages */
.solo.legal main { display: block; padding: 40px var(--gutter) 72px; }
.doc { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.65; }
.doc h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 46px); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.doc__date { margin: 0 0 28px; color: var(--ink-2); font-size: 14px; }
.doc h2 { margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.doc p { margin: 0 0 12px; color: var(--ink-2); }
.doc ul { margin: 0 0 12px; padding-inline-start: 20px; color: var(--ink-2); }
.doc li { margin-bottom: 4px; }
.doc a { color: var(--orange-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc__box { margin: 0 0 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); }
.doc__box p { margin: 0 0 4px; color: var(--ink); }
.doc__box p:last-child { margin: 0; }
.gap { color: var(--on-ink); background: var(--btn); padding: 0 4px; }
.notice { max-width: 560px; margin: 0 auto; }
.notice h1 { margin: 0 0 10px; font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.notice > p { margin: 0 0 18px; color: var(--ink-2); }
.notice .field textarea { width: 100%; min-height: 84px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; resize: vertical; }
.notice .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.notice__done { padding: 18px 16px; background: var(--surface); border: 1px solid var(--line-strong); }
.notice__done h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.notice__done p { margin: 0; color: var(--ink-2); }
.legal__back { margin: 36px 0 0; }
.legal__back a { color: var(--orange-ink); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.is-pending, .log.is-pending li { opacity: 1; transform: none; }
  .ticker__btn { display: none; }
  .done__mark rect, .done__mark path { stroke-dashoffset: 0; }
}
