/* Mindful Therapy — shared styles for every page.
   The design language of regulate.clinic (rounded boxes, a faint moving dot field, Noto Sans Hebrew for text,
   Encode Sans Semi Expanded for the Latin wordmark), in Omri's palette (his second one, 2026-11-20):
   autumn #CE5500, terracotta #C5764D, midnight #3B5157, blue stone #93A3A7, shadows #CBC2B7, linen #F3EBE7.
   Mostly white, linen and blue stone; midnight for headings and text; terracotta and autumn only as small accents. */
:root {
  --autumn: #CE5500;
  --terracotta: #C5764D;
  --midnight: #3B5157;
  --blue-stone: #93A3A7;
  --shadows: #CBC2B7;
  --linen-c: #F3EBE7;
  --slate: var(--midnight);   /* headings, links, dark buttons */
  --night: #2C3D42;        /* text: midnight, a little darker */
  --white: #FFFFFF;        /* the page */
  --ink-2: #5F6A6D;        /* blue-grey: leads and small text */
  --body-ink: #47545A;     /* long text */
  --sage-deep: #6E8287;    /* blue stone, deepened to show as small marks on white */
  --rule: rgba(59, 81, 87, .18);
  --bar-ink: #2C3D42;
  --bar-h: calc(60px + var(--edge));
  --mark-h: 46px;
  --text: "Noto Sans Hebrew", system-ui, sans-serif;
  --wordmark: "Encode Sans Semi Expanded", sans-serif;
  --rose: var(--slate);     /* headings, marks, links */
  --hero-ink: var(--slate);
  --pink: var(--terracotta);   /* small warm accents: the role line, the hover on cards, the current page in the menu */
  --coral: var(--terracotta);
  --linen: var(--linen-c);  /* testimonials */
  --fill: #FAF7F5;          /* the palest linen, behind the longer texts */
  --line: #E9E3DE;          /* hairlines, a light shadows */
  --edge: clamp(16px, 2.6vw, 40px);
  --inset: clamp(24px, 7vw, 120px);
  --r: clamp(14px, 1.6vw, 22px);
  --r-sm: clamp(10px, 1vw, 14px);
  --col-gap: clamp(14px, 1.8vw, 26px);
  --content: 1120px;
  --m-side: max(calc(var(--edge) + var(--inset)), calc((100% - var(--content)) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
body { font-size-adjust: ex-height .49;
  margin: 0; background: var(--white); color: var(--night);
  font-family: var(--text); font-weight: 400; font-size: 1.0625rem; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--night); outline-offset: 3px; }
.skip { position: absolute; top: -200px; inset-inline-start: 16px; }
.skip:focus { top: 16px; background: var(--white); padding: 8px 12px; z-index: 40; }
.latin { direction: ltr; unicode-bidi: isolate; }
section[id] { scroll-margin-top: calc(var(--bar-h) + 8px); }

/* ---------- Header: white bar with the menu; the wordmark floats and stays on top as you scroll ---------- */
.top {
  position: relative; z-index: 20; background: var(--white); color: var(--bar-ink);
  display: flex; align-items: center; justify-content: flex-end; gap: 24px;
  min-height: var(--bar-h); padding: 0 var(--edge);
}
.top .nav { position: absolute; left: 50%; translate: -50% 0; }
.mark {
  position: fixed; z-index: 30; top: calc((var(--bar-h) - var(--mark-h)) / 2); right: 12px; height: var(--mark-h);
  display: flex; align-items: baseline; gap: 12px; padding-inline: 20px; align-content: center; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  border: 1px solid rgba(7, 11, 32, 0); border-radius: 14px; box-shadow: 0 1px 2px rgba(7, 11, 32, 0), 0 8px 24px rgba(7, 11, 32, 0);
  color: var(--bar-ink); text-decoration: none;
  transition: top .5s ease, background-color .5s ease, border-color .5s ease, box-shadow .5s ease, -webkit-backdrop-filter .5s ease, backdrop-filter .5s ease;
}
.scrolled .mark { top: 8px;
  background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-color: rgba(7, 11, 32, .06); box-shadow: 0 1px 2px rgba(7, 11, 32, .06), 0 8px 24px rgba(7, 11, 32, .1);
}
.mark .word { font-family: var(--wordmark); font-size-adjust: none; font-weight: 300; font-size: 1.375rem; direction: ltr; }
.mark .who { font-size: .9375rem; color: var(--ink-2); }
.mark::before { content: ""; position: absolute; inset: -4px -6px; z-index: -1; pointer-events: none; border-radius: 40px; background: radial-gradient(closest-side, rgba(7, 11, 32, .07), rgba(7, 11, 32, .03) 60%, transparent); filter: blur(6px); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); font-size: 1rem; }
.nav a, .nav-group > button { text-decoration: none; color: var(--bar-ink); }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] { text-decoration-color: var(--coral); }
/* "קורסים" opens a small card with the two course pages */
.nav-group { position: relative; }
.nav-group > button {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  font: inherit; cursor: pointer;
}
.nav-group > button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-group.current > button { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--coral); }
.sub {
  position: absolute; top: 100%; right: 50%; translate: 50% 0; z-index: 25; min-width: 220px; padding: 10px; margin-top: 10px;
  display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(7, 11, 32, .06), 0 12px 32px rgba(7, 11, 32, .1);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }   /* keeps the hover alive across the gap */
