/* תובל תחזוקה · "שקט נפשי": מסך אחד, רעיון אחד, וקו שקט. design.md הוא המקור. */
:root {
  --bg: #F4F2EE;
  --surface: #FBFAF8;
  --ink: #2E2A24;
  --muted: #6A5C45;
  --primary: #73644B;
  --primary-ink: #FFFFFF;
  --soft: #E7E2DA;
  --accent: #9A8B76;
  --line: #B5A899;
  --focus: #2E2A24;
  --radius: 999px;
  --font-head: "Varela Round", system-ui, sans-serif;
  --font-body: "Lunasima", system-ui, sans-serif;
  --gutter: 20px;
  --calm-ease: cubic-bezier(.22, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.75; overflow-x: clip; }
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; }
h1 { font-size: 40px; line-height: 1.15; }
h2 { font-size: 26px; line-height: 1.25; margin-bottom: 1.4em; }
p + p { margin-top: 1.4em; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }
.demo-banner { min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 8px var(--gutter); background: var(--soft); color: var(--ink); font-size: 14px; line-height: 1.4; text-align: center; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header: no background ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.top__inner { max-width: 1180px; margin-inline: auto; padding: 8px var(--gutter); display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { font-family: var(--font-head); font-size: 18px; color: var(--ink); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.top__wa { min-height: 44px; display: flex; align-items: center; color: var(--primary); }

/* ---------- One screen, one idea ---------- */
.screen { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; padding-block: 64px; }
.say { position: relative; max-width: 26ch; }
.say--wide { max-width: 32ch; }
/* The calm line: leaves the end of the text and runs to the left edge of the screen. */
.calm { position: absolute; bottom: -32px; inset-inline-start: 45%; width: 100vw; height: 1.5px; background: var(--accent); transform-origin: right; }
.calm--last::before { content: ""; position: absolute; left: 0; top: -2.25px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.label { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--muted); margin-bottom: 1em; }
.huge { margin: 0; }
.huge p { font-family: var(--font-head); font-size: 28px; line-height: 1.4; }
blockquote footer { font-size: 15px; font-weight: 700; color: var(--muted); margin-top: .8em; }

/* ---------- Hero and the scribble ---------- */
.hero { min-height: 86svh; position: relative; }
.eyebrow { font-weight: 700; font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.scribble { width: 100vw; height: 90px; margin-block: 20px; overflow: visible; fill: none; stroke-linecap: round; }
.scribble path { stroke: #73644B; stroke-width: 1.5px; opacity: .8; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; display: none; }
.scribble__calm { stroke: var(--accent); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.hero__dot { position: absolute; right: 0; width: 6px; height: 6px; margin-top: -68px; border-radius: 50%; background: var(--accent); }
.hero__lead { color: var(--muted); max-width: 32ch; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.rating { margin-top: 18px; font-size: 15px; color: var(--muted); }
.k-link { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }

/* ---------- Services: a quiet list ---------- */
.quiet { list-style: none; margin: 0; padding: 0; }
.quiet li { position: relative; padding-block: 18px; }
.quiet li::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: right; }
.quiet h3 { font-size: 24px; line-height: 1.3; }
.quiet p { color: var(--muted); margin-top: 4px; }
.lines { display: grid; gap: 2em; }
.lines blockquote { margin: 0; }

/* ---------- Works ---------- */
.works h2 { margin-bottom: 40px; }
.works__grid { display: grid; gap: 28px; }
.works figure { margin: 0; }
.works__a { width: 72%; justify-self: end; }
.works__b { width: 56%; justify-self: start; }
.works figure > div { border-radius: 4px; overflow: hidden; }
.works img { width: 100%; }
.works figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* ---------- Ten years ---------- */
.ten__n { display: inline-block; font-size: 96px; line-height: 1; vertical-align: -.25em; color: var(--primary); }

/* ---------- More ---------- */
.gabi { font-family: var(--font-head); font-size: 22px; line-height: 1.4; margin-bottom: 2em; }
.gabi span { display: block; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--muted); }
.more { display: grid; gap: 64px; }
.more blockquote { margin: 0; }
.more__g { margin-top: 2em; font-size: 15px; color: var(--muted); }

.end__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.foot { padding: 32px 0 28px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.foot__inner { display: grid; gap: 4px; }
.foot a { display: inline-block; min-height: 44px; padding-block: 11px; }
.dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--soft); transition: transform 400ms var(--calm-ease), opacity 400ms var(--calm-ease); }
.dock > * { flex: 1 1 0; }
.dock .k-btn--outline { --k-outline-ink: var(--ink); }
.dock.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
body { padding-bottom: 76px; }

/* ---------- Motion: slow on purpose ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.intro .scribble path { display: inline; animation: settle 1100ms var(--calm-ease) both, vanish 300ms ease 2150ms both; }
  html.intro .scribble path:nth-child(1) { --t: translate(-12px, -18px) rotate(-9deg); animation-delay: 600ms, 2150ms; }
  html.intro .scribble path:nth-child(2) { --t: translate(20px, 10px) rotate(12deg); animation-delay: 690ms, 2150ms; }
  html.intro .scribble path:nth-child(3) { --t: translate(-30px, 6px) rotate(-4deg); animation-delay: 780ms, 2150ms; }
  html.intro .scribble path:nth-child(4) { --t: translate(8px, -24px) rotate(7deg); animation-delay: 870ms, 2150ms; }
  html.intro .scribble path:nth-child(5) { --t: translate(26px, 16px) rotate(-12deg); animation-delay: 960ms, 2150ms; }
  html.intro .scribble path:nth-child(6) { --t: translate(-6px, 22px) rotate(3deg); animation-delay: 1050ms, 2150ms; }
  html.intro .scribble__calm { animation: appear 300ms ease 2150ms both; }
  html.intro .hero__dot { animation: dot 300ms var(--calm-ease) 2450ms both; }
  .k-motion .calm { transform: scaleX(0); transition: transform 1400ms var(--k-ease-out) 300ms; }
  .k-motion .is-in .calm, .k-motion .is-in.say > .calm { transform: none; }
  .k-motion .quiet li::after { transform: scaleX(0); transition: transform 900ms var(--k-ease-out) 200ms; }
  .k-motion .quiet li.is-in::after { transform: none; }
}
@keyframes settle { from { transform: var(--t); } to { transform: scaleY(.02); } }
@keyframes vanish { from { opacity: .8; } to { opacity: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes dot { from { transform: scale(0); } to { transform: none; } }

/* ---------- Subpages ---------- */
.subpage__main { max-width: 720px; margin-inline: auto; padding: 56px var(--gutter) 72px; }
.subpage__main h1 { margin-bottom: 20px; }
.subpage__main h2 { font-size: 24px; margin: 32px 0 12px; }
.subpage__main p, .subpage__main li { margin-bottom: 10px; }
.subpage__eyebrow { color: var(--muted); font-weight: 700; }
.subpage__back { display: inline-block; min-height: 44px; padding-block: 10px; }
body.subpage { padding-bottom: 0; }

/* ================= Desktop ================= */
@media (min-width: 1000px) {
  :root { --gutter: 32px; }
  body { font-size: 19px; }
  h1 { font-size: 72px; }
  h2 { font-size: 40px; }
  .screen { min-height: 80svh; padding-block: 96px; }
  .say { max-width: calc(5 / 12 * 1180px); }
  .say--wide { max-width: calc(7 / 12 * 1180px); }
  .calm { bottom: .6em; inset-inline-start: calc(100% + 16px); }
  .huge p { font-size: 44px; }
  .quiet h3 { font-size: 30px; }
  .hero .wrap > * { max-width: calc(5 / 12 * 1180px); }
  .hero__actions { flex-direction: row; align-items: center; gap: 24px; }
  .end__actions { flex-direction: row; align-items: center; gap: 24px; }
  .works__grid { grid-template-columns: 400px 320px; justify-content: start; gap: 120px; align-items: start; }
  .works__a, .works__b { width: auto; justify-self: auto; }
  .works__b { margin-top: 180px; }
  .ten__n { font-size: 160px; }
  .gabi { font-size: 28px; }
  .more { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .foot__inner { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .dock { display: none; }
  body { padding-bottom: 0; }
}
