/* Kesher homepage. */

/* ---------- Hero ---------- */

.kesher-hero{
  position:relative;border-radius:var(--radius-section);overflow:hidden;
  min-height:520px;display:flex;align-items:center;margin-bottom:20px;
  background:var(--ink);
}
.kesher-hero__bg{position:absolute;inset:0}
.kesher-hero__bg img{width:100%;height:100%;object-fit:cover;opacity:.7}
.kesher-hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(20,21,29,.88) 0%, rgba(20,21,29,.66) 48%, rgba(20,21,29,.3) 100%);
}
.kesher-hero__inner{position:relative;z-index:2;padding:76px 60px;max-width:760px}
.kesher-hero .pillars{
  font-family:var(--font-label);font-weight:600;font-size:12px;
  letter-spacing:.3em;text-transform:uppercase;color:var(--blush);
  display:block;margin-bottom:16px;
}
.kesher-hero h1{
  font-size:clamp(38px,5.4vw,62px);font-weight:400;line-height:1.06;
  color:var(--parchment);
}
.kesher-hero h1 em{font-style:italic;color:var(--blush)}
.kesher-hero p{
  font-family:var(--font-body);font-size:16px;line-height:1.75;
  color:var(--parchment);opacity:.82;max-width:52ch;margin-top:18px;
}
.kesher-hero__cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.kesher-hero__cta .kesher-btn--ghost{color:var(--parchment);border-color:rgba(246,241,231,.5)}
.kesher-hero__cta .kesher-btn--ghost:hover{background:var(--parchment);color:var(--ink);border-color:var(--parchment)}

/* ---------- Three pillars ---------- */

.kesher-pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:26px}
.kesher-pillar{border-radius:var(--radius-card);padding:26px 28px}
.kesher-pillar .k{
  font-family:var(--font-label);font-weight:600;font-size:10.5px;
  letter-spacing:.26em;text-transform:uppercase;color:var(--brass);
  display:block;margin-bottom:10px;
}
.kesher-pillar h2{font-size:23px;font-weight:400;line-height:1.25}
.kesher-pillar h2 em{font-style:italic}
.kesher-pillar--dark{background:var(--ink)}
.kesher-pillar--dark h2{color:var(--parchment)}
.kesher-pillar--dark h2 em{color:var(--blush)}
.kesher-pillar--lime{background:var(--limestone-2)}
.kesher-pillar--lime h2 em{color:var(--pomegranate)}
.kesher-pillar--blush{background:var(--blush)}
.kesher-pillar--blush .k{color:var(--pomegranate)}
.kesher-pillar--blush h2 em{color:var(--pomegranate)}

/* ---------- Need filter chips ---------- */

.kesher-needchips{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin-bottom:26px}
.kesher-needchips a{
  font-family:var(--font-body);font-size:13.5px;padding:9px 18px;
  border:1px solid var(--limestone);border-radius:var(--radius-pill);
  background:var(--surface-card);color:var(--ink);transition:var(--transition);
}
.kesher-needchips a:hover,.kesher-needchips a.is-on{background:var(--ink);color:var(--parchment);border-color:var(--ink)}

/* ---------- Occasions carousel ---------- */

.kesher-occband{background:var(--surface-section);border-radius:var(--radius-section);padding:44px 26px;margin-bottom:26px}
.kesher-occrail{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 10px;scrollbar-width:none}
.kesher-occrail::-webkit-scrollbar{display:none}
.kesher-occard{
  flex:0 0 210px;scroll-snap-align:start;
  background:var(--surface-card);border:1px solid var(--border-card);
  border-radius:var(--radius-card);padding:22px 16px;text-align:center;
  color:var(--ink);transition:transform .2s, box-shadow .2s;
}
.kesher-occard:hover{transform:translateY(-3px);box-shadow:var(--shadow-card-hover);color:var(--ink)}
.kesher-occard svg{width:28px;height:28px;color:var(--brass);margin-bottom:12px}
.kesher-occard b{font-family:var(--font-display);font-size:19px;font-weight:400;display:block}
.kesher-occard .heb{font-family:var(--font-hebrew);direction:rtl;font-size:13.5px;opacity:.55;margin-top:3px}

