/* =========================================================
   Hulul — main stylesheet
   Palette & type from the Hulul visual identity guide
   ========================================================= */

/* ---------- fonts ---------- */
@font-face { font-family: 'Hacen Tunisia'; src: url('../fonts/HacenTunisia-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Hacen Tunisia'; src: url('../fonts/HacenTunisia-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hacen Tunisia'; src: url('../fonts/HacenTunisia-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
/* Myriad Pro handles Latin letters & digits only; Arabic falls through to Hacen */
@font-face { font-family: 'Myriad Latin'; src: url('../fonts/MyriadPro-Light.otf') format('opentype'); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122; }
@font-face { font-family: 'Myriad Latin'; src: url('../fonts/MyriadPro-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122; }
@font-face { font-family: 'Myriad Latin'; src: url('../fonts/MyriadPro-Semibold.otf') format('opentype'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122; }
@font-face { font-family: 'Myriad Latin'; src: url('../fonts/MyriadPro-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122; }

/* ---------- tokens ---------- */
:root {
  --navy: #14056B;
  --navy-900: #0B0340;
  --navy-700: #2A1B8F;
  --mint: #54E0C5;
  --mint-ink: #0E7C68;      /* mint darkened for text on light */
  --gold: #F2BF04;
  --canvas: #F8FAFC;
  --white: #FFFFFF;
  --ink: #15103D;
  --muted: #57537C;
  --line: rgba(20, 5, 107, .12);
  --line-light: rgba(248, 250, 252, .16);

  --font: 'Myriad Latin', 'Hacen Tunisia', system-ui, sans-serif;
  --latin: 'Myriad Latin', system-ui, sans-serif;

  --step--1: .9rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 5rem);
  --step-5: clamp(3.2rem, 1.2rem + 8.4vw, 9.5rem);

  --radius: 26px;
  --radius-sm: 14px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 150px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.85;
  color: var(--ink);
  background: var(--canvas);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--mint); color: var(--navy); }

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy); padding: 10px 18px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.i { width: 1.25em; height: 1.25em; flex: none; }

.h2 { font-size: var(--step-3); color: var(--navy); line-height: 1.2; }
.h3 { font-size: var(--step-2); color: var(--navy); }

.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); max-width: 62ch; }
.section-head--row { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
.section-foot { margin-top: clamp(40px, 5vw, 64px); }

/* brand quarter-circles (from the stationery system) */
.arc { position: absolute; pointer-events: none; }
.arc--gold { background: var(--gold); }
.arc--mint { background: var(--mint); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { font-size: 1.06rem; padding: 1em 2em; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #FFD233; }
.btn--mint { background: var(--mint); color: var(--navy); }
.btn--mint:hover { background: #7BEBD6; }
.btn--navy { background: var(--navy); color: var(--canvas); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border-color: rgba(248, 250, 252, .55); color: var(--canvas); }
.btn--ghost:hover { background: var(--canvas); color: var(--navy); border-color: var(--canvas); }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--canvas); }

.link-cta {
  display: inline-block; font-weight: 700; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 8px;
  transition: text-decoration-color .2s, text-underline-offset .2s;
}
.link-cta:hover { text-decoration-color: var(--gold); text-underline-offset: 5px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  color: var(--canvas);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(11, 3, 64, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-light); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand img { width: 132px; height: auto; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.main-nav a { font-weight: 400; font-size: 1.02rem; padding-block: 6px; position: relative; opacity: .88; transition: opacity .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--mint); border-radius: 2px; }
.menu-toggle, .menu-close { display: none; background: none; border: 0; padding: 8px; color: inherit; font-size: 1.4rem; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 100; background: var(--navy-900); color: var(--canvas);
  padding: 20px var(--gutter) 40px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
}
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu ul { display: grid; gap: 6px; }
.mobile-menu ul a { display: block; font-size: 2rem; font-weight: 700; padding-block: 6px; }
.mobile-menu ul a[aria-current="page"] { color: var(--mint); }
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu__contact { margin-top: auto; display: grid; gap: 6px; opacity: .75; justify-items: start; }
.menu-close { display: inline-flex; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end;
  color: var(--canvas); background: var(--navy-900); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 3, 64, .96) 0%, rgba(20, 5, 107, .62) 42%, rgba(11, 3, 64, .38) 100%),
    linear-gradient(to left, rgba(11, 3, 64, .55), transparent 60%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 24px 64px;
  padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(56px, 9vh, 110px);
}
.hero__title { font-size: var(--step-5); line-height: 1.02; grid-column: 1 / -1; }
.hero__line { display: block; overflow: hidden; padding-block: .06em; }
.hero__line > span { display: inline-block; }
.hero__line:nth-child(2) > span { color: var(--mint); }
.hero__copy { grid-column: 2; grid-row: 2; max-width: 520px; }
.hero__sub { font-size: var(--step-2); font-weight: 400; line-height: 1.5; margin-bottom: .6em; }
.hero__body { color: rgba(248, 250, 252, .78); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__toggle {
  position: absolute; z-index: 2; inset-inline-end: var(--gutter); top: calc(var(--header-h) + 20px);
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(11, 3, 64, .45); border: 1px solid var(--line-light); color: var(--canvas);
  padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 400;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__toggle .i { width: 1em; height: 1em; }
.hero__toggle .i-play { display: none; }
.hero__toggle[aria-pressed="true"] .i-play { display: block; }
.hero__toggle[aria-pressed="true"] .i-pause { display: none; }
.arc--hero { width: clamp(90px, 13vw, 200px); aspect-ratio: 1; inset-inline-end: 0; bottom: 0; border-top-right-radius: 100%; }
.arc--hero-sm { width: clamp(40px, 5vw, 76px); aspect-ratio: 1; inset-inline-start: 0; bottom: 0; border-top-left-radius: 100%; }

/* page-load sequence: the only non-interactive motion on the page */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__line > span { transform: translateY(105%); }
  .js .hero__copy, .js .hero__toggle { opacity: 0; }
  .js.is-loaded .hero__line > span { transform: none; transition: transform 1.1s var(--ease); }
  .js.is-loaded .hero__line:nth-child(2) > span { transition-delay: .12s; }
  .js.is-loaded .hero__copy, .js.is-loaded .hero__toggle { opacity: 1; transition: opacity 1s var(--ease) .55s; }
}

/* ---------- page hero ---------- */
.page-hero {
  position: relative; background: var(--navy); color: var(--canvas); overflow: hidden; isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(64px, 8vw, 110px);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(20, 5, 107, .95) 30%, rgba(20, 5, 107, .72)); }
.page-hero__title { font-size: var(--step-4); line-height: 1.1; }
.page-hero__lead { max-width: 58ch; margin-top: 22px; font-size: var(--step-1); font-weight: 300; color: rgba(248, 250, 252, .82); }
.arc--page { width: clamp(70px, 9vw, 140px); aspect-ratio: 1; left: 0; bottom: 0; border-top-right-radius: 100%; }
.crumbs { margin-bottom: 28px; font-size: .92rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; color: rgba(248, 250, 252, .7); }
.crumbs li + li::before { content: '/'; margin-inline-end: 10px; opacity: .5; }
.crumbs a { color: var(--mint); }
.crumbs a:hover { text-decoration: underline; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__text { display: grid; gap: 6px; justify-items: start; }
.about__text .h2 { margin-bottom: 18px; }
.about__text p { color: var(--muted); max-width: 60ch; }
.about__text .link-cta { margin-top: 14px; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.arc--about { width: 34%; aspect-ratio: 1; top: 0; right: 0; border-bottom-left-radius: 100%; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(64px, 8vw, 120px); }
.mv__item { border-top: 2px solid var(--navy); padding-top: 26px; }
.mv__item h3 { font-size: var(--step-2); color: var(--navy); margin-bottom: 12px; }
.mv__item p { color: var(--muted); font-size: var(--step-1); line-height: 1.75; }

/* ---------- numbers ---------- */
.numbers { background: var(--navy); color: var(--canvas); padding-block: clamp(72px, 9vw, 130px); position: relative; overflow: hidden; }
.numbers .container { display: grid; grid-template-columns: .9fr 2fr; gap: 48px; align-items: end; }
.numbers__title { font-size: var(--step-2); font-weight: 400; line-height: 1.5; max-width: 16ch; }
.numbers__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.numbers__item { display: flex; flex-direction: column-reverse; gap: 4px; border-inline-start: 1px solid var(--line-light); padding-inline-start: 24px; }
.numbers__item dt { color: rgba(248, 250, 252, .75); font-size: var(--step-1); font-weight: 400; }
.num { font-family: var(--latin); font-weight: 700; font-size: clamp(3rem, 1.4rem + 5vw, 6.5rem); line-height: 1; color: var(--mint); font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }

/* ---------- services (list + stage) ---------- */
.services { background: var(--canvas); }
.svc { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc__list { counter-reset: none; border-top: 1px solid var(--line); }
.svc__item { border-bottom: 1px solid var(--line); }
.svc__btn {
  width: 100%; background: none; border: 0; text-align: start;
  display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 12px; align-items: baseline;
  padding: 18px 0; position: relative; color: var(--muted); transition: color .25s var(--ease), padding .35s var(--ease);
}
.svc__btn::before { content: ''; position: absolute; inset-inline-start: -18px; top: 50%; width: 4px; height: 0; background: var(--mint); border-radius: 4px; transform: translateY(-50%); transition: height .35s var(--ease); }
.svc__num { font-family: var(--latin); font-weight: 600; font-size: 1rem; color: var(--muted); }
.svc__name { font-size: var(--step-1); font-weight: 400; line-height: 1.45; }
.svc__en { grid-column: 2; font-family: var(--latin); font-size: .88rem; color: var(--muted); opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s, max-height .35s var(--ease); text-align: right; }
.svc__item.is-active .svc__btn { color: var(--navy); padding-inline-start: 6px; }
.svc__item.is-active .svc__btn::before { height: 64%; }
.svc__item.is-active .svc__name { font-weight: 700; }
.svc__item.is-active .svc__num { color: var(--navy); }
.svc__item.is-active .svc__en { opacity: 1; max-height: 2em; }
.svc__inline { display: none; }
.svc__stage { position: sticky; top: calc(var(--header-h) + 24px); display: grid; }
.svc__panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.svc__panel.is-active { opacity: 1; visibility: visible; }
.svc__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--navy); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.svc__panel.is-active .svc__media img { transform: none; }
.svc__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 3, 64, .55), transparent 55%); }
.svc__panel-num { position: absolute; z-index: 1; left: 24px; bottom: 10px; font-family: var(--latin); font-weight: 700; font-size: clamp(4rem, 8vw, 7rem); line-height: 1; color: var(--canvas); opacity: .9; }
.svc__body { padding-top: 28px; display: grid; gap: 12px; justify-items: start; }
.svc__body h3 { font-size: var(--step-2); color: var(--navy); }
.svc__body p { color: var(--muted); max-width: 52ch; }

/* ---------- innovation ---------- */
.innov { position: relative; background: var(--navy-900); color: var(--canvas); padding-block: var(--section); overflow: hidden; }
.innov__title { font-size: var(--step-4); line-height: 1.2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; max-width: 18ch; }
.innov__op { font-family: var(--latin); color: var(--gold); font-weight: 700; }
.innov__result { color: var(--mint); }
.innov__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; margin-block: clamp(40px, 6vw, 72px); align-items: start; }
.innov__lead { font-size: var(--step-1); color: rgba(248, 250, 252, .8); max-width: 40ch; }
.innov__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.innov__pillars div { border-top: 1px solid var(--mint); padding-top: 18px; }
.innov__pillars dt { font-size: var(--step-2); font-weight: 700; margin-bottom: 6px; }
.innov__pillars dd { color: rgba(248, 250, 252, .72); }
.arc--innov { width: clamp(80px, 11vw, 170px); aspect-ratio: 1; top: 0; left: 0; border-bottom-right-radius: 100%; }

/* ---------- work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
  padding: .55em 1.2em; border-radius: 999px; font-weight: 400; font-size: .98rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: var(--canvas); border-color: var(--navy); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.work-card a { display: block; position: relative; }
.work-card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work-card a:hover .work-card__media img, .work-card a:focus-visible .work-card__media img { transform: scale(1.05); }
.work-card__meta { padding-top: 18px; display: grid; gap: 4px; }
.work-card__cat { font-size: .9rem; font-weight: 400; color: var(--mint-ink); display: inline-flex; align-items: center; gap: 8px; }
.work-card__cat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.work-card__title { font-size: var(--step-1); color: var(--navy); line-height: 1.4; }
.work-card__sector { font-size: .92rem; color: var(--muted); }
.work-card__go {
  position: absolute; top: 16px; left: 16px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--canvas); color: var(--navy);
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.work-card a:hover .work-card__go { background: var(--gold); transform: rotate(45deg); }
.work-card.is-out { display: none; }
.work-empty { color: var(--muted); padding: 40px 0; }

/* ---------- clients ---------- */
.clients { background: var(--white); }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-wall__slot { aspect-ratio: 3 / 2; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; color: rgba(87, 83, 124, .7); font-size: .85rem; }

/* ---------- method ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 48px); }
.step { border-top: 2px solid var(--mint); padding-top: 22px; }
.step__num { display: block; font-family: var(--latin); font-weight: 600; font-size: 1.05rem; color: var(--navy-700); margin-bottom: 14px; }
.step h3 { font-size: var(--step-1); color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- why ---------- */
.why { background: var(--white); }
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.why__lead { font-size: var(--step-2); font-weight: 400; color: var(--navy); line-height: 1.5; margin: 18px 0 32px; max-width: 20ch; }
.why__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.why__list li { padding-block: 28px; border-bottom: 1px solid var(--line); }
.why__list h3 { font-size: var(--step-1); color: var(--navy); margin-bottom: 8px; }
.why__list p { color: var(--muted); }

/* ---------- testimonials ---------- */
.testi { background: var(--navy); color: var(--canvas); padding-block: var(--section); }
.testi .h2 { color: var(--canvas); }
.testi__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.testi__head p { color: rgba(248, 250, 252, .75); }
.slider { max-width: 900px; }
.slide__mark { display: block; color: var(--gold); font-size: 3rem; margin-bottom: 10px; }
.slide__mark .i { width: 1em; height: 1em; }
.slide blockquote { margin: 0; font-size: var(--step-2); font-weight: 400; line-height: 1.6; }
.slide figcaption { margin-top: 28px; display: grid; gap: 2px; }
.slide figcaption strong { color: var(--mint); font-weight: 700; }
.slide figcaption span { color: rgba(248, 250, 252, .65); font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) { .slide.is-active { animation: slideIn .6s var(--ease); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.slider__controls { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-light); background: none; color: var(--canvas); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.round-btn:hover { background: var(--canvas); color: var(--navy); }
.slider__dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(248, 250, 252, .3); transition: width .3s var(--ease), background-color .3s; }
.dot.is-active { width: 30px; background: var(--mint); }

/* ---------- contact ---------- */
.contact { position: relative; color: var(--canvas); padding-block: var(--section); isolation: isolate; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -2; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(20, 5, 107, .94), rgba(11, 3, 64, .88)); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .h2 { color: var(--canvas); }
.contact__text > p { font-size: var(--step-1); color: rgba(248, 250, 252, .8); margin-top: 18px; max-width: 36ch; }
.contact__info { margin-top: 44px; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.contact__info li { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line-light); }
.contact__info span { color: rgba(248, 250, 252, .62); }
.contact__info a { font-weight: 400; }
.contact__info a:hover { color: var(--mint); }
.contact__card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.contact__card h3 { font-size: var(--step-2); color: var(--navy); margin-bottom: 24px; }

.social { display: flex; gap: 10px; margin-top: 28px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); color: var(--canvas); transition: background-color .2s, color .2s; }
.social a:hover { background: var(--mint); color: var(--navy); border-color: var(--mint); }
.social .i { width: 1.1em; height: 1.1em; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 400; color: var(--navy); font-size: .98rem; }
.field input, .field select, .field textarea {
  width: 100%; background: #F1F3F9; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 13px 16px; font-weight: 400; color: var(--ink); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2314056B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: 16px 50%; background-size: 18px; background-repeat: no-repeat; padding-left: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 4px rgba(84, 224, 197, .35); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C42B1C; background: #FFF6F5; }
.field__err { color: #B42318; font-size: .9rem; font-weight: 400; margin: 0; }
.form .btn[type="submit"] { justify-self: start; margin-top: 6px; }
.form__done { background: rgba(84, 224, 197, .18); border: 1.5px solid var(--mint); border-radius: var(--radius-sm); padding: 18px 20px; color: var(--navy); }
.form__done strong { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.form.is-sent > :not(.form__done) { display: none; }

/* ---------- services index ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 48px); }
.svc-card a { display: grid; gap: 22px; }
.svc-card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-card a:hover img { transform: scale(1.04); }
.svc-card__body { display: grid; gap: 6px; justify-items: start; }
.svc-card__num { font-family: var(--latin); font-weight: 600; color: var(--mint-ink); }
.svc-card h2 { font-size: var(--step-2); color: var(--navy); }
.svc-card__en { font-family: var(--latin); font-size: .92rem; color: var(--muted); }
.svc-card p { color: var(--muted); margin: 8px 0 10px; max-width: 54ch; }

/* ---------- service page ---------- */
.svc-hero { background: var(--navy); color: var(--canvas); padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(56px, 7vw, 100px); overflow: hidden; }
.svc-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.svc-hero__num { font-family: var(--latin); font-weight: 600; color: var(--mint); direction: ltr; display: inline-block; }
.svc-hero__title { font-size: var(--step-4); line-height: 1.15; margin: 10px 0 8px; }
.svc-hero__en { font-family: var(--latin); font-size: 1.1rem; color: rgba(248, 250, 252, .65); margin-bottom: 26px; text-align: right; }
.svc-hero__intro { font-size: var(--step-1); color: rgba(248, 250, 252, .85); max-width: 52ch; margin-bottom: 34px; }
.svc-hero__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; }
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.arc--svc { width: 30%; aspect-ratio: 1; bottom: 0; left: 0; border-top-right-radius: 100%; }
.svc-detail__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.ticks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 16px; align-items: flex-start; padding-block: 20px; border-bottom: 1px solid var(--line); font-size: var(--step-1); font-weight: 400; color: var(--navy); line-height: 1.6; }
.ticks .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--mint); color: var(--navy); margin-top: 2px; }
.svc-pager { border-block: 1px solid var(--line); background: var(--white); }
.svc-pager__grid { display: grid; grid-template-columns: 1fr 1fr; }
.svc-pager__link { display: grid; gap: 6px; padding-block: 40px; }
.svc-pager__link + .svc-pager__link { border-inline-start: 1px solid var(--line); padding-inline-start: 40px; text-align: left; }
.svc-pager__link span { color: var(--muted); font-size: .95rem; }
.svc-pager__link strong { font-size: var(--step-2); color: var(--navy); font-weight: 700; transition: color .2s; }
.svc-pager__link:hover strong { color: var(--mint-ink); }

/* ---------- case study ---------- */
.case__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); }
.case__facts div { border-top: 2px solid var(--navy); padding-top: 16px; }
.case__facts dt { color: var(--muted); font-size: .95rem; }
.case__facts dd { color: var(--navy); font-weight: 700; font-size: var(--step-1); }
.case__body { display: grid; gap: 48px; max-width: 72ch; }
.case__body .h3 { margin-bottom: 12px; }
.case__body p { color: var(--muted); }
.case__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.case__results li { border-inline-start: 3px solid var(--mint); padding-inline-start: 16px; display: grid; }
.case__results strong { font-family: var(--latin); font-size: 2.6rem; color: var(--navy); line-height: 1.1; }
.case__results span { color: var(--muted); }
.case__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.case__gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- start a project ---------- */
.start__wrap { max-width: 920px; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px; counter-reset: none; }
.stepper li { display: flex; align-items: center; gap: 12px; font-weight: 400; color: var(--muted); border-top: 3px solid var(--line); padding-top: 14px; }
.stepper span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--latin); font-weight: 600; border: 1.5px solid var(--line); flex: none; }
.stepper li.is-current { color: var(--navy); border-color: var(--navy); font-weight: 700; }
.stepper li.is-current span { background: var(--navy); color: var(--canvas); border-color: var(--navy); }
.stepper li.is-done { color: var(--navy); border-color: var(--mint); }
.stepper li.is-done span { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.start__form { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 52px); }
.start__step { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.start__step legend { padding: 0; margin-bottom: 10px; }
.start__hint { color: var(--muted); margin: -6px 0 0; }
.start__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 10px; }
.start__nav:has(> :only-child) { justify-content: flex-start; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; font-weight: 400; color: var(--navy); transition: border-color .2s, background-color .2s; }
.choice input { appearance: none; width: 22px; height: 22px; border: 1.5px solid var(--navy); border-radius: 6px; flex: none; display: grid; place-items: center; margin: 0; }
.choice input::after { content: ''; width: 11px; height: 6px; border: solid var(--navy); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.choice input:checked { background: var(--mint); border-color: var(--navy); }
.choice input:checked::after { opacity: 1; }
.choice:has(input:checked) { border-color: var(--navy); background: rgba(84, 224, 197, .12); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.legal__body { max-width: 72ch; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--navy-900); color: rgba(248, 250, 252, .75); padding-top: clamp(72px, 9vw, 120px); overflow: hidden; }
.arc--footer { width: clamp(60px, 7vw, 110px); aspect-ratio: 1; top: 0; right: 0; border-bottom-left-radius: 100%; }
.site-footer__top { display: grid; grid-template-columns: 1.2fr .6fr 2fr .8fr; gap: 40px; padding-bottom: 64px; }
.site-footer__brand img { width: 150px; margin-bottom: 22px; }
.site-footer__tag { color: var(--canvas); font-weight: 700; font-size: var(--step-1); margin-bottom: 6px; }
.site-footer__brand p { max-width: 36ch; }
.site-footer__h { color: var(--canvas); font-size: 1.05rem; margin-bottom: 18px; }
.site-footer__links { display: grid; gap: 10px; font-size: .98rem; }
.site-footer__links--cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.site-footer__links a:hover { color: var(--mint); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-light); padding-block: 26px; font-size: .92rem; }
.site-footer__bottom ul { display: flex; gap: 24px; }
.site-footer__bottom a:hover { color: var(--mint); }