.sub a { padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.sub a:hover { background: var(--fill); text-decoration: none; }
.nav-group:hover .sub, .nav-group:focus-within .sub, .nav-group.open .sub { opacity: 1; visibility: visible; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border: 1px solid var(--night); background: none; color: var(--night); border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .9375rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--night); color: var(--white); }
.btn--fill { background: var(--slate); border-color: var(--slate); color: var(--white); }
.btn--fill:hover { background: var(--night); border-color: var(--night); }
.btn--pill {
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--white); color: var(--night); font-size: 1.0625rem; font-weight: 600;
  box-shadow: 0 1px 2px rgba(7, 11, 32, .08), 0 6px 18px rgba(7, 11, 32, .06);
}
.btn--pill:hover { background: var(--slate); color: var(--white); }
.top .btn--pill { min-height: 44px; padding: 0 22px; font-size: 1rem; }
.menu-btn { display: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Field boxes: the moving dot field (hero, page heads, contact — all alike) ---------- */
.band { position: relative; margin-inline: var(--edge); overflow: hidden; border-radius: var(--r);
  background: linear-gradient(180deg, #FCFAF9 0%, #F7F2EF 55%, #EFE8E3 100%); }   /* nearly white, settling into linen at the foot (a pale blue was tried; Omri preferred this) */
.field-glow {
  position: absolute; pointer-events: none;
  left: 50%; bottom: 0; width: 58%; height: 48%; translate: -50% 0;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .6) 30%, rgba(255, 255, 255, .18) 62%, rgba(255, 255, 255, 0) 100%);
  filter: blur(14px); transform-origin: 50% 100%;
}
.hero .field-glow, .page-head .field-glow, .contact .field-glow {
  width: 50%; height: 40%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, 0) 100%);
  filter: blur(10px);
}
canvas[data-field] { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Home hero */
.hero { padding-bottom: var(--edge); }
.hero .band { min-height: clamp(480px, calc(100vh - var(--bar-h) - var(--edge)), 780px); display: grid; align-items: center; }
/* the portrait on the right (the start, in Hebrew), the text beside it */
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: clamp(32px, 4.5vw, 72px); align-items: center;
  padding: clamp(28px, 4vh, 48px) max(var(--inset), calc((100% - var(--content)) / 2));
}
.hero-grid .hero-content { padding: 0; }
.hero-portrait {
  /* the whole photo, down to the chest: the frame has the photo's own proportions and is sized by its height */
  margin: 0; aspect-ratio: 1000 / 1233; height: min(700px, calc(100vh - var(--bar-h) - 80px)); max-width: 100%; justify-self: start;
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 1px 3px rgba(59, 81, 87, .08), 0 18px 48px rgba(59, 81, 87, .14);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-content, .page-head-content { --gap: clamp(10px, 1.1vw, 18px); position: relative; z-index: 1; padding: clamp(56px, 9vh, 104px) max(var(--inset), calc((100% - var(--content)) / 2)); }
.hero h1 { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap); font-weight: 300; font-size: clamp(1.75rem, 3.6vw, 3.6rem); line-height: 1.15; letter-spacing: -.01em; color: var(--ink-2); }
.hero h1 strong { color: var(--hero-ink); font-weight: 600; }
.hero h1 .line { color: var(--hero-ink); font-weight: 600; text-wrap: balance; }
.hero .role { margin: var(--gap) 0 0; color: var(--pink); font-weight: 500; font-size: clamp(1.2rem, 1.9vw, 1.75rem); line-height: 1.3; }
.hero-content > p.sub-line { margin: var(--gap) 0 clamp(32px, 3.6vw, 52px); color: var(--ink-2); font-weight: 300; font-size: clamp(1.3rem, 2.1vw, 2rem); line-height: 1.3; max-width: 34ch; text-wrap: balance; }