/* ---------- Manifesto ---------- */

.kesher-manifesto{display:grid;grid-template-columns:1fr 1.25fr;gap:48px;align-items:center}
.kesher-manifesto__img{border-radius:var(--radius-card);overflow:hidden;aspect-ratio:4/3.4}
.kesher-manifesto__img img{width:100%;height:100%;object-fit:cover}
.kesher-manifesto h2{font-size:clamp(26px,3.2vw,36px);font-weight:400;line-height:1.2;margin:12px 0 16px}
.kesher-manifesto h2 em{font-style:italic;color:var(--pomegranate)}
.kesher-manifesto > div > p{font-family:var(--font-body);font-size:14.5px;line-height:1.75;opacity:.82}
.kesher-manifesto__cols{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:26px}
.kesher-manifesto__cols .lbl{
  font-family:var(--font-label);font-weight:600;letter-spacing:var(--tracking-caps);
  text-transform:uppercase;font-size:10px;color:var(--brass);display:block;margin-bottom:6px;
}
.kesher-manifesto__cols p{font-family:var(--font-body);font-size:13px;opacity:.75;line-height:1.6}

/* ---------- Segulah of the month ---------- */

.kesher-feature{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;margin-bottom:26px}
.kesher-feature__img{border-radius:var(--radius-section);overflow:hidden;aspect-ratio:4/3.6}
.kesher-feature__img img{width:100%;height:100%;object-fit:cover}
.kesher-feature h2{font-size:clamp(28px,3.4vw,40px);font-weight:400;line-height:1.16;margin:12px 0 16px}
.kesher-feature h2 em{font-style:italic;color:var(--pomegranate)}
.kesher-feature p{font-family:var(--font-body);font-size:15px;line-height:1.75;opacity:.82;margin-bottom:24px}

/* ---------- Services band ---------- */

.kesher-svc{background:var(--ink);border-radius:var(--radius-section);padding:56px 48px;margin-bottom:26px;color:var(--parchment)}
.kesher-svc__grid{display:grid;grid-template-columns:1fr 1.3fr;gap:48px;align-items:center}
.kesher-svc__img{border-radius:var(--radius-card);overflow:hidden;aspect-ratio:4/3.4}
.kesher-svc__img img{width:100%;height:100%;object-fit:cover}
.kesher-svc h2{font-size:clamp(28px,3.4vw,38px);font-weight:400;line-height:1.2;color:var(--parchment);margin:10px 0 14px}
.kesher-svc h2 em{font-style:italic;color:var(--blush)}
.kesher-svc > .kesher-svc__grid > div > p{font-family:var(--font-body);font-size:14.5px;opacity:.75;line-height:1.7}
.kesher-svc__list{margin-top:26px}
.kesher-svc__item{
  display:block;padding:18px 0;border-top:1px solid rgba(246,241,231,.16);color:var(--parchment);
}
.kesher-svc__item:hover{color:var(--blush)}
.kesher-svc__item h3{font-family:var(--font-display);font-size:21px;font-weight:400;color:inherit}
.kesher-svc__item p{font-family:var(--font-body);font-size:13px;opacity:.7;margin-top:4px}
.kesher-svc__item .go{
  font-family:var(--font-label);font-weight:600;letter-spacing:.11em;
  text-transform:uppercase;font-size:10px;color:var(--blush);display:inline-block;margin-top:8px;
}

/* ---------- Daily pasuk ---------- */

.kesher-daily{
  background:var(--ink);border-radius:var(--radius-section);
  padding:88px 48px;text-align:center;color:var(--parchment);margin-bottom:26px;
}
.kesher-daily .k{
  font-family:var(--font-label);font-weight:600;letter-spacing:var(--tracking-caps);
  text-transform:uppercase;font-size:10.5px;color:var(--brass);display:block;margin:34px 0 20px;
}
.kesher-daily__he{
  font-family:var(--font-hebrew);direction:rtl;font-size:clamp(27px,3.9vw,42px);font-weight:700;
  line-height:1.7;color:var(--parchment);
}
.kesher-daily__en{font-family:var(--font-display);font-style:italic;font-size:18px;opacity:.78;margin-top:9px}
.kesher-daily__src{font-family:var(--font-label);font-weight:600;letter-spacing:var(--tracking-caps);
  text-transform:uppercase;font-size:10px;color:var(--brass);margin-top:16px}
