/* ==========================================================================
   MATILDA — Design System  (v4)

   v4 is not a taste change; it is a correction against measurements taken
   from the two reference sites the client approved. What the computed styles
   on hivroni.art and shultzo.com actually say:

     ground            #FFFFFF / #FBFBFA      (v3 used #F7F5F0 — far too beige)
     warm band         #F8F6F3 / #F3F3F1      (a whisper, not a colour)
     heading weight    400 / 500              (v3 used 200 — thin reads weak,
                                               not expensive, and Hebrew at
                                               weight 200 nearly disappears)
     hero name         60px / weight 300      (v4 shipped 76px / 500 — too big
                                               and too heavy; measured on
                                               hivroni at a 1440px viewport)
     heading colour    #111 / #131312         (near-black, high contrast)
     body colour       #334155 / #45453F      (dark; v3's greys washed out)
     product images    object-fit: CONTAIN    (v3 cropped with cover — the
                                               object never got to float)
     section padding   101px / 147px

   The single biggest structural difference was `contain`: in both references
   the object sits inside a field of air rather than filling a cropped box.
   That is most of the "gallery" feeling, and it costs nothing to adopt.
   ========================================================================== */

:root {
  /* Colour — near-white ground, near-black type, warmth only as a whisper */
  --m-paper:    #FBFBFA;   /* default page ground */
  --m-band:     #F4F3F0;   /* alternating section — barely a shade */
  --m-white:    #FFFFFF;
  --m-tile:     #FFFFFF;   /* the field a work floats in */
  --m-ink:      #131312;   /* headings */
  --m-ink-deep: #101010;   /* the dark field a work floats in (matches the
                              catalogue plates' black ground) */
  --m-body:     #45453F;   /* running text */
  --m-muted:    #6B6862;   /* meta, prices */
  --m-faint:    #726E67;   /* eyebrows, captions. Was #918D86 — 3.2:1 on paper,
                              3.0:1 on the band; axe failed every eyebrow, form
                              label and work caption (25.10.2026). Now 4.9 / 4.6. */
  --m-accent:   #2F3A2E;
  --m-accent-h: #45543F;
  --m-line:     #E6E4DF;
  --m-line-d:   rgba(251, 251, 250, 0.14);

  --f: "Assistant", "Heebo", -apple-system, "Segoe UI", sans-serif;
  /* v7: Frank Ruhl Libre — the 1908 Hebrew serif, the letterform of Hebrew
     print culture. Display and headings only; body, buttons, nav and every
     piece of UI stay on Assistant. The serif/grotesque contrast is the
     character the sans-only system lacked. */
  --f-display: "Frank Ruhl Libre", "David Libre", serif;

  --t-display: clamp(2.125rem, 4.2vw, 3.75rem);  /* 60px cap — measured */
  --t-h1:      clamp(2.25rem, 5vw, 3.75rem);
  --t-h2:      clamp(1.75rem, 3.6vw, 2.75rem);
  --t-h3:      1.0625rem;
  --t-body:    1.0625rem;
  --t-lead:    1.1875rem;
  --t-cap:     0.8125rem;
  --t-eyebrow: 0.6875rem;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --pad-section: clamp(76px, 9vw, 146px);
  --container: 1320px;
  --measure: 58ch;

  --e: cubic-bezier(0.4, 0, 0.2, 1);
  --d-ui: 200ms;
  --d-reveal: 700ms;

  --header-h: 76px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--m-paper);
  color: var(--m-body);
  font-family: var(--f);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--m-ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 3px; }

/* ---------------------------------------------------------- typography --
   Measured, not guessed. Section headings sit at weight 500 near-black;
   the hero name is deliberately lighter (300) — hivroni does the same, and
   a 60px name at weight 500 reads as shouting rather than confident.       */