/* Inner pages: a shorter field box with the page title */
.page-head { padding-bottom: var(--edge); }
.page-head .band { min-height: clamp(260px, 36vh, 380px); display: grid; align-items: end; }
.page-head-content { padding-block: clamp(48px, 7vh, 88px) clamp(36px, 5vh, 60px); }
.page-head h1 { margin: 0; color: var(--hero-ink); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; max-width: 22ch; }
.page-head .lead { margin: var(--gap) 0 0; max-width: 40ch; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(36px, 4.5vw, 64px); }
.wrap { margin-inline: var(--m-side); }
h2 { margin: 0 0 .6em; color: #222; font-weight: 600; font-size: clamp(1.75rem, 2.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; }
h3 { margin: 1.6em 0 .5em; color: #222; font-weight: 600; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.3; }
.lead { color: var(--ink-2); font-weight: 300; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.5; }
.muted { color: var(--ink-2); }

/* Long text: a readable column, and on wide screens a narrower side column for panels */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 4vw, 64px); align-items: start; }
/* pages with nothing beside the text: one column, centred, with the page heading lined up over it */
.article--single { grid-template-columns: minmax(0, 46rem); justify-content: center; }
.page-head--single .page-head-content { width: min(100%, calc(46rem + 2 * var(--inset))); margin-inline: auto; padding-inline: var(--inset); }
.page-head--single h1 { max-width: none; }
/* a white button in a page's top box, at the bottom left (neurofeedback → regulate.clinic): regulate.clinic's logo and
   name in charcoal on a white pill, like the other white buttons; it lifts a little on hover. Hidden on phones. */
.head-link {
  position: absolute; z-index: 1; left: max(var(--inset), calc((100% - var(--content)) / 2)); bottom: clamp(36px, 5vh, 60px);
  display: flex; align-items: center; gap: 12px; padding: 12px 28px; direction: ltr;
  border-radius: 999px; background: var(--white); color: #191919; text-decoration: none;
  box-shadow: 0 1px 2px rgba(7, 11, 32, .08), 0 6px 18px rgba(7, 11, 32, .08);
  transition: translate .25s ease, box-shadow .25s ease;
}
.head-link img { width: 58px; height: auto; }
.head-link span { font-family: var(--wordmark); font-size-adjust: none; font-weight: 300; font-size: 1.25rem; line-height: 1.2; }
.head-link:hover { translate: 0 -2px; box-shadow: 0 2px 4px rgba(7, 11, 32, .08), 0 12px 30px rgba(7, 11, 32, .14); }
@media (prefers-reduced-motion: reduce) { .head-link { transition: none; } .head-link:hover { translate: none; } }
@media (max-width: 860px) { .head-link { display: none; } }
/* about-me: two columns, the text on the right; on the left a large portrait (the whole photo, fading in on load) and
   the trainings under it. (A small portrait in the top box was tried; Omri preferred this, 2026-11-21.) */
