/* =====================================================================
   noagd – clay design system
   Layout: a Hebrew book. #brx-header is the spine (right), #brx-content
   is the paper sheet that turns around it.  Units in px (site root = 10px).
   ===================================================================== */
:root {
  --clay-bg: #ece5fb;
  --clay-page: #f8f5ff;
  --clay-ink: #2c2346;
  --clay-ink-soft: #5d5378;
  --clay-lav: #b9a5f2;
  --clay-lav-deep: #6a4ccf;
  --clay-on-deep: #ffffff;
  --clay-pink: #fbd3e2;
  --clay-butter: #fdeab0;
  --clay-mint: #cdeedb;
  --clay-sky: #d2e2fb;
  --clay-peach: #fcd9c4;
  --clay-shadow: rgba(92, 64, 190, 0.20);
  --clay-inner-dark: rgba(92, 64, 190, 0.13);
  --clay-inner-light: rgba(255, 255, 255, 0.85);
  --clay-ring: #d6336c;

  --font-display: "Fredoka", "Varela Round", "Assistant", system-ui, sans-serif;
  --font-body: "Assistant", "Rubik", system-ui, sans-serif;

  --clay: 12px 16px 32px var(--clay-shadow), inset -6px -8px 14px var(--clay-inner-dark), inset 6px 8px 14px var(--clay-inner-light);
  --clay-sm: 6px 9px 18px var(--clay-shadow), inset -4px -5px 9px var(--clay-inner-dark), inset 4px 5px 9px var(--clay-inner-light);
  --clay-pressed: inset 5px 7px 12px var(--clay-inner-dark), inset -4px -5px 10px var(--clay-inner-light);
  --r-lg: 32px; --r-md: 24px; --r-sm: 16px;
  --spine: 268px;
  --gap: 24px;
}

/* ---------- base ---------- */
html { background: var(--clay-bg); }
body {
  background: var(--clay-bg); color: var(--clay-ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
body h1, body h2, body h3, body h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--clay-ink); text-wrap: balance; margin: 0; }
body h1 { font-size: clamp(32px, 4.2vw, 52px); }
body h2 { font-size: clamp(24px, 2.6vw, 32px); }
body h3 { font-size: 19px; }
:focus-visible { outline: 3px solid var(--clay-ring); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--clay-lav); }

/* ---------- the book layout ---------- */
body:has(> #brx-header) {
  display: grid;
  grid-template-columns: var(--spine) minmax(0, 1fr);
  grid-template-areas: "spine sheet" "spine foot";
  grid-template-rows: auto 1fr;
  column-gap: var(--gap); row-gap: 16px;
  max-width: 1320px; margin: 0 auto; min-height: 100vh;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  align-items: start;
}
body > .skip-link { position: absolute; }
#brx-header { grid-area: spine; position: sticky; top: max(20px, env(safe-area-inset-top, 0px)); view-transition-name: spine; z-index: 20; }
#brx-content {
  grid-area: sheet; min-width: 0;
  background: var(--clay-page); border-radius: var(--r-lg); box-shadow: var(--clay);
  padding: clamp(18px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 32px;
  view-transition-name: sheet;
}
#brx-footer { grid-area: foot; }
#brx-content > .brxe-section, #brx-content > section { padding: 0; width: 100%; }