/* The thought is commentary on the pasuk, so it is set narrower than the
   panel and quieter than the line it follows. */
.kesher-daily__tx{font-family:var(--font-body);font-size:15px;line-height:1.75;
  opacity:.78;max-width:52ch;margin:28px auto 0}
/* The break between what today says and the offer to get one every day.
   Without it the whole panel read as a single run of text. */
.kesher-daily__split{width:56px;height:1px;background:rgba(255,255,255,.16);
  margin:44px auto 34px}
.kesher-daily h2{font-size:clamp(26px,3.2vw,36px);font-weight:400;color:var(--parchment);margin-top:0}
.kesher-daily h2 em{font-style:italic;color:var(--blush)}
.kesher-daily p{font-family:var(--font-body);font-size:14.5px;opacity:.75;max-width:52ch;margin:14px auto 0;text-wrap:balance}

/* ---------- Newsletter ---------- */

.kesher-news{background:var(--blush);border-radius:var(--radius-section);padding:56px 40px;text-align:center}
.kesher-news h2{font-size:clamp(26px,3.2vw,36px);font-weight:400}
.kesher-news h2 em{font-style:italic;color:var(--pomegranate)}
.kesher-news p{font-family:var(--font-body);font-size:14.5px;opacity:.8;max-width:48ch;margin:12px auto 24px}

@media(max-width:1020px){
  .kesher-hero__inner{padding:48px 30px}
  .kesher-pillars{grid-template-columns:1fr}
  .kesher-manifesto,.kesher-feature,.kesher-svc__grid{grid-template-columns:1fr;gap:28px}
  .kesher-svc{padding:34px 24px}
  .kesher-occard{flex:0 0 190px}
}
@media(max-width:700px){
  .kesher-occard{flex:0 0 158px}
  .kesher-manifesto__cols{grid-template-columns:1fr;gap:16px}
  .kesher-daily,.kesher-news{padding:40px 22px}
}
.kesher-occband .kesher-sechead{text-align:center}
.kesher-occard b{font-size:17px;line-height:1.25}
.kesher-occrail{padding-bottom:14px}

/* ---------- Explore by need: photo cards ---------- */

.kesher-needrail{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding:4px 2px 12px;scrollbar-width:none}
.kesher-needrail::-webkit-scrollbar{display:none}
.kesher-needcard{flex:0 0 calc(33.333% - 11px);scroll-snap-align:start;
  position:relative;border-radius:var(--radius-card);overflow:hidden;
  aspect-ratio:1/1.02;display:flex;align-items:flex-end;
  background:var(--surface-wash);color:var(--parchment);
  transition:transform .2s, box-shadow .2s}
.kesher-needcard:hover{transform:translateY(-3px);box-shadow:var(--shadow-dark-hover);color:var(--parchment)}
.kesher-needcard img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;transition:transform .5s ease}
.kesher-needcard:hover img{transform:scale(1.045)}
.kesher-needcard::after{content:"";position:absolute;inset:0;
  background:linear-gradient(to top, rgba(20,21,29,.92) 0%, rgba(20,21,29,.55) 42%, rgba(20,21,29,.08) 78%)}
.kesher-needcard__tx{position:relative;z-index:2;padding:26px}
.kesher-needcard .k{font-family:var(--font-label);font-weight:600;
  letter-spacing:var(--tracking-caps);text-transform:uppercase;font-size:10px;
  color:var(--blush);display:block;margin-bottom:8px}
.kesher-needcard h3{font-family:var(--font-display);font-size:27px;font-weight:400;
  line-height:1.1;color:var(--parchment)}