.display { font-family: var(--f-display); font-size: var(--t-display); font-weight: 300; line-height: 1.12; letter-spacing: 0; color: var(--m-ink); }
.h1 { font-family: var(--f-display); font-size: var(--t-h1); font-weight: 400; line-height: 1.14; letter-spacing: 0; color: var(--m-ink); }
.h2 { font-family: var(--f-display); font-size: var(--t-h2); font-weight: 400; line-height: 1.18; letter-spacing: 0; color: var(--m-ink); }
.h3 { font-size: var(--t-h3); font-weight: 500; line-height: 1.45; color: var(--m-ink); }

.eyebrow { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.22em; color: var(--m-faint); margin-bottom: var(--s3); }
.lead { font-size: var(--t-lead); font-weight: 400; line-height: 1.62; color: var(--m-body); }
.cap  { font-size: var(--t-cap); letter-spacing: 0.03em; color: var(--m-muted); }
.measure { max-width: var(--measure); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.price { font-weight: 400; color: var(--m-muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- layout -- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }
.section { padding-block: var(--pad-section); }
.section--tint { background: var(--m-band); }
.section--ink  { background: var(--m-ink); color: #E8E6E1; }
/* On ink the faint grey goes the other way: the darker #726E67 that passes on
   paper is 3.7:1 here, the old #918D86 is 5.5:1 (axe, 25.10.2026). */
.section--ink, .hero-ink, .ftr { --m-faint: #918D86; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #FBFBFA; }
.section--ink .cap, .section--ink .lead { color: #A6A29B; }
.section--ink .eyebrow { color: #8E9C88; }

.stack-3 > * + * { margin-top: var(--s3); }
.stack-2 > * + * { margin-top: var(--s2); }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s6); }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding-inline: var(--s5);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em;
  border: 1px solid var(--m-accent);
  transition: background var(--d-ui) var(--e), color var(--d-ui) var(--e), border-color var(--d-ui) var(--e);
}
.btn--solid { background: var(--m-accent); color: #F4F3EE; }
.btn--solid:hover { background: var(--m-accent-h); border-color: var(--m-accent-h); }
.btn--ghost { background: transparent; color: var(--m-accent); }
.btn--ghost:hover { background: var(--m-accent); color: #F4F3EE; }
.btn--light { background: var(--m-paper); color: var(--m-ink); border-color: var(--m-paper); }
.btn--light:hover { background: transparent; color: var(--m-paper); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .35; cursor: default; pointer-events: none; }

.link {
  display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--m-ink); padding-bottom: 4px; border-block-end: 1px solid var(--m-line);
  transition: border-color var(--d-ui) var(--e), color var(--d-ui) var(--e);
}
.link:hover { color: var(--m-accent); border-block-end-color: var(--m-accent); }

/* ------------------------------------------------------------- header -- */
.hdr {
  position: sticky; inset-block-start: 0; z-index: 900;
  min-height: var(--header-h); display: flex; align-items: center;
  background: var(--m-paper); border-block-end: 1px solid var(--m-line);
}
.hdr__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s4); width: 100%; }
/* The wordmark is three letters (מטי, decided 06.09.2026). At the old 1rem/0.26em
   it measured 35px against a 55px „פיסול וציור” beneath it, so the descriptor
   out-weighed the name. 1.375rem/0.32em brings the two to the same measure and
   the pair reads as one stacked lockup. Re-measure if the name ever changes. */
.logo { font-size: 1.375rem; font-weight: 600; letter-spacing: 0.32em; color: var(--m-ink); }
.logo span { display: block; font-size: 0.5625rem; font-weight: 400; letter-spacing: 0.2em; color: var(--m-faint); margin-top: 3px; }

.nav { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 44px); }
.nav__a {
  position: relative; padding-block: 26px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em;
  color: var(--m-muted); transition: color var(--d-ui) var(--e);
}
.nav__a::after {
  content: ""; position: absolute; inset-block-end: 18px; inset-inline-start: 0;
  width: 100%; height: 2px; background: var(--m-accent);
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform var(--d-ui) var(--e);
}
.nav__a:hover { color: var(--m-ink); }
.nav__a[aria-current] { color: var(--m-ink); font-weight: 600; }
.nav__a[aria-current]::after, .nav__a:hover::after { transform: scaleX(1); }

.hdr__end { display: flex; align-items: center; justify-content: flex-end; gap: var(--s3); }
.cart-btn { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; color: var(--m-muted); padding: 10px 4px; transition: color var(--d-ui) var(--e); }
.cart-btn:hover { color: var(--m-accent); }
.cart-btn b { min-width: 19px; height: 19px; display: grid; place-items: center; background: var(--m-accent); color: #F4F3EE; border-radius: 50%; font-size: 0.625rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------- mobile nav -- */
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--m-ink); }
.burger span { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; inset-inline-start: 0; width: 20px; height: 1.5px; background: currentColor; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

.drawer {
  position: fixed; inset: 0; z-index: 950; background: var(--m-paper);
  padding: var(--s6) clamp(20px, 5vw, 48px) var(--s5);
  display: flex; flex-direction: column;
  transform: translateY(-100%); visibility: hidden;
  transition: transform 340ms var(--e), visibility 340ms;
}
.drawer[data-open="true"] { transform: translateY(0); visibility: visible; }
.drawer__close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.drawer__nav { display: flex; flex-direction: column; gap: var(--s4); margin-block: auto; }
.drawer__nav a { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; color: var(--m-ink); }

/* --------------------------------------------------------------- hero --
   v6. Built on the catalogue photography that arrived 31.08: one work on
   its own black ground, inside a full-bleed ink band. The asset has the
   ink colour (#131312) baked into its edges as a vignette, so the bronze
   reads as lit out of darkness with no visible photo rectangle.
   Text sits in the dark beside the work, never over it.                  */
.hero-ink {
  background: var(--m-ink);
  color: #E8E6E1;
}
.hero-ink__in {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 56px);
  min-height: min(92vh, 880px);
  padding-block: clamp(24px, 4vw, 56px);
}
.hero-ink__media { position: relative; }
.hero-ink__media img {
  width: 100%;
  max-height: min(78vh, 800px);
  object-fit: contain;
}
html.js .hero-ink__media img { animation: matilda-settle 1600ms var(--e) both; }
@keyframes matilda-settle {
  from { transform: scale(1.035); opacity: 0; }
  to   { transform: none;         opacity: 1; }
}
/* a museum label, not a caption */
.hero-ink__cap {
  margin-top: calc(-1 * var(--s2));
  text-align: center;
  font-size: var(--t-cap);
  letter-spacing: 0.06em;
  color: #8B8880;
}
.hero-ink__cap b { font-weight: 600; color: #C9C6C0; letter-spacing: 0.12em; }

.hero-ink__body { max-width: 560px; }
.hero-ink .eyebrow { color: #8E9C88; }
.hero-ink__name {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 6.4vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0;
  color: #FBFBFA;
}
.hero-ink__role {
  margin-top: var(--s2);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em;
  color: #8B8880;
}
.hero-ink__body .lead { color: #A6A29B; margin-top: var(--s4); }
.hero-ink .btns { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.hero-ink .btn--light { background: #FBFBFA; color: var(--m-ink); border-color: #FBFBFA; }
.hero-ink .btn--light:hover { background: transparent; color: #FBFBFA; }
.hero-ink .btn--outline { background: transparent; color: #C9C6C0; border: 1px solid rgba(251,251,250,.28); }
.hero-ink .btn--outline:hover { border-color: #FBFBFA; color: #FBFBFA; }

/* ------------------------------------------------------ authority strip --
   Real biography only — Ein Hod, the museum CV, Paris. The placeholder
   claims this replaces (`מאז 1998`, `אוספים פרטיים`) must never return. */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--m-line);
}
.strip__i { padding: var(--s4) var(--s3); text-align: center; }
.strip__i + .strip__i { border-inline-start: 1px solid var(--m-line); }
.strip__i .cap { display: block; }
.strip__i b {
  display: block; margin-bottom: 6px;
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.2em;
  color: var(--m-accent);
}

.pagehead { padding-block: clamp(64px, 9vw, 116px) clamp(32px, 4vw, 56px); }
/* The shop reads as a gallery hall: everything on its centre axis. */
.pagehead--center { text-align: center; }
.pagehead--center .measure { margin-inline: auto; }

/* ------------------------------------------------------- collections -- */
.collection + .collection { margin-block-start: var(--pad-section); }
.collection__hd { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-block-end: var(--s6); }
.collection__hd h2 { font-family: var(--f-display); font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 400; letter-spacing: 0; }
.collection__n { font-size: var(--t-cap); color: var(--m-faint); font-variant-numeric: tabular-nums; }

.grid-works { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(32px, 3.5vw, 56px) clamp(20px, 2.2vw, 32px); }
.grid-works--lg { grid-template-columns: repeat(3, 1fr); }

/* ------------------------------------------------------------- a work --
   v7. The work floats in a DARK field — the same ink ground as the hero and
   the catalogue plates, so the black-ground photography melts into the tile
   instead of sitting inside it as a hard rectangle. The caption underneath
   is a centred museum label: name, material·size, price. White tiles with
   hairline borders read as e-commerce placeholder, not gallery.            */
.work { display: flex; flex-direction: column; text-align: center; }
.work__fig {
  position: relative; aspect-ratio: 4 / 5; background: var(--m-ink-deep);
  padding: clamp(16px, 2vw, 34px);
  margin-bottom: var(--s3);
  overflow: hidden;
}
.work__fig img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transition: transform 900ms var(--e);
}
.work:hover .work__fig img { transform: scale(1.02); }
.work__badge {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px; z-index: 1;
  background: var(--m-paper); color: var(--m-ink);
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.18em; padding: 7px 12px;
}
.work__ttl { font-size: 1.125rem; font-weight: 500; line-height: 1.35; transition: color var(--d-ui) var(--e); }
.work:hover .work__ttl { color: var(--m-accent); }
.work__meta { font-size: var(--t-cap); color: var(--m-faint); letter-spacing: 0.03em; margin-top: 4px; }
.work__price { margin-top: 10px; font-size: 0.9375rem; color: var(--m-ink); font-variant-numeric: tabular-nums; }
.work[hidden] { display: none; }

/* ------------------------------------------------------------ filters --
   Sticky directly under the header. Two guards against the "floating bar"
   bug: main.js measures the real header height into --header-h (the 76px
   constant drifted from the rendered height, leaving a gap that content
   scrolled through), and the bar lives inside .shoparea so it lets go at
   the end of the grid instead of staying stuck over the FAQ.               */
.filters { border-block: 1px solid var(--m-line); background: var(--m-paper); position: sticky; inset-block-start: var(--header-h); z-index: 800; }
.filters__in { display: flex; justify-content: center; gap: clamp(20px, 3vw, 44px); padding-block: var(--s2); overflow-x: auto; scrollbar-width: none; }
.filters__in::-webkit-scrollbar { display: none; }
.filter { position: relative; white-space: nowrap; padding-block: 6px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; color: var(--m-muted); transition: color var(--d-ui) var(--e); }
.filter::after { content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0; width: 100%; height: 2px; background: var(--m-accent); transform: scaleX(0); transform-origin: inline-start; transition: transform var(--d-ui) var(--e); }
.filter:hover { color: var(--m-ink); }
.filter[aria-pressed="true"] { color: var(--m-ink); font-weight: 600; }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }

/* ------------------------------------------------------ product page -- */
.pdp { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.pdp__media { position: sticky; inset-block-start: calc(var(--header-h) + 32px); }
.pdp__main {
  background: var(--m-ink-deep);
  aspect-ratio: 4 / 5; padding: clamp(20px, 2.6vw, 48px);
  overflow: hidden; cursor: zoom-in;
}
.pdp__main img { width: 100%; height: 100%; object-fit: contain; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s1); margin-top: var(--s1); }
.pdp__thumbs button { aspect-ratio: 1; background: var(--m-ink-deep); border: 1px solid var(--m-line); padding: 6px; overflow: hidden; transition: border-color var(--d-ui) var(--e); }
.pdp__thumbs button[aria-current] { border-color: var(--m-accent); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pdp__back { display: inline-block; font-size: var(--t-cap); color: var(--m-muted); margin-bottom: var(--s4); }
.pdp__back:hover { color: var(--m-accent); }
.pdp h1 { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 400; letter-spacing: 0; line-height: 1.16; }
.pdp__sub { font-size: var(--t-cap); letter-spacing: 0.16em; font-weight: 600; color: var(--m-faint); margin-top: var(--s2); }
.pdp__price { margin-block: var(--s4); font-size: 1.375rem; font-weight: 400; color: var(--m-ink); font-variant-numeric: tabular-nums; }
.pdp__story { color: var(--m-body); max-width: 46ch; }
.pdp__spec { margin-block: var(--s5); border-block-start: 1px solid var(--m-line); }
.pdp__spec div { display: flex; justify-content: space-between; gap: var(--s3); padding-block: 13px; border-block-end: 1px solid var(--m-line); font-size: 0.9375rem; }
.pdp__spec dt { color: var(--m-faint); }
.pdp__spec dd { margin: 0; color: var(--m-ink); }
.pdp__note { margin-top: var(--s3); font-size: var(--t-cap); color: var(--m-faint); }

/* --------------------------------------------------------- split rows -- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.split--flip .split__media { order: 2; }
/* contact: columns top-aligned on desktop — was an inline style, moved here
   so the mobile stack can override it (an inline align-items:start made the
   form box shrink to its content width instead of filling the column). */
.contact-cols { align-items: start; }
.split__media img { width: 100%; }

/* --------------------------------------------------------------- video -- */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--m-ink); cursor: pointer; border: 0; padding: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--e), opacity var(--d-ui) var(--e); }
.video:hover img { transform: scale(1.03); opacity: 0.9; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video__play i { display: grid; place-items: center; width: clamp(60px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: rgba(19,19,18,.28); transition: background var(--d-ui) var(--e); }
.video:hover .video__play i { background: var(--m-paper); }
/* Play triangle is never mirrored in RTL — nudge it with a physical transform. */
.video__play svg { width: 19px; height: 21px; fill: #fff; transform: translateX(3px); transition: fill var(--d-ui) var(--e); }
.video:hover .video__play svg { fill: var(--m-ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- faq -- */
.faq { max-width: 700px; }
.faq__i { border-block-end: 1px solid var(--m-line); }
.faq__i:first-child { border-block-start: 1px solid var(--m-line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-block: var(--s3); text-align: start; font-size: 1rem; font-weight: 500; color: var(--m-ink); transition: color var(--d-ui) var(--e); }
.faq__q:hover { color: var(--m-accent); }
.faq__ico { flex: none; width: 12px; height: 12px; position: relative; }
.faq__ico::before, .faq__ico::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 0; width: 12px; height: 1px; background: currentColor; }
.faq__ico::after { transform: rotate(90deg); transition: transform var(--d-ui) var(--e); }
.faq__q[aria-expanded="true"] .faq__ico::after { transform: rotate(0deg); }
.faq__a { display: none; padding-block-end: var(--s3); color: var(--m-body); max-width: 58ch; }
.faq__a[data-open="true"] { display: block; }

/* --------------------------------------------------------------- form -- */
.formwrap { background: var(--m-white); border: 1px solid var(--m-line); padding: clamp(24px, 4vw, 48px); }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-size: var(--t-cap); letter-spacing: 0.08em; color: var(--m-faint); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 0; font: inherit; color: var(--m-ink);
  background: transparent; border: 0; border-block-end: 1px solid var(--m-line);
  border-radius: 0; transition: border-color var(--d-ui) var(--e);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-block-end-color: var(--m-accent); }
.field textarea { resize: vertical; min-height: 110px; }
.field--check { display: flex; align-items: flex-start; gap: var(--s1); }
.field--check input { width: auto; }
.field--check label { margin: 0; }

/* ---------------------------------------------------------- info list -- */
.info__i { padding-block: var(--s3); border-block-end: 1px solid var(--m-line); }
.info__i:first-child { padding-block-start: 0; }
.info__k { font-size: var(--t-eyebrow); letter-spacing: 0.22em; font-weight: 600; color: var(--m-faint); margin-bottom: 6px; }
.map { aspect-ratio: 4/3; background: var(--m-line); filter: grayscale(1); transition: filter var(--d-reveal) var(--e); }
.map:hover { filter: grayscale(0); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------- honour clip --- */
.honor-clip { width: 100%; max-height: 70vh; background: var(--m-ink); display: block; }
/* the sticky header must not swallow anchor targets */
#sculpture, #painting { scroll-margin-block-start: calc(var(--header-h) + 8px); }

/* ------------------------------------------------------- two worlds --
   The body of work is genuinely two opposite voices — quiet monochrome
   sculpture and loud saturated painting (CLAUDE.md §2). Two doors, side by
   side, each an image tile with its label BELOW it — never over the art. */
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 40px); }
.world { display: block; }
.world__fig {
  aspect-ratio: 16 / 11; overflow: hidden;
  background: var(--m-tile); border: 1px solid var(--m-line);
}
.world__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--e); }
.world:hover .world__fig img { transform: scale(1.025); }
.world__bar { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding-block: var(--s3) 0; }
.world__ttl { font-family: var(--f-display); font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 400; color: var(--m-ink); transition: color var(--d-ui) var(--e); }
.world:hover .world__ttl { color: var(--m-accent); }
.world__n { font-size: var(--t-cap); color: var(--m-faint); }
.world__sub { margin-top: 6px; font-size: 0.9375rem; color: var(--m-muted); max-width: 44ch; }

/* --------------------------------------------------------- statement --
   One typographic breath between the galleries and the practical part:
   her own exhibition title and her own sentence, at display scale.       */
.statement { text-align: center; }
.statement .display { margin-inline: auto; max-width: 22ch; }
.statement__by { margin-top: var(--s4); font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.22em; color: var(--m-faint); }

/* ------------------------------------------------------ buying steps --
   Numbered, like every working art shop in the network — the plain answer
   to "מה קורה אחרי שאני לוחץ". Real facts only.                          */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.step { border-block-start: 1px solid var(--m-line); padding-block-start: var(--s3); }
.step__n { font-family: var(--f-display); font-size: 1rem; color: var(--m-accent); letter-spacing: 0.08em; margin-bottom: var(--s2); }
.step h3 { margin-bottom: var(--s1); }
.step p { font-size: 0.9375rem; color: var(--m-muted); max-width: 36ch; }

/* -------------------------------------------------- contact on ink -- */
.section--ink .info__i { border-block-end-color: var(--m-line-d); }
.section--ink .info__k { color: #8E9C88; }
.section--ink .info__i a { color: #FBFBFA; border-block-end-color: rgba(251,251,250,.25); }
.section--ink .info__i a:hover { color: #C9C6C0; }
.section--ink .info__i p { color: #C9C6C0; }

/* ------------------------------------------------------------- footer -- */
.ftr { background: var(--m-ink); color: #C9C6C0; padding-block: var(--s7) var(--s4); }
.ftr .logo { color: #FBFBFA; }
.ftr h4 { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.22em; color: #8E9C88; margin-bottom: var(--s3); }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s5); }
.ftr a { color: #E8E6E1; transition: color var(--d-ui) var(--e); }
.ftr a:hover { color: #8E9C88; }
.ftr .cap { color: #A6A29B; }
.ftr li + li { margin-top: 7px; }
.ftr__bot { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s7); padding-top: var(--s3); border-top: 1px solid var(--m-line-d); font-size: var(--t-cap); color: #A6A29B; }
.ftr__bot a { color: #A6A29B; }

/* -------------------------------------------------- overlays / panels -- */
.overlay { position: fixed; inset: 0; z-index: 990; background: rgba(19,19,18,.5); display: flex; align-items: center; justify-content: center; padding: var(--s3); opacity: 0; visibility: hidden; transition: opacity 300ms var(--e), visibility 300ms; }
.overlay[data-open="true"] { opacity: 1; visibility: visible; }
.modal { width: 100%; max-width: 580px; background: var(--m-paper); padding: clamp(28px, 5vw, 56px); position: relative; transform: translateY(10px); transition: transform 300ms var(--e); max-height: 90vh; overflow-y: auto; }
.overlay[data-open="true"] .modal { transform: translateY(0); }
.modal__close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 44px; height: 44px; font-size: 24px; line-height: 1; }

.cart {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 992;
  width: min(430px, 100%); background: var(--m-paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform 340ms var(--e), visibility 340ms;
  border-inline-start: 1px solid var(--m-line);
}
/* translateX is physical: in RTL the panel's own edge is on the left. */
html[dir="rtl"] .cart { transform: translateX(-100%); }
.cart[data-open="true"], html[dir="rtl"] .cart[data-open="true"] { transform: translateX(0); visibility: visible; }
.cart__hd { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s4); border-block-end: 1px solid var(--m-line); }
.cart__body { flex: 1; overflow-y: auto; padding: var(--s3) var(--s4); }
.cart__ft { padding: var(--s3) var(--s4) var(--s4); border-block-start: 1px solid var(--m-line); }
.cart__row { display: grid; grid-template-columns: 60px 1fr auto; gap: var(--s3); align-items: center; padding-block: var(--s3); border-block-end: 1px solid var(--m-line); }
.cart__row img { width: 60px; height: 75px; object-fit: contain; background: var(--m-ink-deep); }
.cart__rm { font-size: var(--t-cap); color: var(--m-faint); }
.cart__rm:hover { color: var(--m-accent); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s3); font-size: 1.0625rem; color: var(--m-ink); }

/* ---------------------------------------------------------- lightbox -- */
.lb { position: fixed; inset: 0; z-index: 995; background: var(--m-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3); padding: var(--s5) var(--s3); opacity: 0; visibility: hidden; transition: opacity 300ms var(--e), visibility 300ms; }
.lb[data-open="true"] { opacity: 1; visibility: visible; }
.lb img { max-width: min(92vw, 1000px); max-height: 78vh; width: auto; object-fit: contain; }
.lb__cap { color: #FBFBFA; text-align: center; }
.lb__cap .h3 { color: #FBFBFA; }
.lb__close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; width: 44px; height: 44px; color: #FBFBFA; font-size: 28px; line-height: 1; }

/* ------------------------------------------------------------ reveals -- */
html.js .rv { opacity: 0; transform: translateY(8px); transition: opacity var(--d-reveal) var(--e), transform var(--d-reveal) var(--e); }
html.js .rv.is-in { opacity: 1; transform: none; }
html.js .rv:nth-child(2) { transition-delay: 60ms; }
html.js .rv:nth-child(3) { transition-delay: 120ms; }
html.js .rv:nth-child(4) { transition-delay: 180ms; }

/* --------------------------------------------------------------- toast -- */
.toast { position: fixed; inset-block-end: 24px; inset-inline-start: 24px; z-index: 994; background: var(--m-ink); color: #FBFBFA; padding: 14px 24px; font-size: 0.875rem; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity var(--d-ui) var(--e), transform var(--d-ui) var(--e); }
.toast[data-show="true"] { opacity: 1; transform: none; }

/* ------------------------------------------------------ cv / timeline -- */
/* A CV is a list of facts, not a decorated timeline. Rules and air only —
   no dots, no connecting line, no cards. The dates carry the structure. */
.cv { border-block-start: 1px solid var(--m-line); }
.section--ink .cv { border-block-start-color: var(--m-line-d); }
.cv__i { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s3); padding-block: var(--s3); border-block-end: 1px solid var(--m-line); }
.section--ink .cv__i { border-block-end-color: var(--m-line-d); }
.cv__y { font-size: var(--t-cap); font-weight: 600; letter-spacing: 0.1em; color: var(--m-faint); font-variant-numeric: tabular-nums; padding-block-start: 3px; }
.cv__b { color: var(--m-body); }
.section--ink .cv__b { color: #C9C6C0; }
.cv__b b { font-weight: 500; color: var(--m-ink); }
.section--ink .cv__b b { color: #FBFBFA; }
.cv__b span { display: block; font-size: var(--t-cap); color: var(--m-faint); margin-top: 4px; }

/* ------------------------------------------------------------- process -- */
/* Three stages of one idea, side by side. Equal weight, no hero image —
   the sequence is the point, not any single frame. */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.trio figure { margin: 0; }
.trio img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--m-band); }
.trio figcaption { margin-top: var(--s2); font-size: var(--t-cap); color: var(--m-muted); line-height: 1.5; }
.trio figcaption b { display: block; font-weight: 600; letter-spacing: 0.18em; font-size: var(--t-eyebrow); color: var(--m-faint); margin-bottom: 6px; }
.section--ink .trio figcaption { color: #A6A29B; }

/* ---------------------------------------------------------- pull quote -- */
.quote { font-family: var(--f-display); max-width: 24ch; font-size: clamp(1.375rem, 2.6vw, 2rem); font-weight: 300; line-height: 1.5; letter-spacing: 0; color: var(--m-ink); }
.quote--wide { max-width: 34ch; }
.section--ink .quote { color: #FBFBFA; }
.quote__by { display: block; margin-top: var(--s3); font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.22em; color: var(--m-faint); }

/* ================================================================ 1024 == */
@media (max-width: 1024px) {
  .grid-works { grid-template-columns: repeat(3, 1fr); }
  .grid-works--lg { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; }
  .pdp__media { position: static; }
}

/* ================================================================= 860 == */
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr__in { grid-template-columns: auto 1fr auto; }
  .hero-ink__in { grid-template-columns: 1fr; min-height: 0; gap: var(--s4); padding-block: var(--s6) var(--s7); }
  .hero-ink__media img { max-height: 56vh; }
  .hero-ink__body { max-width: none; }
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .worlds { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* ================================================================= 620 == */
@media (max-width: 620px) {
  /* centred flex + overflow clips the first chip in RTL — start-align on mobile */
  .filters__in { justify-content: flex-start; }
  .grid-works, .grid-works--lg { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s2); }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip__i { padding: var(--s3) var(--s2); }
  .strip__i:nth-child(n+3) { border-block-start: 1px solid var(--m-line); }
  .strip__i:nth-child(3) { border-inline-start: 0; }
  .trio { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .contact-cols { display: flex; flex-direction: column; align-items: stretch; }
  .contact-cols .formwrap { order: -1; }
  .ftr__bot { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html.js .rv { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  .cv__i { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 860px) {
  .trio { grid-template-columns: 1fr; gap: var(--s4); }
  .trio img { aspect-ratio: 4 / 3; }
}

/* ====================================================== 860 — mobile ==
   Client direction 01.09.2026: on a phone the text runs down the centre
   axis. Applied at 860 — the width where every two-column row (hero,
   split, worlds, steps) has already collapsed to one column, so a stacked
   block never has its text hugging one edge while the image above it is
   full-bleed. Above 860 the desktop start-alignment is untouched.

   Done by inheritance from .container so the many inline-styled link rows
   ("לכל 12 העבודות בקטלוג") come along too. Anything that is a control or
   a table rather than prose is put back to start below — a centred form
   label or spec row reads as broken, not as design.                      */
@media (max-width: 860px) {
  .container,
  .drawer,
  .modal { text-align: center; }

  /* the header bar, controls and tabular data stay start-aligned */
  .hdr__in,
  .formwrap,
  .modal form,
  .faq,
  .pdp__spec,
  .cart { text-align: start; }

  /* measure-capped blocks need their own centring, not just their text */
  .measure,
  .quote,
  .step p,
  .world__sub,
  .pdp__story,
  .ftr .cap { margin-inline: auto; }

  /* flex rows that ignore text-align */
  .hero-ink .btns { justify-content: center; }
  .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
  .drawer__nav { align-items: center; }
  .world__bar { justify-content: center; }
  .head-row { flex-direction: column; align-items: center; gap: var(--s2); }
  .ftr__bot { justify-content: center; align-items: center; }
}