.article--about { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.article--about .side { gap: clamp(28px, 3vw, 40px); }
.article--about .portrait { animation: portrait-fade 1.4s ease .2s both; box-shadow: 0 1px 3px rgba(59, 81, 87, .08), 0 12px 32px rgba(59, 81, 87, .12); }
.trainings h2 { margin-top: 0; font-size: clamp(1.3rem, 1.7vw, 1.6rem); }
.trainings li { font-size: .9375rem; line-height: 1.6; }
@keyframes portrait-fade { from { opacity: 0; scale: .98; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .article--about .portrait { animation: none; } }
.prose { max-width: 46rem; color: var(--body-ink); text-wrap: pretty; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.5em; font-size: clamp(1.5rem, 2.1vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--rose); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 8px; }
.prose li { position: relative; padding-inline-start: 22px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .72em; width: 7px; height: 7px; background: var(--sage-deep); }   /* the small square, as in regulate.clinic, in sage blue */
.prose .refs p { direction: ltr; text-align: left; font-size: .9375rem; color: var(--ink-2); }
.prose .intro { color: var(--night); font-size: 1.125rem; }

.panel {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--fill);
  box-shadow: 0 1px 3px rgba(7, 11, 32, .05), 0 6px 28px rgba(7, 11, 32, .07);
  padding: clamp(22px, 2.4vw, 34px);
}
.panel > :last-child { margin-bottom: 0; }
.panel h2 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); margin-bottom: .5em; }
.side { display: grid; gap: var(--col-gap); }

/* A link to regulate.clinic (neurofeedback page, in the side column under the photos): a line of text, then
   regulate.clinic's WhatsApp link-preview picture, as wide as the photos, rounded, with a soft shadow; on hover it
   lifts a little and its shadow deepens. (A white pill with the logo was tried; Omri preferred the picture.) */
.site-link-box { margin-top: 40px; }   /* well apart from the photos above */
.site-link-box p { margin: 0 0 10px; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.site-link-pic {
  display: block; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(59, 81, 87, .06), 0 8px 26px rgba(59, 81, 87, .1);
  transition: translate .25s ease, box-shadow .25s ease;
}
.site-link-pic img { width: 100%; height: auto; }
.site-link-pic:hover { translate: 0 -2px; box-shadow: 0 2px 4px rgba(59, 81, 87, .08), 0 14px 36px rgba(59, 81, 87, .16); }
@media (prefers-reduced-motion: reduce) { .site-link-pic { transition: none; } .site-link-pic:hover { translate: none; } }
/* a link inside a sentence with no underline, in the dark blue (Regulate.clinic in the neurofeedback text) */
.prose a.plain-link { color: var(--midnight); text-decoration: none; font-weight: 500; }
.prose a.plain-link:hover { color: var(--autumn); }

/* The slideshow (neurofeedback, the same pictures as regulate.clinic): pictures that cross-fade every few seconds,
   with glass arrow buttons (in Hebrew order: "next" on the left) and dots below; the script runs it */
.slides { position: relative; margin: 1.4em 0 2em; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--fill); }
.slides .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); opacity: 0; transition: opacity 1.1s ease; }
.slides .slide.is-on { opacity: 1; }
.slide-btn {
  position: absolute; z-index: 2; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(7, 11, 32, .12);
  transition: background-color .3s ease;
}
.slide-btn:hover, .slide-btn:focus-visible { background: rgba(255, 255, 255, .85); }
.slide-btn svg { width: 18px; height: 18px; fill: none; stroke: #222; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slide-prev { right: 12px; }
.slide-next { left: 12px; }
.slide-dots { position: absolute; z-index: 2; bottom: 8px; left: 50%; translate: -50% 0; display: flex; }
.slide-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slide-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(7, 11, 32, .18); transition: width .4s ease, background-color .4s ease; }
.slide-dots button[aria-current="true"]::before { width: 18px; background: #fff; }
.slides:not(.multi) .slide-btn, .slides:not(.multi) .slide-dots { display: none; }
/* neurofeedback: the slideshow in the side column, beside the top of the text, smaller and a little squarer */
.article--side-top { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
.side .slides { margin: 0; aspect-ratio: 4 / 3; }
.side .slide-btn { width: 34px; height: 34px; }
.side .slide-btn svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .slides .slide { transition: none; } }

/* On-page contents (neurofeedback): a ruled list with the small squares */
.toc { margin: 0 0 1.6em; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); padding: 0; }
.prose .toc li::before { content: none; }
.prose .toc { gap: 0; }
.side > .btn { justify-self: start; }
.toc a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--night); text-decoration: none; }
.toc a::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--autumn); }
.toc a:hover { color: var(--rose); }