.kesher-needcard .heb{font-family:var(--font-hebrew);direction:rtl;font-size:15px;
  opacity:.7;margin-top:4px}
.kesher-needcard p{font-family:var(--font-body);font-size:13.5px;opacity:.85;
  line-height:1.6;margin-top:10px;max-width:34ch}
.kesher-needcard .go{font-family:var(--font-label);font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;font-size:10px;color:var(--parchment);
  display:inline-block;margin-top:16px;padding-bottom:4px;
  border-bottom:1px solid var(--brass)}

.kesher-railnav{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.kesher-railnav button{width:44px;height:44px;border-radius:50%;
  border:1px solid var(--limestone);background:var(--surface-card);
  cursor:pointer;color:var(--ink);font-size:15px;line-height:1;
  transition:var(--transition)}
.kesher-railnav button:hover{border-color:var(--ink);background:var(--ink);color:var(--parchment)}

.kesher-occard--t1{background:var(--blush)}
.kesher-occard--t2{background:var(--limestone-2)}
.kesher-occard--t3{background:var(--parchment-3)}
.kesher-occard--t4{background:var(--surface-wash)}

@media(max-width:1020px){ .kesher-needcard{flex:0 0 calc(50% - 8px)} }
@media(max-width:700px){ .kesher-needcard{flex:0 0 82%;aspect-ratio:1/1.1} }

/* Explore by need and Marking a moment sit on the page background,
   not inside a parchment panel. */
.kesher-openband{padding:48px 0 40px;margin-bottom:8px}
.kesher-occband{background:none;border-radius:0;padding:40px 0 44px;margin-bottom:8px}


/* ---------- Join the daily chizuk ---------- */

.kesher-joinbar{max-width:520px;margin:0 auto}
.kesher-joinbar__btn{
  width:100%;font-family:var(--font-label);font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;font-size:11px;border-radius:var(--radius-pill);
  padding:16px 28px;cursor:pointer;border:1px solid var(--pomegranate);
  background:var(--pomegranate);color:#fff;transition:var(--transition);
  display:flex;align-items:center;justify-content:center;gap:10px}
.kesher-joinbar__btn:hover{background:var(--pomegranate-2);border-color:var(--pomegranate-2)}
.kesher-joinbar__btn::after{content:"\2193";font-family:var(--font-body);font-size:14px;transition:transform .25s}
.kesher-joinbar.is-open .kesher-joinbar__btn::after{transform:rotate(180deg)}
.kesher-joinbar.is-open .kesher-joinbar__btn{
  background:none;color:var(--parchment);border-color:rgba(246,241,231,.4)}

.kesher-joinbar__panel{
  overflow:hidden;max-height:0;opacity:0;
  transition:max-height .38s ease, opacity .28s ease, margin-top .38s ease;
  margin-top:0}
.kesher-joinbar__panel[hidden]{display:block}
.kesher-joinbar.is-open .kesher-joinbar__panel{max-height:340px;opacity:1;margin-top:16px}

.kesher-joinbar .fluentform fieldset{display:flex;gap:10px;align-items:center;
  flex-wrap:wrap;border:none;margin:0;padding:0}
.kesher-joinbar .fluentform legend{display:none}
.kesher-joinbar .fluentform .ff-el-group{flex:1 1 150px;margin-bottom:0}
.kesher-joinbar .fluentform .ff_submit_btn_wrapper{flex:0 0 auto}
.kesher-joinbar .fluentform .ff-el-input--label{display:none}
.kesher-joinbar .fluentform .ff-el-form-control{
  border-radius:var(--radius-pill);background:rgba(246,241,231,.96);
  border-color:transparent;width:100%}
.kesher-joinbar .fluentform .ff-btn-submit{width:auto!important;min-width:96px}
.kesher-joinbar .ff-message-success{background:rgba(246,241,231,.1);
  border-color:rgba(246,241,231,.25);color:var(--parchment)}
/* Fine print under the button: the channel, said before anyone taps. */
.kesher-daily__via{font-family:var(--font-body);font-size:12.5px;
  color:var(--text-on-dark-muted);margin-top:14px}
.kesher-joinbar__note{font-family:var(--font-body);font-size:12px;
  color:var(--text-on-dark-muted);margin-top:12px}

@media(max-width:560px){
  .kesher-joinbar .fluentform fieldset{flex-direction:column}
  .kesher-joinbar .fluentform .ff-el-group,
  .kesher-joinbar .fluentform .ff_submit_btn_wrapper{width:100%}
  .kesher-joinbar .fluentform .ff-btn-submit{width:100%!important}
  .kesher-joinbar.is-open .kesher-joinbar__panel{max-height:460px}
}

/* ---------- Hero: mobile pan ---------- */
/* The hero box is 2.2:1 on desktop but portrait on a phone, so a static
   crop shows only the middle third and one product fills the screen.
   Below 700px the image drifts instead: it opens on the centre, travels
   right, crosses all the way left, and returns to the centre, where the
   loop closes seamlessly. Timings are proportional to distance, so the
   speed is even throughout; the easing only softens the two turns. */
@media(max-width:700px){
  .kesher-hero__bg img{
    object-position:50% center;
    animation:kesher-hero-pan 64s infinite;
    will-change:object-position;
  }
  /* Sideways gradient over a 362px box leaves the left of the screen
     muddy and fights the pan. Top-down keeps the type legible and lets
     the picture read right across. */
  .kesher-hero::after{
    background:linear-gradient(180deg, rgba(20,21,29,.42) 0%, rgba(20,21,29,.72) 52%, rgba(20,21,29,.88) 100%);
  }
}

@keyframes kesher-hero-pan{
  0%   {object-position:50% center; animation-timing-function:ease-out}
  25%  {object-position:88% center; animation-timing-function:ease-in-out}
  75%  {object-position:12% center; animation-timing-function:ease-in}
  100% {object-position:50% center}
}

@media(prefers-reduced-motion:reduce){
  .kesher-hero__bg img{animation:none;object-position:center}
}


/* ---------- Hero: desktop video ---------- */
/* Sits over the still, which stays as poster and fallback. Fades in only
   once it is actually playing, so a slow connection never shows a black
   box. Opacity matches the still so the gradient reads the same either way. */
.kesher-hero__video{
  position:absolute;inset:0;z-index:1;
  width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity .8s ease;
  pointer-events:none;
}
.kesher-hero__video.is-playing{opacity:.7}

/* The script never attaches sources below 701px, but belt and braces. */
@media(max-width:700px){ .kesher-hero__video{display:none} }
@media(prefers-reduced-motion:reduce){ .kesher-hero__video{display:none} }


/* ---------- Hero video: stacking and handover ---------- */
/* Two problems the first pass got wrong.
   1. The still and the video were both sitting at .7 opacity, stacked, so
      the still showed straight through the video and the arrangement
      ghosted - worst in the top right, where the two differ most. Once the
      video is genuinely playing the still hands over and fades out; it is
      still the poster and the fallback, it just stops competing.
   2. The video carried z-index 1 while the ::after scrim had none, so the
      video painted over the gradient and the headline lost its contrast.
      The scrim now sits above the video, below the text. */
.kesher-hero__bg{transition:opacity .8s ease}
.kesher-hero.has-video .kesher-hero__bg{opacity:0}
.kesher-hero__video{z-index:0}
.kesher-hero::after{z-index:1}


/* ---------- Hero headline: the break ---------- */
/* Left to wrap on its own the line broke after 'your', orphaning 'heart.'
   and splitting the italic phrase down the middle. It also only just fit:
   'For whatever is on your' measures 636px in a 640px column, so any
   change in font rendering would reflow it. Breaking at the grammatical
   seam instead gives 414px and 380px - balanced, and the italic phrase
   stays whole, which is where the emphasis lives. */
.kesher-hero h1 em{display:block}


/* ---------- Hero scrim: hold behind the text, release over the picture ---------- */
/* The old ramp was still at .66 opacity at the 48% mark, where no text
   reaches - the paragraph caps at 52ch, so copy only occupies roughly the
   left 45%. That darkened the picture for nothing. This holds the same
   weight behind the words, then falls away faster across the right, so
   more of the video reads without costing contrast. */
.kesher-hero::after{
  background:linear-gradient(90deg, rgba(20,21,29,.86) 0%, rgba(20,21,29,.78) 32%, rgba(20,21,29,.52) 56%, rgba(20,21,29,.16) 100%);
}
/* Cheap insurance for the few glyphs that sit over the lighter stretch. */
.kesher-hero h1,.kesher-hero p,.kesher-hero .pillars{text-shadow:0 1px 14px rgba(20,21,29,.45)}

/* Mobile keeps its own top-down scrim - restate it after this rule. */
@media(max-width:700px){
  .kesher-hero::after{
    background:linear-gradient(180deg, rgba(20,21,29,.42) 0%, rgba(20,21,29,.72) 52%, rgba(20,21,29,.88) 100%);
  }
}


/* ---------- Need cards: lift and hold ---------- */
/* Two changes together. The art sits 4% higher and 12% larger, which puts
   the subject up where there is room for it and brings the quiet part of
   each picture - table, stone, shadow - down behind the type. The scrim
   then holds its weight further up the card: the old ramp had thinned to
   about half opacity by the height the eyebrow line sits at, which is why
   it washed out on the lighter images. Scale leaves 6% of overflow each
   side and the lift spends 4% of it, so no edge can show. */
.kesher-needcard img{transform:scale(1.12) translateY(-4%)}
.kesher-needcard:hover img{transform:scale(1.16) translateY(-4%)}
.kesher-needcard::after{
  background:linear-gradient(to top, rgba(20,21,29,.94) 0%, rgba(20,21,29,.8) 42%, rgba(20,21,29,.52) 58%, rgba(20,21,29,.16) 78%, rgba(20,21,29,0) 100%);
}


/* Services: portrait image, full height of the text beside it */
.kesher-svc__img{position:relative}
.kesher-svc__img img{position:absolute;inset:0}
@media(min-width:1021px){
  .kesher-svc__grid{align-items:stretch}
  .kesher-svc__img{aspect-ratio:auto}
}
@media(max-width:1020px){
  .kesher-svc__img{aspect-ratio:1/1}
}

/* Occasion cards: hand-drawn illustrations */
.kesher-occrail .kesher-occard{
  flex:0 0 248px;
  display:flex;flex-direction:column;align-items:center;
  padding:26px 18px 22px;
  transition:transform .22s ease, box-shadow .22s ease;
}
.kesher-occard__art{display:block;width:80%;aspect-ratio:1/1;margin:0 auto 14px}
.kesher-occard__img{
  width:100%;height:100%;object-fit:contain;display:block;
  transition:transform .22s ease;
}
.kesher-occard b{margin-top:auto}
.kesher-occard:hover .kesher-occard__img{transform:translateY(-4px)}
@media(max-width:1020px){
  .kesher-occrail .kesher-occard{flex:0 0 214px}
}
@media(max-width:700px){
  .kesher-occrail .kesher-occard{flex:0 0 174px;padding:20px 14px 18px}
  .kesher-occard__art{width:66%;margin-bottom:12px}
}
@media(prefers-reduced-motion:reduce){
  .kesher-occrail .kesher-occard,.kesher-occard__img{transition:none}
  .kesher-occard:hover .kesher-occard__img{transform:none}
}


/* Carousel arrows: centred on narrow screens.
   flex-end reads as misaligned on a phone, where the rail runs edge to edge. */
@media(max-width:700px){
  .kesher-railnav{justify-content:center}
}


/* Homepage collections: six tiles on desktop, four below it.
   Six stacked is a long scroll on a phone, so the last two come off once the
   grid leaves its three-column desktop layout. Every width still ends on a
   full row - 3+3 on desktop, 2+2 at tablet, 1x4 stacked.
   Scoped to --home so the collections index keeps showing all nine. */
@media(max-width:900px){
  .kesher-mosaic--home .kesher-mtile:nth-child(n+5){display:none}
}
