/* ============================================================
   Guy Arazi — refined minimal, professional dark.
   Bilingual (LTR / RTL). Vanilla CSS, no build step.
   ============================================================ */

:root {
  --bg:        #0b0c0e;
  --surface:   #131418;
  --surface-2: #181a1f;
  --line:      rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text:      #f3f4f6;
  --text-dim:  #a3a7b0;
  --text-mute: #6b7079;
  --accent:    #7c8bff;
  --white:     #ffffff;

  --container: 980px;
  --pad: 24px;
  --radius: 14px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[dir="rtl"] { --font: "Heebo", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(124, 139, 255, 0.28); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Shared ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.section { padding-block: 96px; }
.section--divider { border-top: 1px solid var(--line-soft); }
.section__head { margin-bottom: 52px; max-width: 640px; }
.section__title {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3.8vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.section__lead { margin-top: 14px; max-width: 520px; color: var(--text-dim); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-scrolled { background: rgba(11, 12, 14, 0.82); border-bottom-color: var(--line-soft); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.nav__brand { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.nav__links { margin-inline-start: auto; display: flex; gap: 30px; }
.nav__links a {
  position: relative;
  color: var(--text-mute);
  font-size: 0.92rem;
  font-weight: 450;
  transition: color .2s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  inset-block-end: -6px; inset-inline-start: 0;
  width: 100%; height: 1.5px;
  background: var(--accent); border-radius: 2px;
}
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle__opt {
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mute);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-toggle__opt.is-active { color: var(--text); background: var(--surface-2); }
@media (max-width: 620px) { .nav__links { display: none; } }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 110px 90px;
}
.hero__inner { width: 100%; max-width: 900px; }
.hero__role { display: block; }
.hero__title {
  margin-top: 22px;
  font-weight: 600;
  font-size: clamp(3.4rem, 16vw, 9rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.hero__line { display: block; }
.hero__line:last-child { color: var(--text-mute); }
.hero__lead {
  margin-top: 28px;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-dim);
}
.rotator { display: inline-block; }
.rotator__word {
  display: inline-block;
  color: var(--text);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.rotator__word.is-out { opacity: 0; transform: translateY(-0.45em); }
.hero__actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.anim { opacity: 0; animation: rise .75s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 95ms + 60ms); }
@media (prefers-reduced-motion: reduce) { .anim { opacity: 1; animation: none; } .rotator__word { transition: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center;
  font-size: 0.94rem; font-weight: 500;
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--white); color: #0b0c0e; }
.btn--solid:hover { background: #e7e8ec; }
.btn--line { border-color: var(--line); color: var(--text); }
.btn--line:hover { border-color: rgba(255,255,255,0.28); background: var(--surface); }

/* ============ JOURNEY / STORY ============ */
.story { list-style: none; }
.story__item {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding-block: 56px;
  border-top: 1px solid var(--line-soft);
}
.story__item:first-child { border-top: none; padding-top: 0; }
.story__item:nth-child(even) .story__media { order: 2; }
.story__item:nth-child(even) .story__text  { order: 1; }
.story__era {
  display: block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.story__item--now .story__era { color: var(--accent); }
.story__body { color: var(--text-dim); font-size: 1rem; max-width: 48ch; }

/* Photo + placeholder */
.story__media { width: 100%; }
.story__img, .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
}
.ph {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px),
    var(--surface);
  color: var(--text-mute);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .story__item { grid-template-columns: 1fr; gap: 22px; padding-block: 44px; }
  .story__item:nth-child(even) .story__media,
  .story__item:nth-child(even) .story__text { order: 0; }
  .story__body { max-width: none; }
}

/* ============ WORK ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: rgba(255,255,255,0.18); background: var(--surface-2); transform: translateY(-3px); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.card__desc { color: var(--text-dim); font-size: 0.96rem; }
.tag {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-mute);
  white-space: nowrap;
}
.tag--soon { color: var(--accent); border-color: rgba(124, 139, 255, 0.35); }

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: center; }
.about__photo, .about__photo--ph {
  width: 200px; height: 200px;
  border-radius: 18px;
  border: 1px solid var(--line);
  object-fit: cover; display: block;
}
.about__photo--ph {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px),
    var(--surface);
  color: var(--text-mute); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.about__text { max-width: 60ch; color: var(--text-dim); }
.about .eyebrow { margin-bottom: 4px; }
@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; gap: 26px; }
  .about__photo, .about__photo--ph { width: 130px; height: 130px; }
}

/* ============ RIGHT NOW ============ */
.now {
  max-width: 640px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.now__text { color: var(--text-dim); }
.now__linkedin { margin-top: 20px; color: var(--text); font-weight: 500; }
.now__cta { margin-top: 16px; }

/* ============ CONTACT ============ */
.contact__lead { color: var(--text-dim); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.92rem; font-weight: 450; color: var(--text-dim);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.social:hover { border-color: rgba(255,255,255,0.22); color: var(--text); background: var(--surface); transform: translateY(-2px); }
.social__icon { width: 18px; height: 18px; flex: none; }

/* ============ FOOTER ============ */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 32px; border-top: 1px solid var(--line-soft);
  color: var(--text-mute); font-size: 0.85rem;
}

/* ============ RTL ============ */
html[dir="rtl"] body { letter-spacing: 0; }