/* Testimonials */
.quotes { display: grid; gap: var(--col-gap); }
.quote { margin: 0; padding: clamp(22px, 2.4vw, 34px); border-radius: var(--r-sm); background: var(--linen); }
.quote blockquote { margin: 0 0 12px; color: #333; font-size: 1.0625rem; line-height: 1.7; }
.quote figcaption { color: var(--ink-2); font-size: .9375rem; font-weight: 600; }
.quote figcaption::before { content: "— "; }

/* Home: the intro with the portrait, the three topic cards, the clinic */
.intro-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.portrait { margin: 0; aspect-ratio: 1000 / 1233; border-radius: var(--r); overflow: hidden; }   /* the whole photo, down to the chest */
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; opacity: .92; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin: 0; padding: 0; list-style: none; }
/* the home page's three topic cards, in the cool colours: a pale blue-grey (from blue stone), midnight titles,
   cool grey text, a blue-stone "read more", and one warm touch, the small square in autumn. No terracotta here
   (Omri found the page too brown). On hover: a blue-stone frame, the title turns autumn, the card lifts a little. */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid #DFE6E9; border-radius: var(--r); text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #F8FAFB 0%, #EDF1F3 100%);
  box-shadow: 0 1px 3px rgba(59, 81, 87, .05), 0 6px 28px rgba(59, 81, 87, .08);
  transition: border-color .25s, box-shadow .25s, translate .25s;
}
.card::before { content: ""; width: 7px; height: 7px; background: var(--autumn); margin-bottom: 6px; }
.card h3 { margin: 0; color: var(--midnight); font-size: clamp(1.25rem, 1.6vw, 1.5rem); transition: color .25s; }
.card p { margin: 0; color: #5F6A6D; }
.card .more { margin-top: auto; padding-top: 14px; color: #6E8287; font-weight: 600; font-size: .9375rem; }
.card:hover { translate: 0 -2px; border-color: var(--blue-stone); box-shadow: 0 2px 4px rgba(59, 81, 87, .07), 0 12px 34px rgba(59, 81, 87, .13); }
.card:hover h3 { color: var(--autumn); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; translate: none; } }
.clinic { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--col-gap); align-items: stretch; }
.clinic-photo { margin: 0; min-height: 340px; border-radius: var(--r); overflow: hidden; }
.clinic-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .85; }
.clinic .panel { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.clinic .address { margin: 0; color: var(--body-ink); font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.5; }
.map { width: 100%; height: 240px; margin-top: 8px; border: 0; border-radius: var(--r-sm); filter: grayscale(.35); }

/* The statement under the hero, as regulate.clinic's "מטראומה לוויסות": large grey sentences, centred, each on
   its own lines; they rise in one after another, and a faint glint of light sweeps once across each, right to left
   with the reading, as it scrolls into view (the script adds .shine). Before and after, the words keep their grey. */
#intro { padding-block: clamp(48px, 6vw, 96px) clamp(24px, 2.5vw, 40px); }   /* less air below, before the cards */
/* Since 2026-11-24 the sentences read as short points (Omri): a column on the right, each sentence with a small square
   in blue stone, its "read more" link indented under it, even gaps between points. */
.statement { margin: 0 auto; max-width: 50rem; text-align: start; color: #5F6A6D; font-weight: 300; font-size: clamp(1.3rem, 1.95vw, 1.8rem); line-height: 1.55; }
.statement p { text-wrap: pretty; }
.statement > * { margin-block: 0; }
.statement > .line + .line, .statement > .more + .line { margin-top: 1.5em; }   /* the same gap between every two points */
/* each point opens with a small square in blue stone (removed once, then wanted back, 2026-11-24) */
.statement > .line { position: relative; padding-inline-start: 1.1em; }
.statement > .line::before { content: ""; position: absolute; inset-inline-start: .15em; top: .68em; width: .3em; height: .3em; background: var(--sage-deep); }
/* "read more" links under their points (to the therapy and neurofeedback pages): smaller, dark blue, no underline,
   ending in a thin chevron (drawn like the slideshow arrows) that points on in the reading direction and nudges
   forward on hover; autumn on hover. No light sweep, so they keep their colour. (A "←" was tried; Omri disliked it.) */
.statement > .more { margin-top: .35em; padding-inline-start: calc(1.1em / .7); font-size: .7em; font-weight: 500; }   /* indented like the text after the squares */
@media (min-width: 861px) { .statement > .more { text-align: end; } }   /* on a computer the links sit on the left, under the end of their text */
.statement > .more a { color: var(--midnight); text-decoration: none; }
.statement > .more a::after {   /* inline, so it always follows the last word, even when the link wraps */
  content: ""; display: inline-block; vertical-align: .12em; width: .42em; height: .42em; margin-inline-start: .55em;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg;   /* a "<": forward in Hebrew */
  transition: translate .25s ease;
}
.statement > .more a:hover, .statement > .more a:focus-visible { color: var(--autumn); }
.statement > .more a:hover::after, .statement > .more a:focus-visible::after { translate: -4px 0; }
@media (prefers-reduced-motion: reduce) { .statement > .more a::after { transition: none; } }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) {
    .statement .line.shine {
      background-image: linear-gradient(90deg, #5F6A6D 0%, #5F6A6D 42%, #8FA0A5 47%, #B4C2C6 50%, #8FA0A5 53%, #5F6A6D 58%, #5F6A6D 100%);   /* grey, with a soft blue-stone glint */
      background-size: 300% 100%;
      -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
      animation: lead-shine 1.9s cubic-bezier(.45, 0, .3, 1) both;
      animation-delay: var(--shine-delay, 0s);
    }
  }
}
@keyframes lead-shine { from { background-position: 0% 0; } to { background-position: 100% 0; } }   /* the glint enters at the right and leaves at the left */
.js .reveal { opacity: 0; translate: 0 10px; transition: opacity 1s ease, translate 1s ease; transition-delay: calc(var(--i, 0) * 180ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; translate: none; transition: none; } }

/* A single quote, large (trauma page) */
.big-quote { margin: 0; max-width: 46rem; }
.big-quote blockquote { margin: 0 0 16px; font-family: var(--wordmark); font-size-adjust: none; font-weight: 200; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.3; color: var(--hero-ink); }
.big-quote figcaption { font-family: var(--wordmark); font-size-adjust: none; font-weight: 300; color: var(--ink-2); }

/* ---------- Contact: closes the home page with the dot field ---------- */
.contact .band { padding: clamp(36px, 5vw, 80px) max(var(--inset), calc((100% - var(--content)) / 2 - var(--edge))); }
.contact .band > .cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); align-items: center; }
.contact .head p { margin: 0 0 18px; }
.form-card {
  display: grid; gap: 22px; padding: clamp(26px, 3vw, 44px); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(7, 11, 32, .06), 0 12px 32px rgba(7, 11, 32, .08);
}
label { display: block; font-size: .875rem; color: var(--ink-2); margin-bottom: 4px; }
input, textarea {
  width: 100%; font: inherit; color: var(--night); background: transparent; border-radius: 0;
  border: 0; border-bottom: 1px solid var(--rule); padding: 8px 0;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--night); }
