/* ==========================================================================
   ABUDI — שיווק ופרסום דיגיטלי
   Tokens: ink #14181C · paper #F7F4EE · iris #39AADE (from logo)
   iris-deep #0E3A52 · flash #FF5A36 · mist #E2E7E9 (from logo)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  html { color-scheme: dark; }
}

:root {
  --ink: #14181C;
  --ink-soft: rgba(20, 24, 28, .66);
  --ink-faint: rgba(20, 24, 28, .38);
  --paper: #F7F4EE;
  --paper-raise: #FFFFFF;
  --iris: #39AADE;
  --iris-deep: #0E3A52;
  --flash: #FF5A36;
  --flash-ink: #7A2405;
  --mist: #E2E7E9;
  --mist-line: rgba(20, 24, 28, .16);
  --on-dark: #F3F1EA;
  --on-dark-soft: rgba(243, 241, 234, .64);

  --display: "Miriam Libre", "Assistant", sans-serif;
  --sans: "Assistant", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --container: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .timeline__curve-dot { display: none; }
  .clients__track { animation: none !important; }
  .clients__row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
svg { display: block; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px;
}
.eyebrow span { color: var(--iris-deep); font-weight: 600; }
.eyebrow i { display: block; width: 26px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow--light { color: var(--on-dark-soft); }
.eyebrow--light span { color: var(--iris); }

/* ---------------------------------- NAV ---------------------------------- */

.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--edge);
  background: transparent;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled {
  background: rgba(247, 244, 238, .86);
  backdrop-filter: blur(10px);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--mist-line);
}
.nav.is-scrolled .nav__word,
.nav.is-scrolled .nav__links a,
.nav.is-scrolled .nav__cta { color: var(--ink); }