/* ---------- spine (header) ---------- */
.spine { background: var(--clay-lav); border-radius: var(--r-lg); box-shadow: var(--clay); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; width: 100%; }
.spine-me { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.spine-avatar { width: 104px !important; height: 104px; border-radius: 50%; object-fit: cover; border: 5px solid var(--clay-page); box-shadow: var(--clay-sm); background: var(--clay-page); }
.spine-hello { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.spine-role { color: var(--clay-ink-soft); font-size: 15px; line-height: 1.3; }
.spine-nav, .spine-nav .brx-nav-nested-items { width: 100%; }
.spine-nav .brx-nav-nested-items { display: flex; flex-direction: column; gap: 6px; counter-reset: pg; padding: 0; margin: 0; list-style: none; }
.spine-nav .brx-nav-nested-items > li { counter-increment: pg; display: block; }
.spine-nav .brx-nav-nested-items > li > a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px;
  color: var(--clay-ink); text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.3;
}
.spine-nav .brx-nav-nested-items > li > a::before { content: ""; width: 30px; height: 30px; flex: none; border-radius: 10px; background: var(--dot, var(--clay-sky)); box-shadow: var(--clay-sm); }
.spine-nav .brx-nav-nested-items > li > a::after { content: "עמ׳ " counter(pg); margin-inline-start: auto; font-size: 13px; color: var(--clay-ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.spine-nav .brx-nav-nested-items > li:nth-child(1) { --dot: var(--clay-butter); }
.spine-nav .brx-nav-nested-items > li:nth-child(2) { --dot: var(--clay-pink); }
.spine-nav .brx-nav-nested-items > li:nth-child(3) { --dot: var(--clay-sky); }
.spine-nav .brx-nav-nested-items > li:nth-child(4) { --dot: var(--clay-peach); }
.spine-nav .brx-nav-nested-items > li:nth-child(5) { --dot: var(--clay-mint); }
.spine-nav .brx-nav-nested-items > li:nth-child(6) { --dot: var(--clay-butter); }
.spine-nav .brx-nav-nested-items > li:nth-child(7) { --dot: var(--clay-pink); }
.spine-nav .brx-nav-nested-items > li > a:hover { background: rgba(255,255,255,.45); }
.spine-nav .brx-nav-nested-items > li > a[aria-current="page"] { background: var(--clay-page); box-shadow: var(--clay-sm); color: var(--clay-lav-deep); }
.spine-cta { background: var(--clay-pink); border-radius: var(--r-md); box-shadow: var(--clay-sm); padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; font-size: 16px; line-height: 1.35; }

.spine-colophon { font-size: 13px; color: var(--clay-ink); text-align: center; margin: 0; opacity: .85; }

/* ---------- buttons ---------- */
.brxe-button.btn, a.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--clay-lav-deep); color: var(--clay-on-deep);
  font: 700 17px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: 6px 9px 18px var(--clay-shadow), inset -4px -6px 10px rgba(0,0,0,.18), inset 4px 6px 10px rgba(255,255,255,.35);
  transition: transform .15s ease;
}
.brxe-button.btn:hover, a.btn:hover { transform: translateY(-2px); color: var(--clay-on-deep); }
.brxe-button.btn:active { transform: translateY(1px); box-shadow: var(--clay-pressed); }
.brxe-button.btn.soft { background: var(--clay-page); color: var(--clay-ink); box-shadow: var(--clay-sm); }

/* ---------- content components ---------- */
.clay-hero {
  background: var(--clay-lav); border-radius: var(--r-lg); box-shadow: var(--clay);
  padding: clamp(20px, 3vw, 36px) !important;
  display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: center;
}
.clay-hero .hero-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--clay-lav-deep); }
.clay-hero .eyebrow { color: #4a2fb0; }
.lead { font-size: 19px; max-width: 48ch; }
.actions { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 12px; width: auto !important; }
.art { width: min(320px, 100%) !important; aspect-ratio: 1; object-fit: contain; justify-self: center; filter: drop-shadow(10px 16px 18px var(--clay-shadow)); }
.art-sm { width: 120px !important; height: 120px; object-fit: contain; flex: none; filter: drop-shadow(6px 10px 12px var(--clay-shadow)); }

.clay-section { display: flex !important; flex-direction: column; gap: 16px; width: 100%; }
.section-head { display: flex !important; flex-direction: row !important; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.tiles { display: grid !important; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); width: 100%; }
.tile { border-radius: var(--r-md); box-shadow: var(--clay); padding: 18px; display: flex !important; flex-direction: column; gap: 8px; background: var(--c, var(--clay-sky)); }
.tile p, .tile .brxe-text-basic { color: var(--clay-ink-soft); font-size: 16px; line-height: 1.45; }
.tile-num { width: 46px; height: 46px; border-radius: 14px; background: var(--clay-page); box-shadow: var(--clay-sm); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--clay-lav-deep); }
.c-sky { --c: var(--clay-sky); } .c-pink { --c: var(--clay-pink); } .c-butter { --c: var(--clay-butter); }
.c-mint { --c: var(--clay-mint); } .c-peach { --c: var(--clay-peach); } .c-lav { --c: var(--clay-lav); }

.two { display: grid !important; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); width: 100%; }
.card { background: var(--c, var(--clay-page)); border-radius: var(--r-md); box-shadow: var(--clay); padding: 22px; display: flex !important; flex-direction: column; gap: 12px; color: var(--clay-ink); text-decoration: none; min-width: 0; }
a.card:hover { transform: translateY(-3px); transition: transform .2s ease; }
.card-row { display: flex !important; flex-direction: row !important; gap: 16px; align-items: center; }
.card-row > * { min-width: 0; }
.tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--clay-page); box-shadow: var(--clay-sm); color: var(--clay-ink-soft); }

