/* =========================================================
   מקטעים והופעה בגלילה
   פריסת מקטעים, כרטיסים והופעה הדרגתית בגלילה.
   ========================================================= */

/* ---------- reveal ---------- */
.boxrev {
  position: relative;
  height: 340vh;
}
.rpin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.rglow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(90vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    closest-side,
    rgba(29, 28, 26, 0.1),
    rgba(255, 255, 255, 0.03) 45%,
    transparent 72%
  );
  pointer-events: none;
}
.rcap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + max(28px, 6vh));
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px);
  transition:
    opacity 0.35s,
    transform 0.35s,
    filter 0.35s;
  z-index: 45;
}
.rcap.on {
  opacity: 1;
  filter: none;
  transform: none;
}
.rcap .eyebrow {
  margin-bottom: 12px;
  letter-spacing: 0.2em;
}
.rcap h2 {
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  margin-bottom: 10px;
}
.rcap p {
  font-size: 15px;
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.6;
}
/* ---------- sections ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .wrap {
    padding: 0 40px;
  }
}
@media (min-width: 1024px) {
  .wrap {
    padding: 0 64px;
  }
}
.sec {
  padding: 64px 0;
}
@media (min-width: 768px) {
  .sec {
    padding: 96px 0;
  }
}
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.head .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  letter-spacing: 0.2em;
}
.head .eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: hsl(0 0% 30%);
}
.head h2 {
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  margin-bottom: 12px;
}
.head p {
  font-size: 15px;
  max-width: 34rem;
  line-height: 1.6;
}
.pillbtn {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid hsl(var(--stroke));
  background: hsl(var(--bg));
  white-space: nowrap;
  transition: border-color 0.3s;
}
.pillbtn:hover {
  border-color: transparent;
}
@media (min-width: 768px) {
  .pillbtn {
    display: inline-flex;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.vis {
  opacity: 1;
  transform: none;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }
  .c7 {
    grid-column: span 7;
  }
  .c5 {
    grid-column: span 5;
  }
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--stroke));
  aspect-ratio: 16/10;
  display: block;
}
.card.tall {
  aspect-ratio: 4/5;
}
@media (min-width: 768px) {
  .card.tall {
    aspect-ratio: auto;
    height: 100%;
  }
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card {
  transition:
    border-color 0.4s,
    box-shadow 0.4s;
}
.card:hover img,
.card:focus-visible img {
  transform: scale(1.05);
}
.card:hover,
.card:focus-visible {
  border-color: rgba(29, 28, 26, 0.55);
  box-shadow: 0 18px 50px -20px rgba(29, 28, 26, 0.35);
}

.cinfo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(18px, 2.4vw, 28px);
  padding-top: 70px;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.55) 55%, transparent);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: start;
  transition:
    opacity 0.45s,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cinfo b {
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px);
  color: #fff;
}
.cinfo span {
  font-size: 14px;
  line-height: 1.55;
  color: hsl(0 0% 82%);
  max-width: 34rem;
}
@media (max-width: 600px) {
  .cinfo {
    padding-top: 44px;
    gap: 3px;
  }
  .cinfo span {
    font-size: 12.5px;
  }
}
/* במחשב: שם התחום תמיד גלוי, התיאור נפתח במעבר עכבר */
@media (hover: hover) {
  .cinfo span {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      max-height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.45s;
  }
  .card:hover .cinfo span,
  .card:focus-visible .cinfo span {
    max-height: 6em;
    opacity: 1;
  }
}

.entry {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px;
  border-radius: 40px;
  background: hsl(var(--surface) / 0.3);
  border: 1px solid hsl(var(--stroke));
  transition: background 0.3s;
}
.entry:hover {
  background: hsl(var(--surface));
}
@media (min-width: 640px) {
  .entry {
    border-radius: 999px;
    gap: 24px;
    padding: 14px 14px 14px 28px;
  }
}
.entry img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  flex: none;
}
.entry h3 {
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.35;
  flex: 1;
}
.entry .meta {
  display: none;
  gap: 16px;
  font-size: 13px;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .entry .meta {
    display: flex;
  }
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  margin-bottom: 10px;
  direction: ltr;
  text-align: start;
}
.stat span {
  font-size: 14px;
  color: hsl(var(--muted));
}

.contact {
  position: relative;
  overflow: hidden;
  padding: 64px 0 32px;
}
@media (min-width: 768px) {
  .contact {
    padding: 80px 0 48px;
  }
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
