/* ═══════════════════════════════════════════════
   יונתן — סטודיו לעיצוב ובניית אתרים · liquid dark
   רפרנס: hero כהה עם בלוב זכוכית, כרטיסי glass, CTA גלולה לבן
   RTL-safe: logical properties only
   ═══════════════════════════════════════════════ */

:root {
  --void:   #08070C;                 /* page background — near-black, purple hint */
  --space:  #0E0C16;                 /* raised surface */
  --halo:   #17141F;                 /* section alt surface */
  --star:   #F4F2F8;                 /* primary text */
  --dim:    #A29BB2;                 /* secondary text (≥4.5:1 on void) */
  --gold:   #E7BA74;                 /* liquid gold rim */
  --gold-deep: #B4813F;
  --violet: #6D5BD0;                 /* cool refraction accent */
  --glass:      rgba(255,255,255,.055);
  --glass-hot:  rgba(255,255,255,.09);
  --glass-line: rgba(255,255,255,.14);
  --pill-ink: #0B0A10;

  --font: "Heebo", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--star);
  background: var(--void);
  overflow-x: clip;
}

/* starfield — two repeating radial layers, no JS */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1px 1px at 130px 90px, rgba(255,255,255,.32), transparent 100%),
    radial-gradient(1.5px 1.5px at 230px 190px, rgba(231,186,116,.4), transparent 100%),
    radial-gradient(1px 1px at 310px 120px, rgba(255,255,255,.22), transparent 100%);
  background-size: 380px 320px;
  opacity: .5;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; cursor: pointer; }

::selection { background: var(--gold); color: var(--void); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* shared WebGL canvas (work-gallery planes) */
#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ── pills ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  padding: .72rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, border-color .25s, box-shadow .25s;
}
.pill:active { transform: scale(.97); }

.pill--light {
  background: #fff; color: var(--pill-ink);
  box-shadow: 0 4px 18px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08), 0 0 34px rgba(231,186,116,.14);
}
.pill--light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 44px rgba(231,186,116,.28); }