.project { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--c, var(--clay-page)); border-radius: var(--r-lg); box-shadow: var(--clay); padding: clamp(18px, 2.5vw, 30px); }
.project.flip .project-media { order: -1; }
.project-text { display: flex !important; flex-direction: column; gap: 12px; min-width: 0; }
.project-text p { margin: 0; }
.project-media { border-radius: var(--r-md); overflow: hidden; background: var(--clay-page); box-shadow: var(--clay-sm); }
.project-media img, img.project-media { width: 100%; height: auto; display: block; }

.prose { max-width: 66ch; display: flex !important; flex-direction: column; gap: 14px; font-size: 18px; }
.prose p { margin: 0; }

.steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.steps li { counter-increment: st; background: var(--clay-page); border-radius: var(--r-md); box-shadow: var(--clay-sm); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(st); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--clay-lav); box-shadow: var(--clay-sm); font-family: var(--font-display); font-weight: 600; }

.quote { background: var(--clay-butter); border-radius: var(--r-lg); box-shadow: var(--clay); padding: 24px; display: grid !important; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.quote img { width: 140px; height: auto; }

.loop-grid { display: grid !important; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); width: 100%; }
.post-card { position: relative; background: var(--clay-page); border-radius: var(--r-md); box-shadow: var(--clay); padding: 14px; display: flex !important; flex-direction: column; gap: 10px; min-width: 0; }
.post-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; }
.post-card h3 a { text-decoration: none; color: inherit; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover { transform: translateY(-3px); transition: transform .2s ease; }
.post-card .meta { color: var(--clay-ink-soft); font-size: 15px; }

.gallery-clay { width: 100%; }
.gallery-clay img { border-radius: 16px; }

.portrait { width: min(320px, 100%) !important; aspect-ratio: 4/5; object-fit: cover; justify-self: center; border-radius: 40% 40% 32px 32px; border: 8px solid var(--clay-page); box-shadow: var(--clay); }
.sign-img { width: 200px !important; height: auto; opacity: .9; }
.chips { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 10px; width: 100%; }
.chips .tag { font-size: 15px; padding: 6px 14px; }
.post-card-inner { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.post-card .brxe-button { margin-top: auto; align-self: flex-start; position: relative; z-index: 2; }
.post-card .meta p { margin: 0; color: var(--clay-ink-soft); font-size: 15px; }
.brxe-text .steps li strong { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.brxe-text .steps li span { color: var(--clay-ink-soft); }
.project .brxe-next_beforeafter_image_v2, .project [class*="nb-before-after"] { max-width: 100%; }
.brxe-text p + p { margin-top: 12px; }

/* clay character cut-outs (transparent) */
.spine-avatar { object-position: 50% 8%; background: var(--clay-pink); }
.portrait { background: var(--clay-pink); object-fit: contain; object-position: 50% 100%; }

/* legal pages (plain WordPress content) */
#brx-content.wordpress > h1 { padding-inline: 4px; }
.legal { max-width: 72ch; font-size: 17px; line-height: 1.75; display: flex; flex-direction: column; gap: 14px; }
.legal > h1:first-child { display: none; }
.legal h2 { font-size: clamp(21px, 2.2vw, 26px); margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--clay-lav); }
.legal ol, .legal ul { margin: 0; padding-inline-start: 26px; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--clay-lav-deep); font-weight: 700; }
.legal p { margin: 0; }
.legal a { color: var(--clay-lav-deep); font-weight: 600; }
.legal .lead { color: var(--clay-ink-soft); font-size: 15px; }
.legal-contact { background: var(--clay-pink); border-radius: var(--r-md); box-shadow: var(--clay-sm); padding: 16px 20px; }
.spine-colophon a { color: inherit; }

/* form */
.clay-form-card { background: var(--clay-page); border-radius: var(--r-lg); box-shadow: var(--clay); padding: clamp(18px, 3vw, 30px); display: flex !important; flex-direction: column; gap: 14px; }
.clay-form-card .brxe-form { width: 100%; }
.clay-form-card .brxe-form input, .clay-form-card .brxe-form textarea, .clay-form-card .brxe-form select {
  font: inherit; font-size: 17px; color: var(--clay-ink); background: var(--clay-bg); border: 0; border-radius: 16px; padding: 12px 14px; box-shadow: var(--clay-pressed);
}
.clay-form-card .brxe-form label { font-weight: 700; font-size: 16px; color: var(--clay-ink); }
.clay-form-card .brxe-form button[type="submit"] { border-radius: 999px; background: var(--clay-lav-deep); color: var(--clay-on-deep); font-weight: 700; padding: 12px 26px; border: 0; box-shadow: 6px 9px 18px var(--clay-shadow); }

/* footer */
.site-foot { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.55); box-shadow: var(--clay-sm); font-size: 15px; color: var(--clay-ink-soft); }
.site-foot a { color: var(--clay-ink); font-weight: 600; }
.foot-links { display: flex !important; flex-direction: row !important; gap: 16px; flex-wrap: wrap; width: auto !important; }

