/* טל אמיתי-לביא: "החוט האדום".
   שלושה עולמות, חוט אחד שעובר ביניהם: הגלריה (שחור ולבן), ה-AUM (חום וזהב), הביודנסה (שמיים ועלים).
   הדף עצמו שקט, והצבע בא מהעולמות. */
:root {
  --paper: #F4F5F1;
  --ink: #0E1114;
  --ink-2: #1B2025;
  --muted: #4A5159;
  --thread: #D4202B;
  --thread-text: #B3151F;
  --night: #3A170C;
  --gold: #F2B01E;
  --cream: #FFF6DC;
  --leaf: #173A2A;
  --leaf-2: #2F6B3A;
  --sky: #BFE2F0;
  --font: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Amatic SC", "Assistant", sans-serif;
  --hand: "Gveret Levin", "Assistant", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 19px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; line-height: .95; color: inherit; letter-spacing: .01em; }
p { margin: 0 0 1rem; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; position: relative; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.lead { font-size: 1.28rem; line-height: 1.6; }

/* פתיחה */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(4.6rem, 18vw, 9.4rem); }
.hero h1 span { display: block; white-space: nowrap; }
.hero-lead { font-family: var(--hand); font-weight: 400; font-size: clamp(1.45rem, 4.4vw, 2.05rem); line-height: 1.45; margin: 1.2rem 0 1.4rem; max-width: 26ch; }
.hero-bio { max-width: 34rem; color: #2A3036; }
.facts { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.facts li { position: relative; padding-inline-start: 18px; font-weight: 700; font-size: .98rem; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--thread); }
.portrait { margin: 0; position: relative; width: min(420px, 100%); margin-inline: auto; }
.portrait::before { content: ""; position: absolute; inset: 14px -10px -14px 10px; background: var(--ink); border-radius: 6px; z-index: 0; }
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 6px; }

/* החוט והפתחים */
.thread { position: relative; height: 22px; margin: 8px 0 -11px; z-index: 3; pointer-events: none; }
.thread::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 10px; height: 2px; background: var(--thread); transform-origin: 100% 50%; animation: draw 1.6s var(--ease) .4s both; }
.thread i { position: absolute; inset-block-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--thread); box-shadow: 0 0 0 5px var(--paper); transform: scale(0); animation: knot .5s var(--ease) both; }
.thread i:nth-child(1) { inset-inline-start: calc(16.66% - 9px); animation-delay: 1.1s; }
.thread i:nth-child(2) { inset-inline-start: calc(50% - 9px); animation-delay: 1.5s; }
.thread i:nth-child(3) { inset-inline-start: calc(83.33% - 9px); animation-delay: 1.9s; }
.doors { display: grid; gap: 22px; margin-top: 0; }
.door-col { display: grid; gap: 12px; align-content: start; }
.door-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 4px; border-bottom: 2px solid var(--ink); font-weight: 700; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.door-link svg { width: 22px; height: 22px; flex: none; }
.door-link:hover { color: var(--thread-text); border-color: var(--thread); }
.door { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; color: #fff; text-decoration: none; isolation: isolate; background: var(--ink-2); }
.door img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 14, .05) 30%, rgba(10, 12, 14, .82) 100%); }
.door:hover img { transform: scale(1.05); }
.door-body { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 22px 22px 24px; display: grid; gap: 4px; }
.door-body b { font-family: var(--display); font-weight: 700; font-size: 2.8rem; line-height: .95; }
.door-body span { font-size: 1rem; line-height: 1.45; max-width: 24rem; }
.door--aum img { object-position: 50% 40%; }
.door--bio img { object-position: 50% 30%; }

/* סקשנים */
.sec { padding: 96px 0; position: relative; }
.sec h2 { font-size: clamp(3.2rem, 9vw, 5.4rem); margin-bottom: 1.2rem; }
.sec h2::before { content: ""; display: block; width: 64px; height: 2px; background: var(--thread); margin-bottom: 22px; }
.sec--contact h2::before { margin-inline: auto; }

