/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --ink: #111111;
  --ink-dim: #55565c;
  --ink-faint: #8a8a92;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --white: #ffffff;

  --green: #8cc63f;
  --blue: #2e7fd4;
  --orange: #f7941e;

  --on-dark-line: rgba(255, 255, 255, 0.16);
  --on-dark-dim: rgba(255, 255, 255, 0.68);
  --on-dark-faint: rgba(255, 255, 255, 0.42);

  --radius: 8px;
  --radius-sm: 6px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Space Grotesk", sans-serif;
}

/* Space Grotesk has no Cyrillic glyphs — swap the display font for languages that need it */
html[lang="ru"] {
  --font-display: "Manrope", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; }
.logo__text { font-family: "Space Grotesk", sans-serif; line-height: 1.1; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* Flat brand-color accent text (replaces gradient text) */
.accent { color: var(--blue); }

/* ===== Brand color strip ===== */
.brand-bar { display: flex; width: 100%; height: 6px; }
.brand-bar span { flex: 1; }
.brand-bar span:nth-child(1) { background: var(--green); }
.brand-bar span:nth-child(2) { background: var(--blue); }
.brand-bar span:nth-child(3) { background: var(--orange); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.header.scrolled { box-shadow: 0 1px 0 var(--ink); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.logo { display: inline-flex; align-items: baseline; gap: 9px; font-weight: 700; }
.logo__mark { width: 36px; height: 36px; display: inline-flex; align-self: center; }
.logo__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo__text { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.logo__text span { color: var(--ink-faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-left: 2px; }

.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { color: var(--ink); font-size: 15px; font-weight: 500; position: relative; transition: color 0.2s; padding-bottom: 4px; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--blue); transition: width 0.25s var(--ease); }
.nav a:hover { color: var(--blue); }
.nav a:hover::after { width: 100%; }

.header__cta { margin-left: 8px; }

/* ===== Language switcher ===== */
.lang-switch { position: relative; margin-left: 20px; flex: none; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.lang-switch__btn:hover { border-color: var(--ink); }
.lang-switch__btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.lang-switch__icon { width: 16px; height: 16px; flex: none; }
.lang-switch__chevron { width: 10px; height: 7px; flex: none; transition: transform 0.2s var(--ease); }
.lang-switch__btn[aria-expanded="true"] .lang-switch__chevron { transform: rotate(180deg); }

.lang-switch__menu {
  list-style: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  min-width: 168px; padding: 6px; margin: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(17,17,17,0.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.lang-switch__menu.open { opacity: 1; visibility: visible; transform: none; }
.lang-switch__menu li {
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-dim);
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.lang-switch__menu li:hover { background: var(--bg-soft); color: var(--ink); }
.lang-switch__menu li[aria-selected="true"] { background: var(--ink); color: #fff; font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit; white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 3px 3px 0 rgba(17,17,17,0.15); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ===== Hero ===== */
.hero { padding: 100px 0 0; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__shape {
  position: absolute; top: 0; bottom: 0; right: -70px; width: 220px;
  background: var(--green); transform: skewX(-9deg); z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 780px; padding-bottom: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: 13.5px; color: var(--ink-dim); font-weight: 500; margin-bottom: 32px;
}
.badge__dot { width: 6px; height: 6px; border-radius: 1px; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.3rem); font-weight: 700; margin-bottom: 24px; color: var(--ink); }
.hero__title .accent { color: var(--blue); }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-dim); max-width: 600px; margin: 0 0 28px; }
.hero__tagline {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); position: relative; z-index: 1; }
.stat { padding: 26px 24px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--ink); }
.stat__plus { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--blue); }
.stat p { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== Trusted marquee ===== */
.trusted { padding: 48px 0; border-bottom: 1px solid var(--line); }
.trusted__label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 20px; }
.marquee { position: relative; overflow: hidden; background: var(--green); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #111;
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
  padding: 16px 28px; border-right: 1px solid rgba(17,17,17,0.2);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin: 0 0 60px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-dim); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 20px; color: var(--ink); }
.section__title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--blue); margin-top: 20px; }
.section__lead { color: var(--ink-dim); font-size: 1.05rem; max-width: 540px; }

/* Hairline mosaic grid: 1px gap on line color creates dividers between flush cards */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ===== Cards ===== */
.card {
  padding: 36px 32px; background: var(--bg); position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); position: relative; z-index: 2; }
.card__num {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff;
  margin-bottom: 20px;
}
.card:nth-child(6n+1) .card__num, .card:nth-child(6n+4) .card__num { background: var(--green); }
.card:nth-child(6n+2) .card__num, .card:nth-child(6n+5) .card__num { background: var(--blue); }
.card:nth-child(6n+3) .card__num, .card:nth-child(6n+6) .card__num { background: var(--orange); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--ink-dim); font-size: 15px; margin-bottom: 18px; }
.card__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card__list li { font-size: 14px; color: var(--ink-dim); padding-left: 18px; position: relative; }
.card__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--blue); }

