/* =========================================================
   home-fit.css — התאמת מסכי דף הבית לגובה המסך (מחשב + נייד): כל מסך ממלא את המסך בלי גלילה פנימית.
   נטען אחרון (אחרי ה-CSS שבתוך index.html ואחרי css/header.css) — הכללים כאן גוברים.
   נבנה על ידי ארבעה סוכנים במקביל, כל אחד על קבוצת מסכים; כל כלל ממוקד ב-#id של המסך.
   ========================================================= */

/* ==================== מסכי המופעים א: #birthday #live #holidays #education ==================== */
/* =====================================================================
   fit-svc-a.css — #birthday / #live / #holidays / #education
   Goal: the comic panel fills the space between the fixed header and the
   bottom bar (no floating panel with big gaps), with ZERO inner scrolling.
   Everything is sized from --svc-avail = viewport − header − bottom bar
   (svh + safe-area aware), so the photo and the type scale with the
   available height instead of leaving empty paper.
   ===================================================================== */

#birthday, #live, #holidays, #education{ --svc-vh:100vh; }
@supports (height:100svh){
  #birthday, #live, #holidays, #education{ --svc-vh:100svh; }
}
/* the panel centres its content; a modest min-height soaks up tiny leftovers
   (on phones the leftover becomes extra row spacing, see align-content) */
#birthday .comic-panel, #live .comic-panel, #holidays .comic-panel, #education .comic-panel{
  display:flex; flex-direction:column; justify-content:center;
  min-height: calc(var(--svc-avail) - 2 * var(--svc-gap) - 9px); /* 9px: inner paddings + tilt */
}
#birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{
  flex:1 1 auto;
}
/* no orphan word on the last heading line (progressive enhancement) */
#birthday h2, #live h2, #holidays h2, #education h2{ text-wrap:balance; }

/* ---------------------------- desktop ---------------------------- */
@media (min-width:821px){
  #birthday, #live, #holidays, #education{
    --svc-avail: calc(var(--svc-vh) - var(--hdr-c));   /* compact header (68px) */
    --svc-gap: clamp(26px, 4.4vh, 56px);               /* target gap above/below the panel */
    padding-top: calc(var(--hdr-c) + 16px);
    padding-bottom: 10px;
  }
  #birthday .screen-inner, #live .screen-inner, #holidays .screen-inner, #education .screen-inner{
    padding-top:8px; padding-bottom:16px;
  }
  #birthday .comic-panel, #live .comic-panel, #holidays .comic-panel, #education .comic-panel{
    --panel-py: clamp(20px, 3.6vh, 46px);
    /* photo height = available − gaps − panel padding − tilt/shadow allowance */
    --svc-ph: calc(var(--svc-avail) - 2 * var(--svc-gap) - 2 * var(--panel-py) - 22px);
  }
  /* photo column sized by the photo, text takes the rest (same for .reverse) */
  #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{
    grid-template-columns: auto minmax(0,1fr);
    gap: clamp(24px, 3.4vw, 52px);
  }
  #birthday .frame.portrait-lg, #live .frame.portrait-lg, #holidays .frame.portrait-lg, #education .frame.portrait-lg{
    width: min(calc(var(--svc-ph) * 2 / 3), 520px, 38vw);
    max-width:none;
  }
  #birthday h2, #live h2, #holidays h2, #education h2{
    font-size: clamp(1.5rem, calc(var(--svc-avail) * .05), 3rem);
  }
  #birthday .caption-box, #live .caption-box, #holidays .caption-box, #education .caption-box{
    font-size: clamp(12px, calc(var(--svc-avail) * .019), 16px);
    margin-bottom: clamp(8px, 1.6vh, 16px);
  }
  #birthday .lead, #live .lead, #holidays .lead, #education .lead{
    font-size: clamp(15px, calc(8px + var(--svc-avail) * .0145), 21px);
    line-height:1.55;
    margin-top: clamp(10px, 1.8vh, 18px) !important;
  }
  #birthday .facts, #live .facts, #holidays .facts, #education .facts{
    margin-top: clamp(10px, 1.8vh, 18px); gap: clamp(8px, 1vh, 12px);
  }
  #birthday .facts span, #birthday .facts a, #live .facts span, #live .facts a,
  #holidays .facts span, #holidays .facts a, #education .facts span, #education .facts a{
    font-size: clamp(.88rem, calc(var(--svc-avail) * .017), 1.1rem);
    padding: clamp(5px, .8vh, 8px) clamp(12px, 1.5vh, 16px);
  }
  #birthday .btn-row, #live .btn-row, #holidays .btn-row, #education .btn-row{
    margin-top: clamp(14px, 2.4vh, 24px); gap: clamp(10px, 1.4vh, 16px);
  }
  #birthday .btn.btn-sm, #live .btn.btn-sm, #holidays .btn.btn-sm, #education .btn.btn-sm{
    min-height: clamp(42px, 5.4vh, 54px);
    font-size: clamp(.92rem, calc(var(--svc-avail) * .018), 1.15rem);
    padding-inline: clamp(14px, 2vh, 22px);
  }
}

/* ----------------------------- phones ----------------------------- */
@media (max-width:820px){
  #birthday, #live, #holidays, #education{
    --svc-bar: 70px;                                    /* fixed bottom bar (call / whatsapp) */
    --svc-avail: calc(var(--svc-vh) - var(--hdr-m) - var(--svc-bar) - env(safe-area-inset-bottom, 0px));
    --svc-gap: clamp(16px, calc(var(--svc-avail) * .045), 36px);
    padding-top: calc(var(--hdr-m) + 10px);
    padding-bottom: calc(var(--svc-bar) + 10px + env(safe-area-inset-bottom, 0px));
  }
  #birthday .screen-inner, #live .screen-inner, #holidays .screen-inner, #education .screen-inner{
    padding-top:6px; padding-bottom:10px;
  }
  #birthday .comic-panel, #live .comic-panel, #holidays .comic-panel, #education .comic-panel{
    --panel-py: clamp(12px, calc(var(--svc-avail) * .028), 24px);
    --panel-px: clamp(14px, 3.6vw, 24px);
  }
  /* photo beside the heading: height follows the available height, width capped so the heading keeps room.
     align-content: a few leftover pixels become row spacing instead of blank paper */
  #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{
    --svc-ph: clamp(150px, calc(var(--svc-avail) * .37), 290px);
    --side-w: min(41vw, calc(var(--svc-ph) * 2 / 3));
    column-gap: clamp(10px, 3vw, 16px);
    align-content: space-between;
  }
  #birthday .caption-box, #live .caption-box, #holidays .caption-box, #education .caption-box{
    font-size: clamp(11px, calc(var(--svc-avail) * .018), 14px);
    margin-bottom: clamp(4px, calc(var(--svc-avail) * .011), 9px);
    padding: 4px 12px;
  }
  #birthday h2, #live h2, #holidays h2, #education h2{
    font-size: clamp(18px, calc(var(--svc-avail) * .032), 27px); line-height:1.14;
  }
  #birthday .lead, #live .lead, #holidays .lead, #education .lead{
    font-size: clamp(12.5px, calc(var(--svc-avail) * .0228), 17.5px);
    line-height:1.5;
    margin-top: clamp(6px, calc(var(--svc-avail) * .016), 14px) !important;
  }
  #birthday .facts, #live .facts, #holidays .facts, #education .facts{
    margin-top: clamp(6px, calc(var(--svc-avail) * .015), 12px);
    gap: clamp(5px, calc(var(--svc-avail) * .011), 9px);
  }
  #birthday .facts span, #birthday .facts a, #live .facts span, #live .facts a,
  #holidays .facts span, #holidays .facts a, #education .facts span, #education .facts a{
    font-size: clamp(11.5px, calc(var(--svc-avail) * .0185), 15.5px);
    padding: clamp(2px, calc(var(--svc-avail) * .006), 5px) clamp(8px, calc(var(--svc-avail) * .016), 13px);
  }
  #birthday .btn-row, #live .btn-row, #holidays .btn-row, #education .btn-row{
    margin-top: clamp(6px, calc(var(--svc-avail) * .016), 14px);
    gap: clamp(6px, calc(var(--svc-avail) * .012), 10px);
  }
  /* the two buttons are wider than half a phone, so they stack: full-width stickers look tidier than ragged ones */
  #birthday .btn.btn-sm, #live .btn.btn-sm, #holidays .btn.btn-sm, #education .btn.btn-sm{
    flex:1 1 auto;
    min-height: clamp(36px, calc(var(--svc-avail) * .066), 52px);
    font-size: clamp(.86rem, calc(var(--svc-avail) * .0215), 1.05rem);
    padding-inline:12px;
  }
}
/* bottom bar is 60px on low phones (index.html: max-height 660px) */
@media (max-width:820px) and (max-height:660px){
  #birthday, #live, #holidays, #education{ --svc-bar: 60px; }
}
/* smallest phones (360x560, 320x568): drop the second sentence first, then a slightly smaller photo */
@media (max-width:820px) and (max-height:600px){
  #birthday .svc-more, #live .svc-more, #holidays .svc-more, #education .svc-more{ display:none; }
  #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{
    --svc-ph: clamp(136px, calc(var(--svc-avail) * .33), 290px);
  }
  #birthday .comic-panel, #live .comic-panel, #holidays .comic-panel, #education .comic-panel{ --panel-py:10px; }
}

/* ==================== מסכי המופעים ב: #corporate #private #workshops #unique ==================== */
/* =====================================================================
   fit-svc-b.css — #corporate / #private / #workshops / #unique
   Goal: no inner scrolling at any size, and the comic panel fills the
   room between the fixed header and the bottom bar by SCALING the photo
   and the type to the viewport height (not by stretching empty paper).
   Layout unchanged: .split.side-photo (photo | text) on desktop, and the
   phone grid "head photo / text text / facts facts / btns btns".
   ===================================================================== */