.wa-float {
  position: fixed; z-index: 40; left: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint); color: var(--navy);
  box-shadow: 0 10px 30px rgba(11, 3, 64, .28); transition: transform .25s var(--ease), background-color .2s;
}
.wa-float .i { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); background: var(--gold); }

/* subtle follower ring — never replaces the system cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 300; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid var(--mint); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s; }
.cursor.is-on { opacity: .9; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(84, 224, 197, .14); }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; margin-inline-start: auto; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .numbers .container { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { grid-column: 1; grid-row: auto; }
  .about__grid, .why__grid, .contact__grid, .svc-hero__grid, .svc-detail__grid, .innov__grid, .testi__head, .section-head--row { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; }
  .mv { grid-template-columns: 1fr; }
  .why__aside { position: static; }
  .why__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc__stage { display: none; }
  .svc__item.is-active .svc__inline { display: grid; gap: 12px; justify-items: start; padding: 0 0 22px calc(0px); padding-inline-start: calc(3.2rem + 12px); }
  .svc__inline p { color: var(--muted); }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-hero__media { aspect-ratio: 4 / 3; }
  .case__facts, .case__results { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .numbers__list { grid-template-columns: 1fr; gap: 28px; }
  .work-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .innov__pillars { grid-template-columns: 1fr; }
  .form__row, .choice-grid, .stepper { grid-template-columns: 1fr; }
  .stepper li:not(.is-current) { display: none; }
  .site-footer__top { grid-template-columns: 1fr; }
  .svc-pager__grid { grid-template-columns: 1fr; }
  .svc-pager__link + .svc-pager__link { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; text-align: right; }
  .case__gallery { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .contact__info li { flex-direction: column; gap: 2px; }
}

/* =========================================================
   v2 — language switch, branches, partners, WhatsApp chooser
   ========================================================= */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: .95rem; opacity: .9; transition: opacity .2s, color .2s; }