/* =====================================================================
   v2 refinements: breathing room, alignment, testimonials
   ===================================================================== */
body { line-height: 1.7; }
#brx-content { gap: clamp(40px, 6vw, 72px); padding: clamp(20px, 4vw, 52px); }

/* spine nav: items fill the column, aligned to the start (right) */
.spine-nav .brx-nav-nested-items { align-items: stretch; }
.spine-nav .brx-nav-nested-items > li { width: 100%; }
.spine-nav .brx-nav-nested-items > li > a { width: 100%; justify-content: flex-start; text-align: start; }

/* hero + cards get more air */
.clay-hero { gap: clamp(20px, 4vw, 44px); padding: clamp(24px, 4vw, 48px) !important; }
.clay-hero .hero-text { gap: 18px; }
.project { gap: clamp(22px, 4vw, 48px); padding: clamp(22px, 3.5vw, 44px); }
.project-text { gap: 16px; }
.project-text p, .project-text .brxe-text { line-height: 1.75; }
.card { padding: clamp(20px, 3vw, 30px); gap: 14px; }
.tile { padding: 22px; gap: 10px; }
.tiles { gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.two { gap: 22px; }

/* sections: centred heading, centred reading column */
.clay-section { gap: 26px; align-items: stretch; }
.clay-section > .brxe-heading { text-align: center; align-self: center; max-width: 30ch; }
.clay-section > .section-head { justify-content: center; text-align: center; flex-direction: column !important; align-items: center; }
.prose { margin-inline: auto; max-width: 68ch; width: 100%; line-height: 1.8; }
.prose h3 { margin-top: 14px; }
.chips { justify-content: center; }

/* transparent artwork inside a project row (no box) */
.project-art { width: 100% !important; max-width: 460px; height: auto; justify-self: center; filter: drop-shadow(12px 18px 22px var(--clay-shadow)); }

/* testimonials & galleries: natural proportions, clay cards, masonry columns */
.gallery-clay.bricks-layout-wrapper { display: block !important; columns: 3 200px; column-gap: 20px; }
.gallery-clay .bricks-layout-item { display: block; width: 100% !important; max-width: none !important; flex: none !important; break-inside: avoid; margin: 0 0 20px; padding: 10px; background: #fff; border-radius: 22px; box-shadow: var(--clay-sm); }
#brxe-hmtsgl.gallery-clay.bricks-layout-wrapper { display: grid !important; columns: auto; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; align-items: start; }
#brxe-hmtsgl .bricks-layout-item { margin: 0; }
.gallery-clay .bricks-layout-item figure { margin: 0; }
.gallery-clay .bricks-layout-item img, #brx-content .gallery-clay .image { aspect-ratio: auto !important; width: 100% !important; height: auto !important; object-fit: contain !important; border-radius: 14px; display: block; }
#brxe-hmtsgl.gallery-clay { columns: 2 300px; }
#brxe-csrsgl.gallery-clay { columns: 1; }

/* case-study stage cards */
.tiles > .post-card { padding: 16px; }
.tiles > .post-card img { aspect-ratio: 4/3; }

/* =====================================================================
   v3 – recipe notebook: full width, full-height spine, spiral binding
   ===================================================================== */
:root { --spine: 300px; --gap: 34px; }
body:has(> #brx-header) { max-width: none; padding: 20px 20px 20px 24px; column-gap: var(--gap); }

/* spine = the notebook cover, always the full viewport height */
#brx-header { height: calc(100vh - 40px); height: calc(100dvh - 40px); }
#brx-header > .spine, .spine { height: 100%; overflow-y: auto; scrollbar-width: none; justify-content: space-between; gap: 14px; padding: 26px 18px 20px; }
.spine::-webkit-scrollbar { display: none; }
.spine-me { gap: 6px; }
.spine-avatar { width: 168px !important; height: 168px; border-width: 6px; object-position: 50% 6%; }
.spine-hello { font-size: 23px; margin-top: 4px; }
.spine-nav { flex: 1 1 auto; display: flex; align-items: center; }
.spine-nav .brx-nav-nested-items { gap: 4px; }
.spine-nav .brx-nav-nested-items > li > a { padding: 9px 14px; font-size: 18px; }

/* the paper */
#brx-content {
  position: relative; min-height: calc(100vh - 40px);
  padding-inline-start: clamp(64px, 6vw, 84px);
  background-color: var(--clay-page);
  background-image:
    linear-gradient(to left, transparent 44px, rgba(214, 51, 108, .22) 44px, rgba(214, 51, 108, .22) 46px, transparent 46px),
    repeating-linear-gradient(to bottom, transparent 0 35px, rgba(106, 76, 207, .07) 35px 36px);
  background-attachment: local;
}
/* spiral coils: holes on the paper, rings over the gap */
#brx-content::before {
  content: ""; position: absolute; top: 34px; bottom: 34px; right: calc(var(--gap) * -1 - 6px); width: 72px;
  pointer-events: none; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='38' viewBox='0 0 72 38'%3E%3Cdefs%3E%3ClinearGradient id='m' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4f1fb'/%3E%3Cstop offset='.45' stop-color='%23a79cc4'/%3E%3Cstop offset='1' stop-color='%236f6590'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='22' r='6' fill='%23d8cdf6'/%3E%3Ccircle cx='12' cy='22' r='6' fill='none' stroke='%239a8bd0' stroke-opacity='.45' stroke-width='1.5'/%3E%3Cpath d='M12 22 C12 4 66 4 66 20' fill='none' stroke='%23574b7a' stroke-opacity='.25' stroke-width='6' stroke-linecap='round' transform='translate(1.5 2)'/%3E%3Cpath d='M12 22 C12 4 66 4 66 20' fill='none' stroke='url(%23m)' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") right top / 72px 38px repeat-y;
}
[dir="ltr"] #brx-content::before { display: none; }

@media (min-width: 861px) and (max-height: 820px) {
  .spine-avatar { width: 124px !important; height: 124px; }
  .spine-nav .brx-nav-nested-items > li > a { padding: 6px 12px; font-size: 16px; }
  .spine-nav .brx-nav-nested-items > li > a::before { width: 24px; height: 24px; }
  .spine-cta { padding: 12px; }
}

/* small alignment fixes */
.section-head .tag { align-self: center; }
.tiles { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.clay-hero .art, .clay-hero .project-art { width: min(380px, 100%) !important; }

/* =====================================================================
   v4 – centred content column, larger type, roomier cards
   ===================================================================== */
/* the paper stays full width, the content sits in a centred column */
#brx-content > * { width: 100%; max-width: 1180px; margin-inline: auto; }
#brx-content > .clay-hero { max-width: 1240px; }

body h1 { font-size: clamp(36px, 4.4vw, 60px); }
body h2 { font-size: clamp(30px, 3.2vw, 44px); }
body h3 { font-size: clamp(20px, 1.6vw, 24px); }

/* section headings + intro text centred on the page */
.clay-section > .brxe-heading, .clay-section > .section-head { margin-inline: auto; }
.clay-section > .brxe-heading { max-width: 26ch; }
.prose { font-size: 19px; }

/* project rows: text block centred in its column */
.project { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: clamp(28px, 4vw, 56px); }
.project-text { align-items: center; text-align: center; justify-self: center; max-width: 520px; }
.project-text .tag { align-self: center; }
.project-text p, .project-text .brxe-text-basic, .project-text .brxe-text { font-size: 19px; }
.project .art { width: min(360px, 100%) !important; }

/* home – ingredients: 4 per row, bigger */
.tiles-4.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tiles-4 .tile { padding: 28px 24px; gap: 12px; }
.tiles-4 .tile h3 { font-size: clamp(20px, 1.7vw, 25px); }
.tiles-4 .tile p { font-size: 17px; line-height: 1.6; }
.tiles-4 .tile-num { width: 54px; height: 54px; font-size: 22px; }

/* home – sweet or savoury: big cards */
.choice.two { gap: 28px; }
.choice .card-row { padding: clamp(28px, 3.4vw, 44px); gap: 26px; align-items: center; }
.choice .art-sm { width: clamp(150px, 14vw, 210px) !important; height: auto; aspect-ratio: 1; }
.choice .project-text { align-items: flex-start; text-align: start; max-width: none; }
.choice h3 { font-size: clamp(24px, 2.2vw, 32px); }
.choice .project-text p { font-size: 18px; line-height: 1.65; }

/* about – résumé tiles */
.resume.tiles { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.resume .tile { padding: 28px; gap: 12px; }
.resume .tile h3 { font-size: clamp(21px, 1.8vw, 26px); }
.resume .tile p { font-size: 17px; color: var(--clay-ink-soft); }
.sign-img { align-self: center; width: 240px !important; }

/* services – process steps with pictures */
.steps { gap: 24px; }
.steps li { align-items: center; text-align: center; padding: 24px 22px; gap: 8px; }
.steps li img { width: min(190px, 80%); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(8px 12px 14px var(--clay-shadow)); margin-bottom: 4px; }
.brxe-text .steps li strong { font-size: 23px; }
.brxe-text .steps li span { font-size: 17px; }

/* card + quote headings sized for their boxes */
.card h2 { font-size: clamp(24px, 2.2vw, 32px); }
.card .brxe-text, .card p { font-size: 18px; line-height: 1.75; }
.tile p, .tile .brxe-text-basic { font-size: 17px; }
.quote { padding: clamp(26px, 3.5vw, 44px); gap: 32px; }
.quote h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; }
.quote img { width: 190px; }
.quote .project-text { align-items: flex-start; text-align: start; max-width: none; }

@media (max-width: 1100px) { .tiles-4.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
   v5 – headings fill the line; text blocks centred, text starts right
   ===================================================================== */
body h1, body h2, body h3, body h4 { text-wrap: pretty; }
.clay-section > .brxe-heading { max-width: none; }

/* hero: text column takes the room it needs, 30px from the picture */
.clay-hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 30px; }
.clay-hero .hero-text { max-width: none; width: 100%; }
.lead { max-width: 62ch; }

/* project rows: the block sits centred in its column, its text reads from the right */
.project { column-gap: 30px; }
.project-text { align-items: flex-start; text-align: start; justify-self: center; width: 100%; max-width: 620px; }
.project-text .tag { align-self: flex-start; }
.project-text .brxe-heading { width: 100%; }
.quote .project-text { max-width: none; }

/* coloured section cards keep their inner padding (beats the generic section reset) */
#brx-content > .project, #brx-content > .quote, #brx-content > .clay-form-card { padding: clamp(30px, 4.2vw, 60px); }
#brx-content > .project { padding-inline: clamp(30px, 5vw, 72px); }

/* icons at the top of tiles sit in the middle of the card */
.tile > .art-sm, .tile > img { align-self: center; margin-inline: auto; width: 140px !important; height: 140px; margin-bottom: 6px; }

/* accessibility: contrast, target size, form button */
.spine-role { color: #2c2346; opacity: .85; }
.clay-hero .eyebrow { color: #2f1c80; }
.legal-contact a { color: #3d2596; }
.spine-colophon a { display: inline-block; padding: 6px 4px; min-height: 24px; text-decoration: underline; text-underline-offset: 3px; }
.clay-form-card .brxe-form button[type="submit"], .brxe-form .bricks-button { font-size: 18px !important; min-height: 48px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.post-card h2 { font-size: clamp(20px, 1.6vw, 24px); }

/* every card grid: cards stretch to the same height, rows are equal */
.tiles, .two, .loop-grid, .steps, .resume, .tiles-4 { align-items: stretch !important; }
.tiles, .tiles-4, .resume, .steps, .loop-grid { grid-auto-rows: 1fr; }
.two > .card, .tiles > .tile, .tiles > .post-card, .loop-grid > .post-card { height: 100%; }
.choice .card-row { height: 100%; flex-direction: column !important; align-items: stretch; gap: 18px; }
.choice .card-row > .art-sm { align-self: center; width: clamp(150px, 13vw, 200px) !important; }
.choice .project-text { flex: 1; justify-content: flex-start; align-items: flex-start; text-align: start; max-width: none; }
.choice .project-text .brxe-button { margin-top: auto; white-space: nowrap; }
.brxe-button.btn { white-space: nowrap; }

/* testimonials: bento grid (desktop & tablet landscape) */
@media (min-width: 861px) {
  #brxe-hmtsgl.gallery-clay.bricks-layout-wrapper {
    display: grid !important; columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(120px, 10.5vw, 165px);
    gap: 18px; align-items: stretch;
  }
  #brxe-hmtsgl .bricks-layout-item { margin: 0; height: 100%; padding: 14px; display: flex; border-radius: var(--r-md); box-shadow: var(--clay-sm); background: var(--bento, #fff); }
  #brxe-hmtsgl .bricks-layout-item figure, #brxe-hmtsgl .bricks-layout-item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; }
  #brxe-hmtsgl .bricks-layout-item img, #brx-content #brxe-hmtsgl .image { width: 100% !important; height: 100% !important; object-fit: contain !important; border-radius: 12px; box-shadow: 0 6px 14px rgba(92, 64, 190, .14); }
  #brxe-hmtsgl .bricks-layout-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1;     --bento: var(--clay-sky); }
  #brxe-hmtsgl .bricks-layout-item:nth-child(7) { grid-column: 3 / 5; grid-row: 1;     --bento: var(--clay-pink); }
  #brxe-hmtsgl .bricks-layout-item:nth-child(2) { grid-column: 1 / 3; grid-row: 2 / 4; --bento: var(--clay-butter); }
  #brxe-hmtsgl .bricks-layout-item:nth-child(4) { grid-column: 3 / 5; grid-row: 2 / 4; --bento: var(--clay-mint); }
  #brxe-hmtsgl .bricks-layout-item:nth-child(5) { grid-column: 1 / 3; grid-row: 4 / 6; --bento: var(--clay-peach); }
  #brxe-hmtsgl .bricks-layout-item:nth-child(6) { grid-column: 3 / 5; grid-row: 4 / 6; --bento: var(--clay-sky); }
  #brxe-hmtsgl .bricks-layout-item:nth-child(8) { grid-column: 1 / 3; grid-row: 6 / 8; --bento: var(--clay-pink); }
  #brxe-hmtsgl .bricks-layout-item:nth-child(3) { grid-column: 3 / 5; grid-row: 6;     --bento: var(--clay-butter); }
  #brxe-hmtsgl::after {
    content: "★★★★★\A לקוחות מרוצים ממליצים";
    content: "★★★★★\A לקוחות מרוצים ממליצים" / "לקוחות מרוצים ממליצים";
    white-space: pre; grid-column: 3 / 5; grid-row: 7;
    display: flex; align-items: center; justify-content: center; text-align: center;
    border-radius: var(--r-md); box-shadow: var(--clay); background: var(--clay-lav);
    font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; color: var(--clay-ink);
  }
}

/* bottom page-turn links */
.page-turn { display: flex; justify-content: space-between; align-items: stretch; gap: 20px; width: 100%; max-width: 1180px; margin: 8px auto 0; padding-top: 28px; border-top: 2px dashed var(--clay-lav); }
.page-turn > span:empty { flex: 1; }
.page-turn-link { flex: 0 1 340px; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r-md); background: var(--clay-page); box-shadow: var(--clay); color: var(--clay-ink); text-decoration: none; transition: transform .2s ease; }
.page-turn-link:hover { transform: translateY(-3px); color: var(--clay-ink); }
.page-turn-link.next { flex-direction: row-reverse; text-align: end; background: var(--clay-lav); }
.page-turn-link.next .pt-text { align-items: flex-end; }
.pt-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #fff; box-shadow: var(--clay-sm); color: var(--clay-lav-deep); }
.pt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-label { font-size: 14px; font-weight: 700; color: var(--clay-ink-soft); }
.page-turn-link.next .pt-label { color: #3d2a86; }
.pt-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  body:has(> #brx-header) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "spine" "sheet" "foot"; grid-template-rows: auto; row-gap: 16px; }
  #brx-header { position: static; height: auto; }
  #brx-header > .spine, .spine { height: auto; overflow: visible; }
  body:has(> #brx-header) { padding: 12px; }
  #brx-content { min-height: 0; padding: 20px 18px; padding-top: 34px; background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(106, 76, 207, .07) 35px 36px); }
  #brx-content::before { top: -14px; bottom: auto; right: 24px; left: 24px; width: auto; height: 40px; background: radial-gradient(circle at 50% 70%, #d8cdf6 5px, transparent 6px) center top / 38px 40px repeat-x; }
  .spine-avatar { width: 72px !important; height: 72px; }
  .spine-nav { display: block; }
  .spine { padding: 14px; gap: 12px; }
  .spine-me { flex-direction: row; text-align: start; }
  .spine-avatar { width: 56px !important; height: 56px; border-width: 3px; }
  .spine-nav .brx-nav-nested-items { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .spine-nav .brx-nav-nested-items > li > a { white-space: nowrap; padding: 8px 12px; }
  .spine-nav .brx-nav-nested-items > li, .spine-nav .brx-nav-nested-items > li > a { width: auto; }
  .spine-nav .brx-nav-nested-items > li > a::after { display: none; }
  .gallery-clay.bricks-layout-wrapper, #brxe-hmtsgl.gallery-clay { columns: 1; }
  .project-art { max-width: 320px; }
  .tiles-4.tiles { grid-template-columns: minmax(0, 1fr); }
  .choice .card-row { flex-direction: column !important; text-align: center; }
  .choice .project-text { align-items: center; text-align: center; }
  .project { padding: 22px; }
  #brx-content > .project, #brx-content > .quote, #brx-content > .clay-form-card { padding: 24px 20px; }
  .page-turn { gap: 12px; }
  .page-turn-link { padding: 14px; gap: 10px; flex-basis: 50%; }
  .pt-arrow { width: 36px; height: 36px; font-size: 18px; }
  .spine-nav .brx-nav-nested-items > li > a::before, .spine-cta { display: none; }
  .clay-hero, .project, .quote { grid-template-columns: minmax(0, 1fr); }
  .project.flip .project-media { order: 0; }
  .clay-hero .art { width: min(220px, 70%) !important; }
}

/* =====================================================================
   Page turning – cross-document View Transitions.
   Spine on the right. forward: the current sheet turns over the spine.
   backward: the previous sheet comes back over the spine.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-group(root), ::view-transition-group(sheet), ::view-transition-group(spine) { animation-duration: 0s; }
::view-transition-group(spine) { z-index: 5; }
::view-transition-image-pair(sheet) { isolation: isolate; perspective: 2400px; perspective-origin: 100% 40%; }
::view-transition-old(sheet), ::view-transition-new(sheet) { mix-blend-mode: normal; }

html:active-view-transition-type(forward)::view-transition-old(sheet) { transform-origin: 100% 50%; z-index: 2; backface-visibility: hidden; animation: clay-turn-away 850ms cubic-bezier(.5,.05,.35,1) both; }
html:active-view-transition-type(forward)::view-transition-new(sheet) { z-index: 1; animation: clay-under 850ms ease-out both; }
html:active-view-transition-type(backward)::view-transition-new(sheet) { transform-origin: 100% 50%; z-index: 2; backface-visibility: hidden; animation: clay-turn-back 850ms cubic-bezier(.25,.1,.25,1) both; }
html:active-view-transition-type(backward)::view-transition-old(sheet) { z-index: 1; animation: clay-under-out 850ms ease-in both; }
html:active-view-transition-type(same)::view-transition-old(sheet),
html:active-view-transition-type(same)::view-transition-new(sheet) { animation-duration: 220ms; }

@keyframes clay-turn-away { 0% { transform: rotateY(0deg); filter: brightness(1); } 100% { transform: rotateY(95deg); filter: brightness(.72); } }
@keyframes clay-turn-back { 0% { transform: rotateY(95deg); filter: brightness(.72); } 100% { transform: rotateY(0deg); filter: brightness(1); } }
@keyframes clay-under { from { filter: brightness(.82); } to { filter: brightness(1); } }
@keyframes clay-under-out { from { filter: brightness(1); } to { filter: brightness(.82); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   גלישה מהבנייה הקודמת (22.10.2026)
   ב-Bricks ← Settings ← Custom CSS עדיין יושב גיליון מהאתר הישן. הוא
   נטען *אחרי* clay.css ולכן דרס כאן שני דברים:
     body        – גודל הגופן וגובה השורה
     :focus-visible – צבע טבעת הפוקוס
   אף עמוד באתר כבר לא משתמש במחלקות שבאותו גיליון, אז אפשר למחוק אותו
   שם לגמרי. ברגע שהוא נמחק – אפשר למחוק גם את הבלוק הזה.
   עד אז: שתי השורות הראשונות מחזירות את הערכים של מערכת העיצוב (סלקטור
   ספציפי יותר מנצח בלי קשר לסדר הטעינה), והשתיים האחרונות משמרות את
   רשתות הביטחון היחידות שהיה באותו גיליון ושאין כאן.
   ===================================================================== */
html body { font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
html :focus-visible { outline: 3px solid var(--clay-ring); outline-offset: 3px; border-radius: 12px; }
html { overflow-x: clip; }
img, video, iframe, table, pre { max-width: 100%; height: auto; }