/* ---------- Desktop (≥821px): photo height derived from the viewport ---------- */
@media (min-width:821px){
  #corporate.screen, #private.screen, #workshops.screen, #unique.screen{
    /* symmetric gaps around the panel: top = 24 + 8 (inner pad), bottom = 16 + 16 (inner pad keeps room for the hard shadow) */
    padding-top:calc(var(--hdr-c) + 24px);
    padding-bottom:16px;
  }
  #corporate .screen-inner, #private .screen-inner, #workshops .screen-inner, #unique .screen-inner{ padding:8px 16px 16px 12px; }
  #corporate .comic-panel, #private .comic-panel, #workshops .comic-panel, #unique .comic-panel{
    --panel-py:clamp(18px, 3.4vh, 40px);
    /* 100vh − header − screen/inner paddings (64px) − 24px slack = panel height; minus panel padding = photo height (2:3 → width) */
    --photo-h:calc(100vh - var(--hdr-c) - 88px - 2 * var(--panel-py));
    --photo-w:min(520px, calc(var(--photo-h) * 2 / 3));
  }
  #corporate .split, #private .split, #workshops .split, #unique .split{
    grid-template-columns:auto minmax(0,1fr); /* photo column = photo width, text takes the rest */
    gap:clamp(22px, 3.6vw, 54px);
  }
  #corporate .frame.portrait-lg, #private .frame.portrait-lg, #workshops .frame.portrait-lg, #unique .frame.portrait-lg{ width:var(--photo-w); max-width:100%; }
  /* type + spacing scale with the height: 600px → 1080px */
  #corporate h2, #private h2, #workshops h2, #unique h2{ font-size:clamp(26px, 18px + 2.8vh, 48px); line-height:1.12; text-wrap:balance; }
  #corporate .caption-box, #private .caption-box, #workshops .caption-box, #unique .caption-box{ font-size:clamp(12px, 9px + .6vh, 15px); margin-bottom:clamp(8px, 1.2vh, 14px); }
  #corporate .lead, #private .lead, #workshops .lead, #unique .lead{
    font-size:clamp(14px, 7.4px + 1.26vh, 21px); line-height:1.55; max-width:none; margin-top:clamp(8px, 1.5vh, 18px) !important;
  }
  #corporate .facts, #private .facts, #workshops .facts{ margin-top:clamp(10px, 1.7vh, 20px); gap:clamp(8px, 1vh, 12px); }
  #corporate .facts span, #corporate .facts a, #private .facts span, #private .facts a, #workshops .facts span, #workshops .facts a{
    font-size:clamp(.88rem, 11px + .45vh, 1.05rem); padding:clamp(4px, .6vh, 7px) clamp(11px, 1.4vh, 16px);
  }
  #corporate .btn-row, #private .btn-row, #workshops .btn-row, #unique .btn-row{ margin-top:clamp(14px, 2.4vh, 30px); gap:clamp(10px, 1.4vh, 16px); }
  #corporate .btn-sm, #private .btn-sm, #workshops .btn-sm, #unique .btn-sm{
    min-height:clamp(42px, 30px + 2vh, 52px); font-size:clamp(.95rem, 11px + .5vh, 1.08rem); padding-inline:clamp(16px, 1.2vw, 22px);
  }
}
@media (min-width:821px) and (min-height:1000px){ /* 1080p: a little more air in the text column next to the 520px photo */
  #corporate .lead, #private .lead, #workshops .lead, #unique .lead{ line-height:1.65; }
}

/* ---------- Phones (≤820px): photo beside the heading; five height tiers via variables on the section ---------- */
@media (max-width:820px){
  #corporate.screen, #private.screen, #workshops.screen, #unique.screen{
    padding-top:calc(var(--hdr-m) + 10px);
    padding-bottom:calc(var(--b-bar,70px) + 10px + env(safe-area-inset-bottom)); /* bottom bar (70px; 60px on ≤660px) + 10 */
  }
  #corporate .screen-inner, #private .screen-inner, #workshops .screen-inner, #unique .screen-inner{ padding:6px 12px 10px 10px; }
  #corporate .comic-panel, #private .comic-panel, #workshops .comic-panel, #unique .comic-panel{ --panel-py:var(--b-py,16px); --panel-px:clamp(14px,3.6vw,40px); }
  #corporate .split, #private .split, #workshops .split, #unique .split{
    --side-w:var(--b-photo, min(41vw,180px)); gap:0 12px;
    /* equalizer: when the content is a bit shorter than the room, the grid grows so ~40px is left above/below the
       panel, and the leftover is spread between the rows (photo/head → text → pills → buttons) — never as a
       block of empty paper. Content taller than this is unaffected. */
    min-height:calc(100svh - var(--hdr-m) - var(--b-bar,70px) - env(safe-area-inset-bottom, 0px) - var(--b-frame,92px) - 2 * var(--b-py,16px));
    align-content:space-between;
  }
  #corporate h2, #private h2, #workshops h2, #unique h2{ font-size:var(--b-h2, clamp(21px,5.8vw,27px)); line-height:1.14; text-wrap:balance; }
  #corporate .caption-box, #private .caption-box, #workshops .caption-box, #unique .caption-box{ font-size:var(--b-cap,12px); margin-bottom:var(--b-capmb,8px); padding:4px 10px; gap:5px; }
  #corporate .lead, #private .lead, #workshops .lead, #unique .lead{ font-size:var(--b-lead,16px); line-height:var(--b-lh,1.5); margin-top:var(--b-mt-lead,12px) !important; max-width:none; }
  #corporate .facts, #private .facts, #workshops .facts{ margin-top:var(--b-mt-facts,10px); gap:var(--b-gap,8px); }
  #corporate .facts span, #corporate .facts a, #private .facts span, #private .facts a, #workshops .facts span, #workshops .facts a{ font-size:var(--b-fact,.84rem); padding:var(--b-factpad,4px 11px); border-width:2px; }
  #corporate .btn-row, #private .btn-row, #workshops .btn-row, #unique .btn-row{ margin-top:var(--b-mt-btn,14px); gap:var(--b-gap,8px); }
  #corporate .btn-sm, #private .btn-sm, #workshops .btn-sm, #unique .btn-sm{ min-height:var(--b-btn,48px); font-size:var(--b-btnfs,1rem); padding-inline:14px; }

  /* T1 — tall phones (≥861px: 412x915, 430x932): biggest photo and type */
  @media (min-height:861px){
    #corporate, #private, #workshops, #unique{
      --b-py:18px; --b-photo:min(42vw,190px); --b-h2:clamp(22px,5.6vw,27px); --b-cap:12.5px; --b-capmb:10px;
      --b-lead:17.5px; --b-lh:1.58; --b-mt-lead:14px; --b-mt-facts:12px; --b-gap:10px; --b-fact:.9rem; --b-factpad:5px 12px;
      --b-mt-btn:16px; --b-btn:50px; --b-btnfs:1.02rem;
    }
  }
  /* T2 — 801-860px (390x844) */
  @media (min-height:801px) and (max-height:860px){
    #corporate, #private, #workshops, #unique{ --b-photo:min(41vw,180px); --b-h2:clamp(21px,5.7vw,26px); --b-lead:16.5px; --b-lh:1.55; }
  }
  /* T3 — 741-800px (412x780, 360x740: browser chrome eats ~100px) */
  @media (min-height:741px) and (max-height:800px){
    #corporate, #private, #workshops, #unique{
      --b-py:16px; --b-photo:min(40vw,170px); --b-h2:clamp(21px,5.7vw,26px); --b-cap:12px; --b-capmb:7px;
      --b-lead:15.5px; --b-lh:1.5; --b-mt-lead:12px; --b-mt-facts:10px; --b-gap:8px; --b-fact:.84rem; --b-factpad:4px 11px;
      --b-mt-btn:14px; --b-btn:48px; --b-btnfs:1rem;
    }
  }
  /* T4 — 661-740px (375x667): compact */
  @media (min-height:661px) and (max-height:740px){
    #corporate, #private, #workshops, #unique{
      --b-py:12px; --b-photo:min(34vw,132px); --b-h2:clamp(19px,5.3vw,23px); --b-cap:11.5px; --b-capmb:5px;
      --b-lead:14px; --b-lh:1.42; --b-mt-lead:8px; --b-mt-facts:6px; --b-gap:6px; --b-fact:.76rem; --b-factpad:3px 9px;
      --b-mt-btn:8px; --b-btn:42px; --b-btnfs:.92rem;
    }
  }
  /* T5 — ≤660px (360x640/600/560, 320x568): the bottom bar is 60px here; tighter frame */
  @media (max-height:660px){
    #corporate.screen, #private.screen, #workshops.screen, #unique.screen{ padding-top:calc(var(--hdr-m) + 6px); padding-bottom:calc(var(--b-bar) + 8px + env(safe-area-inset-bottom)); }
    #corporate .screen-inner, #private .screen-inner, #workshops .screen-inner, #unique .screen-inner{ padding-top:4px; padding-bottom:8px; }
    #corporate, #private, #workshops, #unique{
      --b-bar:60px; --b-frame:82px;
      --b-py:11px; --b-photo:min(31vw,116px); --b-h2:clamp(18px,5vw,22px); --b-cap:11.5px; --b-capmb:4px;
      --b-lead:13.5px; --b-lh:1.4; --b-mt-lead:7px; --b-mt-facts:6px; --b-gap:6px; --b-fact:.74rem; --b-factpad:2px 8px;
      --b-mt-btn:7px; --b-btn:40px; --b-btnfs:.9rem;
    }
  }
  @media (max-height:600px){ /* 360x600 / 360x560 / 320x568 — everything (incl. .svc-more) still fits, so nothing is hidden */
    #corporate, #private, #workshops, #unique{
      --b-py:10px; --b-photo:min(28vw,100px); --b-h2:clamp(17px,4.8vw,20px); --b-lead:13px; --b-lh:1.36; --b-mt-lead:6px; --b-mt-facts:5px; --b-mt-btn:6px;
    }
  }
  /* tablets in the phone layout (600-820px wide): the text is short here, so don't stretch the grid to the full height */
  @media (min-width:600px){
    #corporate .split, #private .split, #workshops .split, #unique .split{ min-height:0; }
  }
}


/* ==================== הסיפור, גלריה, המלצות, יצירת קשר: #story #gallery #testimonials #contact ==================== */
/* =====================================================================
   fit-tail.css — #story / #gallery / #testimonials / #contact
   Goal: no inner scrolling, and the comic panel fills the room between
   the fixed header and the bottom bar. Mechanism:
     1. .screen-inner becomes a flex column that fills the screen's content
        box; the panel grows to fill it (flex:1 0 auto — it never shrinks,
        so if content were ever taller, .screen-inner scrolls as before).
     2. Content is scaled with the viewport height (vh) so the panel is
        genuinely full: bigger gallery photos, bigger portrait / type,
        taller form fields. Small leftovers are centred inside the panel.
   All rules are id-scoped (beats the page's class rules); !important is
   used only where an inline style has to be overridden.
   ===================================================================== */