.lang-switch:hover { opacity: 1; color: var(--mint); }
.lang-switch .i { width: 1.05em; height: 1.05em; }
.lang-switch--menu { font-size: 1.1rem; align-self: flex-start; }
.site-footer__bottom .lang-switch { opacity: 1; }
@media (max-width: 1100px) { .lang-switch--header { margin-inline-start: auto; } .lang-switch--header + .site-header__cta + .menu-toggle { margin-inline-start: 4px; } }

/* every inner page hero now carries a photo */
.page-hero__media img { filter: saturate(.9); }
.page-hero--img::before { background: linear-gradient(to left, rgba(20, 5, 107, .94) 25%, rgba(20, 5, 107, .62) 70%, rgba(20, 5, 107, .45)); }

/* clients / partners on navy, logos unified to white */
.clients { background: var(--navy); color: var(--canvas); }
.clients .h2 { color: var(--canvas); }
.clients .section-head p { color: rgba(248, 250, 252, .75); }
.logo-wall { grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-light); border-inline-start: 1px solid var(--line-light); }
.logo-wall__item { border-bottom: 1px solid var(--line-light); border-inline-end: 1px solid var(--line-light); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 22px; }
.logo-wall__item a { display: grid; place-items: center; width: 100%; height: 100%; }
.logo-wall__item img { max-height: 64px; max-width: 72%; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .78; transition: opacity .25s; }
.logo-wall__item a:hover img { opacity: 1; }