.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__mark { width: 34px; height: auto; }
.nav__word { font-family: var(--mono); font-weight: 600; letter-spacing: .18em; font-size: 15px; color: var(--on-dark); transition: color .35s ease; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  color: var(--on-dark-soft); font-size: 15px; position: relative; padding-block: 4px;
  transition: color .25s ease;
}
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: var(--iris); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__links a:hover { color: var(--on-dark); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  font-family: var(--mono); font-size: 14px; color: var(--on-dark); letter-spacing: .03em;
  border: 1px solid rgba(243,241,234,.3); border-radius: 999px; padding: 9px 18px;
  transition: border-color .25s ease, background .25s ease;
}
.nav__cta:hover { border-color: var(--iris); background: rgba(57,170,222,.1); }
.nav.is-scrolled .nav__cta { border-color: var(--mist-line); }
.nav.is-scrolled .nav__cta:hover { border-color: var(--iris); }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 26px; z-index: 101; position: relative; }
.nav__burger span { display: block; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform .25s ease, opacity .25s ease, background .25s ease; }
.nav.is-scrolled .nav__burger span { background: var(--ink); }
.nav__burger[aria-expanded="true"] span { background: var(--on-dark) !important; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 99; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transform: translateY(-100%); transition: transform .4s ease;
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile a { color: var(--on-dark); font-family: var(--display); font-weight: 700; font-size: 28px; }
.nav-mobile__phone { color: var(--iris) !important; font-family: var(--mono) !important; font-size: 17px !important; margin-top: 10px; }

/* ---------------------------------- HERO ---------------------------------- */

.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  background: radial-gradient(120% 90% at 78% 15%, var(--iris-deep) 0%, var(--ink) 55%);
  color: var(--on-dark); overflow: hidden;
  padding: 140px var(--edge) 100px;
}
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(57,170,222,.28), transparent 70%);
  width: 900px; height: 900px; left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  animation: pulse 7s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.hero__eye {
  position: absolute; z-index: 0; inset-block: 0; inset-inline-end: -6%;
  width: min(46vw, 560px); display: flex; align-items: center; pointer-events: none;
}
.hero__eye svg { width: 100%; transform-origin: center; transform: scaleY(.04); opacity: .4; animation: blinkOpen 1.15s cubic-bezier(.2,.9,.2,1) forwards .25s; }
.hero__eye-iris { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
@keyframes blinkOpen {
  0% { transform: scaleY(.04); opacity: .4; }
  55% { transform: scaleY(1.08); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

.hero__inner { position: relative; z-index: 1; max-width: 760px; text-align: right; }

.hero__eyebrow span { color: var(--iris); }

.hero__headline { font-size: clamp(46px, 7.6vw, 102px); line-height: .98; }
.hero__line { display: block; opacity: 0; transform: translateY(28px); animation: rise .9s cubic-bezier(.16,1,.3,1) forwards; }
.hero__line--accent { color: var(--iris); animation-delay: .15s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero__sub {
  margin-top: 28px; font-size: 19px; line-height: 1.65; color: var(--on-dark-soft);
  max-width: 480px;
  opacity: 0; animation: fadeUp .9s ease forwards .5s;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: translateY(0);} }

.hero__scroll-wrap {
  max-width: 480px; margin-top: 42px; display: flex; justify-content: center;
  opacity: 0; animation: fadeUp .9s ease forwards .68s;
}
.hero__scroll-arrow {
  width: 76px; height: 76px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(243,241,234,.35); color: var(--on-dark);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.hero__scroll-arrow svg { width: 26px; height: 26px; transition: transform .3s ease; }
.hero__scroll-arrow:hover { transform: scale(1.08); border-color: var(--iris); background: rgba(57,170,222,.12); }
.hero__scroll-arrow:hover svg { transform: translateY(4px); }

/* buttons -------------------------------------------------------------- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-size: 15.5px; font-weight: 600; padding: 15px 30px; border-radius: 2px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--flash { background: var(--flash); color: #fff9f6; }
.btn--flash:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(255,90,54,.55); }

.btn--ghost { border: 1px solid rgba(243,241,234,.3); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--iris); background: rgba(57,170,222,.1); }
.btn__icon { width: 18px; height: 18px; }

.btn--outline { border: 1px solid var(--mist-line); color: var(--ink); }
.btn--outline:hover { border-color: var(--iris-deep); background: var(--paper-raise); }

.btn__corner { position: absolute; width: 9px; height: 9px; border-color: #fff9f6; opacity: 0; transition: opacity .25s ease; }
.btn:hover .btn__corner { opacity: .8; }
.btn__corner--tl { top: -5px; right: -5px; border-top: 1.5px solid; border-right: 1.5px solid; }
.btn__corner--tr { top: -5px; left: -5px; border-top: 1.5px solid; border-left: 1.5px solid; }
.btn__corner--bl { bottom: -5px; right: -5px; border-bottom: 1.5px solid; border-right: 1.5px solid; }
.btn__corner--br { bottom: -5px; left: -5px; border-bottom: 1.5px solid; border-left: 1.5px solid; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--iris); outline-offset: 3px;
}

/* ---------------------------------- STORY / TIMELINE ---------------------------------- */

.story { max-width: var(--container); margin: 0 auto; padding: 150px var(--edge) 130px; }
.story__head { text-align: center; margin-bottom: 90px; }
.story__head .eyebrow { justify-content: center; }
.story__head h2 { font-size: clamp(32px, 4.4vw, 48px); }

.timeline {
  position: relative; max-width: 1040px; margin: 0 auto;
  height: clamp(360px, 32vw, 440px);
}

.timeline__curve { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }

.timeline__curve-draw {
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.8s cubic-bezier(.16,1,.3,1);
  filter: drop-shadow(0 0 6px rgba(57,170,222,.5));
}
.timeline.is-visible .timeline__curve-draw { stroke-dashoffset: 0; }

.timeline__curve-dot, .timeline__curve-anchor { opacity: 0; transition: opacity .5s ease 1.3s; }
.timeline.is-visible .timeline__curve-dot, .timeline.is-visible .timeline__curve-anchor { opacity: 1; }

.timeline__node {
  position: absolute; z-index: 1; width: min(300px, 30vw); text-align: center;
  display: flex; flex-direction: column; align-items: center;
  left: 0; top: 4%;
  opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease;
}
.timeline__node.is-visible { opacity: 1; transform: translateY(0); }

.timeline__node--end { left: auto; right: 0; }

.timeline__badge { width: 108px; margin-bottom: 22px; filter: drop-shadow(0 8px 18px rgba(20,24,28,.12)); }
.timeline__badge-img { display: block; width: 100%; height: auto; }
.timeline__year { font-family: var(--mono); font-size: 15px; letter-spacing: .1em; color: var(--iris-deep); font-weight: 600; margin-bottom: 14px; }
.timeline__text { max-width: 280px; margin-top: 10px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.75; }

/* ---------------------------------- SERVICES ---------------------------------- */

.services { background: var(--ink); color: var(--on-dark); padding: 150px var(--edge); }
.services__head { max-width: var(--container); margin: 0 auto 70px; }
.services__head h2 { font-size: clamp(36px, 5.4vw, 62px); color: var(--on-dark); line-height: 1.08; }

.service-list { max-width: var(--container); margin: 0 auto; border-top: 1px solid rgba(243,241,234,.14); }

.service-item { border-bottom: 1px solid rgba(243,241,234,.14); }

.service-item__row {
  width: 100%; display: flex; align-items: center; gap: 22px;
  padding: 30px 4px; text-align: right;
}
.service-item__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--iris); flex: none;
  transition: transform .3s ease, background .3s ease;
}
.service-item__title { flex: 1; font-family: var(--display); font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; transition: color .3s ease; }
.service-item__latin { font-family: var(--mono); font-size: .62em; letter-spacing: .06em; color: var(--iris); vertical-align: middle; }
.service-item__plus {
  position: relative; width: 22px; height: 22px; flex: none;
}
.service-item__plus::before, .service-item__plus::after {
  content: ""; position: absolute; background: var(--on-dark-soft); transition: transform .35s ease, background .3s ease;
}
.service-item__plus::before { inset-inline-start: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.service-item__plus::after { top: 0; inset-inline-start: 50%; width: 1.5px; height: 100%; transform: translateX(-50%); }

.service-item__row:hover .service-item__title { color: var(--iris); }
.service-item__row:hover .service-item__dot { transform: scale(1.7); }

.service-item__desc {
  max-height: 0; overflow: hidden; color: var(--on-dark-soft); font-size: 15.5px; line-height: 1.7;
  padding-inline-start: 31px; transition: max-height .4s ease, padding .4s ease, opacity .3s ease; opacity: 0;
}

.service-item.is-open .service-item__plus::after { transform: translateX(-50%) rotate(90deg); background: var(--iris); }
.service-item.is-open .service-item__plus::before { background: var(--iris); }
.service-item.is-open .service-item__desc { max-height: 120px; padding-block-end: 28px; opacity: 1; }
.service-item.is-open .service-item__title { color: var(--iris); }

/* ---------------------------------- CLIENTS ---------------------------------- */

.clients { padding: 150px 0; }
.clients__head { max-width: var(--container); margin: 0 auto 70px; padding-inline: var(--edge); text-align: center; }
.clients__head .eyebrow { justify-content: center; }
.clients__head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.clients__intro { margin: 14px 0 0; color: var(--ink-soft); font-size: 15.5px; }

.clients__marquee { width: 100%; direction: ltr; }
.clients__marquee--mobile { display: none; }
.clients__row {
  overflow: hidden; margin-bottom: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients__row:last-child { margin-bottom: 0; }
.clients__track {
  direction: ltr;
  display: flex; gap: 84px; align-items: center; width: max-content;
  padding-inline: 36px; animation: clientsScrollL 38s linear infinite;
}
.clients__row--rev .clients__track { animation-name: clientsScrollR; }
.clients__row:hover .clients__track { animation-play-state: paused; }
@keyframes clientsScrollL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes clientsScrollR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.clients__track img {
  height: 52px; width: auto; max-width: 220px; flex-shrink: 0; opacity: .88;
  transition: opacity .25s ease, transform .3s ease;
}
.clients__track img:hover { opacity: 1; transform: scale(1.1); }
.clients__track img[src$="21.png"] { border-radius: 4px; }

/* ---------------------------------- CTA BAND ---------------------------------- */

.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--iris-deep), var(--ink) 65%);
  color: var(--on-dark); padding: 150px var(--edge); text-align: center;
}
.cta-band__eye { width: 74px; margin: 0 auto 30px; opacity: .9; }
.cta-band__inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta-band__inner .eyebrow { justify-content: center; }
.cta-band__inner h2 { font-size: clamp(38px, 6vw, 68px); color: var(--on-dark); }
.cta-band__sub { margin-top: 20px; font-size: 18px; color: var(--on-dark-soft); line-height: 1.7; }
.cta-band__actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn--outline { border-color: rgba(243,241,234,.3); color: var(--on-dark); }
.cta-band .btn--outline:hover { border-color: var(--iris); background: rgba(57,170,222,.12); }

/* ---------------------------------- FOOTER ---------------------------------- */

.site-footer { background: var(--ink); color: var(--on-dark); padding: 70px var(--edge) 30px; }
.site-footer__top {
  max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 30px; padding-bottom: 50px; border-bottom: 1px solid rgba(243,241,234,.14);
}
.site-footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer__links a, .site-footer__contact a { color: var(--on-dark-soft); font-size: 15px; transition: color .25s ease; }
.site-footer__links a:hover, .site-footer__contact a:hover { color: var(--iris); }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: var(--mono); font-size: 14px; }

