/* ═══════════════════════════════════════════════════════
   אביתר רון — evyatar.store
   קולנועי · סריף דק · פרלקס · גלילה חלקה
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #0a0b10;
  --bg-deep: #07080c;
  --surface: rgba(255, 255, 255, 0.02);
  --surface-hover: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f1ede4;
  --text-soft: #b5afa3;
  --text-mute: #7d786d;

  --accent: #d2a05a;
  --accent-soft: rgba(210, 160, 90, 0.13);
  --accent-line: rgba(210, 160, 90, 0.42);
  --hero-accent: #ff3b30;

  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

*, *::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(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0b10; }

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

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

section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ───────────────────────── Atmosphere ───────────────────────── */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.atmosphere-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.glow-a {
  width: 60vw; height: 60vw;
  top: -20vw; right: -15vw;
  background: radial-gradient(circle, rgba(210, 160, 90, 0.16), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
}
.glow-b {
  width: 55vw; height: 55vw;
  bottom: -20vw; left: -15vw;
  background: radial-gradient(circle, rgba(120, 110, 180, 0.12), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6vw, 4vw) scale(1.08); }
}
.atmosphere-grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 2%); }
}

/* ───────────────────────── Scroll progress ───────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; right: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: right center;
  transform: scaleX(0);
  z-index: 200;
}

/* ───────────────────────── Nav ───────────────────────── */
.nav-wrap {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav-wrap.scrolled {
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.nav-brand-mark { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; right: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.9rem;
  font-weight: 400;
  padding: 9px 22px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--accent); color: #0a0b10; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}
.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--hero-accent);
  margin-bottom: 2.4rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2.2rem;
}
.hero-line { display: block; }
.hero-line-accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--hero-accent);
  text-shadow: 0 0 34px rgba(255, 59, 48, 0.45);
}
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 2.8rem;
  font-weight: 300;
  line-height: 1.9;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 400;
  transition: all 0.35s var(--ease);
  cursor: pointer;
}
.btn-line {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-line:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-solid {
  background: var(--accent);
  color: #0a0b10;
  font-weight: 500;
}
.btn-solid:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero-scroll-line {
  width: 1px;
  height: 14px;
  background: var(--accent);
  animation: scrollhint 1.8s var(--ease) infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ───────────────────────── Layout ───────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 120px 0; }
.section-tight { padding: 60px 0; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-head { margin-bottom: 3.5rem; }
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* ───────────────────────── About ───────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}
.about-label {
  border-top: 1px solid var(--line-strong);
  padding-top: 1rem;
}
.about-body .section-title { margin-bottom: 2rem; }
.about-body .lead {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.about-body p { color: var(--text-soft); margin-bottom: 1.25rem; max-width: 640px; }
.about-list {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: grid;
  gap: 0.8rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-soft);
}
.about-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ───────────────────────── Services ───────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: 2.6rem 2.4rem;
  position: relative;
  transition: background 0.4s var(--ease);
}
.service:hover { background: var(--bg-deep); }
.service-index {
  position: absolute;
  top: 1.6rem; left: 1.8rem;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-mute);
}
.service-icon {
  width: 34px; height: 34px;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.service-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.service-desc {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  max-width: 420px;
}
.service-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.service-list li {
  font-size: 0.9rem;
  color: var(--text-mute);
  padding-right: 1.2rem;
  position: relative;
}
.service-list li::before {
  content: "—";
  position: absolute;
  right: 0;
  color: var(--accent);
}

/* ───────────────────────── Projects ───────────────────────── */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 7rem;
}
.project:last-child { margin-bottom: 0; }
.project-reverse .project-media { order: 2; }
.project-reverse .project-info { order: 1; }

.project-media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.project-media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  pointer-events: none;
}

/* Chat mockup */
.project-media-chat {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(210,160,90,0.10), transparent 55%),
    var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.chat-window {
  width: 100%;
  max-width: 380px;
  background: #0e1117;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: #12161e;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-soft);
}
.chat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
}
.chat-body {
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.bubble {
  max-width: 82%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.bubble-in {
  align-self: flex-start;
  background: #1a202b;
  color: #d7d3ca;
  border-bottom-right-radius: 4px;
}
.bubble-out {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.project-tag {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.project-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin: 0.7rem 0 1.1rem;
  letter-spacing: -0.01em;
}
.project-desc {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.project-points {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.project-points li {
  font-size: 0.92rem;
  color: var(--text-soft);
  padding-right: 1.3rem;
  position: relative;
}
.project-points li::before {
  content: "";
  position: absolute;
  right: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease);
}
.project-link:hover { gap: 0.8rem; }

/* ───────────────────────── Process ───────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process-step {
  background: var(--bg);
  padding: 2.2rem 1.6rem;
  transition: background 0.4s var(--ease);
}
.process-step:hover { background: var(--bg-deep); }
.process-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-line);
  line-height: 1;
  display: block;
  margin-bottom: 1.2rem;
}
.process-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.process-desc {
  font-size: 0.9rem;
  color: var(--text-mute);
  line-height: 1.6;
}

/* ───────────────────────── Tech ───────────────────────── */
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tech-chip {
  font-size: 0.9rem;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tech-chip:hover {
  border-color: var(--accent-line);
  color: var(--text);
}

/* ───────────────────────── FAQ ───────────────────────── */
.faq-list {
  max-width: 780px;
  border-top: 1px solid var(--line-strong);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-plus {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.35s var(--ease);
}
.faq-plus::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-plus::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.faq-item.open .faq-plus::after { transform: translateX(-50%) rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a p {
  padding: 0 0 1.6rem;
  color: var(--text-soft);
  max-width: 640px;
}

/* ───────────────────────── Contact ───────────────────────── */
.contact-panel {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(210,160,90,0.08), transparent 55%),
    var(--bg-deep);
}
.contact-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.contact-sub {
  color: var(--text-soft);
  max-width: 420px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}
.contact-link:hover { padding-right: 0.5rem; }
.contact-link-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.contact-link-value {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.contact-link:hover .contact-link-value { color: var(--accent); }

/* ───────────────────────── Footer ───────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-mute);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-note {
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ───────────────────────── Reveal animations ───────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
  .about-label { border: none; padding: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .project {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
  }
  .project-reverse .project-media { order: 0; }
  .project-reverse .project-info { order: 0; }
  .contact-panel { grid-template-columns: 1fr; padding: 2.5rem 1.75rem; }
}

@media (max-width: 520px) {
  .hero-title { font-size: clamp(2.6rem, 15vw, 4rem); }
  .process-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
  .section { padding: 80px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ───────────────────────── Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .atmosphere-grain, .atmosphere-glow { animation: none; }
}