/* branches in contact */
.branches { margin-top: 40px; display: grid; gap: 32px; }
.branch__name { font-size: var(--step-1); color: var(--mint); margin-bottom: 4px; }
.branch__addr { color: rgba(248, 250, 252, .8); margin-bottom: 10px; }
.branch .contact__info { margin-top: 0; }
.branch__phones { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; }
.branch__phones a { color: var(--canvas); }
.site-footer__branch { margin-bottom: 18px; }
.site-footer__branch strong { display: block; color: var(--canvas); font-weight: 700; margin-bottom: 6px; }

/* WhatsApp chooser */
.wa { position: fixed; z-index: 40; left: 22px; bottom: 22px; display: grid; justify-items: start; gap: 10px; }
.wa .wa-float { position: static; border: 0; }
.wa__menu { background: var(--white); color: var(--navy); border-radius: var(--radius-sm); padding: 14px; min-width: 210px; box-shadow: 0 16px 40px rgba(11, 3, 64, .25); display: grid; gap: 6px; }
.wa__menu p { margin: 0 0 4px; font-size: .9rem; color: var(--muted); font-weight: 400; }
.wa__menu a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 700; background: #F1F3F9; transition: background-color .2s; }
.wa__menu a:hover { background: var(--mint); }

/* =========================================================
   English (LTR)
   ========================================================= */