.pill--ghost {
  background: var(--glass); color: var(--star);
  border-color: var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pill--ghost:hover { background: var(--glass-hot); border-color: rgba(255,255,255,.26); transform: translateY(-2px); }

/* ── Loader ── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--void);
}
.loader__word {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700; color: var(--star);
}
.loader__word::after { content: "."; color: var(--gold); }

/* ── Nav ── */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background-color .35s, backdrop-filter .35s, padding .35s, box-shadow .35s;
}
.nav.is-scrolled {
  padding-block: .65rem;
  background: rgba(10, 9, 15, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}
.nav__logo { font-weight: 700; font-size: 1.25rem; }
.nav__logo-dot { color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.2rem); }
.nav__links a:not(.nav__cta) {
  position: relative;
  font-size: .95rem; font-weight: 500; color: var(--dim);
  padding-block: .5rem;
  transition: color .25s;
}
.nav__links a:not(.nav__cta):hover { color: var(--star); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; inset-block-end: .2rem; inset-inline-start: 0;
  inline-size: 0; block-size: 1px; background: var(--gold);
  transition: inline-size .3s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover::after { inline-size: 100%; }
.nav__cta {
  min-height: 40px;
  display: inline-flex; align-items: center;
  padding: .45rem 1.2rem; border-radius: 999px;
  background: #fff; color: var(--pill-ink);
  font-size: .92rem; font-weight: 600;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(231,186,116,.3); }

@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-block-size: 100dvh;
  display: grid; place-items: center;
  overflow: clip;
  isolation: isolate;
  padding: calc(4rem + 8vh) var(--gutter) 6rem;
  /* static aurora — the fallback when the blob doesn't render, and the glow behind it when it does */
  background:
    radial-gradient(58% 44% at 50% 108%, rgba(231,186,116,.20), transparent 70%),
    radial-gradient(44% 34% at 42% 112%, rgba(109,91,208,.16), transparent 70%),
    radial-gradient(70% 60% at 50% 0%, rgba(23,20,31,.6), transparent 100%);
}
#blob {
  position: absolute; inset: 0;
  inline-size: 100%; block-size: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  max-inline-size: 54rem;
  margin-block-start: -6vh;
}
.hero__kicker {
  font-size: .82rem; font-weight: 500;
  letter-spacing: .12em;
  color: var(--dim);
  margin-block-end: 1.4rem;
}
.hero__title {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 700;
  line-height: 1.12;               /* Hebrew display: no negative tracking, roomy leading */
  letter-spacing: 0;
  margin-block-end: 1.4rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__sub {
  max-inline-size: 34rem;
  margin-inline: auto;
  color: var(--dim);
  font-size: 1.05rem;
  margin-block-end: 2.2rem;
}
.hero__cta { font-size: 1.05rem; padding-inline: 2.1rem; }

/* floating glass stat cards */
.glass-card {
  position: absolute; z-index: 2;
  display: block;
  min-inline-size: 12.5rem;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transition: transform .3s var(--ease-out), background-color .3s, border-color .3s;
}
a.glass-card:hover { transform: translateY(-4px); background: var(--glass-hot); border-color: rgba(255,255,255,.24); }
.glass-card__label {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .75rem; font-weight: 500; color: var(--dim);
  margin-block-end: .45rem;
}
.glass-card__arrow {
  display: grid; place-items: center;
  inline-size: 26px; block-size: 26px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  font-size: .8rem; color: var(--star);
}
.glass-card__value { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.glass-card__value--big { font-size: 1.9rem; font-weight: 700; }
.glass-card__rule {
  inline-size: 3.2rem; block-size: 2px; margin-block-start: .5rem;
  background: linear-gradient(90deg, var(--gold), transparent);
  border: 0;
}
.glass-card--a { inset-inline-start: clamp(1rem, 9vw, 12rem); inset-block-end: 22%; }
.glass-card--b { inset-inline-end: clamp(1rem, 8vw, 10rem); inset-block-end: 14%; }

@media (max-width: 900px) {
  .glass-card { position: static; min-inline-size: 0; flex: 1; }
  .hero__cards {
    position: relative; z-index: 2;
    display: flex; gap: .8rem;
    inline-size: min(100%, 30rem);
    margin-block-start: 2.6rem;
  }
  .hero { grid-template-rows: 1fr auto; align-items: end; }
  .hero__content { align-self: center; }
}
@media (min-width: 901px) {
  .hero__cards { display: contents; }
}

.hero__scrollcue {
  position: absolute; z-index: 2;
  inset-block-end: 1.6rem; inset-inline-start: 50%;
  translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .75rem; letter-spacing: .18em; color: var(--dim);
}
.hero__scrollcue i {
  inline-size: 1px; block-size: 2.4rem;
  background: linear-gradient(var(--gold), transparent);
}
@media (max-width: 900px) { .hero__scrollcue { display: none; } }

/* ── Marquee ── */
.marquee {
  overflow: clip;
  padding-block: 1.1rem;
  border-block: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.015);
  position: relative; z-index: 2;
}
.marquee__track {
  white-space: nowrap;
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  font-weight: 500;
  color: var(--dim);
  will-change: transform;
}
.marquee__track span { padding-inline-end: .5rem; }

/* ── Section heads ── */
.section-head { padding: clamp(4rem, 9vh, 7rem) var(--gutter) 2.5rem; }
.section-head__label {
  font-size: .78rem; font-weight: 500; letter-spacing: .14em;
  color: var(--gold);
  margin-block-end: 1rem;
}
.section-head__label--center { text-align: center; }
.section-head__title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700; line-height: 1.18;
}
.section-head__title em { font-style: normal; color: var(--gold); }