.site-footer__bottom {
  max-width: var(--container); margin: 0 auto; padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--on-dark-soft);
}
.site-footer__since { font-family: var(--mono); color: var(--iris); }

/* ---------------------------------- REVEALS ---------------------------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------- RESPONSIVE ---------------------------------- */

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .story, .services, .clients, .cta-band { padding-top: 75px; }
  .hero { align-items: center; padding-top: 120px; }
  .hero__eye { inset-inline-end: 50%; transform: translateX(50%); width: 84vw; opacity: .5; }
  .hero__inner { text-align: center; max-width: 100%; }
  .hero__sub { margin-inline: auto; }
  .hero__scroll-wrap { margin-inline: auto; }
  .clients__marquee--desktop { display: none; }
  .clients__marquee--mobile { display: block; }
  .clients__track { gap: 40px; animation-duration: 16s; }
  .clients__track img {
    width: 118px; height: 56px; max-width: none; object-fit: contain; object-position: center;
  }
  .clients__row { margin-bottom: 26px; }
  .site-footer__top { flex-direction: column; align-items: flex-start; }
  .site-footer__contact { align-items: flex-start; }

  .timeline {
    height: auto; max-width: 380px; display: flex; flex-direction: column; gap: 80px;
    padding-left: 36px;
  }
  .timeline::before {
    content: ""; position: absolute; left: 14px; top: 12px; bottom: 12px; width: 2px;
    background: repeating-linear-gradient(var(--mist-line) 0 5px, transparent 5px 10px);
  }
  .timeline__curve { display: none; }
  .timeline__node, .timeline__node--end {
    position: relative; width: 100%;
  }
  .timeline__node::before {
    content: ""; position: absolute; left: -28px; top: 140px; z-index: 2;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--paper-raise); border: 2px solid var(--iris);
  }
  .timeline__node--end::before { border-color: var(--flash); }
  .timeline__text { max-width: 210px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .story, .services, .clients, .cta-band { padding-inline: 20px; }
  .service-item__row { gap: 14px; padding-block: 24px; }
}