/* אמנות: גלריה */
.sec--art { background: var(--ink); color: #E8EBEE; }
.art-head { display: grid; gap: 24px; margin-bottom: 48px; }
.art-copy p { color: #C8CED4; max-width: 38rem; }
.gallery { display: grid; gap: 28px 18px; grid-template-columns: 1fr; }
.work { margin: 0; }
.work img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.work figcaption { margin-top: 10px; font-size: .95rem; line-height: 1.5; color: #AEB5BC; }
.work figcaption b { color: #fff; font-family: var(--hand); font-weight: 400; font-size: 1.25rem; margin-inline-end: 8px; }
.cv { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.cv li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); color: #C8CED4; line-height: 1.5; }
.cv b { display: block; margin-bottom: 2px; color: #fff; font-family: var(--hand); font-weight: 400; font-size: 1.25rem; }

/* AUM */
.sec--aum { background: var(--night); color: var(--cream); }
.aum-grid { display: grid; gap: 40px; align-items: start; }
.aum-text .lead { color: #FFE9B8; }
.aum-text p { color: #F1DFC0; max-width: 38rem; }
.aum-photo { margin: 0; }
.aum-photo img { width: 100%; border-radius: 6px; aspect-ratio: 6 / 5; object-fit: cover; }
.steps { list-style: none; counter-reset: s; margin: 1.6rem 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { counter-increment: s; padding: 6px 14px; border: 1px solid rgba(242, 176, 30, .55); border-radius: 999px; font-family: var(--hand); font-size: 1.05rem; color: var(--gold); }

/* ביודנסה */
.sec--bio { background: linear-gradient(180deg, #D3ECF5 0%, #E7F3E0 60%, #CFE6C5 100%); color: var(--leaf); }
.bio-grid { display: grid; gap: 40px; align-items: center; }
.bio-photo { margin: 0; }
.bio-photo img { width: 100%; border-radius: 6px; aspect-ratio: 1; object-fit: cover; object-position: 50% 35%; }
.bio-text p { color: #1D3A2B; max-width: 36rem; }
.details { margin: 1.4rem 0; display: grid; border-top: 1px solid rgba(23, 58, 42, .3); max-width: 30rem; }
.details div { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(23, 58, 42, .3); }
.details dt { flex: 0 0 5.5rem; font-family: var(--hand); font-weight: 400; font-size: 1.15rem; color: var(--thread-text); }
.details dd { margin: 0; font-weight: 700; }

/* קשר */
.sec--contact { background: var(--paper); padding-bottom: 110px; }

/* כפתורים */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cta-row--center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font: 700 1.02rem/1.2 var(--font); text-decoration: none; transition: background .2s ease, color .2s ease, box-shadow .2s ease; border: 2px solid transparent; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn .wa { fill: currentColor; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--thread); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--ghost .ig { fill: currentColor; }
.btn--gold { background: var(--gold); color: #3A170C; }
.btn--gold:hover { background: #FFCB4D; }
.btn--leaf { background: var(--leaf); color: #fff; }
.btn--leaf:hover { background: var(--leaf-2); }
.btn--wa { background: var(--ink); color: #fff; }
.btn--wa:hover { background: #1F7A4D; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

.foot { padding: 24px 20px 96px; text-align: center; background: var(--ink); color: #AEB5BC; font-size: .95rem; }
.foot p { margin: 0; }

@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes knot { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero h1, .hero-lead, .hero-bio, .facts, .portrait { animation: rise .9s var(--ease) both; }
.hero-lead { animation-delay: .12s; } .hero-bio { animation-delay: .24s; } .facts { animation-delay: .36s; } .portrait { animation-delay: .1s; }
.door-col { animation: rise .9s var(--ease) both; }
.door-col:nth-child(1) { animation-delay: 1s; } .door-col:nth-child(2) { animation-delay: 1.3s; } .door-col:nth-child(3) { animation-delay: 1.6s; }

@media (min-width: 900px) {
  .hero { padding: 80px 0 90px; }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 72px; margin-bottom: 70px; }
  .doors { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .door { aspect-ratio: 3 / 4; }
  .art-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .gallery { grid-template-columns: repeat(6, 1fr); gap: 40px 22px; }
  .work { grid-column: span 3; }
  .work--wide, .work--wide-2 { grid-column: span 6; }
  .work--wide img, .work--wide-2 img { aspect-ratio: 21 / 9; }
  .aum-grid { grid-template-columns: 6fr 5fr; gap: 80px; }
  .aum-photo { position: sticky; inset-block-start: 100px; }
  .bio-grid { grid-template-columns: 5fr 6fr; gap: 80px; }
  .cv { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .cv li { display: grid; grid-template-columns: 6rem 1fr; gap: 12px; align-items: baseline; }
  .cv b { margin: 0; }
}
@media (max-width: 899px) {
  .thread { display: none; }
  .doors { margin-top: 28px; }
  .hero { padding-top: 0; }
  .hero-grid { gap: 0; }
  .portrait { order: -1; width: calc(100% + 40px); margin-inline: -20px; }
  .portrait::before { display: none; }
  .portrait img { aspect-ratio: 4 / 5; max-height: 70svh; border-radius: 0; object-position: 50% 22%; }
  .portrait::after { content: ""; position: absolute; z-index: 2; inset: auto 0 0 0; height: 52%; background: linear-gradient(180deg, rgba(14, 17, 20, 0), rgba(14, 17, 20, .86)); pointer-events: none; }
  .hero h1 { position: relative; z-index: 3; margin-top: -2em; color: #fff; padding-bottom: 6px; }
  .hero-lead { margin-top: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .thread i { transform: none; }
}

/* כפתור פנייה צף למטה */
.cta-float { position: fixed; z-index: 30; inset-inline: 0; inset-block-end: max(18px, env(safe-area-inset-bottom)); margin-inline: auto; width: max-content; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 30px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 1.05rem/1.2 var(--font); text-decoration: none; box-shadow: 0 16px 34px -12px rgba(14, 17, 20, .55), 0 0 0 3px rgba(255, 255, 255, .85); transition: opacity .3s ease, transform .3s var(--ease), background .2s ease; }
.cta-float .wa { width: 22px; height: 22px; fill: currentColor; }
.cta-float:hover { background: #1F7A4D; }
.cta-float.is-hidden { opacity: 0; transform: translateY(24px); pointer-events: none; }