/* ── Work ── */
.work { position: relative; z-index: 2; }
.work__grid {
  display: grid; gap: clamp(1.2rem, 3vw, 2.4rem);
  grid-template-columns: repeat(2, 1fr);
  padding: 0 var(--gutter) clamp(3rem, 8vh, 6rem);
}
.work__item { position: relative; }
.work__item--wide { grid-column: 1 / -1; }
.reveal-mask { clip-path: inset(0 0 100% 0); }
.work__imgwrap {
  overflow: clip; border-radius: 18px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--space);
}
.work__item--wide .work__imgwrap { aspect-ratio: 21 / 9; }
.work__imgwrap img {
  inline-size: 100%; block-size: 118%;
  object-fit: cover; object-position: top center;
  will-change: transform;
}
.work__link { display: block; }
.work__item figcaption {
  display: flex; align-items: baseline; gap: .6rem;
  padding-block-start: .8rem;
  font-size: .9rem; color: var(--dim);
}
.work__item figcaption span { color: var(--gold); font-weight: 600; font-size: .78rem; }
.work__live { color: var(--star); font-weight: 500; border-block-end: 1px solid var(--gold); transition: color .25s; margin-inline-start: auto; }
.work__live:hover { color: var(--gold); }

@media (max-width: 760px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__imgwrap, .work__item--wide .work__imgwrap { aspect-ratio: 4 / 3; }
}

/* ── Tracks (מסלולים) ── */
.tracks { position: relative; z-index: 2; }
.tracks__grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 var(--gutter) clamp(3rem, 8vh, 6rem);
}
.track {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.8rem 1.6rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .3s var(--ease-out), border-color .3s, background-color .3s, box-shadow .3s;
}
.track:hover {
  transform: translateY(-6px);
  background: var(--glass-hot);
  border-color: rgba(231,186,116,.4);
  box-shadow: 0 24px 50px rgba(0,0,0,.4), 0 0 40px rgba(231,186,116,.08);
}
.track__num { font-size: .78rem; font-weight: 600; color: var(--gold); letter-spacing: .1em; }
.track h3 { font-size: 1.45rem; font-weight: 700; }
.track > p { color: var(--dim); font-size: .98rem; }
.track ul { list-style: none; display: grid; gap: .55rem; margin-block: .2rem auto; padding-block-end: 1.2rem; }
.track li {
  position: relative;
  padding-inline-start: 1.4rem;
  font-size: .95rem; color: var(--star);
}
.track li::before {
  content: ""; position: absolute;
  inset-inline-start: 0; inset-block-start: .62em;
  inline-size: .55rem; block-size: 2px;
  background: var(--gold);
}
.track .pill { align-self: start; }

@media (max-width: 900px) {
  .tracks__grid { grid-template-columns: 1fr; }
  .track .pill { align-self: stretch; }
}

/* ── Process ── */
.quotes { padding-block-end: clamp(3rem, 8vh, 6rem); position: relative; z-index: 2; }
.quotes .section-head__label { padding-block-start: clamp(4rem, 9vh, 7rem); }
.quotes__list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  padding: 2rem var(--gutter) 0;
}
.quote {
  position: relative;
  padding: 2rem 1.6rem 1.7rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}
.quote__step {
  position: absolute;
  inset-block-start: -1.1rem; inset-inline-start: 1.4rem;
  display: grid; place-items: center;
  inline-size: 2.2rem; block-size: 2.2rem;
  border-radius: 50%;
  background: var(--gold); color: var(--void);
  font-weight: 700;
  box-shadow: 0 0 24px rgba(231,186,116,.35);
}
.quote blockquote { font-size: 1.02rem; font-weight: 500; line-height: 1.6; margin-block-end: .9rem; }
.quote figcaption { font-size: .85rem; color: var(--dim); }