[lang="en"] body { line-height: 1.65; }
[lang="en"] .h2, [lang="en"] .page-hero__title, [lang="en"] .svc-hero__title, [lang="en"] .innov__title { letter-spacing: -.01em; line-height: 1.12; }
[lang="en"] .hero__title { letter-spacing: -.02em; line-height: .98; font-size: clamp(3rem, 1rem + 7.6vw, 8.6rem); }
[lang="en"] .hero__line { padding-block: .02em .08em; }
[lang="en"] .svc__name, [lang="en"] .why__list h3, [lang="en"] .step h3 { line-height: 1.3; }
[lang="en"] .mv__item p, [lang="en"] .innov__lead, [lang="en"] .page-hero__lead, [lang="en"] .svc-hero__intro { line-height: 1.6; }

[dir="ltr"] .hero__shade { background: linear-gradient(to top, rgba(11, 3, 64, .96) 0%, rgba(20, 5, 107, .62) 42%, rgba(11, 3, 64, .38) 100%), linear-gradient(to right, rgba(11, 3, 64, .55), transparent 60%); }
[dir="ltr"] .page-hero--img::before { background: linear-gradient(to right, rgba(20, 5, 107, .94) 25%, rgba(20, 5, 107, .62) 70%, rgba(20, 5, 107, .45)); }
[dir="ltr"] .contact::before { background: linear-gradient(to right, rgba(20, 5, 107, .94), rgba(11, 3, 64, .88)); }