.form-card .btn { justify-self: start; }
.form-status { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.form-status:empty { display: none; }
.form-card.sent > :not(.form-status) { display: none; }
.form-card.sent .form-status { font-size: 1.125rem; color: #222; }

/* ---------- Footer ---------- */
footer { color: var(--ink-2); font-size: .8125rem; }
.foot { margin-inline: var(--m-side); padding-block: 32px 44px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }   /* the name above the rights line, centred */
.foot .latin { font-family: var(--wordmark); font-size-adjust: none; font-weight: 300; font-size: 1rem; color: var(--bar-ink); }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 4px; }

/* The legal pages (accessibility, privacy): plain text, with the contact details in a framed box */
.legal h2 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); }
.contact-box { margin: 12px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--fill); }
.contact-box p { margin: 0 0 4px; }
.contact-box p:last-child { margin-bottom: 0; }

/* ---------- Narrower screens (the phone pass comes later; this only keeps things from breaking) ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  /* a plain hamburger icon: no white pill, no round background on tap (the pill's padding used to squeeze the icon away) */
  .top .menu-btn, .top .menu-btn:hover, .top .menu-btn:active, .top .menu-btn:focus { display: inline-flex; width: 44px; min-height: 44px; padding: 0; border-radius: 10px; background: none; box-shadow: none; color: var(--bar-ink); -webkit-tap-highlight-color: transparent; }
  .menu-btn svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--bar-ink); stroke-width: 1.8; stroke-linecap: round; }
  .top.open { flex-wrap: wrap; }
  .top.open .menu-btn { margin-block: calc((var(--bar-h) - 44px) / 2); }   /* stays level with the name when the menu opens */
  .top.open .nav { position: static; translate: none; display: flex; flex-direction: column; align-items: stretch; order: 3; width: 100%; gap: 0; padding-bottom: 12px; }
  .top.open .nav > a, .top.open .nav-group > button { display: flex; width: 100%; padding-block: 10px; font-size: 1.125rem; border-top: 1px solid var(--rule); }
  .top.open .sub { position: static; translate: none; opacity: 1; visibility: visible; margin: 0; padding: 0 16px 6px; border: 0; box-shadow: none; background: none; }
  /* in the open menu, "קורסים" starts closed and opens on a tap (the arrow turns) */
  .top.open .nav-group:not(.open) .sub { display: none; }
  .nav-group > button svg { transition: rotate .2s ease; }
  .nav-group.open > button svg { rotate: 180deg; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .top > .btn--pill:not(.menu-btn) { display: none; }
  .top { position: sticky; top: 0; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(7, 11, 32, .06); }
  .mark, .scrolled .mark { position: absolute; top: calc((var(--bar-h) - var(--mark-h)) / 2); background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding-inline: 8px; }
  .mark .who { display: none; }
  .intro-grid, .clinic, .contact .band > .cols, .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-inline: 22px; }
  .hero-portrait { width: 100%; max-width: 420px; height: auto; }
  .portrait { max-width: 420px; }
  .hero-content, .page-head-content { padding-inline: 22px; }
  /* phone order (Omri, 2026-11-21): in the hero the text comes first and the photo after it; the clinic's
     address and map come first and its photo after them; the statement under the hero sits on the right */
  .hero-portrait { order: 2; }
  .clinic-photo { order: 2; min-height: 0; aspect-ratio: 16 / 10; }
  .statement { text-align: start; }
}
/* neurofeedback, once the page is one column (tablet and phone): the photos and the Regulate.clinic link come right
   after the intro, before "איך זה עובד?" (the text column's two parts become items of the page grid) */
@media (max-width: 1100px) {
  .article--side-top > .prose { display: contents; }
  .article--side-top .nf-intro { order: 1; }
  .article--side-top > .side { order: 2; }
  .article--side-top .nf-rest { order: 3; }
  .article--side-top .nf-rest > h2:first-child { margin-top: 0; }
  .article--side-top .slides { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