/* ---------- A. panel fills the available height ---------- */
#story .screen-inner, #gallery .screen-inner, #testimonials .screen-inner, #contact .screen-inner{
  display:flex; flex-direction:column; flex:1 1 auto; min-height:0; margin-block:0;
}
#story .comic-panel, #gallery .comic-panel, #testimonials .comic-panel, #contact .comic-panel{
  flex:1 0 auto; display:flex; flex-direction:column; justify-content:center;
}
/* desktop: balance the gap above / below the panel (header is fixed, --hdr-c) */
@media (min-width:821px) and (min-height:701px){
  #story.screen, #gallery.screen, #testimonials.screen, #contact.screen{
    padding-top:calc(var(--hdr-c) + clamp(20px, 3.2vh, 38px));
    padding-bottom:clamp(22px, 3.6vh, 42px);
  }
  #story .comic-panel, #gallery .comic-panel, #testimonials .comic-panel, #contact .comic-panel{
    --panel-py:clamp(22px, 3.6vh, 48px);
  }
}
@media (min-width:821px) and (max-height:700px){
  #story.screen, #gallery.screen, #testimonials.screen, #contact.screen{
    padding-top:calc(var(--hdr-c) + 18px); padding-bottom:24px;
  }
}
/* the black "labels" grow a little with the height */
#story .caption-box, #gallery .caption-box, #testimonials .caption-box, #contact .caption-box{
  font-size:clamp(12px, .55vh + 8px, 16px);
}

/* ---------- B. story: portrait + text scale with the height ---------- */
#story .split{ flex:1 1 auto; min-height:0; }
@media (min-width:821px){
  #story .split{ grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(24px, 4vw, 60px); }
  #story .frame-wrap{ order:2; }
  #story .text-col{ order:1; }
  #story .frame.portrait-lg{ width:min(26vw, 46vh, 460px); max-width:none; box-shadow:8px 8px 0 var(--yellow); }
  #story h2{ font-size:clamp(1.6rem, calc(.7rem + 1.2vw + 1.3vh), 3.2rem); }
  #story .lead{ font-size:clamp(15px, calc(.5vw + 1.25vh + 2px), 22px); line-height:1.62; max-width:none; }
  #story .btn-row{ margin-top:clamp(14px, 2.4vh, 28px); }
  #story .btn-sm{ min-height:clamp(42px, 5.5vh, 56px); font-size:clamp(.95rem, .3vw + .8rem, 1.15rem); padding-inline:clamp(18px, 2vw, 30px); }
}
@media (min-width:821px) and (min-height:900px){ #story .lead{ line-height:1.68; } }
@media (max-width:820px){
  #story .split.side-photo{ --side-w:min(38vw, 160px); align-content:center; }
  #story .lead{ font-size:max(13px, min(1.85vh, 17px)); line-height:1.5; }
  #story .btn-sm{ min-height:clamp(40px, 5.6vh, 48px); }
}
@media (max-width:820px) and (min-height:801px){ #story .split.side-photo{ --side-w:min(42vw, 180px); } #story .story-more{ display:inline; } } /* tall phones: bigger portrait + the closing sentence again */
@media (max-width:820px) and (max-height:750px){ #story .split.side-photo{ --side-w:min(32vw, 124px); } }
@media (max-width:820px) and (max-height:660px){ #story .split.side-photo{ --side-w:min(30vw, 110px); } #story .lead{ font-size:13px; line-height:1.42; } }
@media (max-width:820px) and (max-height:600px){ #story .split.side-photo{ --side-w:min(27vw, 100px); } #story .lead{ font-size:12.5px; line-height:1.38; } }

/* ---------- C. gallery: the grid takes all the remaining height ----------
   Frames fill their row (height:100% of a 1fr row); the width follows from
   the column. Ratio is kept between 10:7 (landscape, via aspect-ratio +
   max-width) and 2:3 (portrait, via max-height from the column width).
   object-position stays top center, so heads are never cropped. */
#gallery .comic-panel{ align-items:center; }
#gallery .comic-panel .gallery-grid{ /* one class deeper than the page's #gallery .gallery-grid !important margin */
  flex:1 1 0px; min-height:0; align-self:stretch; width:100%;
  display:grid; gap:var(--gal-gap); justify-content:center; align-content:stretch;
  margin-top:clamp(10px, 1.8vh, 20px) !important; /* inline style on the element */
}
#gallery .gallery-grid .frame{
  height:100%; width:auto; aspect-ratio:10/7; max-width:100%; min-height:60px;
  justify-self:center; align-self:center;
}
@media (min-width:900px){
  #gallery .gallery-grid{
    --gal-gap:clamp(10px, 1.1vw, 14px);
    grid-template-columns:repeat(4, minmax(0,1fr)); grid-template-rows:repeat(2, minmax(0,1fr));
    /* column width = (panel content width - 3 gaps) / 4 ; panel = min(100vw - screen padding, 1208) - inner padding 28 - panel padding - border */
    --gal-col:calc((min(100vw - 2 * (var(--pad-inline) - 12px), 1208px) - 28px - 2 * var(--panel-px) - 8px - 3 * var(--gal-gap)) / 4);
  }
  #gallery .gallery-grid .frame{ max-height:calc(var(--gal-col) * 1.5); }
  #gallery h2{ font-size:clamp(1.5rem, calc(.7rem + 1.2vw + 1.2vh), 3rem); }
  #gallery .lead{ font-size:clamp(15px, calc(.4vw + 1vh + 3px), 20px); line-height:1.5; max-width:70ch; }
}
@media (max-width:899px){
  /* phones / tablets: 3 columns x 3 rows (last row of two, centred via a 6-track grid) */
  #gallery .gallery-grid{
    --gal-gap:8px;
    grid-template-columns:repeat(6, minmax(0,1fr)); grid-template-rows:repeat(3, minmax(0,1fr));
    --gal-col:calc((100vw - 2 * (var(--pad-inline) - 12px) - 22px - 2 * var(--panel-px) - 8px - 2 * var(--gal-gap)) / 3);
  }
  #gallery .gallery-grid .frame{ grid-column:span 2; max-height:calc(var(--gal-col) * 1.6); }
  #gallery .gallery-grid .frame:nth-child(7){ grid-column:2 / span 2; }
  #gallery .gallery-grid .frame:nth-child(8){ grid-column:4 / span 2; }
  #gallery .lead{ font-size:max(13px, min(1.8vh, 16px)); line-height:1.45; }
}
@media (max-width:820px) and (max-height:660px){ #gallery .gallery-grid{ --gal-gap:6px; } }

/* ---------- D. testimonials: placeholder as a proper quote card ---------- */
#testimonials .comic-panel{
  width:100%; max-width:min(100%, 880px) !important; /* inline max-width:640px; wide enough for the 3 quote cards to come */
  align-items:center; row-gap:clamp(0px, .8vh, 10px);
}
/* big faded quotation marks in two corners of the panel (decorative, behind the content) */
#testimonials .comic-panel::before, #testimonials .comic-panel::after{
  content:"\201D"; position:absolute; z-index:-1; pointer-events:none;
  font-family:var(--ff-display); font-size:clamp(96px, 22vh, 260px); line-height:1; color:var(--pink); opacity:.28;
  height:.72em; overflow:hidden; /* the glyph sits in the top of its em box; clipping keeps the font's content area out of the scrollable overflow */
}
#testimonials .comic-panel::before{ top:.06em; inset-inline-start:.14em; }
#testimonials .comic-panel::after{ bottom:.06em; inset-inline-end:.14em; transform:rotate(180deg); } /* a turned ” = “, and its box stays inside the panel */
#testimonials h2{ font-size:clamp(1.5rem, calc(.7rem + 1.1vw + 1.3vh), 3rem); }
#testimonials .bubble{
  position:relative; margin:clamp(16px, 2.8vh, 34px) auto clamp(22px, 3.2vh, 38px);
  padding:clamp(18px, 3vh, 34px) clamp(22px, 3vw, 46px) clamp(16px, 2.6vh, 30px);
  max-width:min(100%, 34ch); border-radius:24px; font-size:clamp(1rem, calc(.35vw + 1.1vh + 5px), 1.5rem); line-height:1.55;
  font-weight:600;
  /* "stack of cards" comic shadow: ink / white / ink */
  filter:drop-shadow(4px 4px 0 var(--ink)) drop-shadow(5px 5px 0 var(--white)) drop-shadow(4px 4px 0 var(--ink));
}
#testimonials .bubble::after{ /* small comic quotation mark on the card (::before is the bubble tail) */
  content:"\201D"; position:absolute; top:-.12em; inset-inline-start:14px; font-family:var(--ff-display);
  font-size:3.2em; line-height:1; color:var(--pink); text-shadow:2px 2px 0 var(--ink); pointer-events:none;
}
#testimonials .testi-note{ margin-top:0; font-size:clamp(.95rem, calc(.25vw + .8vh + 5px), 1.2rem); opacity:.85; }
#testimonials .btn-row{ margin-top:clamp(14px, 2.4vh, 28px); }
#testimonials .btn{ min-height:clamp(46px, 6vh, 60px); font-size:clamp(1rem, .3vw + .85rem, 1.2rem); padding-inline:clamp(22px, 3vw, 40px); }
@media (max-width:820px){
  #testimonials .bubble{ font-size:max(14px, min(2vh, 18px)); line-height:1.5; max-width:100%; }
  #testimonials .btn{ min-height:clamp(42px, 5.8vh, 52px); }
  #testimonials .comic-panel::before, #testimonials .comic-panel::after{ font-size:clamp(72px, 15vh, 150px); }
}