[dir="ltr"] .arc--hero { border-radius: 0; border-top-left-radius: 100%; }
[dir="ltr"] .arc--hero-sm { border-radius: 0; border-top-right-radius: 100%; }
[dir="ltr"] .arc--page { left: auto; right: 0; border-radius: 0; border-top-left-radius: 100%; }
[dir="ltr"] .arc--about { right: auto; left: 0; border-radius: 0; border-bottom-right-radius: 100%; }
[dir="ltr"] .arc--innov { left: auto; right: 0; border-radius: 0; border-bottom-left-radius: 100%; }
[dir="ltr"] .arc--svc { left: auto; right: 0; border-radius: 0; border-top-left-radius: 100%; }
[dir="ltr"] .arc--footer { right: auto; left: 0; border-radius: 0; border-bottom-right-radius: 100%; }

[dir="ltr"] .svc__panel-num { left: auto; right: 24px; }
[dir="ltr"] .work-card__go { left: auto; right: 16px; }
[dir="ltr"] .work-card__go .i { transform: scaleX(-1); }
[dir="ltr"] .work-card a:hover .work-card__go { transform: rotate(-45deg); }
[dir="ltr"] .wa { left: auto; right: 22px; justify-items: end; }
[dir="ltr"] .svc__en { text-align: left; }
[dir="ltr"] .svc-hero__en { text-align: left; }
[dir="ltr"] .branch__phones { justify-content: flex-end; }
[dir="ltr"] .field select { background-position: calc(100% - 16px) 50%; padding-left: 16px; padding-right: 40px; }
.svc-pager__link + .svc-pager__link { text-align: end; }
@media (max-width: 640px) { .svc-pager__link + .svc-pager__link { text-align: start; } .branch__phones { justify-content: flex-start; } }
.logo-wall__item img { max-height: 60px; max-width: 64%; }
.logo-wall__item--color img { filter: none; opacity: 1; }