/* ===== Solutions ===== */
.solution { padding: 36px 32px; background: var(--bg); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.solution:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); position: relative; z-index: 2; }
.solution__no { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 14px; }
.solution h3 { font-size: 1.28rem; margin-bottom: 10px; color: var(--ink); }
.solution p { color: var(--ink-dim); font-size: 15px; }

/* ===== Timeline ===== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { padding: 32px 28px; background: var(--bg); border-bottom: 3px solid transparent; }
.step:nth-child(4n+1) { border-bottom-color: var(--green); }
.step:nth-child(4n+2) { border-bottom-color: var(--blue); }
.step:nth-child(4n+3) { border-bottom-color: var(--orange); }
.step:nth-child(4n+4) { border-bottom-color: var(--ink); }
.step__no { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--ink); }
.step p { color: var(--ink-dim); font-size: 14.5px; }

/* ===== Cases ===== */
.case { padding: 36px 32px; background: var(--bg); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.case:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); position: relative; z-index: 2; }
.case__metric { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin-bottom: 14px; }
.case:nth-child(3n+1) .case__metric { color: var(--green); }
.case:nth-child(3n+2) .case__metric { color: var(--blue); }
.case:nth-child(3n+3) .case__metric { color: var(--orange); }
.case h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--ink); }
.case p { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 18px; }
.tag { display: inline-block; font-size: 12px; padding: 6px 12px; border-radius: 4px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-dim); font-weight: 500; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.about__text .eyebrow { margin-bottom: 16px; }
.about__text .section__title::after { margin-top: 20px; margin-bottom: 4px; }
.about__text p { color: var(--ink-dim); margin-bottom: 18px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-top: 28px; }
.checklist li { padding-left: 34px; position: relative; color: var(--ink); font-size: 15px; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; width: 21px; height: 21px;
  display: grid; place-items: center; border-radius: 4px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700;
}
.values { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { padding: 26px 28px; background: var(--bg); border-left: 4px solid transparent; }
.value:nth-child(1) { border-left-color: var(--green); }
.value:nth-child(2) { border-left-color: var(--blue); }
.value:nth-child(3) { border-left-color: var(--orange); }
.value__k { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; display: block; margin-bottom: 8px; color: var(--ink); }
.value p { color: var(--ink-dim); font-size: 14.5px; }


/* ===== CTA / Contact (dark band) ===== */
#contact.section { background: var(--ink); color: #fff; border-top: 1px solid var(--ink); border-bottom: none; overflow: hidden; }

.cta { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta__shape { position: absolute; left: -70px; bottom: -80px; width: 280px; height: auto; z-index: 0; opacity: 0.9; }
.cta__content { position: relative; z-index: 1; }
.cta__content h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; color: #fff; }
.cta__content p { color: var(--on-dark-dim); font-size: 1.05rem; }

.cta__form { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--on-dark-dim); font-weight: 500; }
.field input, .field textarea {
  background: rgba(255,255,255,0.05); border: 1px solid var(--on-dark-line); border-radius: 6px;
  padding: 12px 14px; color: #fff; font-family: inherit; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,127,212,0.3); }
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-faint); }
.cta__form .btn { grid-column: 1 / -1; }
.cta .btn--primary { background: var(--orange); color: #111; }
.cta .btn--primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 3px 3px 0 rgba(255,255,255,0.2); }
.form__note { grid-column: 1 / -1; font-size: 14px; min-height: 20px; }
.form__note.success { color: var(--green); }
.form__note.error { color: var(--orange); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 64px 0 30px; background: var(--bg); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 44px; }
.footer__brand .logo__text { color: var(--ink); }
.footer__brand p { color: var(--ink-dim); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer__tagline { font-family: var(--font-display); font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; margin-top: 14px !important; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col h4 { font-size: 13px; margin-bottom: 16px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; }
.footer__col a { display: block; color: var(--ink-dim); font-size: 14.5px; margin-bottom: 10px; transition: color 0.2s; }
.footer__col a:hover { color: var(--blue); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); }
.footer__bottom p { color: var(--ink-faint); font-size: 13.5px; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* Section title bar & eyebrow line draw in after the block appears */
.reveal .section__title::after { width: 0; }
.reveal.visible .section__title::after { width: 56px; transition: width 0.7s var(--ease) 0.3s; }
.reveal .eyebrow::before { width: 0; }
.reveal.visible .eyebrow::before { width: 26px; transition: width 0.5s var(--ease) 0.15s; }

/* Checklist items cascade in one by one */
.reveal .checklist li { opacity: 0; translate: 0 10px; }
.reveal.visible .checklist li {
  opacity: 1; translate: 0 0;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
}
.reveal.visible .checklist li:nth-child(2) { transition-delay: 0.08s; }
.reveal.visible .checklist li:nth-child(3) { transition-delay: 0.16s; }
.reveal.visible .checklist li:nth-child(4) { transition-delay: 0.24s; }

/* ===== RTL support (Arabic, Urdu) ===== */
[dir="rtl"] .checklist li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .card__list li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .card__list li::before { left: auto; right: 0; }
[dir="rtl"] .nav a::after { left: auto; right: 0; }
[dir="rtl"] .hero__shape { right: auto; left: -70px; transform: skewX(9deg); }
[dir="rtl"] .stat { border-left: none; border-right: 1px solid var(--line); }
[dir="rtl"] .stat:first-child { border-right: none; padding-right: 0; padding-left: 24px; }
[dir="rtl"] .value { border-left: none; border-right: 4px solid transparent; }
[dir="rtl"] .value:nth-child(1) { border-right-color: var(--green); }
[dir="rtl"] .value:nth-child(2) { border-right-color: var(--blue); }
[dir="rtl"] .value:nth-child(3) { border-right-color: var(--orange); }
[dir="rtl"] .cta__shape { left: auto; right: -70px; transform: scaleX(-1); }
[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 20px; }
[dir="rtl"] .lang-switch__menu { right: auto; left: 0; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .cta { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__shape { display: none; }
}
@media (max-width: 720px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .lang-switch { margin-left: auto; }
  [dir="rtl"] .lang-switch { margin-left: 0; margin-right: auto; }
  .lang-switch__btn { padding: 0 11px; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); padding: 20px 32px; gap: 18px;
    border-bottom: 1px solid var(--line); margin-left: 0;
  }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .cta__form { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 20px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; align-items: flex-start; }
  .section { padding: 76px 0; }
}
/* ===== Visual enhancement layer: decor geometry, premium motion ===== */

/* Floating decorative geometry (brand colors at low opacity, aria-hidden) */
.decor, .section-decor { position: absolute; pointer-events: none; }

.decor--ring {
  width: 150px; height: 150px; border: 1.5px solid rgba(46,127,212,0.35);
  border-radius: 50%; top: 40px; right: -220px;
}

.section-decor--services {
  width: 150px; height: 150px; border: 1.5px solid rgba(140,198,63,0.4);
  transform: rotate(14deg); top: 90px; right: 4%;
}
.section-decor--process {
  width: 220px; height: 220px; border: 1.5px solid rgba(46,127,212,0.22);
  border-radius: 50%; top: 70px; right: 6%;
}
.section-decor--work {
  width: 170px; height: 110px; top: 80px; right: 4%;
  background-image: radial-gradient(rgba(17,17,17,0.16) 1.1px, transparent 1.2px);
  background-size: 16px 16px;
  animation: float-y 12s ease-in-out infinite alternate;
}
.section-decor--cta-ring {
  width: 120px; height: 120px; border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 50%; top: -50px; right: 20%;
  animation: float-y 12s ease-in-out infinite alternate;
}
.section-decor--cta-square {
  width: 16px; height: 16px; background: rgba(140,198,63,0.55);
  transform: rotate(24deg); top: 60px; right: 8%;
  animation: float-y 8s ease-in-out infinite alternate-reverse;
}

/* Slow ambient motion. Keyframes use the individual translate property so
   they compose with existing transforms (rotate, skew, scaleX in RTL).
   Only small decor elements animate — animating the large hero/CTA shapes
   re-composites huge layers every frame and chokes software rendering. */
@keyframes float-y { from { translate: 0 -8px; } to { translate: 0 10px; } }

/* Marquee: soft fade at strip edges (static overlays — a mask here would
   re-rasterize the infinitely-scrolling track every frame) */
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 72px;
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(255,255,255,0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), rgba(255,255,255,0)); }