@media (max-width: 900px) {
  .quotes__list { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ── About ── */
.about { position: relative; z-index: 2; }
.about__inner { padding: 0 var(--gutter) clamp(3rem, 8vh, 6rem); }
.about__text { max-inline-size: 44rem; }
.about__text .section-head__label { margin-block-end: 1rem; padding-block-start: clamp(4rem, 9vh, 7rem); }
.about__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-block-end: 1.2rem; }
.about__text p { color: var(--dim); margin-block-end: 1rem; max-inline-size: 38rem; }
.about__quote {
  margin-block-start: 1.8rem;
  padding-inline-start: 1.4rem;
  border-inline-start: 2px solid var(--gold);
  font-size: 1.25rem; font-weight: 500; color: var(--star);
}

/* ── Contact ── */
.contact {
  position: relative; z-index: 2;
  padding: clamp(4rem, 10vh, 8rem) var(--gutter) clamp(4rem, 9vh, 6rem);
  text-align: center;
  isolation: isolate;
  overflow: clip;
}
.contact::before {
  /* soft liquid glow behind the form — echo of the hero blob */
  content: ""; position: absolute; inset: auto 0 -30%; block-size: 70%;
  background:
    radial-gradient(48% 60% at 50% 100%, rgba(231,186,116,.14), transparent 70%),
    radial-gradient(34% 44% at 60% 100%, rgba(109,91,208,.12), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.contact__title {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  font-weight: 700; line-height: 1.15;
  margin-block-end: 1.1rem;
}
.contact__title .line { display: block; overflow: hidden; }
.contact__title .line > span { display: inline-block; }
.contact__sub { color: var(--dim); margin-block-end: 2.6rem; }

.contact__form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
  max-inline-size: 40rem;
  margin-inline: auto;
  text-align: start;
  padding: 1.8rem;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

.chips { grid-column: 1 / -1; border: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips legend {
  inline-size: 100%;
  font-size: .9rem; font-weight: 500; color: var(--dim);
  margin-block-end: .6rem;
}
.chip { position: relative; }
.chip input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  inline-size: 100%; block-size: 100%;
}
.chip span {
  display: inline-flex; align-items: center;
  min-block-size: 44px;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.03);
  font-size: .95rem; font-weight: 500; color: var(--dim);
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s;
}
.chip input:hover + span { color: var(--star); border-color: rgba(255,255,255,.28); }
.chip input:checked + span {
  color: var(--void); background: var(--gold);
  border-color: var(--gold); font-weight: 600;
  box-shadow: 0 0 22px rgba(231,186,116,.3);
}
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 500; color: var(--dim); }
.field input, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--star);
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  padding: .8rem 1rem;
  min-block-size: 48px;
  transition: border-color .25s, background-color .25s;
}
.field textarea { resize: vertical; min-block-size: 6rem; }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.24); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0,0,0,.42);
}
.field ::placeholder { color: rgba(162,155,178,.55); }

.contact__actions {
  grid-column: 1 / -1;
  display: grid; justify-items: center; gap: .8rem;
}
.contact__submit {
  inline-size: min(100%, 20rem);
  font-size: 1.05rem;
}
.contact__note {
  text-align: center;
  font-size: .85rem; color: var(--dim);
}

.contact__alt {
  margin-block-start: 2.2rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem;
  font-size: .95rem; color: var(--dim);
}
.contact__alt a {
  min-block-size: 44px;
  display: inline-flex; align-items: center;
  border-block-end: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.contact__alt a:hover { color: var(--gold); border-block-end-color: var(--gold); }

@media (max-width: 640px) {
  .contact__form { grid-template-columns: 1fr; padding: 1.4rem; }
}

/* ── Floating WhatsApp ── */
.wa-float {
  position: fixed; z-index: 60;
  inset-block-end: 1.4rem; inset-inline-end: 1.4rem;
  display: grid; place-items: center;
  inline-size: 56px; block-size: 56px;
  border-radius: 50%;
  background: #23A55A;
  box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 30px rgba(35,165,90,.4); }
.wa-float svg { inline-size: 28px; block-size: 28px; fill: #fff; }

/* ── Footer ── */
.footer {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  align-items: center; justify-content: space-between;
  padding: 2rem var(--gutter) 2.4rem;
  border-block-start: 1px solid rgba(255,255,255,.07);
  font-size: .85rem; color: var(--dim);
  position: relative; z-index: 2;
}

/* ── Reduced motion: everything readable, nothing moves ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-mask { clip-path: none; }
  .loader { display: none; }
  #gl, #blob { display: none; }
  .work__imgwrap img { block-size: 100%; }
}