/* =========================================================
   v3 — animated menu, WhatsApp, project cards, viewer, testimonials
   ========================================================= */
html.menu-open { overflow: hidden; }

/* mobile menu: circular reveal from the toggle + staggered links */
.mobile-menu {
  display: flex; visibility: hidden; pointer-events: none;
  clip-path: circle(0px at var(--ox, 90%) var(--oy, 36px));
  transition: clip-path .55s cubic-bezier(.7, 0, .3, 1), visibility 0s linear .55s;
  isolation: isolate; overflow: hidden auto;
}
.mobile-menu.is-open { visibility: visible; pointer-events: auto; clip-path: circle(160vmax at var(--ox, 90%) var(--oy, 36px)); transition: clip-path .75s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.mobile-menu::before, .mobile-menu::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; transition: transform .8s var(--ease) .1s; }
.mobile-menu::before { width: 46vw; max-width: 260px; background: var(--mint); bottom: 0; inset-inline-end: 0; border-top-left-radius: 100%; transform: translateY(100%); }
.mobile-menu::after { width: 26vw; max-width: 140px; background: var(--gold); bottom: 0; inset-inline-start: 0; border-top-right-radius: 100%; transform: translateY(100%); }
[dir="rtl"] .mobile-menu::before { border-top-left-radius: 0; border-top-right-radius: 100%; }
[dir="rtl"] .mobile-menu::after { border-top-right-radius: 0; border-top-left-radius: 100%; }
.mobile-menu.is-open::before, .mobile-menu.is-open::after { transform: none; }
.mobile-menu__nav { display: grid; gap: 4px; margin-top: 12px; }
.mobile-menu__nav a { display: block; font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 700; padding-block: 4px; }
.mobile-menu__nav a[aria-current="page"] { color: var(--mint); }
.mobile-menu__nav li, .mobile-menu__foot, .mobile-menu__top { opacity: 0; transform: translateY(26px); transition: opacity .25s, transform .3s; }
.mobile-menu.is-open .mobile-menu__nav li, .mobile-menu.is-open .mobile-menu__foot, .mobile-menu.is-open .mobile-menu__top {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease) calc(.25s + var(--i, 0) * .07s), transform .7s var(--ease) calc(.25s + var(--i, 0) * .07s);
}
.mobile-menu__foot { display: grid; gap: 20px; justify-items: start; margin-top: auto; padding-bottom: 8px; }
.mobile-menu__foot .mobile-menu__contact { margin-top: 0; }
.menu-close { transition: transform .4s var(--ease); }
.menu-close:hover { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu.is-open { clip-path: none; transition: opacity .2s, visibility 0s linear .2s; opacity: 0; }
  .mobile-menu.is-open { opacity: 1; transition: opacity .2s; }
  .mobile-menu__nav li, .mobile-menu__foot, .mobile-menu__top { transform: none; transition: none; opacity: 1; }
  .mobile-menu::before, .mobile-menu::after { transform: none; transition: none; }
}

/* WhatsApp: brand green, floating */
.wa .wa-float { width: 60px; height: 60px; background: #25D366; color: #fff; box-shadow: 0 12px 28px rgba(37, 211, 102, .45); position: relative; }
.wa .wa-float:hover { background: #1EBE5A; transform: scale(1.06); }
.wa .wa-float .i { width: 30px; height: 30px; }
.wa .wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; }
@media (prefers-reduced-motion: no-preference) {
  .wa { animation: waFloat 3.2s ease-in-out infinite; }
  .wa .wa-float::before { animation: waPulse 2.4s ease-out infinite; }
  .wa:hover, .wa:focus-within { animation-play-state: paused; }
}
@keyframes waFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }

/* project cards (real work) */
.work-card__open { display: block; width: 100%; background: none; border: 0; padding: 0; text-align: start; color: inherit; position: relative; cursor: pointer; }
.work-card__media { display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.work-card__media img, .work-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.work-card__open:hover .work-card__media img, .work-card__open:hover .work-card__media video, .work-card__open:focus-visible .work-card__media img { transform: scale(1.05); }
.work-card__meta { display: grid; gap: 4px; padding-top: 16px; }
.work-card__title { display: block; font-weight: 700; font-size: var(--step-1); color: var(--navy); line-height: 1.4; }
[lang="en"] .work-card__title { line-height: 1.3; }
.work-card__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(248, 250, 252, .92); color: var(--navy); transition: transform .35s var(--ease), background-color .25s; }
.work-card__play .i { width: 30px; height: 30px; }
.work-card__open:hover .work-card__play { transform: scale(1.1); background: var(--gold); }
.work-card__open:hover .work-card__go { background: var(--gold); transform: rotate(45deg); }
[dir="ltr"] .work-card__open:hover .work-card__go { transform: rotate(-45deg); }
.work-card__open:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }

/* project viewer */
.lightbox { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; max-height: 92vh; color: var(--canvas); overflow: visible; }
.lightbox::backdrop { background: rgba(11, 3, 64, .9); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; gap: 14px; }
@media (prefers-reduced-motion: no-preference) { .lightbox[open] { animation: lbIn .45s var(--ease); } }
@keyframes lbIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.lightbox__stage { display: grid; place-items: center; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 78vh; border-radius: var(--radius-sm); background: #000; }
.lightbox__frame { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__title { margin: 0; text-align: center; font-weight: 700; font-size: var(--step-1); }
.lightbox__close { position: absolute; top: -52px; inset-inline-end: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); background: rgba(11, 3, 64, .6); color: var(--canvas); display: grid; place-items: center; transition: background-color .2s, transform .3s var(--ease); }
.lightbox__close:hover { background: var(--canvas); color: var(--navy); transform: rotate(90deg); }

/* testimonials tied to partner logos */
.slider { max-width: none; }
.slide { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.slide__logo { aspect-ratio: 1; border: 1px solid var(--line-light); border-radius: var(--radius); display: grid; place-items: center; padding: 28px; background: rgba(11, 3, 64, .35); }
.slide__logo img { max-width: 100%; max-height: 110px; object-fit: contain; filter: brightness(0) invert(1); }
.slide__logo--color img { filter: none; }
.slide__body { max-width: 760px; }
.slide blockquote p.is-pending { color: rgba(248, 250, 252, .62); font-weight: 300; }
.slide__work { color: rgba(248, 250, 252, .75); font-size: .98rem; }
.slide__work span { color: var(--gold); font-weight: 400; }
@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; gap: 22px; }
  .slide__logo { width: 140px; padding: 20px; }
  .slide__logo img { max-height: 80px; }
}

/* responsive polish */
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .wa { left: 16px; bottom: 16px; }
  [dir="ltr"] .wa { right: 16px; left: auto; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media (max-width: 380px) { .hero__title { font-size: 2.7rem; } .btn--lg { padding: .95em 1.4em; } }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-wall__item { padding: 16px; }
  .mobile-menu::before { width: 34vw; max-width: 170px; }
  .mobile-menu::after { width: 18vw; max-width: 90px; }
}
html, body { overflow-x: clip; }
.mobile-menu::before, .mobile-menu::after { content: none; }

/* v4 — filters always fully visible, WhatsApp never touches the edge, video cards */
.filters { flex-wrap: wrap; }
@media (max-width: 640px) {
  .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; padding-bottom: 0; gap: 8px; }
  .chip { flex: 0 0 auto; font-size: .92rem; padding: .5em 1em; }
}
.wa { left: 24px; bottom: 24px; }
[dir="ltr"] .wa { left: auto; right: 24px; }
@media (max-width: 640px) {
  .wa { left: 20px; bottom: 20px; }
  [dir="ltr"] .wa { left: auto; right: 20px; }
  .wa .wa-float { width: 56px; height: 56px; }
  .wa .wa-float .i { width: 28px; height: 28px; }
}
.wa .wa-float { box-shadow: 0 8px 20px rgba(37, 211, 102, .4); }
.slide { display: block; }
.slide__body { max-width: 900px; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.35); opacity: 0; } }

.work-card__media video { background: var(--navy); }
.work-card__play { inset: auto; bottom: 14px; inset-inline-start: 14px; margin: 0; width: 44px; height: 44px; }
.work-card__play .i { width: 22px; height: 22px; }
.lightbox__close { top: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(11, 3, 64, .75); }
.lightbox__frame { width: min(100%, calc(76vh * 16 / 9)); margin-inline: auto; }
.lightbox__stage img, .lightbox__stage video { max-height: 80vh; }