/* Micro-interactions */
.card__num { transition: transform 0.25s var(--ease); }
.card:hover .card__num { transform: rotate(-6deg) scale(1.06); }
.btn:active { transform: translateY(0) scale(0.985); box-shadow: none; }
.btn:focus-visible, .lang-switch__btn:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
.field input:focus, .field textarea:focus { background: rgba(255,255,255,0.08); }

/* Anchor jumps land below the sticky header */
main section[id] { scroll-margin-top: 88px; }

/* RTL mirroring for decor */
[dir="rtl"] .decor--ring { right: auto; left: -220px; }
[dir="rtl"] .section-decor--services { right: auto; left: 4%; }
[dir="rtl"] .section-decor--process { right: auto; left: 6%; }
[dir="rtl"] .section-decor--work { right: auto; left: 4%; }
[dir="rtl"] .section-decor--cta-ring { right: auto; left: 20%; }
[dir="rtl"] .section-decor--cta-square { right: auto; left: 8%; }

/* Mid-width desktops: the whitespace strip next to the hero text narrows,
   so tuck the ring in */
@media (max-width: 1360px) {
  .decor--ring { right: -150px; top: 20px; }
  [dir="rtl"] .decor--ring { right: auto; left: -150px; }
}
@media (max-width: 960px) {
  .hero .decor { display: none; }
}
@media (max-width: 720px) {
  .section-decor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .reveal .section__title::after { width: 56px; }
  .reveal .eyebrow::before { width: 26px; }
  .reveal .checklist li { opacity: 1; translate: none; }
}