/* ---------- E. contact: form scales with the height, footer pinned at the bottom ---------- */
#contact .contact-grid{ flex:1 1 auto; min-height:0; align-items:center; }
#contact .comic-panel .site-footer{ flex:0 0 auto; }
#contact .field input, #contact .field textarea{ font-size:clamp(15px, calc(.2vw + .9vh + 7px), 17px); }
@media (min-width:821px){
  #contact h2{ font-size:clamp(1.5rem, calc(.7rem + 1.2vw + 1.3vh), 3.1rem); }
  #contact .lead{ font-size:clamp(15px, calc(.45vw + 1.15vh + 2px), 21px); line-height:1.62; }
  #contact .btn-row{ margin-top:clamp(14px, 2.6vh, 30px); }
  #contact .btn-primary{ min-height:clamp(46px, 6.2vh, 60px); font-size:clamp(1rem, .3vw + .85rem, 1.18rem); }
  #contact form .field{ margin-bottom:clamp(8px, 2vh, 20px); gap:clamp(4px, .8vh, 8px); }
  #contact .field label{ font-size:clamp(13px, .8vh + 7px, 16px); }
  #contact .field input, #contact .field textarea{ min-height:clamp(42px, 6.2vh, 60px); padding:8px 14px; }
  #contact .field textarea{ min-height:clamp(52px, 13vh, 140px); }
  #contact .btn-whatsapp{ min-height:clamp(46px, 6.2vh, 60px); font-size:clamp(1rem, .3vw + .85rem, 1.18rem); }
  #contact .form-note{ font-size:clamp(.78rem, .5vh + 8px, .95rem); margin-top:clamp(8px, 1.2vh, 14px); }
  #contact .comic-panel .site-footer{ margin-top:clamp(12px, 2vh, 26px); padding-top:clamp(8px, 1.4vh, 16px); font-size:clamp(.82rem, calc(.15vw + .5vh + 5px), .98rem); }
}
@media (max-width:820px){
  #contact .contact-grid{ gap:clamp(8px, 1.4vh, 14px); }
  #contact .contact-grid .lead{ font-size:max(13px, min(1.8vh, 16px)); line-height:1.45; }
  #contact .btn-row{ margin-top:clamp(8px, 1.5vh, 14px); }
  #contact .btn-primary, #contact .btn-whatsapp{ min-height:clamp(42px, 5.8vh, 52px); }
  #contact form .field{ margin-bottom:clamp(6px, 1.2vh, 12px); gap:clamp(3px, .6vh, 6px); }
  #contact .field input, #contact .field textarea{ min-height:clamp(40px, 5.8vh, 52px); }
  #contact .field textarea{ min-height:clamp(44px, 8vh, 80px); }
  #contact .comic-panel .site-footer{ margin-top:clamp(8px, 1.6vh, 16px); padding-top:clamp(6px, 1.2vh, 12px); }
}
/* tall phones: there is room for the optional "notes" field again */
@media (max-width:820px) and (min-height:801px){ #contact form .field.notes{ display:flex; } }
/* mid phones (601-750): the intro sentence fits again */
@media (max-width:820px) and (min-height:601px) and (max-height:750px){ #contact .contact-grid .lead{ display:block; } }


/* ==================== מסך הפתיחה וכל המופעים: #hero #shows ==================== */
/* =========================================================
   fit-hero-shows.css — מסך הפתיחה (#hero) ומסך "כל המופעים" (#shows)
   ממלאים את גובה המסך (ללא גלילה פנימית): הגדלים (פונטים, תמונה,
   כרטיסים, ריווח) נגזרים מגובה החלון (vh/svh) עם רצפה ותקרה,
   והרווח מעל הפאנל (מתחת להידר) שווה לרווח מתחתיו (מעל הפס התחתון).
   ========================================================= */

/* כרטיסי המופעים (כל הגדלים): התמונות הן 2:3 — המסגרת שומרת על היחס הזה (במקום ריבוע), כך שבכרטיס גבוה
   התמונה מוצגת בשלמותה ובכרטיס נמוך היא נחתכת מלמטה (object-position: top). מתחת לתמונה רקע כהה (ולא נייר
   לבן שמושחר ע"י הדהייה — מה שנראה כפס אפור). */
#shows .world-card{ background:#2A2145; }
#shows .world-card .frame.square{ aspect-ratio:2/3; }

/* יחידת גובה בטוחה לנייד: svh (הגובה הקטן, עם סרגל הכתובת) ובדפדפן ישן בלי svh — vh (שם גם המסך הוא 100vh) */
#hero, #shows{ --svh:1vh; }
@supports (height:1svh){ #hero, #shows{ --svh:1svh; } }

/* ===================== מחשב (≥821px) ===================== */
@media (min-width:821px){
  /* רווחים סימטריים: padding-top = גובה ההידר + G, padding-bottom = G (+ מקום לצל הקשיח 12px) */
  #hero.screen{ --g:clamp(20px,3.8vh,40px); padding-top:calc(var(--hdr-a) + 2px + var(--g)); padding-bottom:var(--g); }
  #shows.screen{ --g:clamp(20px,3.8vh,40px); padding-top:calc(var(--hdr-c) + var(--g)); padding-bottom:var(--g); }
  #hero .screen-inner, #shows .screen-inner{ padding-top:10px; padding-bottom:14px; }
  #hero h1, #shows h2{ text-wrap:balance; }

  /* --- הירו: הכול לפי גובה החלון --- */
  #hero .comic-panel{ --panel-py:clamp(18px,3.4vh,44px); }
  #hero .hero-welcome{ font-size:clamp(22px,3.4vh,28px); padding:clamp(6px,1.2vh,11px) clamp(16px,2.6vh,26px); margin-bottom:clamp(8px,1.6vh,14px); }
  #hero .hero-sub{ font-size:clamp(16px,2.7vh,24px); margin-top:clamp(4px,1vh,10px); }
  #hero .bubble{ font-size:clamp(13px,min(2.05vh,1.15vw),17px); line-height:1.45; padding:clamp(10px,1.8vh,18px) clamp(14px,2.4vh,22px); margin:clamp(8px,1.6vh,16px) 0 clamp(12px,2.2vh,22px); max-width:none; }
  #hero .btn-row{ margin-top:clamp(10px,2vh,20px); }
  #hero .btn{ min-height:clamp(46px,5.6vh,60px); font-size:clamp(.95rem,1.7vh,1.15rem); }
  /* "קסם!" — הפאנל הגדול יותר מכסה את הפיצוץ הדקורטיבי בפינה; מצמידים אותו לשוליים (המיקום המקורי בסגנון inline) */
  #hero .starburst{ left:6px !important; bottom:10px !important; }

  /* --- כל המופעים: כותרות וריווח לפי גובה החלון --- */
  #shows .comic-panel{ --panel-py:clamp(18px,3.8vh,42px); }
  #shows .caption-box{ font-size:clamp(13px,1.9vh,16px); margin-bottom:clamp(6px,1.6vh,14px); }
  #shows h2{ font-size:clamp(24px,5vh,44px); }
  #shows .lead{ display:block; font-size:clamp(14px,2.2vh,18px); line-height:1.5; margin-top:clamp(6px,1.4vh,12px) !important; }
  #shows .grid-4{ margin-top:clamp(12px,2.8vh,26px) !important; }
}
/* חלון מחשב נמוך/בינוני (≤800px): כותרת הירו לפי גובה; בועה מעט גדולה יותר בחלונות הנמוכים ממש */
@media (min-width:821px) and (max-height:800px){
  #hero h1{ font-size:clamp(28px,min(5.6vh,calc(2vw + 12px)),42px); }
}
@media (min-width:821px) and (max-height:700px){
  #hero .bubble{ font-size:clamp(13px,min(2.5vh,1.15vw),16px); }
  #hero .hero-welcome{ font-size:clamp(19px,min(3.4vh,1.9vw),28px); }
}
@media (min-width:1501px){
  #hero .starburst{ left:3.5% !important; bottom:2.5% !important; } /* מסך רחב: הפאנל רחוק מהפינה — המיקום המקורי */
}
/* חלון מחשב גבוה (≥801px): ריפוד ותקרות גדולים יותר — הפאנל ממלא גם מסך 1080; הכותרת מוגבלת גם לפי הרוחב */
@media (min-width:821px) and (min-height:801px){
  #hero .comic-panel{ --panel-py:clamp(30px,4.2vh,44px); }
  #hero .hero-welcome{ font-size:clamp(20px,min(3.4vh,2vw),29px); }
  #hero h1{ font-size:clamp(28px,min(5.6vh,calc(2.4vw + 12px)),46px); } /* חלון צר (≤1100px): הכותרת לפי הרוחב, אחרת נשברת ל-7-8 שורות; התקרה 46px כמו במדרגה הקיימת (≤960px) */
  #hero .hero-sub{ font-size:clamp(16px,min(2.7vh,1.6vw),26px); }
  #hero .bubble{ font-size:clamp(13px,min(2.05vh,1.15vw),18px); margin:clamp(12px,1.8vh,18px) 0 clamp(16px,2.4vh,24px); }
  #hero .btn-row{ margin-top:clamp(14px,2.2vh,22px); }
}
@media (min-width:821px) and (min-height:961px){
  #hero h1{ font-size:clamp(28px,min(5.6vh,calc(2.4vw + 12px)),60px); }
}
/* כל המופעים ברוחב 821–900px (טאבלט רוחבי / חלון צר): הסרט האופקי הקיים (2 כרטיסים), אבל גובה הכרטיס
   לפי גובה החלון ולא לפי הרוחב — אחרת 44% רוחב ביחס 3:4 גולש בחלון נמוך */
@media (min-width:821px) and (max-width:900px){
  #shows{ --card-h:clamp(180px, calc(100vh - 420px), 440px); }
  #shows .world-card{ aspect-ratio:auto; height:var(--card-h); flex:0 0 min(calc(50% - 14px), calc(var(--card-h) * .75)); }
}
@media (min-width:821px) and (max-width:900px) and (min-height:801px){
  #shows{ --card-h:clamp(300px, calc(37vh + 70px), 560px); }
}
/* כל המופעים, חלון נמוך (≤800px): שורה אחת של 7 כרטיסים, גובה הכרטיס לפי גובה החלון (התמונה 2:3 נחתכת בצדדים) */
@media (min-width:901px) and (max-height:800px){
  #shows{ --card-h:clamp(180px, calc(100vh - 365px), 330px); }
  #shows .world-card{ aspect-ratio:auto; height:var(--card-h); }
}
@media (min-width:901px) and (min-height:751px) and (max-height:800px){
  #shows{ --card-h:clamp(180px, calc(100vh - 455px), 330px); }
}
/* כל המופעים, חלון גבוה (≥801px): שתי שורות — 4 כרטיסים ומתחתם 3 ממורכזים (ריבועים), גובה לפי החלון.
   הרוחב = הגובה, אבל לא יותר מרבע רוחב הפאנל (פחות המרווחים) — כדי שתמיד ייכנסו 4 בשורה */
@media (min-width:901px) and (min-height:801px){
  #shows{ --g4:clamp(16px,2.2vw,32px); --rh:clamp(160px, calc(43vh - 190px), 300px); --rw:min(var(--rh), calc((100% - 3 * var(--g4)) / 4)); }
  #shows .grid-4{ display:flex; flex-wrap:wrap; justify-content:center; gap:var(--g4); max-width:calc(4 * var(--rw) + 3 * var(--g4)); margin-inline:auto; }
  #shows .world-card{ flex:0 0 var(--rw); width:var(--rw); height:var(--rh); aspect-ratio:auto; }
}

/* ===================== נייד (≤820px) ===================== */
@media (max-width:820px){
  /* רווחים סימטריים: מעל = ההידר (52px) + G, מתחת = הפס התחתון (70px) + G + safe-area */
  #hero.screen, #shows.screen{ --g:clamp(6px,calc(1.4 * var(--svh)),14px); padding-top:calc(var(--hdr-m) + var(--g)); padding-bottom:calc(70px + var(--g) + env(safe-area-inset-bottom)); }
  #hero .screen-inner, #shows .screen-inner{ padding-top:6px; padding-bottom:8px; }

  /* --- הירו: פונטים לפי גובה + רוחב (svh + vw); הרצפות = הערכים של המדרגות הנמוכות הקיימות --- */
  #hero .comic-panel{ --panel-py:clamp(9px,calc(1.6 * var(--svh)),18px); }
  #hero .hero-welcome{ font-size:clamp(14px, calc(calc(1.1 * var(--svh)) + 2.6vw), 23px); padding:clamp(5px,calc(.8 * var(--svh)),8px) clamp(12px,calc(1.9 * var(--svh)),18px); margin-bottom:clamp(5px,calc(.9 * var(--svh)),9px); }
  #hero h1{ font-size:clamp(17px, calc(calc(3.4 * var(--svh)) + 1.6vw - 10px), 29px); line-height:1.12; }
  #hero .hero-sub{ margin-top:clamp(3px,calc(.6 * var(--svh)),6px); }
  #hero .bubble{ font-size:clamp(12.5px, calc(calc(.9 * var(--svh)) + 2vw), 17px); line-height:1.38; padding:clamp(7px,calc(1 * var(--svh)),11px) clamp(10px,calc(1.4 * var(--svh)),14px); margin:clamp(6px,calc(1 * var(--svh)),11px) 0 clamp(7px,calc(1.1 * var(--svh)),12px); }
  #hero .btn-row{ margin-top:clamp(6px,calc(1.1 * var(--svh)),12px); gap:clamp(6px,calc(.9 * var(--svh)),10px); }
  #hero .btn{ min-height:clamp(40px,calc(5 * var(--svh)),48px); font-size:clamp(14.5px, calc(calc(.9 * var(--svh)) + 1.9vw), 16px); }
  /* עמודת התמונה: כמו היום (31vw עד 128px) אך בטלפון נמוך מעט צרה יותר, כדי שהכותרת לצידה תישבר לפחות שורות */
  #hero .split{ grid-template-columns:minmax(0,1fr) clamp(96px, min(31vw, calc(calc(7.5 * var(--svh)) + 60px)), 150px); }

  /* --- כל המופעים: גובה הכרטיס לפי גובה החלון (הרוחב = 3/4 מהגובה, ולא יותר מרוחב הסרט פחות הצצה לכרטיס הבא) --- */
  #shows{ --sh-card:clamp(200px, calc(calc(87 * var(--svh)) - 286px), 560px); }
  #shows .world-card{ aspect-ratio:auto; height:var(--sh-card); max-height:none; flex:0 0 min(calc(100% - 64px), calc(var(--sh-card) * .75)); }
  #shows .grid-4{ margin-top:clamp(8px,calc(1.4 * var(--svh)),14px) !important; }
  #shows .scroll-hint{ margin-top:clamp(4px,calc(.9 * var(--svh)),10px); }
}
/* טלפון רחב וגבוה (iPhone Plus/Max: 414x896, 430x932): הטקסט נשבר לפחות שורות — מגדילים מעט */
@media (min-width:414px) and (max-width:820px) and (min-height:881px){
  #hero .comic-panel{ --panel-py:16px; }
  #hero h1{ font-size:clamp(27.5px, calc(calc(3.4 * var(--svh)) + 1.6vw - 10px), 31px); }
  #hero .bubble{ font-size:clamp(16.5px, calc(calc(.9 * var(--svh)) + 2vw), 18.5px); line-height:1.4; }
  #hero .btn{ min-height:clamp(44px,calc(5 * var(--svh)),52px); font-size:16.5px; }
  #hero .btn-row{ margin-top:10px; gap:10px; }
}
@media (min-width:424px) and (max-width:820px) and (min-height:881px){
  #hero .comic-panel{ --panel-py:18px; }
  #hero h1{ font-size:clamp(29px, calc(calc(3.4 * var(--svh)) + 1.6vw - 10px), 32px); }
  #hero .bubble{ font-size:clamp(17.5px, calc(calc(.9 * var(--svh)) + 2vw), 19px); line-height:1.42; }
  #hero .btn{ min-height:clamp(48px,calc(5.2 * var(--svh)),54px); }
  #hero .btn-row{ margin-top:12px; }
}
/* טאבלט צר בפורטרט (500–820px): הפריסה של הנייד, תקרות גבוהות יותר */
@media (min-width:500px) and (max-width:820px){
  #hero .comic-panel{ --panel-py:clamp(12px,calc(2.2 * var(--svh)),26px); }
  #hero .hero-welcome{ font-size:clamp(16px, calc(calc(1.1 * var(--svh)) + 2.6vw), 26px); }
  #hero h1{ font-size:clamp(22px, calc(calc(3.4 * var(--svh)) + 1.6vw - 10px), 36px); }
  #hero .hero-sub{ font-size:clamp(12px, calc(-3.9px + 4.35vw), 18px); }
  #hero .bubble{ font-size:clamp(14px, calc(calc(.9 * var(--svh)) + 2vw), 20px); line-height:1.45; padding:clamp(10px,calc(1.4 * var(--svh)),16px) clamp(14px,calc(2 * var(--svh)),20px); }
  #hero .btn{ min-height:clamp(44px,calc(5.2 * var(--svh)),54px); font-size:clamp(15px, calc(calc(.9 * var(--svh)) + 1.9vw), 18px); }
  #hero .split{ grid-template-columns:minmax(0,1fr) clamp(120px, min(31vw, calc(calc(7.5 * var(--svh)) + 60px)), 200px); }
}
/* נייד נמוך (≤660px): הפס התחתון 60px; עמודת התמונה כמו במדרגה הקיימת */
@media (max-width:820px) and (max-height:660px){
  #hero.screen, #shows.screen{ padding-bottom:calc(60px + var(--g) + env(safe-area-inset-bottom)); }
  #hero .split{ grid-template-columns:minmax(0,1fr) min(28vw,112px); }
  #shows{ --sh-card:clamp(180px, calc(calc(87 * var(--svh)) - 242px), 560px); }
}
@media (max-width:820px) and (max-height:600px){
  #hero.screen, #shows.screen{ --g:4px; }
  #hero .screen-inner, #shows .screen-inner{ padding-top:3px; padding-bottom:6px; }
  #hero .comic-panel{ --panel-py:clamp(8px,calc(1.4 * var(--svh)),16px); }
  #hero .hero-welcome{ margin-bottom:4px; }
  #hero .bubble{ line-height:1.34; margin:6px 0 7px; }
  #hero .split{ grid-template-columns:minmax(0,1fr) min(26vw,100px); }
  #shows{ --sh-card:clamp(170px, calc(calc(87 * var(--svh)) - 232px), 560px); }
}

/* ==================== נייד: תיקוני יציבות ==================== */
/* iOS מגדיל את כל הדף כשמתמקדים בשדה עם גופן קטן מ-16px — ואז המסכים "בורחים". לכן תמיד ≥16px בנייד */
@media (max-width:820px){
  #contact .field input, #contact .field textarea, #contact .field select{ font-size:16px; }
}

/* ==================== נייד: שורה אחת, קרוסלת המופעים, טופס יצירת קשר ==================== */
@media (max-width:820px){
  /* תגיות, גלולות וכפתורים — תמיד שורה אחת */
  .caption-box{ white-space:nowrap; max-width:100%; font-size:clamp(10.5px, 3.1vw, 12.5px) !important; padding:4px 10px; }
  #hero .hero-welcome{ white-space:nowrap; font-size:clamp(12.5px, 3.9vw, 19px) !important; padding:5px 12px; }
  .btn{ white-space:nowrap; }
  h2{ text-wrap:balance; }
  /* במסכי המופעים: התגית בשורה משלה מעל הכותרת והתמונה (לא נדחקת לעמודה הצרה) */
  .split.side-photo{ grid-template-areas:"cap cap" "head photo" "text text" "facts facts" "btns btns" !important; }
  .split.side-photo .sec-head{ display:contents; }
  .split.side-photo .sec-head .caption-box{ grid-area:cap; justify-self:start; margin-bottom:6px; }
  .split.side-photo .sec-head h2{ grid-area:head; }
  /* יצירת קשר: טור אחד — השדות ברוחב מלא, כותרת קטנה יותר */
  #contact .form-row{ grid-template-columns:1fr; gap:0; }
  #contact h2{ font-size:clamp(19px, 5.4vw, 24px) !important; }
  #contact .field input, #contact .field textarea{ padding:8px 12px; }
  #contact .field input::placeholder{ font-size:14px; }
}
@media (max-width:820px) and (max-height:700px){
  #contact .btn-row{ display:none; } /* הפס התחתון והכפתור בטופס כבר שולחים לוואטסאפ */
}
/* כרטיסי "כל המופעים" בנייד: התמונה למעלה והטקסט מתחתיה (לא מכסה את התמונה); החלקה אנכית על הכרטיס מגלגלת את הדף */
@media (max-width:900px){
  #shows .world-card{ display:flex; flex-direction:column; }
  #shows .world-card .frame, #shows .world-card .frame.square{ position:relative; inset:auto; flex:1 1 auto; min-height:0; aspect-ratio:auto; width:100%; }
  #shows .world-card .frame img{ height:100%; object-fit:cover; object-position:top center; }
  #shows .world-card::after{ display:none; }
  #shows .world-card-body{ flex:0 0 auto; margin-top:0; background:#2A2145; padding:8px 10px 10px; }
  #shows .world-card-title{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:clamp(.85rem, 3.9vw, 1rem); }
  #shows .grid-4{ touch-action:pan-y; }
  #shows .grid-4.dragging{ scroll-snap-type:none; scroll-behavior:auto; }
}

/* ==================== יצירת קשר בנייד: השדות ב-16px אמיתיים (בלי כיווץ), מקום למקלדת ==================== */
@media (max-width:820px){
  #contact .contact-grid .lead{ display:none !important; }   /* the form asks for the same details (already hidden ≤600px and ≥751px) */
  #contact form .field{ margin-bottom:6px; gap:3px; }
  #contact .field label{ font-size:14px; }                    /* was 13px → 11.4px after zoom */
  #contact .caption-box{ margin-bottom:4px; }
  #contact .btn-row{ margin-top:6px; }
  #contact .comic-panel .site-footer{ margin-top:8px; padding-top:6px; }
  /* phone-number link: 12px text → give it a ≥24px hit area without changing the line height */
  #contact .comic-panel .site-footer a{ display:inline-block; padding:6px 0; margin:-6px 0; }
}
@media (max-width:820px) and (max-height:600px){          /* iPhone SE / 320x568: the black label is the one thing left to drop */
  #contact .caption-box{ display:none; }
  #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; }
}
/* a field scrolled into view must clear the fixed header / bottom bar */
#availability-form input, #availability-form textarea{ scroll-margin-block:64px 90px; }


/* ==================== נייד: מדרגות הקטנה חכמות (container queries), טלפון לרוחב, טאבלט — מסוכן הגדלים ==================== */
/* fix-sizes.css — QA proposal (not applied to the site). Load after css/home-fit.css.
   1) Phones (<=820px): .screen-inner becomes a size container. fit.js shrinks it with CSS zoom, and the container's
      width in its own px grows by 1/zoom, so @container rules fire at the FIRST zoom step and drop optional
      content — the loop then stops at .94/.88 instead of .7/.64. (.is-shrunk is added only after the loop,
      so rules keyed on it cannot reduce the step.)
   2) Landscape phone tier (<=820 wide, <=460 high): bar/paddings/photos/type trimmed, contact form in 2 columns.
   3) Desktop-layout landscape phones (>=821 wide, <=460 high: 844x390, 915x412). */
@media (max-width:820px){
  .screen-inner{ container-type:inline-size; }
}
/* Generated by gen.js — hides optional content as soon as fit.js zooms the screen (container width grows 1/zoom). */
@media (max-width:820px) and (min-width:320px) and (max-width:341px){
  @container (min-width:331px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:377px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:436px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:342px) and (max-width:364px){
  @container (min-width:352px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:400px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:463px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:365px) and (max-width:389px){
  @container (min-width:375px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:426px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:493px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:390px) and (max-width:415px){
  @container (min-width:398px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:452px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:524px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:416px) and (max-width:443px){
  @container (min-width:423px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:481px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:557px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:444px) and (max-width:473px){
  @container (min-width:450px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:512px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:592px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:474px) and (max-width:505px){
  @container (min-width:479px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:544px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:630px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:506px) and (max-width:539px){
  @container (min-width:510px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:579px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:670px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:540px) and (max-width:575px){
  @container (min-width:542px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:616px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:713px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:576px) and (max-width:614px){
  @container (min-width:577px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:656px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:759px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:615px) and (max-width:655px){
  @container (min-width:614px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:698px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:808px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:656px) and (max-width:698px){
  @container (min-width:653px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:742px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:859px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:699px) and (max-width:744px){
  @container (min-width:694px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:789px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:913px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:745px) and (max-width:793px){
  @container (min-width:738px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:839px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:971px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
@media (max-width:820px) and (min-width:794px){
  @container (min-width:763px){ #contact .field.notes, #contact .form-note, #hero .btn-ghost, #hero .bubble p + p, .svc-more, .story-more, #shows .lead, #testimonials .testi-note{ display:none !important; } #contact form .field{ margin-bottom:4px; gap:2px; } #contact .field input, #contact .field textarea{ min-height:36px; padding:4px 10px; }
    #contact .comic-panel .site-footer{ margin-top:6px; padding-top:4px; } #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; } /* panel sized to its content and centred (no void when parts are hidden) */ }
  @container (min-width:866px){ #contact .contact-grid .lead, #contact .btn-row, #contact .site-footer, #hero .hero-sub, #hero .hero-welcome, .svc-screen .facts, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; } #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; } /* two columns: halves the form height */
    #unique .lead, #story .lead{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; } /* long copy: clamp (better: a .unique-more span in the HTML) */
    #unique .split, #story .split.side-photo{ --side-w:min(22vw, 84px); }
    #corporate .split, #private .split, #workshops .split{ --b-photo:min(26vw, 100px); }
    #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:clamp(110px, calc(var(--svc-avail) * .27), 150px); }
    .split.side-photo .lead, .split .lead{ line-height:1.36 !important; } }
  @container (min-width:1003px){ #contact .caption-box, #hero .frame-wrap, #hero .bubble, #unique .frame-wrap, #story .frame-wrap, .svc-screen .frame-wrap, .svc-screen .caption-box{ display:none !important; } #unique .lead, #story .lead{ -webkit-line-clamp:5; } #hero .split{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo{ grid-template-columns:minmax(0,1fr) 0px !important; column-gap:0 !important; }
    .split.side-photo .lead{ margin-top:6px !important; } .btn-row{ margin-top:6px !important; } }
}
/* ===== 2) landscape phones, phone layout (740x360, 667x375, 812x375) ===== */
@media (max-width:820px) and (max-height:460px) and (orientation:landscape){
  .mobilebar{ padding:5px 12px calc(5px + env(safe-area-inset-bottom)); gap:8px; }
  .mobilebar a{ min-height:34px; font-size:.82rem; }
  .screen, #hero.screen, #shows.screen, #corporate.screen, #private.screen, #workshops.screen, #unique.screen,
  #birthday, #live, #holidays, #education{ padding-top:calc(var(--hdr-m) + 3px); padding-bottom:calc(4px + 50px + env(safe-area-inset-bottom)); }
  #birthday, #live, #holidays, #education{ --svc-bar:50px; --svc-gap:6px; }
  #corporate, #private, #workshops, #unique{ --b-bar:50px; --b-frame:60px; --b-py:8px; --b-photo:min(20vw,90px); --b-h2:18px; --b-lead:12.5px; --b-lh:1.32; --b-mt-lead:5px; --b-mt-btn:5px; --b-btn:34px; --b-btnfs:.84rem; }
  .screen-inner, #hero .screen-inner, #shows .screen-inner{ padding-top:2px; padding-bottom:5px; }
  .comic-panel, #hero .comic-panel, #shows .comic-panel{ --panel-py:8px; }
  .comic-panel{ --panel-px:14px; }
  #birthday .comic-panel, #live .comic-panel, #holidays .comic-panel, #education .comic-panel{ --panel-py:8px; min-height:0; }
  .caption-box{ margin-bottom:3px; }
  h2, #birthday h2, #live h2, #holidays h2, #education h2{ font-size:18px; line-height:1.1; }
  .lead, .bubble, #story .lead, #gallery .lead, #birthday .lead, #live .lead, #holidays .lead, #education .lead{ font-size:12.5px; line-height:1.32; }
  .btn, .btn-sm, #hero .btn, #story .btn-sm, #testimonials .btn, #contact .btn-primary, #contact .btn-whatsapp{ min-height:34px; font-size:.84rem; }
  .btn-row, .split.side-photo .btn-row, #hero .btn-row, #testimonials .btn-row{ margin-top:5px; gap:6px; }
  /* optional copy goes first */
  .svc-more, .story-more, #hero .bubble p + p, #hero .btn-ghost, #hero .hero-sub, .svc-screen .facts,
  #contact .contact-grid .lead, #contact .btn-row, #contact .field.notes, #contact .form-note, #contact .site-footer,
  #shows .lead, #shows .scroll-hint, #testimonials .testi-note, #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; }
  /* hero: photo beside the text, small */
  /* the photo row is the h1 row on phones; here the h1 is one line, so the photo also spans the bubble row */
  #hero .split{ grid-template-columns:minmax(0,1fr) min(22vw,100px); grid-template-areas:"h1 photo" "bubble photo" "btns btns"; align-items:stretch; }
  #hero .frame-wrap{ height:100%; min-height:120px; }
  #hero h1{ font-size:16px; line-height:1.1; }
  #hero .hero-welcome{ font-size:12.5px !important; padding:3px 10px; margin-bottom:3px; }
  #hero .bubble{ font-size:12.5px; line-height:1.32; padding:6px 9px; margin:5px 0 5px; }
  /* services / story / unique: photo beside the heading only, ~90px */
  #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo{ --svc-ph:100px; --side-w:min(20vw,84px); }
  #birthday .lead, #live .lead, #holidays .lead, #education .lead{ margin-top:5px !important; }
  #birthday .btn-row, #live .btn-row, #holidays .btn-row, #education .btn-row{ margin-top:5px; }
  #birthday .btn.btn-sm, #live .btn.btn-sm, #holidays .btn.btn-sm, #education .btn.btn-sm{ min-height:34px; font-size:.84rem; }
  #corporate .split, #private .split, #workshops .split, #unique .split{ min-height:0; }
  .split.side-photo, #unique .split, #story .split.side-photo{ --side-w:min(20vw,84px); }
  .split.side-photo, #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo,
  #corporate .split, #private .split, #workshops .split, #unique .split{ align-content:center; } /* no space-between gaps */
  #contact .comic-panel, #contact .contact-grid{ flex:0 0 auto; } #contact .screen-inner{ justify-content:center; }
  /* one-line heading here: the photo also runs beside the paragraph, so no air around the heading */
  .split.side-photo{ grid-template-areas:"cap cap" "head photo" "text photo" "facts facts" "btns btns" !important; }
  .split.side-photo .lead{ margin-top:5px !important; }
  /* shows: card height from the window */
  #shows{ --sh-card:clamp(140px, calc(100svh - 190px), 300px); }
  #shows .world-card{ max-height:none; }
  #shows .grid-4{ margin-top:4px !important; padding-bottom:6px; }
  /* gallery */
  #gallery .comic-panel .gallery-grid{ --gal-gap:4px; margin-top:4px !important; }
  #gallery .lead{ display:none !important; }
  /* testimonials */
  #testimonials .comic-panel{ row-gap:0; }
  #testimonials .bubble{ font-size:12.5px; margin:6px auto 8px; padding:8px 14px 8px; }
  /* contact: two-column form, compact fields */
  #contact .form-row{ grid-template-columns:1fr 1fr; gap:8px; }
  #contact .contact-grid{ gap:4px; }
  #contact form .field{ margin-bottom:4px; gap:2px; }
  #contact .field label{ font-size:12px; }
  #contact .field input, #contact .field textarea{ min-height:32px; padding:4px 10px; }
  #contact h2{ font-size:17px !important; }
  #contact .caption-box{ margin-bottom:2px; }
}

/* ===== 3) landscape phones that get the desktop layout (844x390, 915x412) ===== */
@media (min-width:821px) and (max-height:460px){
  .top-header{ padding:5px clamp(16px,2.4vw,40px) 4px; }
  .glogo-top, body.hdr-compact .glogo-top{ width:64px; }
  .cat-nav a, body.hdr-compact .cat-nav a{ font-size:14px; padding:6px 12px 6px 13px; }
  :root{ --hdr-a:62px; --hdr-c:62px; }
  .screen, #story.screen, #gallery.screen, #testimonials.screen, #contact.screen, #corporate.screen, #private.screen, #workshops.screen, #unique.screen,
  #birthday, #live, #holidays, #education{ padding-top:calc(var(--hdr-c) + 6px); padding-bottom:12px; }
  #hero.screen, #shows.screen{ --g:4px; padding-top:calc(var(--hdr-a) + 6px); padding-bottom:12px; }
  .screen-inner, #hero .screen-inner, #shows .screen-inner, #corporate .screen-inner, #private .screen-inner, #workshops .screen-inner, #unique .screen-inner,
  #birthday .screen-inner, #live .screen-inner, #holidays .screen-inner, #education .screen-inner{ padding-top:4px; padding-bottom:10px; }
  .comic-panel, #hero .comic-panel, #shows .comic-panel, #story .comic-panel, #gallery .comic-panel, #testimonials .comic-panel, #contact .comic-panel,
  #birthday .comic-panel, #live .comic-panel, #holidays .comic-panel, #education .comic-panel, #corporate .comic-panel, #private .comic-panel, #workshops .comic-panel, #unique .comic-panel{ --panel-py:10px; }
  #birthday, #live, #holidays, #education{ --svc-gap:6px; }
  #birthday .comic-panel, #live .comic-panel, #holidays .comic-panel, #education .comic-panel{ min-height:0; }
  .svc-more, .story-more, #hero .bubble p + p, #hero .hero-sub, #shows .lead, #contact .field.notes, #contact .form-note, #testimonials .testi-note,
  #testimonials .comic-panel::before, #testimonials .comic-panel::after{ display:none !important; }
  h2, #story h2, #gallery h2, #testimonials h2, #contact h2, #birthday h2, #live h2, #holidays h2, #education h2, #corporate h2, #private h2, #workshops h2, #unique h2{ font-size:20px; line-height:1.12; }
  .caption-box, #story .caption-box, #gallery .caption-box, #testimonials .caption-box, #contact .caption-box, #shows .caption-box,
  #birthday .caption-box, #live .caption-box, #holidays .caption-box, #education .caption-box, #corporate .caption-box, #private .caption-box, #workshops .caption-box, #unique .caption-box{ font-size:11.5px; margin-bottom:4px; padding:3px 10px; }
  .lead, #story .lead, #gallery .lead, #contact .lead, #birthday .lead, #live .lead, #holidays .lead, #education .lead, #corporate .lead, #private .lead, #workshops .lead, #unique .lead{ font-size:13px; line-height:1.38; margin-top:6px !important; }
  .facts, #birthday .facts, #live .facts, #holidays .facts, #education .facts, #corporate .facts, #private .facts, #workshops .facts{ margin-top:6px; gap:5px; }
  .facts span, .facts a, #birthday .facts span, #birthday .facts a, #live .facts span, #live .facts a, #holidays .facts span, #holidays .facts a, #education .facts span, #education .facts a,
  #corporate .facts span, #corporate .facts a, #private .facts span, #private .facts a, #workshops .facts span, #workshops .facts a{ font-size:.74rem; padding:2px 8px; }
  .btn-row, #hero .btn-row, #story .btn-row, #testimonials .btn-row, #contact .btn-row, #birthday .btn-row, #live .btn-row, #holidays .btn-row, #education .btn-row, #corporate .btn-row, #private .btn-row, #workshops .btn-row, #unique .btn-row{ margin-top:8px; gap:8px; }
  .btn, .btn-sm, #hero .btn, #story .btn-sm, #testimonials .btn, #contact .btn-primary, #contact .btn-whatsapp, #birthday .btn.btn-sm, #live .btn.btn-sm, #holidays .btn.btn-sm, #education .btn.btn-sm, #corporate .btn-sm, #private .btn-sm, #workshops .btn-sm, #unique .btn-sm{ min-height:36px; font-size:.86rem; padding-inline:14px; }
  /* hero */
  #hero .hero-welcome{ font-size:15px; padding:4px 14px; margin-bottom:5px; }
  #hero h1{ font-size:clamp(18px, 2.2vw, 22px); }
  #hero .bubble{ font-size:12.5px; line-height:1.36; padding:7px 12px; margin:6px 0 6px; }
  #hero .split{ grid-template-columns:1.5fr .5fr; }
  /* shows: one row of 7 short cards */
  #shows{ --card-h:clamp(140px, calc(100vh - 225px), 330px); }
  #shows .world-card{ aspect-ratio:auto; height:var(--card-h); }
  #shows .grid-4{ margin-top:8px !important; }
  /* service screens: photo height from the window */
  #birthday .comic-panel, #live .comic-panel, #holidays .comic-panel, #education .comic-panel{ --svc-ph:calc(100vh - var(--hdr-c) - 92px); }
  #corporate .comic-panel, #private .comic-panel, #workshops .comic-panel, #unique .comic-panel{ --photo-h:calc(100vh - var(--hdr-c) - 76px); }
  #birthday .split.side-photo, #live .split.side-photo, #holidays .split.side-photo, #education .split.side-photo,
  #corporate .split, #private .split, #workshops .split, #unique .split, #story .split{ gap:14px; }
  #story .frame.portrait-lg{ width:min(20vw, 52vh, 200px); max-width:none; }
  /* testimonials */
  #testimonials .comic-panel{ row-gap:0; }
  #testimonials .bubble{ font-size:14px; line-height:1.4; margin:8px auto 10px; padding:10px 18px 9px; }
  /* contact */
  #contact .contact-grid{ gap:14px; }
  #contact form .field{ margin-bottom:5px; gap:2px; }
  #contact .field label{ font-size:12px; }
  #contact .field input, #contact .field textarea{ min-height:32px; padding:4px 10px; font-size:14px; }
  #contact .comic-panel .site-footer{ margin-top:6px; padding-top:5px; font-size:.74rem; }
}

@media (max-width:820px) and (max-height:800px){ #live .svc-more{ display:none; } }

/* ==================== נייד (מגע): החלקה אנכית על סרט המופעים עוברת לדף — הסרט לא גולל טבעית (JS מזיז אותו) ==================== */
@media (max-width:900px) and (pointer:coarse){
  #shows .grid-4{ overflow-x:hidden; scroll-snap-type:none; }
}
@media (max-width:820px){
  #hero .hero-sub, .caption-box{ font-size:max(11px, 1em) !important; }
}

/* ==================== תיקונים אחרונים לנייד ==================== */
@media (max-width:820px){
  /* אין גלילה אופקית בשום מסך (כותרת המשנה גלשה מהפאנל ואפשר היה לגרור את הדף לצדדים) */
  .snap-container, .screen, .screen-inner{ overflow-x:hidden !important; }
  #hero .hero-sub{ white-space:normal !important; text-wrap:balance; font-size:clamp(11px, 3.6vw, 15px) !important; line-height:1.25; }
  /* כרטיסי המופעים: התמונה גלויה במלואה, בלי טקסט מעליה — כותרת + כפתור בלבד */
  /* שם הקטגוריה כפס צהוב מעל התמונה (מחוץ לה), הכפתור מתחת לתמונה */
  #shows .world-card-text{ display:none; }
  #shows .world-card-body{ display:contents; }
  #shows .world-card-title{
    order:-1; margin:0; white-space:normal !important; overflow:visible !important; text-overflow:clip !important;
    font-size:clamp(.95rem, 4.4vw, 1.1rem) !important; line-height:1.2; text-wrap:balance; text-align:center;
    color:var(--ink) !important; background:var(--pink); padding:9px 10px 7px; border-bottom:3px solid var(--ink); flex:0 0 auto; margin-top:6px; /* ורוד: שונה מרקע המסך (תכלת-סגול) ומהפאנל (קרם) — תמיד ניגודיות */
  }
  #shows .world-card-go{ flex:0 0 auto; align-self:center; margin:8px 0 10px; }
  #shows .world-card .frame{ border-radius:0; }
}

/* ==================== מסך בדיקת זמינות ליום הולדת (#birthday-contact): פאנל צר, טופס קצר ==================== */
#birthday-contact .screen-inner{ display:flex; flex-direction:column; justify-content:center; }
#birthday-contact .bc-panel{ width:100%; max-width:560px; margin-inline:auto; text-align:right; }
#birthday-contact h2{ font-size:clamp(1.4rem, 1rem + 1.6vw, 2.3rem); margin-top:4px; }
#birthday-contact .bc-lead{ margin-top:8px; font-size:clamp(14px, .9rem + .2vw, 17px); }
#birthday-contact form{ margin-top:14px; }
#birthday-contact .field{ margin-bottom:10px; gap:4px; }
#birthday-contact .field label{ font-size:14px; }
#birthday-contact .field input{ min-height:46px; font-size:16px; }
#birthday-contact .bc-row{ grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:10px; }
#birthday-contact .btn-whatsapp{ width:100%; min-height:50px; font-size:1.05rem; margin-top:4px; }
@media (max-width:820px){
  #birthday-contact .bc-panel{ max-width:none; }
  #birthday-contact .caption-box{ font-size:clamp(10.5px, 3.1vw, 12.5px); white-space:normal !important; max-width:100%; line-height:1.3; }
  #birthday-contact h2{ font-size:clamp(20px, 5.8vw, 26px); }
  #birthday-contact .bc-lead{ font-size:13.5px; margin-top:6px; }
  #birthday-contact form{ margin-top:10px; }
  #birthday-contact .field{ margin-bottom:8px; gap:3px; }
  #birthday-contact .field input{ min-height:44px; }
  #birthday-contact .btn-whatsapp{ min-height:48px; }
}
@media (max-width:820px) and (max-height:600px){
  #birthday-contact .bc-lead{ display:none; }
  #birthday-contact .field{ margin-bottom:6px; }
  #birthday-contact .field input{ min-height:40px; }
}
/* פסי הצבע של הכרטיסים בנייד: בלי צהוב (דומה לרקע) — ורוד / סגול / תכלת / ירוק */
@media (max-width:820px){
  #shows .world-card:nth-child(odd) .stripe{ background:var(--purple-dark); }
  #shows .world-card:nth-child(even) .stripe{ background:#2BB673; }
  #birthday-contact h2{ white-space:nowrap; font-size:clamp(17px, 5.2vw, 24px) !important; }
}

/* ==================== נייד: הגליל קבוע בין ראש החלון לפס התחתון ====================
   הגליל אינו בגודל החלון המלא, ולכן כרום לא הופך אותו ל"גליל הראשי" ושורת הכתובת לא נפתחת/נסגרת
   תוך כדי החלקה (זה מה שגרם לקפיצות ולמסך האחרון שלא נתפס). המסכים = גובה הגליל בדיוק, בלי רזרבה לפס. */
@media (max-width:820px){
  :root{ --bar-h:70px; }
  html, body{ height:100%; overflow:hidden; overscroll-behavior:none; }
  .snap-container{ position:fixed; top:0; left:0; right:0; bottom:calc(var(--bar-h) + env(safe-area-inset-bottom)); height:auto !important; min-height:0 !important; overscroll-behavior-y:contain; }
  .screen{ height:100% !important; padding-bottom:10px !important; }
}
@media (max-width:820px) and (max-height:660px){ :root{ --bar-h:60px; } }

/* ==================== מסך הפתיחה בנייד: תג רחב, כותרת גדולה יותר, תמונה צרה וגדולה, כותרת משנה בשורה אחת ==================== */
@media (max-width:820px){
  #hero .hero-welcome{ display:flex; justify-content:center; width:100%; margin:0 0 10px; font-size:clamp(14px, 4.7vw, 21px) !important; padding:8px 12px; white-space:nowrap; }
  #hero .split{ grid-template-columns:minmax(0,1fr) min(40vw,175px) !important; column-gap:10px; }
  #hero h1{ font-size:clamp(24px, 7.3vw, 30px) !important; line-height:1.12; }
  #hero .frame-wrap{ align-self:stretch; }
  #hero .cutout-figure{ position:relative !important; inset:auto !important; height:100%; min-height:calc(min(40vw,175px) * 1.55); transform:rotate(-2deg); padding:3px; }
  #hero .cutout-figure img{ width:100%; height:100%; object-fit:cover; object-position:top center; }
  #hero .hero-sub{ white-space:nowrap !important; text-align:center; margin-top:8px; font-size:clamp(11px, 3.5vw, 15px) !important; }
  /* iOS: שדה תאריך לא מתכווץ לרוחב השדה בלי זה — "בורח" מהמסך */
  input[type="date"]{ -webkit-appearance:none; appearance:none; display:block; width:100%; max-width:100%; min-width:0; box-sizing:border-box; -webkit-min-logical-width:0; }
  input[type="date"]::-webkit-date-and-time-value{ text-align:right; min-height:1.3em; }
}
@media (max-width:820px){ #hero .bubble::before{ display:none; } } /* "זנב" בועת הדיבור (ריבוע מסובב) הסתיר טקסט בנייד */

/* ==================== גלריה: תצוגת תמונה במסך מלא (lightbox) ==================== */
.lightbox{ position:fixed; inset:0; z-index:120; display:none; align-items:center; justify-content:center; background:rgba(22,19,31,.93); touch-action:none; }
.lightbox.open{ display:flex; }
body.lb-open{ overflow:hidden; }
.lb-fig{ margin:0; max-width:100%; text-align:center; }
.lightbox img{ display:block; margin:0 auto; max-width:min(92vw, 900px); max-height:calc(100vh - 130px); max-height:calc(100svh - 130px); object-fit:contain; background:var(--white); border:4px solid var(--paper); border-radius:14px; box-shadow:6px 6px 0 var(--pink); user-select:none; -webkit-user-drag:none; }
.lightbox img.in{ animation:lb-in .22s ease-out; }
@keyframes lb-in{ from{ opacity:0; transform:scale(.96) } to{ opacity:1; transform:none } }
.lb-cap{ color:var(--paper); font-family:var(--ff-body); font-size:.9rem; margin-top:10px; padding:0 16px; }
.lb-count{ position:absolute; top:14px; left:50%; transform:translateX(-50%); color:var(--paper); font-family:var(--ff-display); font-size:1rem; background:rgba(0,0,0,.35); padding:4px 12px; border-radius:999px; }
.lb-btn{ position:absolute; width:48px; height:48px; border-radius:50%; border:3px solid var(--ink); background:var(--yellow); color:var(--ink); font:800 26px/1 var(--ff-body); cursor:pointer; box-shadow:3px 3px 0 var(--ink); display:flex; align-items:center; justify-content:center; padding:0 0 3px; }
.lb-btn:hover{ background:var(--paper); }
.lb-close{ top:12px; right:12px; font-size:22px; }
.lb-prev{ right:10px; top:50%; transform:translateY(-50%); }
.lb-next{ left:10px; top:50%; transform:translateY(-50%); }
@media (max-width:820px){
  .lb-prev, .lb-next{ top:auto; bottom:calc(18px + env(safe-area-inset-bottom)); transform:none; width:54px; height:54px; }
  .lb-prev{ right:18px; } .lb-next{ left:18px; }
  .lightbox img{ max-width:96vw; max-height:calc(100svh - 150px); }
}


/* ==================== נייד: ניגודיות מובטחת — כל אלמנט צבעוני שונה מהרקע שלו (סוכן הניגודיות) ==================== */
/* fix-contrast.css — QA proposal (NOT applied to the site). Load after css/home-fit.css.
   Phone layout (≤820px) only. Every rule replaces a fill that measured too close to what surrounds it
   (CIEDE2000 ΔE < 20, or WCAG contrast < 1.5:1 against the neighbouring pixels / the container fill),
   or a colour that also appears in that screen's background gradient. Numbers: see report.md. */

@media (max-width:820px){

  /* ---- A. #shows filmstrip: card stripes (6px bar at the top of each card, touching the pink title strip) ----
     Was: odd cards --purple-dark #5B21B6 (ΔE 10.8 from the screen's purple gradient stop #7C3AED; ΔE 20.5 / 1.67:1 against the
     card body #2A2145). Even cards were already green. Green is the only palette colour that is (a) absent from the cyan→purple
     gradient, (b) ΔE 59.7 from the dark card body, (c) ΔE 75.9 from the pink title strip it touches, and (d) 2.53:1 against the
     cream panel just outside the card border. (White would also satisfy the owner's rule, but is ΔE 3.6 from the cream panel.) */
  #shows .world-card:nth-child(odd) .stripe,
  #shows .world-card:nth-child(even) .stripe{ background:#2BB673; }

  /* ---- B. #hero welcome label ----
     Was: --purple #7C3AED = exactly the first stop of the hero gradient (grad-a purple→pink), 6px above the panel edge where the
     screen behind IS that purple. Cyan is not in grad-a (ΔE 45 / 65 from its stops), ΔE 27.7 / 1.75:1 from the cream panel,
     and ink text on it is 10.1:1 (was white on purple 5.7:1). */
  .caption-box.hero-welcome{ background:#4FD1E8; color:#16131F; }

  /* ---- C. "paper" screens: the cream panel (#FFFBF4) sat on a cream→pastel gradient ----
     Measured ΔE 1.2–4 and 1.02–1.06:1 at the panel edge on #live, #private, #gallery, #testimonials (the gradient's first stop
     IS the panel colour). Tints are the palette colours mixed with white, chosen so the lightest stop is ΔE ≥ 24 and ≥ 1.5:1
     from the panel. Yellow cannot do this (even pure #FFD166 is only 1.40:1 against cream), so #gallery moves to a green tint. */
  .paper-pink  { background:linear-gradient(160deg, #FFB7D2, #FF9AC0); }   /* #live:  pink 50% → 70%   ΔE 25.9 → 30.3, 1.57 → 1.91:1 */
  .paper-cyan  { background:linear-gradient(160deg, #7ADCEE, #4FD1E8); }   /* #private, #testimonials: cyan 85% → 100%  ΔE ≈25 → 27.7, ≈1.6 → 1.75:1 */
  .paper-yellow{ background:linear-gradient(160deg, #95DBB9, #6BCC9D); }   /* #gallery: green 50% → 70%  ΔE 24.0 → 28.1, 1.55 → 1.89:1 */
  .paper-pink, .paper-cyan, .paper-yellow{ --pat-color:rgba(22,19,31,.16); } /* keep the ink texture readable on the deeper tint */

  /* ---- D. borderline (ΔE ≥ 20 but contrast < 1.5:1): yellow on cream. Delete this block if the yellow is wanted as is. ----
     .mobilebar .menu  — --yellow #FFD166 on the cream bar: ΔE 24.0 but 1.40:1. Pink: ΔE 36.1, 2.52:1, ink text 7.0:1.
     .btn-primary      — its yellow stop #FFD166 on the cream panel: ΔE 24.0 but 1.40:1 (on every screen). The site's own
                          --yellow-dark #E8A934 as the first stop: ΔE 29.4, 2.00:1, ink text 8.9:1; the pink end is unchanged.
     .mnav-grid a      — main items of the phone menu sheet (not the cyan .svc ones): the same yellow on the cream sheet, 1.40:1.
                          --yellow-dark keeps the yellow-vs-cyan distinction of the menu: ΔE 29.4, 2.00:1, ink text 8.9:1. */
  .mobilebar .menu{ background:#FF6FA5; }
  .btn-primary{ background:linear-gradient(120deg, #E8A934, #FF6FA5); }
  .mnav-grid a:not(.svc):not([aria-current]){ background:#E8A934; }
}

/* תמונת הסיפור (בנייד ובמחשב): הפנים במרכז העיגול */
#story .frame.portrait-lg img{ object-position:50% 12%; }
