/* Tartip v2 — components for the new site structure.
   Built on the existing palette tokens (--t* in <style id="t-pal">), so the
   dark/light theme switch keeps working unchanged. */

/* ================= Tartip brand identity (Tartip Brand.pdf) =================
   Royal Blue #224087 · Signal Blue #2F6FED · Growth Cyan #17C3B2 · Ice #EEF2FC
   Brand gradient: Signal Blue → Growth Cyan, 135°.
   Type: Tajawal for all Arabic, Space Grotesk for all English.
   Dark theme = Royal Blue surfaces, light theme = Ice — the two template modes. */
:root {
  --brand-royal: #224087; --brand-blue: #2F6FED; --brand-cyan: #17C3B2; --brand-ice: #EEF2FC;
  --brand-grad: linear-gradient(135deg, #2F6FED, #17C3B2);
  --a1: #2F6FED; --a2: #17C3B2; --a3: #17C3B2;
  --ash: rgba(10, 26, 72, .55); --glow: .55;
  --acc: #5FE3D5;            /* readable cyan for small accent text on Royal Blue */
  --fn: 'Space Grotesk', 'Tajawal', sans-serif;   /* numbers & Latin display */
  /* dark (Royal Blue) palette */
  --t1: rgba(47,111,237,.55); --t2: rgba(23,195,178,.16); --t3: #224087; --t4: #EEF2FC;
  --t5: #A9C6FF; --t6: #D6E4FF; --t7: rgba(23,195,178,.4); --t9: rgba(214,226,252,.6); --t10: #1C3675;
  --t11: rgba(10,26,72,.5); --t12: #C3D0EE; --t13: #5FE3D5; --t14: rgba(255,255,255,.14);
  --t15: #2F6FED; --t16: #17C3B2; --t17: #17C3B2; --t18: rgba(255,255,255,.035); --t19: rgba(255,255,255,.24);
  --t20: rgba(255,255,255,.12); --t21: #BCC9EA; --t22: #FFFFFF; --t23: rgba(47,111,237,.55); --t24: rgba(23,195,178,.2);
  --t26: #E3EBFC; --t27: rgba(18,38,88,.35); --t28: rgba(255,255,255,.6); --t29: #FFFFFF; --t30: rgba(255,255,255,.45);
  --t31: rgba(47,111,237,.3); --t32: rgba(23,195,178,.14); --t33: rgba(47,111,237,.22); --t34: rgba(23,195,178,.18);
  --t35: rgba(255,255,255,.22); --t36: rgba(255,255,255,.07); --t37: #E6EDFC; --t39: rgba(255,255,255,.45); --t40: rgba(255,255,255,.14);
  --t41: #17C3B2; --t42: rgba(27,52,112,.94); --t43: rgba(34,64,135,.78); --t44: rgba(255,255,255,.12); --t45: rgba(255,255,255,.1);
  --t46: #CAD6F2; --t47: rgba(255,255,255,.24); --t48: rgba(255,255,255,.5); --t50: rgba(10,26,72,.45);
  --t51: rgba(255,255,255,.08); --t52: rgba(255,255,255,.025); --t53: rgba(255,255,255,.15); --t54: rgba(95,227,213,.55); --t55: rgba(8,22,64,.55);
  --t56: rgba(27,52,112,.85); --t57: rgba(255,255,255,.22); --t58: #E3EBFC; --t59: #FFFFFF; --t60: #D0DBF3;
  --t61: rgba(23,195,178,.14); --t62: rgba(95,227,213,.35); --t63: #DCE5F8; --t64: rgba(255,255,255,.15); --t65: #1C3675;
  --t66: #E1E9FA; --t67: #FFFFFF; --t68: #FFFFFF; --t69: #5FE3D5; --t70: rgba(47,111,237,.38); --t71: rgba(24,48,104,.92);
  --t72: rgba(255,255,255,.2); --t73: rgba(23,195,178,.45); --t74: rgba(20,40,90,.95); --t75: #BFCCEC; --t76: rgba(255,255,255,.1);
  --t78: rgba(47,111,237,.4); --t79: rgba(24,48,104,.95); --t80: rgba(23,195,178,.5); --t81: #D3F7F2; --t82: rgba(255,255,255,.13);
  --t83: rgba(47,111,237,.32); --t84: rgba(24,48,104,.85); --t85: rgba(255,255,255,.2); --t86: rgba(47,111,237,.4); --t87: rgba(24,48,104,.95);
  --t88: rgba(255,255,255,.2); --t89: rgba(255,255,255,.09); --t90: rgba(255,255,255,.2); --t91: rgba(47,111,237,.28); --t92: rgba(24,48,104,.8);
  --t93: rgba(255,255,255,.18); --t94: rgba(255,255,255,.07); --t95: rgba(255,255,255,.14); --t96: rgba(255,255,255,.12);
  --t97: rgba(255,255,255,.55); --t98: rgba(255,255,255,.3); --t99: #5FE3D5; --t100: rgba(23,195,178,.16); --t101: rgba(95,227,213,.4);
}
:root[data-theme="light"] {
  --a1: #2F6FED; --a2: #17C3B2; --a3: #17C3B2; --ash: rgba(34,64,135,.22); --glow: .3;
  --acc: #0F8C80;            /* darker cyan so small accent text stays readable on Ice */
  --t1: rgba(47,111,237,.16); --t2: rgba(23,195,178,.12); --t3: #EEF2FC; --t4: #14285A;
  --t5: #2457CC; --t6: #224087; --t7: rgba(47,111,237,.2); --t8: #0F1F4A; --t10: #FFFFFF; --t12: #4A5B8C; --t13: #0F8C80;
  --t15: #2F6FED; --t16: #17C3B2; --t17: #17C3B2; --t18: rgba(34,64,135,.05); --t19: rgba(34,64,135,.3);
  --t20: rgba(34,64,135,.12); --t21: #4B5D8E; --t22: #182F6A; --t23: rgba(47,111,237,.18); --t24: rgba(23,195,178,.12);
  --t26: #1E336D; --t29: #182F6A; --t37: #1E336D; --t41: #0F8C80; --t42: rgba(238,242,252,.96); --t43: rgba(238,242,252,.82);
  --t44: rgba(34,64,135,.12); --t46: #3B4E80; --t51: rgba(255,255,255,.75); --t52: rgba(255,255,255,.45); --t53: rgba(34,64,135,.13);
  --t54: rgba(23,195,178,.55); --t55: rgba(34,64,135,.18); --t58: #1E336D; --t59: #182F6A; --t60: #3B4E80; --t61: rgba(23,195,178,.12);
  --t62: rgba(15,140,128,.3); --t63: #2B3F72; --t66: #22366B; --t67: #182F6A; --t68: #182F6A; --t69: #2F6FED;
  --t70: rgba(255,255,255,.85); --t71: rgba(255,255,255,.95); --t72: rgba(34,64,135,.16); --t74: rgba(255,255,255,.8);
  --t75: #4B5D8E; --t78: rgba(47,111,237,.12); --t79: rgba(255,255,255,.95); --t81: #0F6F66; --t83: rgba(255,255,255,.8); --t84: rgba(255,255,255,.95);
  --t85: rgba(34,64,135,.16); --t86: rgba(47,111,237,.12); --t87: rgba(255,255,255,.95); --t88: rgba(34,64,135,.18);
  --t89: rgba(47,111,237,.07); --t90: rgba(34,64,135,.16); --t91: rgba(255,255,255,.8); --t92: rgba(255,255,255,.95); --t93: rgba(34,64,135,.14);
  --t94: rgba(34,64,135,.04); --t99: #0F8C80; --t100: rgba(23,195,178,.12); --t101: rgba(15,140,128,.3);
}
:root[data-theme="light"] body { background: #EEF2FC; color: #14285A; }
html[lang="ar"] { --fh: 'Tajawal', 'Space Grotesk', sans-serif; --fb: 'Tajawal', 'Space Grotesk', sans-serif; }
html[lang="en"] { --fh: 'Space Grotesk', 'Tajawal', sans-serif; --fb: 'Space Grotesk', 'Tajawal', sans-serif; }
body, input, textarea, select, button { font-family: var(--fb) !important; }
html[lang="ar"] body { font-size: 17px; }
/* the brand gradient reads too dark as text on Royal Blue — lift its start for headings */
.tgrad { background: linear-gradient(110deg, #7FA8FF 0%, #4FD8CB 75%) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
:root[data-theme="light"] .tgrad { background: var(--brand-grad) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.ph-foot__h .g { background: linear-gradient(110deg, #7FA8FF, #4FD8CB) !important; -webkit-background-clip: text !important; background-clip: text !important; }
:root[data-theme="light"] .ph-foot__h .g { background: var(--brand-grad) !important; -webkit-background-clip: text !important; background-clip: text !important; }
img[alt="Tartip"] { width: auto !important; }
/* Decorative brand stripes — the rounded diagonal bars from the Tartip templates */
.tstripes { position: absolute; inset-inline-end: -6%; bottom: -8%; width: min(46vw, 620px); height: 60%; pointer-events: none; z-index: 0; transform: rotate(-22deg); display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2.4vw, 34px); opacity: .9; }
.tstripes i { display: block; height: clamp(26px, 3.4vw, 46px); border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); }
.tstripes i:nth-child(2) { width: 82%; }
.tstripes i:nth-child(3) { width: 64%; }
html[dir="rtl"] .tstripes { transform: rotate(22deg); }
:root[data-theme="light"] .tstripes i { background: linear-gradient(90deg, rgba(34,64,135,.08), rgba(34,64,135,.02)); }

/* The old home numbered #services/#work/#contact with a giant outlined counter;
   v2 numbers every step of the journey itself (.tsec__n). */
#services::before, #work::before, #contact::before, #about::before, #blog::before { display: none !important; }
/* The old stylesheet also styles every h2/p inside those ids; v2 headings and copy
   set their own sizes and spacing. */
#services .th2, #work .th2, #contact .th2 { font-size: clamp(28px, 4vw, 50px) !important; line-height: 1.3 !important; letter-spacing: normal !important; font-weight: 800 !important; }
html[dir="ltr"] #services .th2, html[dir="ltr"] #work .th2, html[dir="ltr"] #contact .th2 { letter-spacing: -.02em !important; line-height: 1.18 !important; }
#contact .tcta .th2 { font-size: clamp(28px, 3.6vw, 46px) !important; }
#services p, #work p, #contact p { margin-bottom: 0; }
#services .tsvc p { margin-bottom: 22px; }
html { scroll-padding-top: 84px; }
:focus-visible { outline: 2px solid var(--a2, #38BDF8); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.tnav { position: fixed; top: 0; right: 0; left: 0; z-index: 120; background: var(--t43); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid var(--t44); }
.tnav__in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 72px; display: flex; align-items: center; gap: 14px; }
.tnav__logo { display: flex; align-items: center; flex: none; }
.tnav__logo img { height: 28px; display: block; }
.tnav__quick { display: flex; align-items: center; gap: 2px; margin-inline-start: 18px; }
.tnav__quick a { color: var(--t37); font-size: 14.5px; font-weight: 500; padding: 9px 13px; border-radius: 10px; transition: color .25s, background-color .25s; }
.tnav__quick a:hover, .tnav__quick a[aria-current="page"] { color: var(--t8); background: var(--t45); }
.tnav__end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.tnav .sw { color: var(--t46); font-size: 13px; padding: 8px 14px; border: 1px solid var(--t47); border-radius: 999px; transition: all .25s; font-family: var(--fn); white-space: nowrap; }
.tnav .sw:hover { color: var(--t8); border-color: var(--t48); }
.tnav .tbtn { padding: 10px 18px; font-size: 14px; border-radius: 12px; }
@media (max-width: 1020px) { .tnav__quick { display: none; } }
@media (max-width: 640px) {
  .tnav__in { gap: 8px; padding: 0 14px; }
  .tnav .sw, .tnav .t-toggle { display: none; }
  .tnav .tbtn { padding: 9px 13px; font-size: 13px; }
  .tnav .tbtn .lbl-long { display: none; }
}
@media (min-width: 641px) { .tnav .tbtn .lbl-short { display: none; } }

/* The "Tartip lines" — three ordered lines, the last one shorter. */
.tlines { width: 46px; height: 46px; flex: none; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--t47); background: var(--t36); cursor: pointer; transition: border-color .25s, background-color .25s; }
.tlines:hover { border-color: var(--t48); background: var(--t40); }
.tlines span { display: block; width: 19px; height: 3px; border-radius: 3px; background: var(--t29); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.tlines { align-items: center; }
.tlines:hover span:nth-child(1) { transform: translateY(-1px); }
.tlines:hover span:nth-child(3) { transform: translateY(1px); }

/* ---------- menu overlay ---------- */
.tmenu { position: fixed; inset: 0; z-index: 220; display: none; background: var(--t42); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); overflow: auto; }
.tmenu.is-open { display: block; animation: tMenuIn .35s cubic-bezier(.16,1,.3,1); }
@keyframes tMenuIn { from { opacity: 0; } to { opacity: 1; } }
.tmenu__in { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; min-height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
.tmenu__top { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.tmenu__top img { height: 28px; display: block; }
.tmenu__close { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--t47); background: var(--t36); color: var(--t29); font-size: 18px; cursor: pointer; }
.tmenu__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 24px; align-items: start; }
@media (max-width: 820px) { .tmenu__grid { grid-template-columns: 1fr; gap: 28px; } }
.tmenu__list { list-style: none; margin: 0; padding: 0; counter-reset: tm; }
.tmenu__list li { counter-increment: tm; border-bottom: 1px solid var(--t76); }
.tmenu__list a { display: flex; align-items: baseline; gap: 18px; padding: 14px 4px; font-family: var(--fh); font-size: clamp(22px, 3.4vw, 34px); font-weight: 700; color: var(--t29); transition: color .25s, padding .35s cubic-bezier(.16,1,.3,1); }
.tmenu__list a::before { content: "0" counter(tm); font-size: 13px; font-weight: 600; color: var(--acc); direction: ltr; min-width: 22px; }
.tmenu__list a:hover, .tmenu__list a[aria-current="page"] { color: var(--acc); padding-inline-start: 14px; }
.tmenu__side { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px; background: linear-gradient(160deg, var(--t70), var(--t71)); border: 1px solid var(--t72); }
.tmenu__side h2 { margin: 0 0 6px; font-family: var(--fh); font-size: 22px; color: var(--t22); }
.tmenu__side p { margin: 0 0 8px; color: var(--t46); font-size: 14.5px; line-height: 2; }
.tmenu__side .tbtn { justify-content: center; }
.tmenu__sub { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; font-size: 14px; }
.tmenu__sub a { color: var(--t46); }
.tmenu__sub a:hover { color: var(--t8); }
html.t-menu-open, html.t-menu-open body { overflow: hidden; }

/* ---------- buttons ---------- */
.tbtn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; padding: 15px 28px; border-radius: 14px; text-decoration: none; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s, border-color .3s, background-color .3s, color .3s; white-space: nowrap; cursor: pointer; border: 0; }
.tbtn svg { flex: none; }
.tbtn--p { background: linear-gradient(120deg, var(--a1, #4D8DFF), var(--a2, #38BDF8)); color: var(--t49); box-shadow: 0 16px 44px -12px var(--ash, rgba(56,120,255,.42)); }
.tbtn--p:hover { transform: translateY(-3px); color: var(--t49); box-shadow: 0 24px 60px -12px var(--t73); }
.tbtn--g { background: var(--t36); border: 1px solid var(--t47); color: var(--t29); font-weight: 600; }
.tbtn--g:hover { border-color: var(--t48); background: var(--t40); color: var(--t8); transform: translateY(-2px); }
.tbtn--sm { padding: 10px 16px; font-size: 13.5px; border-radius: 11px; }
.tlink { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--t5); }
.tlink:hover { color: var(--t6); }
.tlink svg { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.tlink:hover svg { transform: translateX(-4px); }
html[dir="ltr"] .tlink svg { transform: scaleX(-1); }
html[dir="ltr"] .tlink:hover svg { transform: scaleX(-1) translateX(-4px); }
html[dir="ltr"] .tbtn svg.flip { transform: scaleX(-1); }

/* ---------- section scaffolding ---------- */
.tsec { position: relative; padding: clamp(80px, 10vw, 124px) 0; }
.tsec--tint { background: linear-gradient(180deg, transparent, var(--t36) 14%, var(--t36) 86%, transparent); }
.twrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 20px; z-index: 1; }
.twrap--n { max-width: 960px; }
.thead { max-width: 760px; margin: 0 0 clamp(36px, 5vw, 56px); }
.thead--c { margin-inline: auto; text-align: center; }
.tsec__n { position: absolute; top: clamp(30px, 5vw, 64px); right: clamp(16px, 4vw, 56px); font-family: var(--fn); font-weight: 800; font-size: clamp(64px, 10vw, 140px); line-height: .8; letter-spacing: -.04em; color: var(--t18); -webkit-text-stroke: 1.2px var(--t19); pointer-events: none; user-select: none; direction: ltr; z-index: 0; }
html[dir="rtl"] .tsec__n { right: auto; left: clamp(16px, 4vw, 56px); }
@media (max-width: 820px) { .tsec__n { display: none; } }
.th2--long { font-size: clamp(24px, 3vw, 40px) !important; line-height: 1.55 !important; max-width: 30ch; }
html[dir="ltr"] .th2--long { line-height: 1.25 !important; }
.tkick { display: inline-flex; align-items: center; gap: 13px; font-size: clamp(16px, 1.7vw, 19px); font-weight: 600; letter-spacing: .02em; color: var(--t26); margin-bottom: 14px; }
.tkick::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--a2, #38BDF8)); }
.th2 { font-family: var(--fh); font-size: clamp(28px, 4vw, 50px); font-weight: 800; line-height: 1.3; margin: 0 0 16px; color: var(--t22); }
html[dir="ltr"] .th2 { letter-spacing: -.02em; line-height: 1.18; }
.tsub { font-size: clamp(15.5px, 1.6vw, 18px); line-height: 2.05; color: var(--t46); margin: 0; }
.tgrad { background: linear-gradient(110deg, var(--a1, #4D8DFF) 0%, var(--a2, #38BDF8) 55%, var(--a3, #7C5CFF) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tcard { position: relative; background: linear-gradient(165deg, var(--t51), var(--t52)); border: 1px solid var(--t53); border-radius: 20px; transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .4s, box-shadow .4s; }
a.tcard:hover, .tcard--h:hover { transform: translateY(-6px); border-color: var(--t54); box-shadow: 0 26px 70px -22px var(--t55); }

/* ---------- hero ---------- */
.thero { position: relative; padding: clamp(140px, 17vw, 190px) 0 clamp(64px, 8vw, 96px); overflow: hidden; }
.thero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--t20) 1px, transparent 1px), linear-gradient(90deg, var(--t20) 1px, transparent 1px); background-size: 54px 54px; -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 15%, black, transparent 78%); mask-image: radial-gradient(ellipse 85% 75% at 50% 15%, black, transparent 78%); pointer-events: none; }
.thero__badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; background: var(--t61); border: 1px solid var(--t62); font-size: 13px; font-weight: 600; color: var(--t81); }
.thero__badge i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(120deg, var(--a1, #4D8DFF), var(--a2, #38BDF8)); animation: tPulse 2.4s ease-in-out infinite; animation-play-state: var(--mplay, running); }
#hero h1.thero__h { font-family: var(--fh); font-size: clamp(36px, 5.6vw, 78px) !important; font-weight: 800; line-height: 1.3 !important; margin: 24px 0 22px !important; color: var(--t22); max-width: 18ch; }
html[dir="ltr"] #hero h1.thero__h { letter-spacing: -.03em !important; line-height: 1.12 !important; max-width: 17ch; }
.thero__h .tgrad { display: inline-block; }
.thero__sub { font-size: clamp(16px, 1.65vw, 19.5px); line-height: 2.05; color: var(--t63); margin: 0 0 34px; max-width: 620px; }
.thero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tchain { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; counter-reset: ch; }
.tchain li { counter-increment: ch; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--t29); }
.tchain li span { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 12px; background: var(--t94); border: 1px solid var(--t64); }
.tchain li span::before { content: "0" counter(ch); font-family: var(--fn); font-size: 11.5px; color: var(--acc); direction: ltr; }
.tchain li:not(:last-child)::after { content: ""; width: 18px; height: 1px; background: linear-gradient(90deg, var(--a1, #4D8DFF), var(--a2, #38BDF8)); opacity: .7; }
@media (max-width: 640px) { .tchain { gap: 6px; } .tchain li { gap: 6px; font-size: 12.5px; } .tchain li span { padding: 7px 10px; gap: 6px; } .tchain li:not(:last-child)::after { width: 8px; } }

/* client logos strip */
.tlogos { border-top: 1px solid var(--t20); border-bottom: 1px solid var(--t20); background: var(--t27); padding: 30px 0; }
.tlogos__k { text-align: center; font-size: 13px; letter-spacing: .05em; color: var(--t21); margin-bottom: 18px; }
.tlogos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tlogos__row a { width: 132px; height: 74px; border-radius: 14px; background: var(--t77); display: flex; align-items: center; justify-content: center; padding: 12px; box-sizing: border-box; border: 1px solid var(--t53); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.tlogos__row a:hover { transform: translateY(-3px); }
.tlogos__row img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- method (5 steps on a line) ---------- */
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.tsteps::before { content: ""; position: absolute; top: 31px; inset-inline: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--a1, #4D8DFF), var(--a2, #38BDF8), var(--a3, #7C5CFF), transparent); opacity: .55; }
.tstep { position: relative; text-align: center; padding: 0 6px; }
.tstep__n { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--fn); font-weight: 800; font-size: 17px; color: var(--t29); background: var(--t3); border: 1px solid var(--t54); box-shadow: 0 0 0 6px var(--t3), 0 14px 40px -14px var(--t50); direction: ltr; position: relative; z-index: 1; }
.tstep h3 { font-family: var(--fh); font-size: 21px; font-weight: 800; margin: 0 0 8px; color: var(--t22); }
.tstep p { margin: 0; font-size: 14.5px; line-height: 2; color: var(--t60); }
@media (max-width: 900px) {
  .tsteps { grid-template-columns: 1fr; gap: 0; }
  .tsteps::before { top: 10px; bottom: 10px; inset-inline-start: 30px; inset-inline-end: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--a1, #4D8DFF), var(--a2, #38BDF8), var(--a3, #7C5CFF)); }
  .tstep { display: grid; grid-template-columns: 62px 1fr; gap: 0 18px; text-align: start; padding: 0 0 22px; }
  .tstep__n { margin: 0; grid-row: span 2; }
  .tstep h3 { margin-top: 6px; }
}

/* ---------- problems ---------- */
.tprob { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.tprob li { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-size: 15.5px; line-height: 1.95; color: var(--t66); overflow: hidden; }
.tprob li:hover { transform: translateY(-4px); border-color: var(--t54); box-shadow: 0 22px 60px -24px var(--t55); }
/* icon tile: gradient glass square, brand-blue line icon, small coral "!" flag = a problem */
.tprob__ico { position: relative; flex: none; width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--acc); background: linear-gradient(150deg, rgba(47,111,237,.32), rgba(23,195,178,.14)); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px -12px rgba(56,120,255,.6); transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s; }
.tprob__ico svg { display: block; filter: drop-shadow(0 0 6px rgba(56,189,248,.35)); }
.tprob li:hover .tprob__ico { transform: rotate(-6deg) scale(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 14px 32px -10px rgba(56,120,255,.75); }
.tprob__flag { position: absolute; top: -6px; inset-inline-end: -6px; width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--fn); font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #FB7185, #F97316); border: 2px solid var(--t3); box-shadow: 0 4px 12px -2px rgba(249,115,22,.55); }
.tprob__t { flex: 1; }
:root[data-theme="light"] .tprob__ico { background: linear-gradient(150deg, rgba(47,111,237,.14), rgba(23,195,178,.10)); border-color: rgba(34,64,135,.22); color: #224087; box-shadow: 0 10px 24px -14px rgba(37,99,235,.5); }
:root[data-theme="light"] .tprob__ico svg { filter: none; }
.tquote { margin: clamp(36px, 5vw, 56px) auto 0; max-width: 880px; text-align: center; font-family: var(--fh); font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; line-height: 1.7; color: var(--t22); padding: clamp(26px, 4vw, 40px); border-radius: 24px; background: linear-gradient(160deg, var(--t70), var(--t71)); border: 1px solid var(--t72); }
.tquote b { font-weight: 800; }

/* ---------- services ---------- */
.tsvcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.tsvc { padding: 28px 26px 24px; display: flex; flex-direction: column; overflow: hidden; }
.tsvc::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--a1, #4D8DFF), var(--a2, #38BDF8), transparent); }
.tsvc__n { font-family: var(--fn); font-weight: 800; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--t30); direction: ltr; margin-bottom: 18px; }
html[dir="rtl"] .tsvc__n { text-align: right; }
.tsvc h3 { font-family: var(--fh); font-size: 20px; font-weight: 800; margin: 0 0 10px; color: var(--t22); }
.tsvc h3 a { color: inherit; }
.tsvc p { margin: 0 0 22px; font-size: 14.5px; line-height: 2; color: var(--t60); }
.tsvc__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; border-top: 1px solid var(--t82); }

/* ---------- sector chips + project cards ---------- */
.tchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--t47); background: var(--t36); color: var(--t37); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .25s; font-family: inherit; }
.tchip b { font-weight: 700; font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--t61); color: var(--t81); }
.tchip:hover { border-color: var(--t48); color: var(--t8); }
.tchip[aria-pressed="true"], .tchip[aria-current="page"] { background: linear-gradient(120deg, var(--a1, #4D8DFF), var(--a2, #38BDF8)); border-color: transparent; color: var(--t49); }
.tchip[aria-pressed="true"] b, .tchip[aria-current="page"] b { background: rgba(255,255,255,.22); color: #fff; }
.tfilter-note { display: none; align-items: center; gap: 10px; flex-wrap: wrap; margin: -10px 0 22px; font-size: 14px; color: var(--t46); }
.tfilter-note.is-on { display: flex; }
.tfilter-note b { color: var(--t29); }
.tfilter-note button { background: none; border: 0; color: var(--t5); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

.tpcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.tpc { display: flex; flex-direction: column; overflow: hidden; color: inherit; }
.tpc[hidden] { display: none; }
.tpc__top { display: flex; align-items: center; gap: 16px; padding: 20px 22px 0; }
.tpc__logo { width: 92px; height: 64px; flex: none; border-radius: 12px; background: var(--t77); display: flex; align-items: center; justify-content: center; padding: 6px 8px; box-sizing: border-box; overflow: hidden; box-shadow: 0 6px 18px -10px rgba(8,22,64,.5); }
.tpc__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tpc__logo--mark { background: linear-gradient(150deg, var(--t78), var(--t79)); border: 1px solid var(--t88); font-family: var(--fh); font-weight: 800; font-size: 13.5px; color: var(--t29); text-align: center; line-height: 1.3; }
.tpc__top h3 { margin: 0 0 6px; font-family: var(--fh); font-size: 19px; font-weight: 800; color: var(--t22); }
.tpc__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.tpc__meta span { padding: 3px 10px; border-radius: 999px; background: var(--t89); border: 1px solid var(--t90); color: var(--t81); font-weight: 600; }
.tpc__body { padding: 16px 22px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tpc__row { font-size: 13.5px; line-height: 1.95; color: var(--t60); margin: 0; }
.tpc__row b { display: block; font-size: 11.5px; letter-spacing: .04em; color: var(--t21); font-weight: 600; margin-bottom: 2px; }
.tpc__svc { display: flex; flex-wrap: wrap; gap: 6px; }
.tpc__svc span { font-size: 11.5px; padding: 3px 9px; border-radius: 8px; background: var(--t94); border: 1px solid var(--t64); color: var(--t37); }
.tpc__res { margin: auto 22px 0; padding: 14px 0 18px; border-top: 1px solid var(--t82); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tpc__stat { font-family: var(--fh); font-size: 20px; font-weight: 800; color: var(--t22); line-height: 1.25; }
.tpc__stat small { display: block; font-family: var(--fb); font-size: 11.5px; font-weight: 500; color: var(--t75); margin-top: 4px; }
.tpc__stat--q { font-size: 13px; font-weight: 600; color: var(--t60); line-height: 1.8; font-family: inherit; }
.tpc__go { font-size: 13px; font-weight: 700; color: var(--t5); white-space: nowrap; }
.tpc:hover .tpc__go { color: var(--t6); }
.tmore { text-align: center; margin-top: 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- stories ---------- */
.tstories { display: flex; flex-direction: column; gap: 18px; }
.tstory { padding: clamp(22px, 3vw, 30px); }
.tstory__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.tstory__head h3 { margin: 0; font-family: var(--fh); font-size: 22px; font-weight: 800; color: var(--t22); }
.tstory__head .tlink { margin-inline-start: auto; }
.tstory__flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tstory__flow li { position: relative; padding: 16px 16px 18px; border-radius: 16px; background: var(--t94); border: 1px solid var(--t64); }
.tstory__flow li b { display: block; font-size: 12px; letter-spacing: .04em; color: var(--acc); margin-bottom: 6px; }
.tstory__flow li p { margin: 0; font-size: 14px; line-height: 1.95; color: var(--t66); }
.tstory__flow li:last-child { background: linear-gradient(160deg, var(--t83), var(--t84)); border-color: var(--t85); }
.tstory__flow li:last-child p { color: var(--t22); font-weight: 600; }
.tstory__src { margin: 12px 0 0; font-size: 12px; color: var(--t21); }
@media (max-width: 900px) { .tstory__flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tstory__flow { grid-template-columns: 1fr; } }

/* ---------- why + trust ---------- */
.twhy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; counter-reset: wy; }
.twhy li { counter-increment: wy; padding: 24px 22px; }
.twhy li::before { content: "0" counter(wy); display: block; font-family: var(--fn); font-weight: 800; font-size: 13px; color: var(--acc); margin-bottom: 14px; direction: ltr; text-align: start; }
.twhy h3 { margin: 0 0 8px; font-family: var(--fh); font-size: 17.5px; font-weight: 800; color: var(--t22); line-height: 1.6; }
.twhy p { margin: 0; font-size: 14px; line-height: 2; color: var(--t60); }
.ttrust { margin-top: clamp(40px, 5vw, 60px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .ttrust { grid-template-columns: 1fr; } }
.ttrust__box { padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: linear-gradient(160deg, var(--t83), var(--t84)); border: 1px solid var(--t85); }
.ttrust__box h3 { margin: 0 0 10px; font-family: var(--fh); font-size: 20px; font-weight: 800; color: var(--t22); }
.ttrust__box p { margin: 0; font-size: 14.5px; line-height: 2; color: var(--t46); }
.tfacts { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 22px; }
.tfacts div { min-width: 120px; }
.tfacts b { display: block; font-family: var(--fh); font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--t22); line-height: 1.2; }
.tfacts span { font-size: 13px; color: var(--t46); }
.tsectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tsectors a { font-size: 13px; padding: 7px 13px; border-radius: 999px; background: var(--t89); border: 1px solid var(--t90); color: var(--t37); }
.tsectors a:hover { color: var(--t8); border-color: var(--t48); }

/* ---------- testimonials (only rendered when real ones exist) ---------- */
.ttesti { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.ttesti figure { margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.ttesti blockquote { margin: 0; font-size: 16px; line-height: 2.05; color: var(--t66); }
.ttesti figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 13.5px; color: var(--t46); }
.ttesti figcaption img { width: 52px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.ttesti figcaption b { display: block; color: var(--t22); font-size: 15px; }

/* ---------- FAQ ---------- */
.tfaq { display: flex; flex-direction: column; gap: 10px; }
.tfaq details { border-radius: 16px; background: linear-gradient(165deg, var(--t51), var(--t52)); border: 1px solid var(--t53); transition: border-color .3s; }
.tfaq details[open] { border-color: var(--t54); }
.tfaq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: var(--fh); font-size: 16.5px; font-weight: 700; color: var(--t22); line-height: 1.7; }
.tfaq summary::-webkit-details-marker { display: none; }
.tfaq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400; color: var(--acc); border: 1px solid var(--t62); transition: transform .3s; }
.tfaq details[open] summary::after { transform: rotate(45deg); }
.tfaq details p { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 2.1; color: var(--t60); }

/* ---------- final CTA + form ---------- */
.tcta { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 58px); border-radius: 28px; background: linear-gradient(160deg, var(--t70), var(--t71)); border: 1px solid var(--t72); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(30px, 5vw, 56px); }
.tcta::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--a1, #4D8DFF), var(--a2, #38BDF8), transparent); }
.tcta .th2 { font-size: clamp(28px, 3.6vw, 46px); }
.tcta__pts { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tcta__pts li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--t66); }
.tcta__pts li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--t99); background: var(--t100); border: 1px solid var(--t101); }
.tcta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tcta__contact { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--t76); font-size: 14px; color: var(--t46); }
.tcta__contact a { color: var(--t37); direction: ltr; unicode-bidi: plaintext; }
.tcta__contact a:hover { color: var(--t8); }
.tform { display: flex; flex-direction: column; gap: 14px; }
.tform h3 { margin: 0 0 4px; font-family: var(--fh); font-size: 18px; font-weight: 700; color: var(--t22); }
.tform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.tform label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--t46); }
.tform input, .tform select, .tform textarea { background: var(--t94); border: 1px solid var(--t53); border-radius: 12px; padding: 12px 14px; color: var(--t4); font-size: 14.5px; width: 100%; box-sizing: border-box; outline: none; transition: border-color .25s, box-shadow .25s; }
.tform input:focus, .tform select:focus, .tform textarea:focus { border-color: var(--a1, #4D8DFF); box-shadow: 0 0 0 3px var(--t61); }
.tform textarea { resize: vertical; min-height: 96px; }
.tform .tbtn { justify-content: center; }
.tform__sent { display: none; text-align: center; padding: 30px 10px; }
.tform__sent.is-on { display: block; }
.tform__sent b { display: block; font-size: 20px; color: var(--t22); margin-bottom: 8px; }
.tform__sent p { margin: 0; color: var(--t60); line-height: 2; }

/* ---------- footer ---------- */
.tfoot { border-top: 1px solid var(--t44); background: var(--t74); padding: clamp(56px, 7vw, 80px) 0 28px; position: relative; z-index: 1; }
.tfoot__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; margin-bottom: 44px; }
@media (max-width: 900px) { .tfoot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tfoot__cols { grid-template-columns: 1fr; } }
.tfoot__about p { font-size: 14px; line-height: 2.1; color: var(--t75); margin: 16px 0 18px; max-width: 320px; }
.tfoot h2 { font-family: var(--fh); font-size: 15px; font-weight: 700; color: var(--t22); margin: 0 0 14px; }
.tfoot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tfoot ul a { font-size: 14px; color: var(--t46); }
.tfoot ul a:hover { color: var(--t8); }
.tfoot__soc { display: flex; gap: 10px; }
.tfoot__soc a { width: 40px; height: 40px; border-radius: 12px; background: var(--t94); border: 1px solid var(--t53); display: flex; align-items: center; justify-content: center; color: var(--t37); transition: all .25s; }
.tfoot__soc a:hover { color: var(--t8); border-color: var(--t48); transform: translateY(-2px); }
.tfoot__bottom { border-top: 1px solid var(--t76); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--t21); }
.tfoot .ph-foot__h { font-size: clamp(34px, 6.4vw, 92px); max-width: 16ch; }

/* ---------- inner pages: page head, service page, case study ---------- */
.tpage { padding: clamp(118px, 13vw, 150px) 0 0; }
.tcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--t21); margin: 0 0 22px; padding: 0; list-style: none; }
.tcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 8px; opacity: .6; }
.tcrumbs a { color: var(--t46); }
.tcrumbs a:hover { color: var(--t8); }
.tph1 { font-family: var(--fh); font-size: clamp(32px, 5vw, 60px); font-weight: 800; line-height: 1.25; margin: 0 0 16px; color: var(--t22); }
html[dir="ltr"] .tph1 { letter-spacing: -.025em; line-height: 1.12; }
.tsplit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.tbox { padding: clamp(22px, 3vw, 30px); }
.tbox h2 { margin: 0 0 14px; font-family: var(--fh); font-size: 20px; font-weight: 800; color: var(--t22); }
.tbox p { margin: 0; font-size: 15.5px; line-height: 2.1; color: var(--t66); }
.tticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tticks li { position: relative; padding-inline-start: 28px; font-size: 15px; line-height: 2; color: var(--t66); }
.tticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--a1, #4D8DFF), var(--a2, #38BDF8)); }
.thow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; counter-reset: hw; }
.thow li { counter-increment: hw; padding: 22px 20px; }
.thow li::before { content: "0" counter(hw); display: block; font-family: var(--fn); font-weight: 800; font-size: 30px; color: transparent; -webkit-text-stroke: 1.1px var(--t30); margin-bottom: 10px; direction: ltr; text-align: start; }
.thow h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--t22); font-family: var(--fh); }
.thow p { margin: 0; font-size: 14px; line-height: 2; color: var(--t60); }
.timpact { padding: clamp(22px, 3vw, 30px); border-radius: 22px; background: linear-gradient(160deg, var(--t83), var(--t84)); border: 1px solid var(--t85); font-size: 16px; line-height: 2.1; color: var(--t22); }
.tblock { margin-top: clamp(48px, 6vw, 72px); }
.tblock > h2 { font-family: var(--fh); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--t22); margin: 0 0 20px; }
.tsvc-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tsvc-nav a { padding: 16px 18px; font-weight: 700; color: var(--t29); display: flex; gap: 10px; align-items: baseline; }
.tsvc-nav a span { font-family: var(--fn); font-size: 12px; color: var(--acc); direction: ltr; }

/* case study */
.tcs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 20px; }
.tcs-head .tpc__logo { width: 150px; height: 104px; border-radius: 16px; padding: 10px 12px; }
.tcs-head .tpc__logo--mark { font-size: 20px; }
.tcs-lead { font-size: clamp(16px, 1.7vw, 19px); line-height: 2.1; color: var(--t63); margin: 0 0 30px; max-width: 760px; }
.tcs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-bottom: 30px; }
.tcs-facts div { padding: 16px 18px; border-radius: 16px; background: var(--t94); border: 1px solid var(--t64); }
.tcs-facts b { display: block; font-size: 12px; letter-spacing: .04em; color: var(--t21); margin-bottom: 6px; font-weight: 600; }
.tcs-facts span { font-size: 14.5px; color: var(--t29); line-height: 1.9; }
.tcs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.tcs-sec { padding: 22px 24px; }
.tcs-sec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--fh); font-size: 18px; font-weight: 800; color: var(--t22); }
.tcs-sec h2 i { font-style: normal; font-family: var(--fn); font-size: 12px; color: var(--acc); direction: ltr; }
.tcs-sec p { margin: 0; font-size: 15px; line-height: 2.05; color: var(--t66); }
.tcs-sec--wide { grid-column: 1 / -1; }
.tcs-sec--res { background: linear-gradient(160deg, var(--t83), var(--t84)); border-color: var(--t85); }
.tdoc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; margin: 18px 0 6px; }
.tdoc div { padding: 16px; border-radius: 14px; background: var(--t94); border: 1px solid var(--t64); }
.tdoc b { display: block; font-family: var(--fh); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--t22); line-height: 1.3; direction: ltr; unicode-bidi: plaintext; text-align: start; }
.tdoc span { display: block; font-size: 12.5px; color: var(--t46); margin-top: 6px; line-height: 1.8; }
.treports { margin-top: 16px; border-radius: 16px; border: 1px solid var(--t64); }
.treports summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 14.5px; color: var(--t29); }
.treports__in { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.treports h3 { margin: 0 0 8px; font-size: 14px; color: var(--acc); }
.treports table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.treports td { padding: 7px 4px; border-bottom: 1px solid var(--t76); color: var(--t66); vertical-align: top; }
.treports td:last-child { text-align: end; font-weight: 700; color: var(--t29); direction: ltr; unicode-bidi: plaintext; white-space: nowrap; }
.tsrc { font-size: 12px; color: var(--t21); margin: 12px 0 0; line-height: 1.9; }
.tcs .pj__stats { margin: 0 0 30px; }
.tnext { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.tnext a { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.tnext a small { font-size: 12px; color: var(--t21); }
.tnext a b { font-size: 16.5px; color: var(--t22); font-family: var(--fh); }

/* blog shell pages get the same header — tune spacing */
.art, .bwrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .tbtn, .tcard, .tlines span, .tmenu.is-open, .tlink svg { transition: none !important; animation: none !important; }
}

.tcta > div:not(.tstripes) { position: relative; z-index: 1; }
.tcta .tstripes { inset-inline-end: -14%; bottom: -30%; }

/* The shared arrow icon points left (reading direction in Arabic); mirror it on English pages. */
html[dir="ltr"] .tarrow { transform: scaleX(-1); }
html[dir="ltr"] .tlink:hover svg.tarrow { transform: scaleX(-1) translateX(-4px); }

/* Section numbers: clearer outline in both themes, and room so the final CTA box never covers "0N". */
.tsec__n { color: var(--t18); -webkit-text-stroke: 1.5px rgba(255,255,255,.34); }
:root[data-theme="light"] .tsec__n { color: rgba(34,64,135,.05); -webkit-text-stroke: 1.5px rgba(34,64,135,.42); }
@media (min-width: 821px) { #contact.tsec { padding-top: clamp(150px, 15vw, 200px); } }

/* "Why Tartip" icons — same tile language as the problem icons, but a green check
   instead of the warning flag: these are the answers, not the problems. */
.twhy li { position: relative; }
.twhy li::before { position: absolute; top: 24px; inset-inline-end: 22px; margin: 0; }
.twhy__ico { position: relative; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; color: var(--acc); background: linear-gradient(150deg, rgba(47,111,237,.32), rgba(23,195,178,.16)); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px -12px rgba(23,195,178,.55); transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s; }
.twhy__ico svg { display: block; filter: drop-shadow(0 0 6px rgba(23,195,178,.35)); }
.twhy__ico::after { content: "✓"; position: absolute; top: -6px; inset-inline-end: -6px; width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2F6FED, #17C3B2); border: 2px solid var(--t3); }
.twhy li:hover { transform: translateY(-4px); border-color: var(--t54); box-shadow: 0 22px 60px -24px var(--t55); }
.twhy li:hover .twhy__ico { transform: rotate(-6deg) scale(1.06); }
:root[data-theme="light"] .twhy__ico { background: linear-gradient(150deg, rgba(47,111,237,.14), rgba(23,195,178,.12)); border-color: rgba(34,64,135,.2); color: #0F8C80; box-shadow: 0 10px 24px -14px rgba(23,195,178,.5); }
:root[data-theme="light"] .twhy__ico svg { filter: none; }
.tfoot { padding-top: clamp(48px, 6vw, 64px); }

.twhy li::before { inset-inline-end: auto; right: 22px; }
html[dir="rtl"] .twhy li::before { right: auto; left: 22px; }

/* ================= Menu as a dropdown panel =================
   Drops down from the lines button instead of covering the screen. */
.tmenu { display: block; position: fixed; inset: auto; top: 78px; right: max(16px, calc((100vw - 1280px) / 2 + 20px)); left: auto;
  width: min(340px, calc(100vw - 28px)); max-height: calc(100vh - 96px); overflow: auto; z-index: 220;
  background: var(--t42); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--t44); border-radius: 20px; box-shadow: 0 28px 70px -24px rgba(8,22,64,.65);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right;
  transition: opacity .25s ease, transform .3s cubic-bezier(.16,1,.3,1), visibility 0s linear .3s; }
html[dir="rtl"] .tmenu { right: auto; left: max(16px, calc((100vw - 1280px) / 2 + 20px)); transform-origin: top left; }
.tmenu.is-open { opacity: 1; visibility: visible; transform: none; animation: none; transition: opacity .25s ease, transform .3s cubic-bezier(.16,1,.3,1), visibility 0s; }
:root[data-theme="light"] .tmenu { box-shadow: 0 28px 70px -28px rgba(34,64,135,.35); }
.tmenu__in { max-width: none; min-height: 0; padding: 10px; display: block; }
.tmenu__top { display: none; }
.tmenu__grid { display: block; margin: 0; }
.tmenu__list li { border-bottom: 0; }
.tmenu__list a { gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 16px; font-weight: 700; }
.tmenu__list a::before { font-size: 11.5px; min-width: 18px; }
.tmenu__list a:hover, .tmenu__list a[aria-current="page"] { padding-inline-start: 12px; background: var(--t45); }
.tmenu__side { margin-top: 8px; padding: 14px; gap: 8px; border-radius: 14px; }
.tmenu__side h2, .tmenu__side p { display: none; }
.tmenu__side .tbtn { padding: 11px 16px; font-size: 14px; border-radius: 11px; }
.tmenu__sub { justify-content: center; margin-top: 4px; font-size: 13px; }
/* lines button turns into an X while the menu is open */
.tlines[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.tlines[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tlines[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.tlines span { transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s; }
@media (max-width: 640px) { .tmenu { top: 74px; right: 14px; } html[dir="rtl"] .tmenu { left: 14px; } }
@media (prefers-reduced-motion: reduce) { .tmenu { transition: none; } }

/* The menu no longer carries the language switch, so keep it in the phone header
   (compact); the theme toggle stays hidden there to save room. */
@media (max-width: 640px) { .tnav .sw { display: inline-flex; padding: 7px 11px; font-size: 12px; } }

/* Call-to-action boxes (.art-cta): the inherited stylesheet paints every link in them as a
   white-text gradient button, which washed out the secondary button. Keep each button's own look. */
.art-cta a.tbtn--g, .art-cta a.tbtn--g:hover { background: var(--t36); border: 1px solid var(--t47); color: var(--t29); box-shadow: none; }
.art-cta a.tbtn--g:hover { border-color: var(--t48); color: var(--t8); }
.art-cta a.tbtn--p:hover { color: var(--t49); }
/* Report tables: the value cell is direction:ltr (numbers, currencies), so text-align:end
   meant "right" even on Arabic pages and values drifted per table. Fixed column widths and
   values pinned to the outer edge: left in Arabic, right in English. */
.treports table { table-layout: fixed; }
.treports td:first-child { width: 62%; }
.treports td:last-child { font-variant-numeric: tabular-nums; }
html[dir="rtl"] .treports td:last-child { text-align: left; }
html[dir="ltr"] .treports td:last-child { text-align: right; }
/* "Next step" on case studies: client cards carry their logo; "All work" is a distinct CTA card. */
.tnext a.tnext__client { flex-direction: row; align-items: center; gap: 16px; }
.tnext__client .tpc__logo { width: 76px; height: 54px; flex: none; border-radius: 12px; }
.tnext__client .tpc__logo--mark { font-size: 12px; }
.tnext a > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tnext a.tnext__all { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; border: 0;
  background: linear-gradient(120deg, var(--a1, #2F6FED), var(--a2, #17C3B2)); color: #fff; }
.tnext a.tnext__all small { color: rgba(255,255,255,.8); }
.tnext a.tnext__all b { color: #fff; font-size: 18px; }
.tnext__all i { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); color: #fff; font-style: normal; }
/* Menu sub-menus (services, work): an accordion under the item; the arrow opens it. */
.tmenu__row { display: flex; align-items: center; gap: 4px; }
.tmenu__row > a { flex: 1; }
.tmenu__tog { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--t46); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, color .2s; }
.tmenu__tog:hover { background: var(--t45); color: var(--t8); }
.tmenu__tog svg { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.is-sub-open > .tmenu__row .tmenu__tog svg { transform: rotate(180deg); }
.tmenu__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.16,1,.3,1); }
.is-sub-open > .tmenu__sub { grid-template-rows: 1fr; }
.tmenu__sub > ul { overflow: hidden; list-style: none; margin: 0; padding: 0 0 0 0; }
.tmenu__sub li { counter-increment: none; border: 0; }
.tmenu__list .tmenu__sub a.tmenu__sublink { display: block; padding: 8px 12px; padding-inline-start: 44px; font-size: 14px; font-weight: 500; color: var(--t46); border-radius: 10px; }
.tmenu__list .tmenu__sub a.tmenu__sublink::before { content: none; }
.tmenu__list .tmenu__sub a.tmenu__sublink:hover { color: var(--t8); background: var(--t45); padding-inline-start: 48px; }
/* Sub-menus open to the SIDE (replaces the accordion above).
   Wide screens: the menu widens toward the inside of the screen and the sub-menu fills a
   column beside the list (left in English, right in Arabic — the menu hugs the opposite edge).
   Phones: the sub-menu slides over the list, with a back button. */
.tmenu__in { position: relative; }
.tmenu__list, .tmenu__list > li { position: static; }
.tmenu__sub { display: block; grid-template-rows: none; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 8px; width: 250px; z-index: 3;
  overflow: auto; border-radius: 14px; background: var(--t36); padding: 6px; box-sizing: border-box; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s; }
.is-sub-open > .tmenu__sub { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease, visibility 0s; }
.tmenu__sub > ul { overflow: visible; }
.tmenu.has-sub { width: min(590px, calc(100vw - 28px)); }
.tmenu.has-sub .tmenu__list { padding-inline-start: 262px; }
.tmenu__tog svg, .is-sub-open > .tmenu__row .tmenu__tog svg { transform: none; }
html[dir="rtl"] .tmenu__tog svg, html[dir="rtl"] .is-sub-open > .tmenu__row .tmenu__tog svg { transform: scaleX(-1); }
.tmenu__subhead { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--t76); font-size: 14px; color: var(--t22); }
.tmenu__back { display: none; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--t45); color: var(--t22); align-items: center; justify-content: center; cursor: pointer; }
html[dir="rtl"] .tmenu__back svg { transform: scaleX(-1); }
.tmenu__list .tmenu__sub a.tmenu__sublink { padding: 9px 12px; padding-inline-start: 30px; }
.tmenu__list .tmenu__sub a.tmenu__sublink:hover { padding-inline-start: 30px; }
@media (max-width: 640px) {
  .tmenu.has-sub { width: min(320px, calc(100vw - 28px)); }
  .tmenu.has-sub .tmenu__list { padding-inline-start: 0; }
  .tmenu__sub { inset: 8px; width: auto; background: var(--t42); }
  .tmenu__back { display: flex; }
}
/* Instagram posts on case studies (chosen per client in scripts/v2/instagram/<slug>/). */
.tig { display: flex; flex-direction: column; gap: 14px; }
.tig__head { display: flex; align-items: center; gap: 12px; }
.tig__head b { display: block; font-size: 15px; color: var(--t22); }
.tig__head a { font-size: 13px; color: var(--t5); font-weight: 600; }
.tig__ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.tig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tig__post { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--t36); }
.tig__post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.tig__post span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(10,20,50,.45); opacity: 0; transition: opacity .25s; }
.tig__post:hover img, .tig__post:focus-visible img { transform: scale(1.07); }
.tig__post:hover span, .tig__post:focus-visible span { opacity: 1; }
.tig__more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--t5); }
html[dir="ltr"] .tig__more .tarrow { transform: scaleX(-1); }
.tig-block .tig { max-width: none; }
/* two groups: posts 4:5, reels 9:16 */
.tig__set { display: flex; flex-direction: column; gap: 12px; }
.tig__sub { margin: 0; font-size: 15px; font-weight: 700; color: var(--t22); }
.tig__grid--posts .tig__post { aspect-ratio: 4 / 5; }
.tig__grid--reels .tig__post { aspect-ratio: 9 / 16; }
.tig__grid--posts, .tig__grid--reels { gap: clamp(10px, 1.6vw, 18px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 601px) { .tig__grid--posts, .tig__grid--reels { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .tig__grid--reels { grid-template-columns: repeat(4, 1fr); } }
/* Live Instagram feed: loading placeholders shimmer until the posts arrive. */
.tig__ph { background: linear-gradient(100deg, var(--t36) 30%, var(--t45) 50%, var(--t36) 70%); background-size: 250% 100%; animation: tIgPh 1.4s ease-in-out infinite; }
@keyframes tIgPh { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .tig__ph { animation: none; } }
/* Reels: a small play badge in the corner of the cover. */
.tig__reel { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(10,20,50,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tig__reel svg { margin-inline-start: 2px; }
html[dir="rtl"] .tig__reel svg { margin-inline-start: 0; margin-inline-end: 2px; }

/* ======================================================================
   Tartip v3: Apple-style design layer, appended after v2's site.css.
   Same content, structure and brand colours. This layer changes how they feel:
   - restraint: decorative noise removed (hero grid, giant outlined numbers, stripes softened)
   - materials: translucent chrome with a scroll-edge effect instead of hard dividers
   - typography: size-specific tracking, tight leading on display type, weight-led hierarchy
   - response: feedback on press (:active), springs (CSS linear()) for menu and cards
   - accessibility: reduced motion / transparency / more contrast
   ====================================================================== */

:root {
  /* Critically damped spring (damping 1.0, response 0.4s) and a momentum spring
     (damping 0.8, response 0.3s), sampled into CSS linear() easing. */
  --spring: linear(0, 0.0596, 0.186, 0.3294, 0.4656, 0.584, 0.6819, 0.7601, 0.821, 0.8677, 0.9029, 0.9292, 0.9487, 0.963, 0.9734, 0.9809, 0.9864, 0.9903, 0.9931, 0.9951, 0.9966, 0.9976, 0.9983, 0.9988, 1);
  --spring-bounce: linear(0, 0.1034, 0.3109, 0.5257, 0.7048, 0.8358, 0.9223, 0.9738, 1.0009, 1.0124, 1.0152, 1.0136, 1.0105, 1.0072, 1.0045, 1.0025, 1.0012, 1.0004, 1, 0.9998, 1);
  --spring-d: .6s;
  --press: scale(.97);
  /* surfaces */
  --s-bg: #0B1430;                       /* page (dark): midnight navy, the deepest shade of Royal Blue #224087 */
  --s-card: rgba(255,255,255,.055);
  --s-card-2: rgba(255,255,255,.085);
  --s-line: rgba(255,255,255,.1);
  --s-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 50px -30px rgba(4,12,40,.8);
  --s-shadow-h: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 70px -30px rgba(4,12,40,.9);
  --s-mat: rgba(11,20,48,.7);            /* chrome material */
  --s-text-2: #A7B4D6;
  --r-lg: 30px; --r-md: 22px; --r-sm: 14px;
}
/* Dark theme = "midnight navy": the v2 Royal Blue surfaces pushed down to the deepest
   shade of #224087. Royal Blue stays the hue; Signal Blue and Growth Cyan carry the colour
   on buttons and accents only. */
:root:not([data-theme="light"]) {
  --t3: #0B1430; --t10: #101C40; --t65: #101C40;
  --t11: rgba(4,9,26,.5); --t27: rgba(6,12,32,.4); --t50: rgba(3,7,22,.5); --t55: rgba(2,6,20,.6);
  --t42: rgba(14,24,56,.94); --t43: rgba(11,20,48,.72); --t56: rgba(14,24,56,.85);
  --t71: rgba(16,28,64,.92); --t74: rgba(8,15,38,.96); --t79: rgba(16,28,64,.95);
  --t84: rgba(16,28,64,.85); --t87: rgba(16,28,64,.95); --t92: rgba(16,28,64,.8);
  --ash: rgba(2,6,20,.6);
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --spring: cubic-bezier(.22, 1, .36, 1); --spring-bounce: cubic-bezier(.34, 1.36, .64, 1); }
}
:root[data-theme="light"] {
  --s-bg: #F5F7FC;
  --s-card: #FFFFFF;
  --s-card-2: #FFFFFF;
  --s-line: rgba(20,40,90,.08);
  --s-shadow: 0 1px 2px rgba(20,40,90,.04), 0 18px 44px -28px rgba(20,40,90,.28);
  --s-shadow-h: 0 1px 2px rgba(20,40,90,.05), 0 28px 60px -28px rgba(20,40,90,.36);
  --s-mat: rgba(245,247,252,.72);
  --s-text-2: #4A5B8C;
}
body { background: var(--s-bg) !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
:root[data-theme="light"] body { background: var(--s-bg) !important; }

/* Theme switch eases instead of jumping in brightness (html.t-theming is set by apple.js). */
html.t-theming body, html.t-theming .tcard, html.t-theming .tnav, html.t-theming .tfoot, html.t-theming .tsec--tint {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important;
}

/* ---------------- restraint: decoration removed or softened ---------------- */
.thero__grid, .tsec__n { display: none !important; }
.tstripes { opacity: .45; }
.tsvc::before, .tcta::before { display: none; }
.tsec--tint { background: transparent; }
.tsec--tint::before { content: ""; position: absolute; inset: 0; background: var(--s-card); opacity: .55; pointer-events: none; }
:root[data-theme="light"] .tsec--tint::before { background: #FFFFFF; opacity: 1; }
.tsec--tint > .twrap { position: relative; }

/* ---------------- typography ---------------- */
/* Hierarchy from weight + size + leading as a set. Latin display type gets negative
   tracking that grows with size; Arabic is never letter-spaced, it gets leading instead. */
.th2, .tph1, #hero h1.thero__h, .tblock > h2 { font-weight: 700 !important; }
html[dir="ltr"] #hero h1.thero__h { letter-spacing: -.045em !important; line-height: 1.04 !important; }
html[dir="ltr"] .th2, html[dir="ltr"] #services .th2, html[dir="ltr"] #work .th2, html[dir="ltr"] #contact .th2 { letter-spacing: -.035em !important; line-height: 1.08 !important; }
html[dir="ltr"] .tph1 { letter-spacing: -.04em; line-height: 1.06; }
html[dir="ltr"] .tsvc h3, html[dir="ltr"] .tpc__top h3, html[dir="ltr"] .tstory__head h3, html[dir="ltr"] .twhy h3, html[dir="ltr"] .tbox h2, html[dir="ltr"] .tcs-sec h2 { letter-spacing: -.015em; }
html[dir="rtl"] #hero h1.thero__h { line-height: 1.32 !important; }
html[dir="rtl"] .th2, html[dir="rtl"] #services .th2, html[dir="rtl"] #work .th2, html[dir="rtl"] #contact .th2 { line-height: 1.38 !important; }
.tsvc h3, .tpc__top h3, .tstory__head h3, .twhy h3, .tbox h2, .tcs-sec h2, .thow h3, .tstep h3 { font-weight: 700; }
.tsub, .thero__sub, .tcs-lead { color: var(--s-text-2); }
/* small text: slight positive tracking for legibility (Latin only) */
html[dir="ltr"] .tkick, html[dir="ltr"] .tpc__row b, html[dir="ltr"] .tcs-facts b, html[dir="ltr"] .tstory__flow li b { letter-spacing: .01em; }
.tkick { font-size: clamp(14px, 1.4vw, 16px); font-weight: 600; color: var(--acc); margin-bottom: 12px; }
.tkick::before { display: none; }
.thead { margin-bottom: clamp(40px, 5.5vw, 64px); }
.thead .tsub { max-width: 640px; }
.thead--c .tsub { margin-inline: auto; }

/* ---------------- section rhythm: more air ---------------- */
.tsec { padding: clamp(96px, 12vw, 168px) 0; }
@media (min-width: 821px) { #contact.tsec { padding-top: clamp(96px, 12vw, 168px); } }
.twrap { max-width: 1180px; padding: 0 22px; }

/* ---------------- materials: header ---------------- */
.tnav { background: var(--s-mat); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-bottom: 0; transition: box-shadow .35s ease, background-color .35s ease; }
/* scroll edge effect: a soft hairline + fade only once content scrolls under the bar */
.tnav::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--s-line); opacity: 0; transition: opacity .35s ease; }
html.t-scrolled .tnav::after { opacity: 1; }
html.t-scrolled .tnav { box-shadow: 0 10px 30px -22px rgba(4,12,40,.55); }
:root[data-theme="light"].t-scrolled .tnav { box-shadow: 0 10px 30px -24px rgba(20,40,90,.25); }
.tnav__in { height: 64px; max-width: 1180px; padding: 0 22px; }
.tnav__logo img { height: 26px; }
.tnav__quick a { font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; color: var(--s-text-2); }
.tnav__quick a:hover, .tnav__quick a[aria-current="page"] { background: transparent; color: var(--t22); }
.tnav .sw { border: 0; background: var(--s-card); padding: 8px 14px; color: var(--s-text-2); }
:root[data-theme="light"] .tnav .sw { background: rgba(20,40,90,.06); }
.tnav .tbtn { padding: 9px 16px; font-size: 13.5px; border-radius: 999px; }
.tlines { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--s-card); padding: 0 11px; gap: 4px; }
:root[data-theme="light"] .tlines { background: rgba(20,40,90,.06); }
.tlines span { width: 16px; height: 2px; }
.tlines[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tlines[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.tlines span { transition: transform var(--spring-d) var(--spring), opacity .2s; }
html { scroll-padding-top: 76px; }

/* ---------------- menu: a material that grows out of its trigger ---------------- */
/* Anchored to the lines button (transform-origin = the button's corner), enters and exits
   along the same path, and blur + scale animate together so it "materializes".
   Non-blocking panel: no scrim, the page stays live underneath. */
.tmenu { top: 70px; width: min(300px, calc(100vw - 28px)); border-radius: var(--r-md); border: 0;
  background: var(--s-mat); backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%);
  box-shadow: 0 0 0 1px var(--s-line), 0 30px 80px -30px rgba(4,12,40,.75);
  transform: scale(.9); filter: blur(6px);
  transition: opacity .22s ease, transform var(--spring-d) var(--spring), filter .3s ease, visibility 0s linear var(--spring-d); }
.tmenu.is-open { transform: none; filter: none; transition: opacity .2s ease, transform var(--spring-d) var(--spring), filter .3s ease, visibility 0s; }
:root[data-theme="light"] .tmenu { box-shadow: 0 0 0 1px var(--s-line), 0 30px 70px -30px rgba(20,40,90,.35); }
.tmenu__in { padding: 8px; }
.tmenu__list a { font-size: 15.5px; font-weight: 600; padding: 10px 14px; border-radius: 12px; color: var(--t22); transition: background-color .2s ease, color .2s ease; }
.tmenu__list a::before { color: var(--s-text-2); opacity: .7; font-weight: 500; }
.tmenu__list a:hover, .tmenu__list a[aria-current="page"] { color: var(--t22); background: var(--s-card-2); }
:root[data-theme="light"] .tmenu__list a:hover, :root[data-theme="light"] .tmenu__list a[aria-current="page"] { background: rgba(20,40,90,.06); }
.tmenu__list a[aria-current="page"]::before { color: var(--acc); opacity: 1; }
.tmenu__list li { opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .4s var(--spring); }
.tmenu.is-open .tmenu__list li { opacity: 1; transform: none; }
.tmenu.is-open .tmenu__list li:nth-child(2) { transition-delay: 20ms; }
.tmenu.is-open .tmenu__list li:nth-child(3) { transition-delay: 40ms; }
.tmenu.is-open .tmenu__list li:nth-child(4) { transition-delay: 60ms; }
.tmenu.is-open .tmenu__list li:nth-child(5) { transition-delay: 80ms; }
.tmenu.is-open .tmenu__list li:nth-child(6) { transition-delay: 100ms; }
.tmenu.is-open .tmenu__list li:nth-child(n+7) { transition-delay: 120ms; }
@media (max-width: 640px) { .tmenu { top: 66px; } }

/* ---------------- buttons: pills, instant press feedback ---------------- */
.tbtn { border-radius: 999px; padding: 14px 26px; font-weight: 600; letter-spacing: 0; transition: transform var(--spring-d) var(--spring), background-color .25s ease, box-shadow .3s ease, color .25s ease, filter .25s ease; -webkit-tap-highlight-color: transparent; }
/* solid brand blue, not a glow: the gradient stays for accent text */
.tbtn--p { background: var(--brand-blue); color: #fff; box-shadow: 0 10px 24px -14px rgba(47,111,237,.9); }
.tbtn--p:hover { transform: none; color: #fff; filter: brightness(1.08); box-shadow: 0 14px 30px -14px rgba(47,111,237,1); }
.tbtn--g { background: var(--s-card); border: 0; box-shadow: inset 0 0 0 1px var(--s-line); color: var(--t22); }
.tbtn--g:hover { transform: none; background: var(--s-card-2); color: var(--t22); }
:root[data-theme="light"] .tbtn--g { background: rgba(20,40,90,.06); box-shadow: none; }
:root[data-theme="light"] .tbtn--g:hover { background: rgba(20,40,90,.1); }
/* feedback lives on the press, and it's instant */
.tbtn:active, .tchip:active, .tlines:active, .tnav .sw:active, .tfoot__soc a:active, .tsvc-nav a:active, .tnext a:active { transform: var(--press); transition: transform 90ms ease-out; }
.tlink { color: var(--t5); font-weight: 600; }
:root[data-theme="light"] .tlink { color: var(--brand-blue); }
.tlink svg { transition: transform .45s var(--spring); }

/* ---------------- cards: one calm surface language ---------------- */
.tcard, .tfaq details, .tquote, .ttrust__box, .timpact, .tcta { background: var(--s-card); border: 0; box-shadow: var(--s-shadow); border-radius: var(--r-lg); }
.tcard { transition: transform var(--spring-d) var(--spring), box-shadow .4s ease; }
/* hover: a small, physical lift; press: settles back down */
a.tcard:hover, .tcard--h:hover, .tprob li:hover, .twhy li:hover { transform: translateY(-3px) scale(1.006); border-color: transparent; box-shadow: var(--s-shadow-h); }
a.tcard:active, .tcard--h:active { transform: scale(.985); transition: transform 110ms ease-out; }
.tquote { background: transparent; box-shadow: none; font-weight: 600; font-size: clamp(22px, 3vw, 36px); line-height: 1.6; max-width: 900px; padding: clamp(20px, 3vw, 32px) 0 0; }
html[dir="ltr"] .tquote { letter-spacing: -.02em; line-height: 1.3; }
.ttrust__box, .timpact, .tcs-sec--res { background: linear-gradient(160deg, rgba(47,111,237,.16), rgba(23,195,178,.08)); box-shadow: inset 0 0 0 1px rgba(95,227,213,.14); }
:root[data-theme="light"] .ttrust__box, :root[data-theme="light"] .timpact, :root[data-theme="light"] .tcs-sec--res { background: linear-gradient(160deg, #EAF1FF, #E6F8F5); box-shadow: none; }

/* hero: centred, one idea, lots of air */
/* The whole hero fits in one screen: a short gap under the header, and the
   headline is sized by both width and height (min(vw, vh)) so short screens shrink it too. */
.thero { padding: calc(64px + clamp(28px, 5vh, 56px)) 0 clamp(48px, 7vh, 80px); text-align: center; }
/* the hero fills the screen in both languages (English headlines take fewer lines): same size, content centred */
.thero { min-height: 100vh; min-height: 100svh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.thero .twrap { display: flex; flex-direction: column; align-items: center; width: 100%; box-sizing: border-box; }
#hero h1.thero__h { font-size: clamp(36px, min(6.4vw, 9vh), 88px) !important; max-width: 17ch; margin: clamp(12px, 2vh, 20px) auto clamp(12px, 2.2vh, 20px) !important; }
html[dir="rtl"] #hero h1.thero__h { font-size: clamp(34px, min(6.2vw, 8.6vh), 80px) !important; line-height: 1.3 !important; }
.thero__sub { margin: 0 auto clamp(18px, 3.4vh, 32px); max-width: 640px; font-size: clamp(16px, min(1.7vw, 2.5vh), 20px); line-height: 1.9; }
.thero .tchain { margin-top: clamp(18px, 3.6vh, 40px); }
.thero__cta { justify-content: center; }
.thero__badge { background: var(--s-card); border: 0; box-shadow: inset 0 0 0 1px var(--s-line); color: var(--s-text-2); font-weight: 500; }
:root[data-theme="light"] .thero__badge { background: #fff; box-shadow: 0 1px 2px rgba(20,40,90,.06), inset 0 0 0 1px var(--s-line); }
.tchain { justify-content: center; }
.tchain li span { background: transparent; border: 0; padding: 6px 4px; color: var(--s-text-2); font-weight: 500; }
.tchain li:not(:last-child)::after { width: 22px; opacity: .5; }

/* problems / why: icon tiles become quiet SF-style glyph tiles */
.tprob li { padding: 22px 24px; color: var(--t22); }
.tprob__ico, .twhy__ico { border: 0; border-radius: 14px; width: 50px; height: 50px; box-shadow: none; background: rgba(47,111,237,.16); transition: transform var(--spring-d) var(--spring-bounce); }
.tprob__ico svg, .twhy__ico svg { filter: none; }
.twhy__ico { background: rgba(23,195,178,.16); }
:root[data-theme="light"] .tprob__ico { background: #EAF1FF; color: var(--brand-blue); box-shadow: none; }
:root[data-theme="light"] .twhy__ico { background: #E3F7F4; color: #0F8C80; box-shadow: none; }
.tprob li:hover .tprob__ico, .twhy li:hover .twhy__ico { transform: scale(1.08); box-shadow: none; }
.tprob__flag, .twhy__ico::after { width: 16px; height: 16px; font-size: 10px; top: -4px; inset-inline-end: -4px; border-width: 2px; border-color: var(--s-bg); box-shadow: none; }
:root[data-theme="light"] .tprob__flag, :root[data-theme="light"] .twhy__ico::after { border-color: #fff; }
.twhy li { padding: 28px 26px; }
.twhy li::before { color: var(--s-text-2); opacity: .6; font-weight: 600; }

/* services */
.tsvc { padding: 32px 30px 26px; }
.tsvc__n { -webkit-text-stroke: 0; color: var(--acc); font-size: 15px; font-weight: 700; margin-bottom: 26px; }
.tsvc__links { border-top-color: var(--s-line); }

/* segmented-control filter */
.tchips { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--s-card); box-shadow: inset 0 0 0 1px var(--s-line); }
:root[data-theme="light"] .tchips { background: rgba(20,40,90,.06); box-shadow: none; }
.tchip { border: 0; background: transparent; padding: 8px 15px; font-weight: 600; color: var(--s-text-2); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform var(--spring-d) var(--spring); }
.tchip:hover { color: var(--t22); }
.tchip[aria-pressed="true"], .tchip[aria-current="page"] { background: var(--s-card-2); color: var(--t22); box-shadow: 0 2px 10px -4px rgba(4,12,40,.6), inset 0 0 0 1px var(--s-line); }
:root[data-theme="light"] .tchip[aria-pressed="true"], :root[data-theme="light"] .tchip[aria-current="page"] { background: #fff; box-shadow: 0 1px 3px rgba(20,40,90,.14); }
.tchip[aria-pressed="true"] b, .tchip[aria-current="page"] b { background: var(--t61); color: var(--acc); }
@media (max-width: 640px) { .tchips { border-radius: 20px; } }

/* project cards */
.tpcs { gap: 22px; }
.tpc__logo { border-radius: 14px; box-shadow: 0 0 0 1px rgba(20,40,90,.06); }
.tpc__meta span { background: transparent; border: 0; padding: 0; color: var(--acc); }
.tpc__meta span + span::before { content: "·"; margin-inline-end: 6px; color: var(--s-text-2); }
.tpc__svc span { border: 0; background: var(--s-card-2); border-radius: 999px; padding: 3px 10px; }
:root[data-theme="light"] .tpc__svc span { background: rgba(20,40,90,.05); }
.tpc__res { border-top-color: var(--s-line); }
.tpc__go { color: var(--t5); }
:root[data-theme="light"] .tpc__go { color: var(--brand-blue); }
/* Phones: the home portfolio becomes a horizontal, snap-to-card rail with native momentum
   (a flick projects to the nearest card, the edge rubber-bands). */
@media (max-width: 640px) {
  #work .tpcs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -22px; padding: 6px 22px 26px; scroll-padding-inline: 22px; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #work .tpcs::-webkit-scrollbar { display: none; }
  #work .tpc { flex: 0 0 84%; scroll-snap-align: start; }
}

/* stories */
.tstory__flow li { border: 0; background: var(--s-card-2); border-radius: 18px; }
:root[data-theme="light"] .tstory__flow li { background: #F5F7FC; }
.tstory__flow li:last-child { background: linear-gradient(160deg, rgba(47,111,237,.22), rgba(23,195,178,.12)); }
:root[data-theme="light"] .tstory__flow li:last-child { background: linear-gradient(160deg, #EAF1FF, #E6F8F5); }

/* FAQ: grouped list, smooth disclosure where the browser supports animating to auto */
:root { interpolate-size: allow-keywords; }
.tfaq { gap: 0; border-radius: var(--r-md); overflow: hidden; background: var(--s-card); box-shadow: var(--s-shadow); }
.tfaq details { border-radius: 0; background: transparent; box-shadow: none; border-bottom: 1px solid var(--s-line); }
.tfaq details:last-child { border-bottom: 0; }
.tfaq summary { padding: 20px 24px; font-weight: 600; transition: background-color .2s ease; }
.tfaq summary:hover { background: var(--s-card-2); }
:root[data-theme="light"] .tfaq summary:hover { background: #FAFBFE; }
.tfaq summary::after { border: 0; background: var(--s-card-2); width: 28px; height: 28px; font-size: 18px; transition: transform var(--spring-d) var(--spring); }
:root[data-theme="light"] .tfaq summary::after { background: rgba(20,40,90,.06); }
.tfaq details p { padding: 0 24px 22px; }
.tfaq details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--spring), content-visibility .5s allow-discrete; }
.tfaq details[open]::details-content { block-size: auto; }

/* final CTA + form */
.tcta { border-radius: 36px; }
.tcta__pts li::before { border: 0; }
.tcta__contact { border-top-color: var(--s-line); }
.tform input, .tform select, .tform textarea { border: 0; border-radius: 12px; background: var(--s-card-2); box-shadow: inset 0 0 0 1px var(--s-line); padding: 13px 15px; transition: box-shadow .2s ease, background-color .2s ease; }
:root[data-theme="light"] .tform input, :root[data-theme="light"] .tform select, :root[data-theme="light"] .tform textarea { background: #F5F7FC; }
.tform input:focus, .tform select:focus, .tform textarea:focus { box-shadow: inset 0 0 0 1px var(--brand-blue), 0 0 0 4px rgba(47,111,237,.22); }
/* inline validation, not on submit: only after the visitor has typed and left the field */
.tform input:user-invalid, .tform textarea:user-invalid { box-shadow: inset 0 0 0 1px #F87171, 0 0 0 4px rgba(248,113,113,.18); }

/* footer */
.tfoot { background: transparent; border-top: 1px solid var(--s-line); }
.tfoot ul a, .tfoot__about p { color: var(--s-text-2); }
.tfoot__soc a { border: 0; background: var(--s-card); border-radius: 999px; }
:root[data-theme="light"] .tfoot__soc a { background: rgba(20,40,90,.06); }
.tfoot__soc a:hover { transform: none; }
.tfoot__bottom { border-top-color: var(--s-line); }

/* inner pages */
.tcs-facts div, .tdoc div { border: 0; background: var(--s-card-2); border-radius: 16px; }
:root[data-theme="light"] .tcs-facts div, :root[data-theme="light"] .tdoc div { background: #F5F7FC; }
.treports { border: 0; background: var(--s-card); box-shadow: inset 0 0 0 1px var(--s-line); }
.thow li::before { -webkit-text-stroke: 0; color: var(--acc); font-size: 15px; font-weight: 700; }
.tstep__n { background: var(--s-bg); border: 0; box-shadow: 0 0 0 6px var(--s-bg), inset 0 0 0 1px var(--s-line), var(--s-shadow); }

/* scroll-in reveal: the original runtime's slide-ups become short, critically damped settles */
[data-reveal] { transition-timing-function: var(--spring) !important; }

/* ---------------- accessibility ---------------- */
@media (prefers-reduced-motion: reduce) {
  /* gentler, non-vestibular equivalent: cross-fades, no scale, no overshoot */
  .tmenu, .tmenu.is-open { transform: none !important; filter: none !important; transition: opacity .2s ease, visibility 0s linear .2s !important; }
  .tmenu.is-open { transition: opacity .2s ease, visibility 0s !important; }
  .tmenu__list li { transform: none !important; transition: opacity .2s ease !important; }
  .tcard, .tbtn, .tchip, .tprob__ico, .twhy__ico, .tlines span, .tfaq summary::after { transition-property: opacity, background-color, color, box-shadow !important; }
  a.tcard:hover, .tcard--h:hover, .tprob li:hover, .twhy li:hover, .tbtn:active, .tchip:active, a.tcard:active { transform: none !important; }
  .tfaq details::details-content { transition: none; }
  .thero__badge i { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .tnav, .tmenu { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #0F1A3C !important; }
  :root[data-theme="light"] .tnav, :root[data-theme="light"] .tmenu { background: #FFFFFF !important; }
}
@media (prefers-contrast: more) {
  .tcard, .tfaq, .tchips, .tbtn--g, .tform input, .tform select, .tform textarea { box-shadow: inset 0 0 0 1.5px currentColor !important; }
  .tnav, .tmenu { background: #08102A !important; backdrop-filter: none !important; }
  :root[data-theme="light"] .tnav, :root[data-theme="light"] .tmenu { background: #FFFFFF !important; }
  .tsub, .thero__sub, .tfoot ul a, .tchip { color: var(--t22) !important; }
}

/* ================= Services: bento grid (home) =================
   One lead service in a tall tile with what it includes; the other three around it. */
#services .tsvcs--bento { grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.tsvcs--bento .tsvc--lead { grid-row: span 2; padding: clamp(30px, 3.4vw, 44px); background: linear-gradient(165deg, rgba(47,111,237,.2), rgba(23,195,178,.08) 70%), var(--s-card); }
:root[data-theme="light"] .tsvcs--bento .tsvc--lead { background: linear-gradient(165deg, #E6EEFF, #F2FBF9 75%); }
.tsvcs--bento .tsvc:nth-child(4) { grid-column: span 2; }
.tsvc--lead .tsvc__n { font-size: 17px; }
.tsvc--lead h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; margin-bottom: 14px; }
html[dir="ltr"] .tsvc--lead h3 { letter-spacing: -.03em; line-height: 1.12; }
.tsvc--lead > p { font-size: 16px; color: var(--s-text-2); }
.tsvc__inc { list-style: none; margin: 4px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tsvc__inc li { position: relative; padding-inline-start: 30px; font-size: 14.5px; line-height: 1.85; color: var(--t66); }
.tsvc__inc li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand-blue); }
@media (max-width: 960px) {
  #services .tsvcs--bento { grid-template-columns: 1fr 1fr; }
  .tsvcs--bento .tsvc--lead { grid-row: auto; grid-column: 1 / -1; }
  .tsvcs--bento .tsvc:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  #services .tsvcs--bento { grid-template-columns: 1fr; }
  .tsvcs--bento .tsvc:nth-child(4), .tsvcs--bento .tsvc--lead { grid-column: auto; }
}

/* ================= Numbers strip ================= */
.tstats-sec { padding-block: clamp(80px, 10vw, 140px); }
.tstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--r-lg); background: var(--s-card); box-shadow: var(--s-shadow); overflow: hidden; }
.tstat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: clamp(28px, 3.6vw, 46px) 18px; color: inherit; position: relative; transition: background-color .3s ease; }
.tstat + .tstat::before { content: ""; position: absolute; top: 22%; bottom: 22%; inset-inline-start: 0; width: 1px; background: var(--s-line); }
.tstat:hover { background: var(--s-card-2); }
:root[data-theme="light"] .tstat:hover { background: #FAFBFE; }
.tstat b { font-family: var(--fn); font-size: clamp(40px, 4.6vw, 66px); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; direction: ltr; unicode-bidi: plaintext;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] .tstat b { font-family: var(--fh); letter-spacing: 0; }
:root:not([data-theme="light"]) .tstat b { background-image: linear-gradient(120deg, #7FA8FF, #4FD8CB); }
.tstat span { font-size: 15px; font-weight: 600; color: var(--t22); }
.tstat small { font-size: 12.5px; color: var(--s-text-2); }
@media (max-width: 900px) {
  .tstats { grid-template-columns: 1fr 1fr; }
  .tstat:nth-child(3)::before { display: none; }
  .tstat:nth-child(n+3) { border-top: 1px solid var(--s-line); }
}
@media (max-width: 480px) {
  .tstats { grid-template-columns: 1fr; }
  .tstat + .tstat::before { display: none; }
  .tstat + .tstat { border-top: 1px solid var(--s-line); }
}

/* ================= Stories: steps light up with scroll =================
   Each story pins while you scroll its track; the bar fills and Problem → Decision →
   Execution → Result switch on in order. Scroll back and they switch off: driven by scroll
   position, never by a timer. Phones: each step lights up as it enters the screen.
   Without JS or with reduced motion everything is simply shown. */
.tstories--scrolly { gap: 0; }
.tstory__bar { height: 3px; border-radius: 3px; background: var(--s-line); margin: -4px 0 18px; overflow: hidden; }
.tstory__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); transform: scaleX(var(--p, 0)); transform-origin: left; }
html[dir="rtl"] .tstory__bar i { transform-origin: right; background: linear-gradient(270deg, var(--brand-blue), var(--brand-cyan)); }
html.js-scrolly .tstories--scrolly .tstory__flow li { opacity: .3; transform: translateY(10px) scale(.98); transition: opacity .45s ease, transform var(--spring-d) var(--spring), box-shadow .45s ease; }
html.js-scrolly .tstories--scrolly .tstory__flow li.is-on { opacity: 1; transform: none; }
html.js-scrolly .tstories--scrolly .tstory__flow li:last-child.is-on { box-shadow: 0 18px 40px -22px rgba(47,111,237,.75); }
@media (min-width: 901px) {
  html.js-scrolly .tstories--scrolly .tstory-track { height: 150vh; }
  html.js-scrolly .tstories--scrolly .tstory-track + .tstory-track { margin-top: 18px; }
  html.js-scrolly .tstories--scrolly .tstory { position: sticky; top: max(84px, calc(50vh - 230px)); }
}
@media (max-width: 900px) { .tstories--scrolly { gap: 18px; } .tstory__bar { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js-scrolly .tstories--scrolly .tstory-track { height: auto !important; }
  html.js-scrolly .tstories--scrolly .tstory { position: static !important; }
  html.js-scrolly .tstories--scrolly .tstory__flow li { opacity: 1 !important; transform: none !important; }
  .tstory__bar { display: none; }
}

/* The page wrapper clips sideways overflow; 'clip' does that without becoming a scroll container,
   so the pinned (sticky) stories still stick to the viewport. */
@supports (overflow: clip) { #top { overflow: clip !important; } }

/* ================= Hero motif: pieces settle into the Tartip lines =================
   Scattered pieces (the "before") fall into the three brand stripes (the "after") once,
   on load, with a critically damped spring. Pure CSS, plays once, then stays still. */
.torder { position: absolute; inset-inline-end: -5%; bottom: -3%; width: min(30vw, 420px); height: 44%; pointer-events: none; z-index: 0; transform: rotate(-22deg); display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2.2vw, 30px); }
html[dir="rtl"] .torder { transform: rotate(22deg); }
.torder__row { display: flex; gap: clamp(6px, .8vw, 10px); }
.torder__row:nth-child(2) { width: 82%; }
.torder__row:nth-child(3) { width: 64%; }
.torder i { flex: 1; height: clamp(22px, 3vw, 42px); border-radius: 999px; background: rgba(255,255,255,.08);
  animation: tOrder 1.4s var(--spring) both; animation-delay: calc(var(--d) + 250ms); }
.torder__row i:first-child { background: rgba(255,255,255,.13); }
.torder__row:first-child i:last-child { background: linear-gradient(90deg, rgba(47,111,237,.55), rgba(23,195,178,.55)); }
:root[data-theme="light"] .torder i { background: rgba(34,64,135,.07); }
:root[data-theme="light"] .torder__row i:first-child { background: rgba(34,64,135,.11); }
:root[data-theme="light"] .torder__row:first-child i:last-child { background: linear-gradient(90deg, rgba(47,111,237,.4), rgba(23,195,178,.4)); }
@keyframes tOrder {
  0% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.7); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@media (max-width: 640px) { .torder { width: 56vw; height: 20%; bottom: -9%; inset-inline-end: -16%; opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .torder i { animation: none; } }

/* ================= Service icons ================= */
.tsvc__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.tsvc__top .tsvc__n { margin: 0; }
.tsvc__ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--acc); background: rgba(47,111,237,.16); transition: transform var(--spring-d) var(--spring-bounce); }
:root[data-theme="light"] .tsvc__ico { background: #EAF1FF; color: var(--brand-blue); }
.tsvc:hover .tsvc__ico { transform: scale(1.08) rotate(-4deg); }
.tsvc--lead .tsvc__ico { width: 60px; height: 60px; border-radius: 18px; background: var(--brand-blue); color: #fff; }
.tsvc--lead .tsvc__ico svg { width: 28px; height: 28px; }
:root[data-theme="light"] .tsvc--lead .tsvc__ico { background: var(--brand-blue); color: #fff; }
@media (prefers-reduced-motion: reduce) { .tsvc:hover .tsvc__ico { transform: none; } }

/* ================= Phone WhatsApp bar =================
   Appears after the hero, hides again over the contact section and footer (apple.js). */
.twa-bar { display: none; }
@media (max-width: 640px) {
  .twa-bar { position: fixed; z-index: 110; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 20px; border-radius: 999px; background: var(--brand-blue); color: #fff; font-weight: 700; font-size: 15px;
    box-shadow: 0 16px 36px -14px rgba(20,40,110,.7); transform: translateY(150%); opacity: 0;
    transition: transform var(--spring-d) var(--spring), opacity .25s ease; -webkit-tap-highlight-color: transparent; }
  .twa-bar.is-on { transform: none; opacity: 1; }
  .twa-bar:active { transform: scale(.97); transition: transform 90ms ease-out; }
  .twa-bar svg { flex: none; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .twa-bar { transform: none; transition: opacity .2s ease; visibility: hidden; } .twa-bar.is-on { visibility: visible; } }

/* ================= Case study: numbers first, then the eight steps ================= */
.tcs-band { margin: 0 0 34px; }
.tcs-band .tstats--n3 { grid-template-columns: repeat(3, 1fr); }
.tcs-band .tstats--n2 { grid-template-columns: repeat(2, 1fr); }
.tcs-band .tstats--n1 { grid-template-columns: 1fr; }
.tcs-band .tstat b { font-size: clamp(30px, 4vw, 50px); }
.tcs-band .tstat { padding: clamp(22px, 3vw, 34px) 14px; }
.tcs-band .tsrc { text-align: center; margin-top: 12px; }
@media (max-width: 600px) { .tcs-band .tstats--n3, .tcs-band .tstats--n2 { grid-template-columns: 1fr; } .tcs-band .tstat + .tstat::before { display: none; } .tcs-band .tstat + .tstat { border-top: 1px solid var(--s-line); } }
.tcs-grid--line .tcs-sec h2 i { width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--t61); color: var(--acc); font-size: 12px; font-weight: 700; }
.tcs-head .tpc__logo { border-radius: 20px; }
.tcs .tph1 { font-size: clamp(34px, 5vw, 58px); }

/* ================= Blog, in the v3 language ================= */
.bwrap { max-width: 1180px; padding: 0 22px; }
.bwrap > .bsk { color: var(--acc); background: none; border: 0; padding: 0; font-weight: 600; font-size: 15px; }
.blist-h1 { font-weight: 700 !important; }
html[dir="ltr"] .blist-h1 { letter-spacing: -.04em; }
.bgrid { gap: 22px; }
.bcard { background: var(--s-card) !important; border: 0 !important; border-radius: var(--r-md) !important; box-shadow: var(--s-shadow); overflow: hidden; transition: transform var(--spring-d) var(--spring), box-shadow .4s ease !important; }
.bcard:hover { transform: translateY(-3px) scale(1.006) !important; box-shadow: var(--s-shadow-h); }
.bcard:active { transform: scale(.985) !important; transition: transform 110ms ease-out !important; }
.bcard__img { height: 200px; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--spring); }
.bcard:hover .bcard__img img { transform: scale(1.04); }
.bcard__pill { background: var(--s-mat) !important; backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%); border: 0 !important; color: var(--t22) !important; font-weight: 600; }
.bcard__body h3 { font-weight: 700 !important; line-height: 1.55; }
html[dir="ltr"] .bcard__body h3 { letter-spacing: -.015em; line-height: 1.3; }
.bcard__body p { color: var(--s-text-2) !important; }
.art { max-width: 760px; padding: 0 22px; }
.art-back { color: var(--t5); font-weight: 600; }
:root[data-theme="light"] .art-back { color: var(--brand-blue); }
.art-meta .pill { background: var(--t61) !important; border: 0 !important; color: var(--acc) !important; font-weight: 600; }
.art-meta .date { color: var(--s-text-2); }
.art-title { font-weight: 700 !important; line-height: 1.4 !important; }
html[dir="ltr"] .art-title { letter-spacing: -.035em !important; line-height: 1.1 !important; }
.art-lead { color: var(--s-text-2) !important; }
.art-cover { border: 0 !important; border-radius: var(--r-lg) !important; box-shadow: var(--s-shadow); }
.art-body { font-size: 18px !important; line-height: 2.1 !important; color: var(--t66); }
html[dir="ltr"] .art-body { font-size: 18px !important; line-height: 1.75 !important; }
.art-body h2 { font-weight: 700 !important; margin-top: 2em !important; }
html[dir="ltr"] .art-body h2 { letter-spacing: -.02em; }
.art-body ul, .art-body ol { padding-inline-start: 1.3em; }
.art-body li { margin-bottom: .45em; }
.art-body li::marker { color: var(--acc); }
.art-cta { background: var(--s-card) !important; border: 0 !important; border-radius: var(--r-lg) !important; box-shadow: var(--s-shadow); }
.art-meta .rt { color: var(--s-text-2); font-size: 13px; }

/* ================= Footer: quieter ================= */
.tfoot { padding: clamp(44px, 5vw, 60px) 0 22px; }
.tfoot__cols { gap: 28px; margin-bottom: 34px; }
.tfoot h2 { font-size: 13px; font-weight: 600; color: var(--t22); margin-bottom: 12px; }
.tfoot ul { gap: 7px; }
.tfoot ul a { font-size: 13.5px; transition: color .2s ease; }
.tfoot ul a:hover { color: var(--t22); }
.tfoot__about p { font-size: 13.5px; line-height: 1.95; margin: 14px 0 16px; }
.tfoot__about img { height: 24px !important; }
.tfoot__soc { gap: 8px; }
.tfoot__soc a { width: 34px; height: 34px; }
.tfoot__soc a svg { width: 15px; height: 15px; }
.tfoot__bottom { font-size: 12.5px; padding-top: 18px; }
@media (max-width: 640px) { .tfoot { padding-bottom: 96px; } }

/* ================= 404 ================= */
.t404 { text-align: center; padding-bottom: clamp(60px, 8vw, 100px); }
.t404__n { font-family: var(--fn); font-weight: 700; font-size: clamp(110px, 22vw, 230px); line-height: 1; letter-spacing: -.06em; direction: ltr;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.t404 .tph1 { font-size: clamp(30px, 4.4vw, 50px); }
.t404__en { display: block; font-family: var(--fn); font-size: .5em; font-weight: 500; color: var(--s-text-2); margin-top: 8px; letter-spacing: -.01em; }
.t404 .tsub { margin: 0 auto 34px; max-width: 520px; }
.t404__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: start; }
.t404__grid a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; color: inherit; }
.t404__grid b { font-size: 17px; color: var(--t22); }
.t404__grid small { font-size: 13px; color: var(--s-text-2); }
@media (max-width: 640px) { .t404__grid { grid-template-columns: 1fr 1fr; } }

/* ================= Hero stripes: the three Tartip lines draw in =================
   On load each line grows from its starting edge (critically damped spring), one after
   another, then a soft light sweeps along it once. Plays once, then stays still. */
#hero .tstripes { opacity: .6; }
#hero .tstripes i { position: relative; overflow: hidden; transform-origin: left center; animation: tStripeIn 1.1s var(--spring) both; }
html[dir="rtl"] #hero .tstripes i { transform-origin: right center; }
#hero .tstripes i:nth-child(1) { animation-delay: .25s; }
#hero .tstripes i:nth-child(2) { animation-delay: .4s; }
#hero .tstripes i:nth-child(3) { animation-delay: .55s; }
#hero .tstripes i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28) 45%, rgba(95,227,213,.35) 55%, transparent);
  animation: tStripeSheen 1.3s ease-in-out both; }
html[dir="rtl"] #hero .tstripes i::after { transform: translateX(110%); animation-name: tStripeSheenRtl; }
#hero .tstripes i:nth-child(1)::after { animation-delay: 1.1s; }
#hero .tstripes i:nth-child(2)::after { animation-delay: 1.25s; }
#hero .tstripes i:nth-child(3)::after { animation-delay: 1.4s; }
:root[data-theme="light"] #hero .tstripes i::after { background: linear-gradient(90deg, transparent, rgba(47,111,237,.16) 45%, rgba(23,195,178,.2) 55%, transparent); }
@keyframes tStripeIn { from { transform: scaleX(0); opacity: 0; } 15% { opacity: 1; } to { transform: scaleX(1); opacity: 1; } }
@keyframes tStripeSheen { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes tStripeSheenRtl { from { transform: translateX(110%); } to { transform: translateX(-110%); } }
@media (prefers-reduced-motion: reduce) { #hero .tstripes i, #hero .tstripes i::after { animation: none; } #hero .tstripes i::after { display: none; } }

/* Call-to-action boxes: same buttons as everywhere else in v3 (solid blue + quiet grey pill). */
.art-cta a.tbtn { border-radius: 999px; font-size: 15px; padding: 14px 26px; }
.art-cta a.tbtn--p, .art-cta a.tbtn--p:hover { background: var(--brand-blue); color: #fff; box-shadow: 0 10px 24px -14px rgba(47,111,237,.9); }
.art-cta a.tbtn--g, .art-cta a.tbtn--g:hover { background: var(--s-card-2); border: 0; box-shadow: inset 0 0 0 1px var(--s-line); color: var(--t22); }
:root[data-theme="light"] .art-cta a.tbtn--g, :root[data-theme="light"] .art-cta a.tbtn--g:hover { background: rgba(20,40,90,.07); box-shadow: none; color: #182F6A; }
.art-cta a.tbtn:hover { transform: none; filter: brightness(1.05); }
.art-cta a.tbtn:active { transform: scale(.97); transition: transform 90ms ease-out; }
/* ================= Case-study figures as charts (FX "charts") =================
   Ring: impressions, split into first views vs repeat views (from average frequency).
   Units: one tile per published ad. Both draw in once when scrolled into view. */
.tchart { padding: clamp(24px, 3.4vw, 36px); border-radius: var(--r-lg); background: var(--s-card); box-shadow: var(--s-shadow); }
.tchart .pj__sh { font-weight: 700; color: var(--t22); margin-bottom: 22px; }
.tchart__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
@media (max-width: 760px) { .tchart__grid { grid-template-columns: 1fr; } }
.tchart__card { border-radius: var(--r-md); background: var(--s-card-2); box-shadow: inset 0 0 0 1px var(--s-line); padding: clamp(20px, 2.6vw, 28px); }
:root[data-theme="light"] .tchart__card { background: #F5F7FC; box-shadow: none; }
.tchart__card--ring { display: flex; align-items: center; gap: clamp(18px, 3vw, 30px); }
@media (max-width: 480px) { .tchart__card--ring { flex-direction: column; text-align: center; } }

.tring { position: relative; flex: none; width: clamp(150px, 17vw, 190px); aspect-ratio: 1; }
.tring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
html[dir="rtl"] .tring svg { transform: rotate(-90deg) scaleY(-1); }
.tring circle { fill: none; stroke-width: 14; }
.tring__bg { stroke: var(--s-line); }
.tring__rep { stroke: rgba(47,111,237,.28); }
.tring__arc { stroke: var(--brand-blue); stroke-linecap: round; }
:root:not([data-theme="light"]) .tring__arc { stroke: #5FE3D5; }
:root:not([data-theme="light"]) .tring__rep { stroke: rgba(127,168,255,.35); }
.tring__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tring__c b { font-family: var(--fh); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--t22); line-height: 1.15; }
html[dir="ltr"] .tring__c b { letter-spacing: -.03em; }
.tring__c span { font-size: 12.5px; color: var(--s-text-2); margin-top: 4px; }

.tchart__legend { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tchart__legend p { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--t66); }
.tchart__legend p b { font-family: var(--fh); font-size: 20px; color: var(--t22); }
.tchart__legend small { display: block; font-size: 12.5px; line-height: 1.8; color: var(--s-text-2); }
.tchart__legend small + small { margin-top: 2px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; display: inline-block; transform: translateY(-1px); }
.dot--a { background: var(--brand-blue); }
.dot--b { background: rgba(47,111,237,.28); }
:root:not([data-theme="light"]) .dot--a { background: #5FE3D5; }
:root:not([data-theme="light"]) .dot--b { background: rgba(127,168,255,.35); }

.tchart__k { font-size: 14.5px; color: var(--t66); margin-bottom: 16px; }
.tchart__k b { font-family: var(--fh); font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--t22); margin-inline-end: 6px; }
/* campaign structure: a funnel that widens from campaigns down to the audience */
.tchart__card--units { display: flex; flex-direction: column; }
.tchart__cap { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--s-text-2); }
.tfun { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.tfun li { width: var(--w); min-height: 50px; padding: 8px 18px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: color-mix(in srgb, var(--brand-blue) calc(10% + var(--i) * 5%), transparent); color: var(--t22); }
.tfun li b { font-family: var(--fh); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.tfun li span { font-size: 13.5px; line-height: 1.5; color: var(--t66); }
.tfun li.is-hi { min-height: 60px; background: linear-gradient(120deg, var(--brand-blue), var(--brand-cyan)); color: #fff; box-shadow: 0 14px 30px -18px rgba(47,111,237,.95); }
.tfun li.is-hi span { color: rgba(255,255,255,.88); }
:root:not([data-theme="light"]) .tfun li:not(.is-hi) { background: color-mix(in srgb, #7FA8FF calc(10% + var(--i) * 5%), transparent); }
:root:not([data-theme="light"]) .tfun li:not(.is-hi) span { color: var(--s-text-2); }
@media (max-width: 480px) { .tfun li { width: 100%; flex-direction: column; gap: 0; } }
.tchart__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--s-text-2); }
.tchart .pj__src { margin-top: 18px; }

/* draw-in once visible (apple.js adds .is-in); static without JS */
html.js-charts .tchart:not(.is-in) .tring__arc { stroke-dashoffset: var(--len); }
html.js-charts .tchart .tring__arc { transition: stroke-dashoffset 1.4s var(--spring) .15s; }
html.js-charts .tchart:not(.is-in) .tfun li { opacity: 0; scale: .35 1; }
html.js-charts .tchart:not(.is-in) .tfun li > * { opacity: 0; }
html.js-charts .tchart .tfun li { transition: opacity .3s ease, scale .7s var(--spring-bounce); transition-delay: calc(var(--i) * 110ms + .2s); }
html.js-charts .tchart .tfun li > * { transition: opacity .35s ease; transition-delay: calc(var(--i) * 110ms + .5s); }
@media (prefers-reduced-motion: reduce) {
  html.js-charts .tchart .tring__arc, html.js-charts .tchart .tfun li, html.js-charts .tchart .tfun li > * { transition: none; }
}

/* ================= Phones: touch targets and minimum text size =================
   Apple's guideline is a ~44pt touch target. Links that read as text get vertical padding
   (bigger hit area, same look); pills and icon buttons grow to 40–44px. Small labels
   move from 11–11.5px up to 12.5px. */
@media (max-width: 640px) {
  .tlink, .art-back, .tcta__contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .tsvc__links { gap: 0 18px; }
  .tsectors { gap: 8px; }
  .tsectors a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; }
  .tcs-head .tpc__meta a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px !important; }
  .tsvc-nav a { min-height: 52px; align-items: center; }
  .tnext a { min-height: 64px; justify-content: center; }
  .tnav__logo { padding: 9px 0; }
  .tnav .sw { min-height: 38px; }
  .tnav .tbtn { min-height: 40px; }
  .tlines { width: 42px; height: 42px; }
  .tfoot__about > a { display: inline-block; padding: 10px 0; }
  .tfoot ul { gap: 0; }
  .tfoot ul a { display: inline-block; padding: 9px 0; font-size: 14.5px; }
  .tfoot__soc { gap: 10px; }
  .tfoot__soc a { width: 44px; height: 44px; }
  .tfoot__bottom a { display: inline-block; padding: 8px 0; }
  .tfaq summary { min-height: 56px; }
  .tchip { min-height: 40px; }
  /* minimum text */
  .tpc__svc span, .tpc__row b, .tpc__stat small, .tpc__meta, .bcard__pill, .tcs-facts b, .tstory__flow li b, .tchart__legend small, .tchart__note, .tsrc, .pj__src, .tstory__src { font-size: 12.5px !important; }
  .tpc__row { font-size: 14px; }
}

@media (max-width: 640px) { .tchip b { font-size: 12.5px; } }

/* Header controls: never stretch to the bar's height; centre their labels. */
.tnav__end { align-items: center; }
.tnav .sw, .tnav .tbtn, .tlines { align-self: center; align-items: center; }
@media (max-width: 640px) {
  .tnav .sw { min-height: 36px; padding: 0 12px; }
  .tnav .tbtn { min-height: 38px; padding: 0 14px; }
  /* Sector filter: one row that scrolls sideways (a phone segmented control), not a 4-row box. */
  .tchips { display: flex; flex-wrap: nowrap; overflow-x: auto; border-radius: 999px; max-width: 100%; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .tchips::-webkit-scrollbar { display: none; }
  .tchip { flex: none; }
  /* Portfolio rail: the next card must already be visible at the edge (it hints "swipe"). */
  #work .tpcs .tpc[data-reveal] { opacity: 1 !important; transform: none !important; }
}
/* Phones: documented results two per row instead of one tall column. */
@media (max-width: 640px) { .tdoc { grid-template-columns: 1fr 1fr; gap: 10px; } .tdoc div { padding: 14px; } .tdoc b { font-size: 19px; } }

/* ================= Cursor: the system arrow, plus a brand halo over controls =================
   The inherited follower cursor (ring + dot that trail the mouse) is switched off: the normal
   arrow responds instantly. Over buttons and links, a soft brand-coloured halo sits on the
   pointer itself (moved 1:1 in apple.js, no trailing). */
#ph-cursor, #ph-cursor-dot { display: none !important; }
html.ph-cursor-ready * { cursor: revert !important; }
html.ph-cursor-ready :is(a[href], button, summary, label, select, [role="button"], .tchip) { cursor: pointer !important; }
html.ph-cursor-ready :is(input:not([type="checkbox"]):not([type="radio"]), textarea) { cursor: text !important; }
.thalo { position: fixed; left: 0; top: 0; z-index: 9999; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none;
  transform: translate3d(var(--x, -100px), var(--y, -100px), 0); }
.thalo::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,111,237,.22), rgba(23,195,178,.12) 60%, transparent 72%);
  box-shadow: 0 0 0 1.5px rgba(47,111,237,.35); opacity: 0; transform: scale(.4);
  transition: opacity .2s ease, transform .35s var(--spring); }
.thalo.is-on::before { opacity: 1; transform: scale(1); }
.thalo.is-on.is-down::before { transform: scale(.8); transition-duration: .2s, .12s; }
:root:not([data-theme="light"]) .thalo::before { background: radial-gradient(circle, rgba(95,227,213,.22), rgba(47,111,237,.12) 60%, transparent 72%); box-shadow: 0 0 0 1.5px rgba(95,227,213,.4); }
@media (hover: none), (pointer: coarse) { .thalo { display: none; } }
@media (prefers-reduced-motion: reduce) { .thalo::before { transition: opacity .2s ease; } }

/* ================= Hero headline: never clip Arabic letters =================
   The gradient line paints its colour only inside its own box (background-clip:text), so
   descenders (ج ي) and marks above letters were cut. Give the box room above and below
   without moving the layout; same for the rise-in mask while it animates. */
.tgrad { padding-block: .14em .3em; margin-block: -.14em -.3em; padding-inline: .06em; margin-inline: -.06em; }
#hero h1.thero__h { padding-block: .12em .3em; margin-top: calc(clamp(12px, 2vh, 20px) - .12em) !important; margin-bottom: calc(clamp(12px, 2.2vh, 20px) - .3em) !important; }
.thero__h .tgrad { display: inline-block; }

/* ================= Arabic line spacing: room for diacritics =================
   Tanween, shadda and hamza sit above the letters; with headings at 1.2–1.38 line-height
   they collided with the line above. Arabic gets a floor: 1.6 for headings, 1.5 for wrapped
   UI text (reading text is already 1.9–2.2). #top raises specificity over the inherited id rules. */
html[dir="rtl"] #top :is(h1, h2, h3, h4, h5, h6, .th2, .tph1, .art-title, .blist-h1, .tquote, .thero__h) { line-height: 1.6 !important; }
html[dir="rtl"] #top #hero h1.thero__h { line-height: 1.5 !important; }
html[dir="rtl"] #top :is(.tbtn, .tlink, .tchip, .tsvc-nav a, .tnext a, .thero__badge, .tchart__k, .tchart__legend p, .tpc__stat, .tform label, td, th, small, .art-cta .k, .tpc__row b, .tstory__flow li b, .tcs-facts b, .tdoc span) { line-height: 1.5; }
/* (reading text — paragraphs, lists, article body — already runs at 1.9–2.2) */
/* =====================================================================
   Motion layer 2 — richer, still Apple-like: every motion is tied to scroll
   position or the pointer, plays once or follows input 1:1, never loops on its own,
   and everything here is switched off under prefers-reduced-motion.
   ===================================================================== */

/* 1. Reveal = rise + come into focus. The runtime hides [data-reveal] elements with an
   inline "opacity: 0"; while hidden they are also blurred and slightly scaled down. */
[data-reveal] { transition-property: opacity, transform, filter, scale !important; }
[data-reveal][style*="opacity: 0"] { filter: blur(10px); scale: .97; }

/* 2. Reading progress — a hairline of brand gradient under the header. */
.tprogress { position: fixed; top: 0; left: 0; right: 0; height: 2.5px; z-index: 130; pointer-events: none;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); transform-origin: left center; transform: scaleX(var(--sp, 0)); }
html[dir="rtl"] .tprogress { transform-origin: right center; background: linear-gradient(270deg, var(--brand-blue), var(--brand-cyan)); }

/* 3. Hero: a soft light follows the pointer; content drifts up and fades as you scroll away. */
.thero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: var(--hl, 0); transition: opacity .6s ease;
  background: radial-gradient(520px 380px at var(--hx, 50%) var(--hy, 40%), rgba(47,111,237,.16), rgba(23,195,178,.08) 45%, transparent 70%); }
:root:not([data-theme="light"]) .thero::after { background: radial-gradient(520px 380px at var(--hx, 50%) var(--hy, 40%), rgba(95,227,213,.14), rgba(47,111,237,.12) 45%, transparent 70%); }
.thero > .twrap { transform: translate3d(0, calc(var(--hs, 0) * -60px), 0); opacity: calc(1 - var(--hs, 0) * .9); will-change: transform, opacity; }
#hero .tstripes { translate: 0 calc(var(--hs, 0) * 90px); }
/* the gradient words catch the light once after load */
.thero__h .tgrad { background-size: 220% 100% !important; animation: tShine 2.4s cubic-bezier(.4, 0, .2, 1) 1.2s both; }
@keyframes tShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.thero__badge i { animation: none !important; }

/* 4. Section kick: a short brand line draws in before the label. */
.tkick { position: relative; }
.thead .tkick::after { content: ""; display: inline-block; width: 26px; height: 2px; border-radius: 2px; margin-inline-start: 10px; vertical-align: middle;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); transform-origin: left center; transform: scaleX(0); transition: transform .9s var(--spring) .35s; }
html[dir="rtl"] .thead .tkick::after { transform-origin: right center; }
.thead .tkick[style*="opacity: 1"]::after { transform: scaleX(1); }

/* 5. Cards follow the pointer: a slight 3D tilt plus a light under the cursor. */
.tspot { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(47,111,237,.12), transparent 65%); }
:root:not([data-theme="light"]) .tspot { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(95,227,213,.12), transparent 65%); }
.is-tilt > .tspot { opacity: 1; }
.is-tilt > :not(.tspot) { position: relative; z-index: 1; }
.tiltable { transform-style: preserve-3d; }
.tiltable.is-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px) !important; transition: transform .12s linear, box-shadow .4s ease !important; box-shadow: var(--s-shadow-h); }
.tiltable.is-settling { transition: transform var(--spring-d) var(--spring-bounce), box-shadow .4s ease !important; }

/* 6. Icons draw their own lines when they arrive. */
.tdraw svg :is(path, circle, rect, line, polyline) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--spring); }
.tdraw.is-drawn svg :is(path, circle, rect, line, polyline) { stroke-dashoffset: 0; }
.tdraw .tprob__flag, .tdraw.twhy__ico::after { scale: 0; transition: scale .5s var(--spring-bounce) .7s; }
.tdraw.is-drawn .tprob__flag, .tdraw.is-drawn.twhy__ico::after { scale: 1; }

/* 7. Method: the line between the five steps draws across, then each step pops in. */
.tsteps.tline::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.6s var(--spring) .2s; }
html[dir="rtl"] .tsteps.tline::before { transform-origin: right center; }
.tsteps.tline.is-drawn::before { transform: scaleX(1); }
@media (max-width: 900px) { .tsteps.tline::before { transform: scaleY(0); transform-origin: center top; } .tsteps.tline.is-drawn::before { transform: scaleY(1); } }
.tsteps.tline .tstep__n { scale: .4; opacity: 0; transition: scale .7s var(--spring-bounce), opacity .3s ease; }
.tsteps.tline.is-drawn .tstep__n { scale: 1; opacity: 1; }
.tsteps.tline.is-drawn .tstep:nth-child(2) .tstep__n { transition-delay: .25s; }
.tsteps.tline.is-drawn .tstep:nth-child(3) .tstep__n { transition-delay: .5s; }
.tsteps.tline.is-drawn .tstep:nth-child(4) .tstep__n { transition-delay: .75s; }
.tsteps.tline.is-drawn .tstep:nth-child(5) .tstep__n { transition-delay: 1s; }

/* 8. Primary buttons: a light passes across on hover. */
.tbtn--p { position: relative; overflow: hidden; isolation: isolate; }
.tbtn--p::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
.tbtn--p:hover::after { transform: translateX(120%) skewX(-18deg); transition: transform .8s cubic-bezier(.4, 0, .2, 1); }

/* 9. Counting numbers keep their width steady while they run. */
.tcount { font-variant-numeric: tabular-nums; }

/* 10. Final CTA: the light follows the pointer across the panel. */
.tcta { isolation: isolate; }
.tcta::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; opacity: var(--cl, 0); transition: opacity .5s ease;
  background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 50%), rgba(47,111,237,.14), transparent 70%); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal][style*="opacity: 0"] { filter: none; scale: 1; }
  .thero > .twrap, #hero .tstripes { transform: none !important; translate: none !important; opacity: 1 !important; }
  .thero__h .tgrad { animation: none; background-size: 100% 100% !important; }
  .tiltable.is-tilt { transform: none !important; }
  .tdraw svg :is(path, circle, rect, line, polyline) { stroke-dashoffset: 0 !important; transition: none; }
  .tdraw .tprob__flag, .tdraw.twhy__ico::after, .tsteps.tline .tstep__n { scale: 1 !important; opacity: 1 !important; }
  .tsteps.tline::before { transform: none !important; }
  .tbtn--p::after, .thero::after, .tcta::after, .tprogress { display: none; }
}

/* =====================================================================
   Motion layer 3 — one distinct entrance per section (apple.js adds the classes).
   Pre-states use !important and the individual translate / rotate / scale properties,
   so the inherited reveal script (which writes inline opacity / transform) cannot
   override them. Each item's stagger comes from --i.
   ===================================================================== */
.tfx-i { transition: opacity .7s ease, translate 1.1s var(--spring), rotate 1.1s var(--spring), scale 1.1s var(--spring), filter .9s ease, clip-path 1.2s var(--spring) !important;
  transition-delay: calc(var(--i, 0) * 90ms) !important; }

/* Headings: words arrive one by one out of a blur. */
.tw { display: inline-block; white-space: pre; }
.tfx-words .tw { opacity: 0 !important; translate: 0 .45em; filter: blur(10px); transition: opacity .6s ease, translate .9s var(--spring), filter .7s ease; transition-delay: calc(var(--w) * 55ms + .1s); }
.tfx-words.is-in .tw { opacity: 1 !important; translate: 0 0; filter: blur(0); }
.tfx-words .ph-rise__in { transform: none !important; transition: none !important; }

/* Method: cards flip up into place, one after another. */
.tfx-flip .tsteps { perspective: 1100px; }
.tfx-flip .tstep.tfx-i { opacity: 0 !important; rotate: x 75deg; translate: 0 40px; transform-origin: 50% 100%; }
.tfx-flip.is-in .tstep.tfx-i { opacity: 1 !important; rotate: x 0deg; translate: 0 0; }

/* Problems: scattered and tilted, they fall into the grid as you scroll (scrubbed: --p 0→1). */
.tfx-chaos .tprob li { translate: calc(var(--sx) * (1 - var(--p, 0))) calc(var(--sy) * (1 - var(--p, 0))); rotate: calc(var(--sr) * (1 - var(--p, 0)));
  opacity: calc(.15 + var(--p, 0) * .85) !important; transition: none !important; will-change: translate, rotate; }
.tfx-chaos .tquote .tw { opacity: calc(.18 + (var(--q, 0) - var(--w) / var(--wn)) * 8) ; transition: opacity .2s linear; }

/* Services: each tile is uncovered from the bottom like a blind. */
.tfx-blind .tsvc.tfx-i { clip-path: inset(100% 0 0 0 round 30px); scale: .94; opacity: 0 !important; }
.tfx-blind.is-in .tsvc.tfx-i { clip-path: inset(0 0 0 0 round 30px); scale: 1; opacity: 1 !important; }

/* Work: filter chips pop, cards are dealt in from the side. */
.tfx-deal .tchip.tfx-i { scale: .3; opacity: 0 !important; transition-duration: .3s, .6s, .6s, .6s !important; transition-delay: calc(var(--i) * 45ms) !important; }
.tfx-deal.is-in .tchip.tfx-i { scale: 1; opacity: 1 !important; }
.tfx-deal .tpc.tfx-i { translate: calc(var(--dir, 1) * 140px) 30px; rotate: calc(var(--dir, 1) * 6deg); opacity: 0 !important; }
.tfx-deal.is-in .tpc.tfx-i { translate: 0 0; rotate: 0deg; opacity: 1 !important; }

/* Numbers: each figure drops in hard and bounces; a beam of light sweeps the strip. */
.tfx-drop .tstat.tfx-i { translate: 0 -70px; scale: 1.25; filter: blur(8px); opacity: 0 !important; transition-timing-function: ease, var(--spring-bounce), var(--spring-bounce), var(--spring-bounce), ease !important; }
.tfx-drop.is-in .tstat.tfx-i { translate: 0 0; scale: 1; filter: blur(0); opacity: 1 !important; }
.tfx-drop .tstats { position: relative; }
.tfx-drop .tstats::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(47,111,237,.14) 45%, rgba(23,195,178,.16) 55%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; opacity: 0; }
.tfx-drop.is-in .tstats::after { animation: tBeam 1.6s ease-in-out .7s both; }
@keyframes tBeam { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 1; background-position: -30% 0; } }

/* Why: the cards start stacked like a deck in the middle, then spread to their places. */
.tfx-fan .twhy li.tfx-i { translate: var(--dx, 0) var(--dy, 0); rotate: var(--fr, 0deg); scale: .9; opacity: 0 !important; transition-delay: calc(var(--i) * 70ms + .1s) !important; }
.tfx-fan.is-in .twhy li.tfx-i { translate: 0 0; rotate: 0deg; scale: 1; opacity: 1 !important; }

/* FAQ: questions unfold from the top, one after another. */
.tfx-unfold .tfaq { perspective: 1200px; }
.tfx-unfold .tfaq details.tfx-i { rotate: x -80deg; transform-origin: 50% 0; opacity: 0 !important; transition-delay: calc(var(--i) * 80ms) !important; }
.tfx-unfold.is-in .tfaq details.tfx-i { rotate: x 0deg; opacity: 1 !important; }

/* Contact: the panel grows out of a small pill; its content follows. */
.tfx-grow .tcta.tfx-i { clip-path: inset(42% 34% 42% 34% round 999px); opacity: 0 !important; transition-duration: .5s, 1.3s, 1.3s, 1.3s, .8s, 1.3s !important; }
.tfx-grow.is-in .tcta.tfx-i { clip-path: inset(0 0 0 0 round 36px); opacity: 1 !important; }
.tfx-grow .tcta > div:not(.tstripes) { opacity: 0; translate: 0 24px; transition: opacity .7s ease .75s, translate 1s var(--spring) .75s; }
.tfx-grow.is-in .tcta > div:not(.tstripes) { opacity: 1; translate: 0 0; }

/* Footer: columns rise in turn. */
.tfx-rise .tfoot__cols > div.tfx-i { translate: 0 40px; opacity: 0 !important; }
.tfx-rise.is-in .tfoot__cols > div.tfx-i { translate: 0 0; opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  .tfx-i, .tw { opacity: 1 !important; translate: none !important; rotate: none !important; scale: none !important; filter: none !important; clip-path: none !important; }
}

/* Less blur: content entrances keep their motion (rise, slide, flip, drop) but no longer
   come out of a blur — only a clean fade. */
[data-reveal][style*="opacity: 0"] { filter: none; }
.tfx-words .tw { filter: none; translate: 0 .35em; }
.tfx-drop .tstat.tfx-i { filter: none; }
/* "Next step" (v3): calm client cards with logos; "All work" in solid brand blue with an arrow
   that moves toward where it goes. */
.tnext { gap: 16px; margin-bottom: clamp(56px, 7vw, 96px); }
.tnext a.tnext__client { padding: 16px 18px; }
.tnext__client .tpc__logo:not(.tpc__logo--mark) { box-shadow: 0 0 0 1px rgba(20,40,90,.07); background: #fff; }
.tnext__client .tpc__logo--mark { background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); color: #fff; border: 0; font-size: 12.5px; padding: 4px; }
.tnext__client b { font-size: 16.5px; }
.tnext a.tnext__all { padding: 18px 22px; background: var(--brand-blue); box-shadow: 0 14px 30px -16px rgba(47,111,237,.95); }
.tnext a.tnext__all:hover { filter: brightness(1.07); }
.tnext__all i svg { transition: translate .45s var(--spring); }
.tnext__all:hover i svg { translate: -4px 0; }
html[dir="ltr"] .tnext__all:hover i svg { translate: 4px 0; }
.tnext__all .tspot { display: none; }
/* ================= Menu: stronger motion + sub-menus =================
   - the panel opens as a circle growing out of the lines button (clip-path), and closes back
     into it along the same path;
   - items slide in from the button's side in a quick cascade;
   - a highlight pill glides between items under the pointer (apple.js);
   - sub-menus unfold with their links cascading in. */
.tmenu { clip-path: circle(0% at var(--mox, calc(100% - 22px)) -22px); transform: none; filter: none;
  transition: clip-path .55s var(--spring), opacity .2s ease, visibility 0s linear .55s; }
html[dir="rtl"] .tmenu { --mox: 22px; }
.tmenu.is-open { clip-path: circle(150% at var(--mox, calc(100% - 22px)) -22px); transform: none; filter: none; transition: clip-path .7s var(--spring), opacity .15s ease, visibility 0s; }
.tmenu__list > li { opacity: 0; translate: 18px 0; transform: none; transition: opacity .25s ease, translate .6s var(--spring); }
html[dir="rtl"] .tmenu__list > li { translate: -18px 0; }
.tmenu.is-open .tmenu__list > li { opacity: 1; translate: 0 0; }
.tmenu.is-open .tmenu__list > li:nth-child(1) { transition-delay: .06s; }
.tmenu.is-open .tmenu__list > li:nth-child(2) { transition-delay: .1s; }
.tmenu.is-open .tmenu__list > li:nth-child(3) { transition-delay: .14s; }
.tmenu.is-open .tmenu__list > li:nth-child(4) { transition-delay: .18s; }
.tmenu.is-open .tmenu__list > li:nth-child(5) { transition-delay: .22s; }
.tmenu.is-open .tmenu__list > li:nth-child(6) { transition-delay: .26s; }
.tmenu.is-open .tmenu__list > li:nth-child(7) { transition-delay: .3s; }
.tmenu.is-open .tmenu__list > li:nth-child(n+8) { transition-delay: .34s; }
/* the gliding highlight */
.tmenu__list { position: relative; }
.tmenu__hl { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: 12px; pointer-events: none; z-index: 0; opacity: 0;
  background: rgba(47,111,237,.1); transition: translate .45s var(--spring), height .45s var(--spring), opacity .2s ease; }
:root:not([data-theme="light"]) .tmenu__hl { background: rgba(255,255,255,.09); }
.tmenu__hl.is-on { opacity: 1; }
.tmenu__list > li { position: relative; z-index: 1; }
.tmenu__list a:hover, .tmenu__list .tmenu__sub a.tmenu__sublink:hover { background: transparent; }
:root[data-theme="light"] .tmenu__list a:hover { background: transparent; }
.tmenu__list a[aria-current="page"] { background: transparent !important; color: var(--acc) !important; }
/* sub-menu */
.tmenu__tog { color: var(--s-text-2); border-radius: 50%; }
.tmenu__tog:hover { background: var(--s-card-2); color: var(--t22); }
.is-sub-open > .tmenu__row .tmenu__tog { background: var(--brand-blue); color: #fff; }
.tmenu__tog svg { transition: transform .5s var(--spring-bounce); }
.tmenu__sub { transition: grid-template-rows .5s var(--spring); }
.tmenu__sub li { opacity: 0; translate: 0 -6px; transition: opacity .2s ease, translate .45s var(--spring); }
.is-sub-open .tmenu__sub li { opacity: 1; translate: 0 0; transition-delay: calc(var(--j) * 35ms + .08s); }
.tmenu__list .tmenu__sub a.tmenu__sublink { color: var(--s-text-2); position: relative; }
.tmenu__list .tmenu__sub a.tmenu__sublink::after { content: ""; position: absolute; inset-inline-start: 24px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--s-line); transition: background-color .2s, scale .3s var(--spring-bounce); }
.tmenu__list .tmenu__sub a.tmenu__sublink:hover { color: var(--t22); }
.tmenu__list .tmenu__sub a.tmenu__sublink:hover::after { background: var(--brand-cyan); scale: 1.4; }
.tmenu { width: min(320px, calc(100vw - 28px)); }
@media (prefers-reduced-motion: reduce) {
  .tmenu, .tmenu.is-open { clip-path: none !important; transition: opacity .2s ease, visibility 0s linear .2s !important; }
  .tmenu__list > li, .tmenu__sub li { translate: none !important; transition: opacity .2s ease !important; }
  .tmenu__hl { transition: opacity .2s ease; }
}
/* Side sub-menu (v3): the panel widens with a spring; the column slides out from the list
   toward the inside of the screen, its links cascading in. Phones: it slides across the
   list from the same side and slides back on "back". */
.tmenu, .tmenu.is-open { transition-property: clip-path, opacity, visibility, width; }
.tmenu { transition-duration: .55s, .2s, 0s, .55s; transition-timing-function: var(--spring), ease, linear, var(--spring); }
.tmenu.is-open { transition-duration: .7s, .15s, 0s, .55s; }
.tmenu__list { position: static; }
.tmenu__list > li { position: static; }
.tmenu__list > li > a, .tmenu__row { position: relative; z-index: 1; }
.tmenu__hl { left: 0; right: auto; width: 0; transition: translate .45s var(--spring), width .45s var(--spring), height .45s var(--spring), opacity .2s ease; }
.tmenu__sub { background: var(--s-card-2); box-shadow: inset 0 0 0 1px var(--s-line); translate: 24px 0; transition: opacity .3s ease, translate .6s var(--spring), visibility 0s linear .6s; }
html[dir="rtl"] .tmenu__sub { translate: -24px 0; }
:root[data-theme="light"] .tmenu__sub { background: rgba(255,255,255,.75); }
.is-sub-open > .tmenu__sub { translate: 0 0; transition: opacity .3s ease .08s, translate .6s var(--spring) .08s, visibility 0s; }
.tmenu__subhead { color: var(--t22); border-bottom-color: var(--s-line); }
.tmenu__subhead b { font-weight: 700; }
.tmenu__list .tmenu__sub a.tmenu__sublink { border-radius: 10px; transition: background-color .2s ease, color .2s ease; }
.tmenu__list .tmenu__sub a.tmenu__sublink:hover { background: var(--s-card); color: var(--t22); }
:root[data-theme="light"] .tmenu__list .tmenu__sub a.tmenu__sublink:hover { background: rgba(47,111,237,.08); }
.tmenu__list .tmenu__sub a.tmenu__sublink::after { inset-inline-start: 13px; }
.is-sub-open > .tmenu__row .tmenu__tog svg { transition: none; }
.tmenu__tog svg { transition: translate .4s var(--spring); }
.tmenu__tog:hover svg { translate: -2px 0; }
html[dir="rtl"] .tmenu__tog:hover svg { translate: 2px 0; }
.tmenu__back { background: var(--s-card); }
@media (max-width: 640px) {
  .tmenu__sub { translate: 40px 0; background: var(--s-bg); }
  html[dir="rtl"] .tmenu__sub { translate: -40px 0; }
  :root[data-theme="light"] .tmenu__sub { background: #F5F7FC; }
}
@media (prefers-reduced-motion: reduce) { .tmenu__sub, html[dir="rtl"] .tmenu__sub { translate: none !important; } }
/* Once settled the items must carry no translate at all: any translate (even 0 0) makes an
   item the containing block of the absolutely positioned side sub-menu. */
.tmenu.is-open .tmenu__list > li { translate: none; }html[dir="rtl"] .is-sub-open > .tmenu__sub, html[dir="ltr"] .is-sub-open > .tmenu__sub { translate: 0 0; }

/* Instagram block (v3): tiles pop in one after another when the card arrives; hover lifts the
   tile and shows the Instagram glyph. */
.tig__head a { color: var(--brand-blue); }
:root:not([data-theme="light"]) .tig__head a, :root:not([data-theme="light"]) .tig__more { color: #7FA8FF; }
.tig__more { color: var(--brand-blue); }
.tig__post { border-radius: 14px; box-shadow: 0 8px 20px -14px rgba(10,20,60,.6); transition: transform .5s var(--spring), box-shadow .3s ease; }
.tig__post:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(10,20,60,.7); }
.tig__post:active { transform: scale(.97); transition-duration: .1s; }
.tig__post span { background: linear-gradient(160deg, rgba(47,111,237,.55), rgba(23,195,178,.45)); }
html.js-charts .tchart:not(.is-in) .tig__post { opacity: 0; scale: .85; }
html.js-charts .tchart .tig__post { transition: opacity .35s ease, scale .6s var(--spring-bounce), transform .5s var(--spring), box-shadow .3s ease; transition-delay: calc(var(--i) * 60ms + .15s), calc(var(--i) * 60ms + .15s), 0s, 0s; }
.tig-block .tig { padding: clamp(22px, 3vw, 30px); border-radius: var(--r-lg); background: var(--s-card); box-shadow: var(--s-shadow); }
@media (max-width: 480px) { .tig__grid { gap: 6px; } }
/* Live feed (v3): placeholders in the v3 surface tones; arriving posts pop in one by one. */
.tig__ph { background: linear-gradient(100deg, var(--s-card-2) 30%, rgba(47,111,237,.10) 50%, var(--s-card-2) 70%); background-size: 250% 100%; box-shadow: none; }
:root[data-theme="light"] .tig__ph { background: linear-gradient(100deg, #E8EDF8 30%, #F4F7FD 50%, #E8EDF8 70%); background-size: 250% 100%; }
.tig--live.is-loaded .tig__post { animation: tIgIn .6s var(--spring-bounce) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes tIgIn { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .tig--live.is-loaded .tig__post { animation: none; } }
/* Standalone Instagram block (pages without the ads chart): full width, one row of six on wide screens. */
.tig-block .tig { max-width: none; }
/* Own section: posts (4:5) and reels (9:16) as two groups — columns are set in site.css */
.tig-block .tig { gap: clamp(20px, 2.6vw, 30px); }
.tig-block .tig__head b { font-size: clamp(18px, 2vw, 22px); }
.tig__sub { font-family: var(--fh); font-size: clamp(16px, 1.6vw, 19px); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.tig__sub::after { content: ""; flex: 1; height: 1px; background: var(--s-line, rgba(127,140,180,.25)); }
.tig-block .tig__post { border-radius: 18px; }
.tig-block .tig__reel { width: 32px; height: 32px; top: 12px; inset-inline-end: 12px; }
.tig-block .tig__reel svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .tig-block .tig__post { border-radius: 14px; } }
@media (prefers-reduced-motion: no-preference) { html.js-charts .tig-block:not(.is-in) .tig__post { opacity: 0; scale: .9; } }
.tig-block .tig__post { transition: opacity .4s ease, scale .6s var(--spring-bounce), transform .5s var(--spring), box-shadow .3s ease; transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), 0s, 0s; }

/* service link pills with the service icon */
.tsvc-nav a { align-items: center; }
.tsvc-nav__ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 10%, transparent); transition: background-color .3s ease, color .3s ease, rotate .5s var(--spring-bounce); }
.tsvc-nav__ico svg { width: 20px; height: 20px; }
:root:not([data-theme="light"]) .tsvc-nav__ico { color: #7FA8FF; background: rgba(127,168,255,.12); }
.tsvc-nav a:hover .tsvc-nav__ico { color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); rotate: -8deg; }

/* ===================================================================================
   Motion layer 4 — the "alive" layer: hero aurora + word rise, moving band, magnetic
   buttons, tinted sections that open up, page-to-page transitions, footer wordmark.
   Everything is static under prefers-reduced-motion.
   =================================================================================== */

/* 1. Hero aurora: three soft brand-coloured lights drifting slowly behind the headline */
.thero { isolation: isolate; }
.taurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.taurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; opacity: .5; will-change: transform;
  background: radial-gradient(closest-side, var(--c), transparent 72%); }
.taurora i:nth-child(1) { --c: rgba(47,111,237,.55); top: -18vmax; inset-inline-start: -10vmax; animation: tAur1 18s ease-in-out infinite alternate; }
.taurora i:nth-child(2) { --c: rgba(23,195,178,.45); top: 10%; inset-inline-end: -16vmax; animation: tAur2 22s ease-in-out infinite alternate; }
.taurora i:nth-child(3) { --c: rgba(124,92,255,.30); bottom: -24vmax; inset-inline-start: 30%; animation: tAur3 26s ease-in-out infinite alternate; }
:root[data-theme="light"] .taurora i { opacity: .38; }
@keyframes tAur1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes tAur2 { to { transform: translate(-12vmax, 8vmax) scale(.9); } }
@keyframes tAur3 { to { transform: translate(-8vmax, -12vmax) scale(1.2); } }

/* 2. Hero headline: words rise out of a mask one after another (apple.js wraps them) */
.thero__h .tw { display: inline-block; overflow: clip; overflow-clip-margin: .35em; vertical-align: top; padding-block: .1em .25em; margin-block: -.1em -.25em; }
.thero__h .tw > span { display: inline-block; --wr: 4deg; animation: tWordUp .9s var(--spring) calc(var(--w) * 70ms + .2s) both; }
html[dir="rtl"] .thero__h .tw > span { --wr: -4deg; }
@keyframes tWordUp { from { translate: 0 110%; rotate: var(--wr); opacity: 0; } 40% { opacity: 1; } to { translate: 0 0; rotate: 0deg; opacity: 1; } }

/* 3. Moving band: services and method steps, opposite directions; scroll speed pushes it */
.tmarq { position: relative; padding: clamp(14px, 2.4vw, 26px) 0; overflow: hidden; direction: ltr; border-block: 1px solid var(--s-line); background: var(--s-card); }
:root[data-theme="light"] .tmarq { background: #fff; }
.tmarq__row { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tmarq__row + .tmarq__row { margin-top: clamp(6px, 1vw, 12px); }
.tmarq__track { display: flex; align-items: center; flex: none; gap: clamp(18px, 2.4vw, 34px); padding-inline-end: clamp(18px, 2.4vw, 34px); white-space: nowrap; will-change: transform;
  transform: translate3d(var(--mx, 0px), 0, 0) skewX(var(--msk, 0deg)); }
.tmarq__track span { font-family: var(--fh); font-weight: 800; font-size: clamp(26px, 4.4vw, 58px); line-height: 1.5; letter-spacing: -.01em; }
.tmarq__row--a span { color: var(--t22); }
.tmarq__row--b span { color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--brand-blue) 70%, transparent); }
:root:not([data-theme="light"]) .tmarq__row--b span { -webkit-text-stroke-color: rgba(127,168,255,.75); }
/* outlined Arabic shows the overlaps where letters join: a soft solid tint instead */
html[dir="rtl"] .tmarq__row--b span { -webkit-text-stroke: 0; color: color-mix(in srgb, var(--brand-blue) 38%, transparent); }
html[dir="rtl"]:not([data-theme="light"]) .tmarq__row--b span { color: rgba(127,168,255,.45); }
html[dir="rtl"][data-theme="light"] .tmarq__row--b span { color: color-mix(in srgb, var(--brand-blue) 38%, transparent); }
.tmarq__track i { flex: none; width: clamp(14px, 1.6vw, 22px); height: clamp(14px, 1.6vw, 22px); border-radius: 6px; rotate: 45deg; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); }
.tmarq__row--b i { background: none; box-shadow: inset 0 0 0 2px var(--brand-cyan); border-radius: 50%; rotate: 0deg; }

/* 4. Magnetic buttons (apple.js sets --mgx/--mgy) */
.tbtn.is-mag { translate: var(--mgx, 0px) var(--mgy, 0px); transition: translate .5s var(--spring-bounce), transform .2s ease, box-shadow .3s ease, background-color .3s ease; }
.tbtn.is-mag.is-pull { transition: translate .12s linear, transform .2s ease, box-shadow .3s ease, background-color .3s ease; }

/* 5. Tinted sections open up from a rounded card to full width as they arrive (--cv 0→1) */
.tsec--tint::before { clip-path: inset(0 calc((1 - var(--cv, 1)) * 6%) round calc((1 - var(--cv, 1)) * 56px)); }

/* 6. Page-to-page transitions (cross-document View Transitions; ignored where unsupported) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: tVtOut .32s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: tVtIn .55s var(--spring) both; }
@keyframes tVtOut { to { opacity: 0; transform: scale(.985); } }
@keyframes tVtIn { from { opacity: 0; transform: translateY(24px); } }

/* 7. Footer wordmark: a huge outline that fills with the brand gradient as you reach the end (--wf 0→1) */
.tword { position: relative; overflow: hidden; text-align: center; padding: clamp(10px, 2vw, 24px) 0 0; user-select: none; pointer-events: none; }
.tword span { display: inline-block; font-family: var(--fh); font-weight: 800; font-size: clamp(84px, 21vw, 300px); letter-spacing: -.02em; line-height: 1.3;
  color: transparent; --wbase: rgba(47,111,237,.10);
  background: linear-gradient(100deg, var(--brand-blue), var(--brand-cyan)) no-repeat, linear-gradient(var(--wbase), var(--wbase));
  background-size: calc(var(--wf, 1) * 100%) 100%, 100% 100%; background-position: var(--wpos, left) center, center;
  -webkit-background-clip: text; background-clip: text; translate: 0 calc((1 - var(--wf, 1)) * 18%); opacity: calc(.35 + var(--wf, 1) * .65); }
html[dir="rtl"] .tword span { --wpos: right; letter-spacing: 0; }
:root:not([data-theme="light"]) .tword span { --wbase: rgba(127,168,255,.10); }

@media (prefers-reduced-motion: reduce) {
  .taurora i { animation: none; }
  .thero__h .tw > span { animation: none; }
  .tmarq__track { transform: none; }
  .tbtn.is-mag { translate: none; }
  .tsec--tint::before { clip-path: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .tword span { background-size: 100% 100%, 100% 100%; translate: none; opacity: 1; }
}

/* 8. Hero marketing objects: chart, likes, megaphone, bars, target, video, hashtag, click, chat.
   Outer .tmk__i: placement + parallax (pointer --mx/--my from apple.js, scroll --hs) scaled by depth --d.
   Inner .tmk__f: pop-in (scale/opacity) + its own slow float (translate/rotate). */
.thero > .twrap { position: relative; z-index: 1; }
.tmk { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* the whole grid moves as one (pointer + scroll), so the alignment never breaks */
.tmk__in { position: absolute; inset: 0; translate: calc(var(--mx, 0) * 16px) calc(var(--my, 0) * 12px + var(--hs, 0) * -110px); transition: translate .9s var(--spring); }
.tmk__i { position: absolute; }
.tmk__f { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--brand-blue);
  background: color-mix(in srgb, var(--s-card) 88%, transparent); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--s-line), 0 18px 40px -22px rgba(20,40,110,.45);
  /* 1) scattered → sorted into its slot  2) calm bob, row by row  3) a "checked" pulse, column by column */
  animation: tmkSort 1.5s var(--spring) calc(.35s + var(--k) * 110ms) backwards,
             tmkBob 3.2s ease-in-out calc(2.4s + var(--r) * .4s) infinite alternate,
             tmkCheck 9s ease-in-out calc(3.2s + var(--c) * .15s) infinite; }
:root[data-theme="light"] .tmk__f { background: rgba(255,255,255,.82); }
:root:not([data-theme="light"]) .tmk__f { color: #7FA8FF; box-shadow: inset 0 0 0 1px rgba(127,168,255,.16), 0 18px 40px -20px rgba(0,0,0,.6); }
@keyframes tmkSort { from { translate: var(--sx) var(--sy); rotate: var(--sr); scale: .82; opacity: 0; } 25% { opacity: 1; } }
@keyframes tmkBob { from { translate: 0 0; } to { translate: 0 -8px; } }
@keyframes tmkCheck { 0%, 7%, 100% { scale: 1; } 3% { scale: 1.06; } }

/* dashed alignment guides (rows + columns): drawn in as the objects snap, then flash on each check */
.tmk__guides { position: absolute; inset: 0; }
.tmk__guides i { position: absolute; opacity: 0; --gc: rgba(47,111,237,.45); }
:root:not([data-theme="light"]) .tmk__guides i { --gc: rgba(127,168,255,.4); }
/* horizontal guides stay in the side columns, never across the headline */
.tmk__gh { left: 1.5%; right: 1.5%; height: 0; border-top: 1px dashed var(--gc); transform-origin: var(--go, left) center; animation: tmkGuideH 9s cubic-bezier(.6,0,.2,1) 1s infinite;
  -webkit-mask-image: linear-gradient(90deg, #000 0 23%, transparent 25% 75%, #000 77%); mask-image: linear-gradient(90deg, #000 0 23%, transparent 25% 75%, #000 77%); }
html[dir="rtl"] .tmk__gh { --go: right; }
.tmk__gv { top: 11%; bottom: 8%; width: 0; border-left: 1px dashed var(--gc); transform-origin: center top; animation: tmkGuideV 9s cubic-bezier(.6,0,.2,1) 1.1s infinite; }
@keyframes tmkGuideH { 0% { scale: 0 1; opacity: .9; } 10% { scale: 1 1; opacity: .9; } 22%, 100% { scale: 1 1; opacity: 0; } }
@keyframes tmkGuideV { 0% { scale: 1 0; opacity: .9; } 10% { scale: 1 1; opacity: .9; } 22%, 100% { scale: 1 1; opacity: 0; } }

/* growth chart: the line draws itself, the end point pulses */
.tmk--chart .tmk__f { padding: 14px 16px 10px; }
.tmk__axis line { stroke: var(--s-line); stroke-width: 1; }
.tmk__line { stroke-dasharray: 100; animation: tmkDraw 4.5s cubic-bezier(.6,0,.2,1) 1s infinite; }
.tmk__area { animation: tmkArea 4.5s ease 1s infinite; }
.tmk__dot { fill: #17C3B2; transform-box: fill-box; transform-origin: center; animation: tmkDot 4.5s ease 1s infinite; }
@keyframes tmkDraw { 0% { stroke-dashoffset: 100; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes tmkArea { 0%, 25% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tmkDot { 0%, 40% { scale: 0; } 50% { scale: 1.5; } 58%, 85% { scale: 1; } 100% { scale: 0; } }

/* engagement: heart beats, little hearts float up; two "text" lines */
.tmk--like .tmk__f { padding: 12px 18px 12px 14px; border-radius: 999px; }
.tmk__heart { position: relative; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #FF5A7A, #FF3D6E); }
.tmk__heart svg { animation: tmkBeat 1.6s ease-in-out infinite; }
.tmk__heart i { position: absolute; top: 4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #FF5A7A; opacity: 0; animation: tmkUp 2.4s ease-out infinite; }
.tmk__heart i:nth-of-type(2) { animation-delay: .8s; margin-left: -10px; }
.tmk__heart i:nth-of-type(3) { animation-delay: 1.6s; margin-left: 6px; }
.tmk__lines { display: flex; flex-direction: column; gap: 7px; }
.tmk__lines b { display: block; width: 74px; height: 8px; border-radius: 6px; background: var(--s-line); }
.tmk__lines b + b { width: 48px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); opacity: .55; }
@keyframes tmkBeat { 0%, 100% { scale: 1; } 15% { scale: 1.25; } 30% { scale: .95; } 45% { scale: 1.12; } }
@keyframes tmkUp { 0% { opacity: 0; translate: 0 0; } 20% { opacity: .9; } 100% { opacity: 0; translate: 0 -46px; } }

/* megaphone: sound waves pulse */
.tmk--mega .tmk__f { width: 70px; height: 70px; border-radius: 22px; }
.tmk__wave { animation: tmkWave 1.8s ease-in-out infinite; }
.tmk__wave--2 { animation-delay: .3s; }
@keyframes tmkWave { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* bar chart: bars rise and fall */
.tmk--bars .tmk__f { padding: 16px 18px; }
.tmk__bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.tmk__bars i { width: 13px; height: 100%; border-radius: 5px 5px 3px 3px; background: linear-gradient(180deg, var(--brand-cyan), var(--brand-blue)); transform-origin: bottom; animation: tmkBar 3.2s ease-in-out infinite; }
.tmk__bars i:nth-child(1) { --h: .35; animation-delay: 0s; }
.tmk__bars i:nth-child(2) { --h: .55; animation-delay: .15s; }
.tmk__bars i:nth-child(3) { --h: .45; animation-delay: .3s; }
.tmk__bars i:nth-child(4) { --h: .75; animation-delay: .45s; }
.tmk__bars i:nth-child(5) { --h: 1; animation-delay: .6s; }
@keyframes tmkBar { 0%, 100% { scale: 1 calc(var(--h) * .45); } 50% { scale: 1 var(--h); } }

/* target: the arrow flies in and hits the centre */
.tmk--target .tmk__f { padding: 10px; border-radius: 50%; }
.tmk__ring1 { fill: none; stroke: var(--brand-blue); stroke-width: 4; opacity: .35; }
.tmk__ring2 { fill: none; stroke: var(--brand-blue); stroke-width: 4; opacity: .65; }
.tmk__bull { fill: #FF5A7A; }
.tmk__arrow { stroke: var(--t22, #1B2A55); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; fill: none; animation: tmkShoot 3.6s cubic-bezier(.5,0,.2,1) infinite; }
@keyframes tmkShoot { 0% { translate: 26px -26px; opacity: 0; } 20% { opacity: 1; } 35%, 80% { translate: 0 0; opacity: 1; } 38% { translate: -2px 2px; } 100% { translate: 0 0; opacity: 0; } }

/* video: rings ripple out of the play button */
.tmk--play .tmk__f { padding: 0; background: none; box-shadow: none; }
.tmk__play { position: relative; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); box-shadow: 0 16px 34px -14px rgba(47,111,237,.9); }
.tmk__play svg { margin-inline-start: 3px; }
.tmk__play::before, .tmk__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--brand-blue); animation: tmkRing 2.4s ease-out infinite; }
.tmk__play::after { animation-delay: 1.2s; }
@keyframes tmkRing { from { scale: 1; opacity: .7; } to { scale: 1.9; opacity: 0; } }

/* hashtag */
.tmk--hash .tmk__f { width: 54px; height: 54px; border-radius: 16px; }
.tmk--hash span { font-family: var(--fh); font-weight: 800; font-size: 30px; line-height: 1; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ad click: cursor taps, a ripple spreads */
.tmk--click .tmk__f { position: relative; width: 52px; height: 52px; padding: 0; background: none; box-shadow: none; color: var(--t22, #1B2A55); }
:root:not([data-theme="light"]) .tmk--click .tmk__f { color: #fff; }
.tmk--click svg { position: relative; animation: tmkTap 2.2s ease-in-out infinite; }
.tmk__ripple { position: absolute; top: 10px; left: 10px; width: 16px; height: 16px; border-radius: 50%; background: rgba(23,195,178,.5); animation: tmkClick 2.2s ease-out infinite; }
@keyframes tmkTap { 0%, 100% { scale: 1; } 40% { scale: 1; } 48% { scale: .82; } 58% { scale: 1; } }
@keyframes tmkClick { 0%, 46% { scale: 0; opacity: 0; } 50% { opacity: 1; } 100% { scale: 3.4; opacity: 0; } }

/* comment: someone is typing */
.tmk--chat .tmk__f { padding: 14px 18px; border-radius: 20px 20px 20px 6px; }
html[dir="rtl"] .tmk--chat .tmk__f { border-radius: 20px 20px 6px 20px; }
.tmk__dots { display: flex; gap: 6px; }
.tmk__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-blue); animation: tmkDots 1.3s ease-in-out infinite; }
.tmk__dots i:nth-child(2) { animation-delay: .18s; }
.tmk__dots i:nth-child(3) { animation-delay: .36s; }
@keyframes tmkDots { 0%, 60%, 100% { translate: 0 0; opacity: .35; } 30% { translate: 0 -6px; opacity: 1; } }

/* smaller screens: fewer, smaller and quieter objects so the headline stays readable */
@media (max-width: 1180px) { .tmk--hash, .tmk--chat, .tmk--click, .tmk--mega, .tmk__guides i:not(.tmk__gh):nth-child(n+5):nth-child(-n+6) { display: none; } .tmk__i { scale: .85; } }
@media (max-width: 760px) { .tmk__guides { display: none; } }
/* phones: only the chart and the like, small and faint, in the top corners above the headline */
@media (max-width: 760px) {
  .tmk { opacity: .5; }
  .tmk__i { scale: .5; }
  .tmk--target, .tmk--bars, .tmk--play { display: none; }
  .tmk--chart { top: 64px !important; inset-inline-start: -14% !important; transform-origin: top left; }
  .tmk--like { top: 66px !important; inset-inline-end: -12% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tmk__in { translate: none; transition: none; }
  .tmk__guides { display: none; }
  .tmk__f, .tmk__f *, .tmk__f *::before, .tmk__f *::after { animation: none !important; }
  .tmk__line { stroke-dashoffset: 0; }
}

/* ---------- case study, new layout (.tcs2): story first, each number once ---------- */
.tcs2-head { display: flex; align-items: center; gap: 18px; margin: 6px 0 18px; }
.tcs2-head .tpc__logo { width: 120px; height: 84px; border-radius: 18px; padding: 8px 10px; }
.tcs2-name { margin: 0; font-family: var(--fh); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--t22); }
.tcs2-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tcs2-tag { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--s-text-2); background: var(--s-card); box-shadow: inset 0 0 0 1px var(--s-line); }
a.tcs2-tag--sec { color: var(--t81); background: var(--t89); box-shadow: inset 0 0 0 1px var(--t90); }
.tcs2-hl { margin: 0 0 30px; font-family: var(--fh); font-weight: 800; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; letter-spacing: -.01em; color: var(--t22); text-wrap: balance; }
.tcs2-story { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.tcs2-story > li { padding: 22px 22px 24px; border-radius: var(--r-md); position: relative; }
.tcs2-story h2 { margin: 12px 0 8px; font-size: 18px; font-weight: 700; color: var(--t22); }
.tcs2-story p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--s-text-2); }
.tcs2-step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; background: var(--brand-blue); }
.tcs2-story > li:last-child { background: linear-gradient(160deg, rgba(47,111,237,.16), rgba(23,195,178,.08)); box-shadow: inset 0 0 0 1px rgba(95,227,214,.22); }
:root[data-theme="light"] .tcs2-story > li:last-child { background: linear-gradient(160deg, #EAF1FF, #E9FAF7); box-shadow: inset 0 0 0 1px rgba(47,111,237,.14); }
.tcs2-story > li:last-child .tcs2-step { background: var(--brand-cyan, #17C3B2); }
.tcs2-dec { display: flex; align-items: stretch; gap: 14px; padding: 22px; border-radius: var(--r-md); }
.tcs2-dec > div { flex: 1; }
.tcs2-dec b { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .02em; color: var(--brand-blue); }
.tcs2-dec p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--t22); }
.tcs2-dec__arr { align-self: center; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--brand-blue); background: var(--t89); }
.tcs2-dec__arr svg { width: 16px; height: 16px; }
.tcs2-cmp { padding: 22px; border-radius: var(--r-md); display: grid; gap: 16px; }
.tcs2-cmp__row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr 48px; align-items: center; gap: 14px; }
.tcs2-cmp__k b { display: block; font-size: 15px; color: var(--t22); }
.tcs2-cmp__k span { font-size: 13px; color: var(--s-text-2); }
.tcs2-cmp__bar { height: 14px; border-radius: 999px; background: var(--t89); overflow: hidden; }
.tcs2-cmp__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan, #17C3B2)); transform-origin: inline-start; animation: tcs2Grow 1.1s var(--spring) .2s backwards; }
html[dir="rtl"] .tcs2-cmp__bar i { background: linear-gradient(270deg, var(--brand-blue), var(--brand-cyan, #17C3B2)); }
.tcs2-cmp__row em { font-style: normal; font-weight: 700; font-size: 15px; color: var(--t22); text-align: end; }
.tcs2-cmp__note { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--s-line); font-size: 15px; line-height: 1.7; color: var(--t22); }
@keyframes tcs2Grow { from { transform: scaleX(0); } }
.tcs2-quote { padding: 26px 28px; border-radius: var(--r-md); margin-inline: 0; }
.tcs2-quote blockquote { margin: 0 0 12px; font-size: 19px; line-height: 1.7; color: var(--t22); }
.tcs2-quote figcaption { font-size: 14px; color: var(--s-text-2); }
.tcs2-details summary { cursor: pointer; }
@media (max-width: 860px) {
  .tcs2-story { grid-template-columns: 1fr; }
  .tcs2-dec { flex-direction: column; }
  .tcs2-dec__arr { transform: rotate(90deg); }
  html[dir="rtl"] .tcs2-dec__arr { transform: rotate(-90deg); }
}
@media (max-width: 560px) {
  .tcs2-head .tpc__logo { width: 92px; height: 64px; }
  .tcs2-cmp__row { grid-template-columns: 1fr 44px; }
  .tcs2-cmp__k { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .tcs2-cmp__bar i { animation: none; } }
.tcs2-hi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tcs2-hi > div { padding: 24px 22px; border-radius: var(--r-md); display: flex; flex-direction: column; gap: 8px; }
.tcs2-hi b { font-family: var(--fh); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan, #17C3B2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tcs2-hi span { font-size: 15px; line-height: 1.6; color: var(--s-text-2); }
@media (max-width: 760px) { .tcs2-hi { grid-template-columns: 1fr; } }
/* time period + channels (brief §6) */
.tcs2-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0 0 22px; border-radius: var(--r-md); background: var(--s-card); box-shadow: inset 0 0 0 1px var(--s-line); }
.tcs2-facts > div { padding: 16px 20px; }
.tcs2-facts > div + div { border-inline-start: 1px solid var(--s-line); }
.tcs2-facts dt { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--brand-blue); margin-bottom: 4px; }
.tcs2-facts dd { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.6; color: var(--t22); }
.tcs2-facts small { font-size: 12.5px; font-weight: 500; color: var(--s-text-2); }
/* four steps (challenge, goal, what we did, result) read best as 2 × 2 */
.tcs2-story--n4 { grid-template-columns: repeat(2, 1fr); }
.tcs2-story--n2 { grid-template-columns: repeat(2, 1fr); }
.tcs2-story .tticks { margin: 0; padding: 0; }
.tcs2-story .tticks li { font-size: 15px; line-height: 1.7; color: var(--s-text-2); }
/* before / after */
.tcs2-ba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tcs2-ba > div { padding: 22px; border-radius: var(--r-md); display: flex; flex-direction: column; gap: 10px; }
.tcs2-ba__k { font-size: 14px; font-weight: 600; color: var(--s-text-2); }
.tcs2-ba__v { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tcs2-ba__v s { font-size: 20px; font-weight: 700; color: var(--s-text-2); text-decoration-thickness: 1.5px; opacity: .75; }
.tcs2-ba__v i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--brand-blue); background: var(--t89); }
.tcs2-ba__v i svg { width: 13px; height: 13px; }
.tcs2-ba__v b { font-family: var(--fh); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan, #17C3B2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tcs2-ba + .tsrc, .tcs2-ba ~ .tsrc { margin-top: 10px; }
.tcs2-charts { padding-top: 14px; }
@media (max-width: 760px) {
  .tcs2-facts, .tcs2-story--n4, .tcs2-story--n2, .tcs2-ba { grid-template-columns: 1fr; }
  .tcs2-facts > div + div { border-inline-start: 0; border-top: 1px solid var(--s-line); }
}

/* FX photos — realistic illustrative photos (home + service pages) */
/* FX "photos": realistic photos as section backgrounds, washed with the page colour so text stays readable. */
.tsec--photo { position: relative; isolation: isolate; overflow: hidden; }
.tsec--photo > :not(.tbgphoto) { position: relative; z-index: 1; }
.tbgphoto { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; pointer-events: none; }
.tbgphoto::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--s-bg) 0%, color-mix(in srgb, var(--s-bg) 84%, transparent) 22%, color-mix(in srgb, var(--s-bg) 80%, transparent) 50%, color-mix(in srgb, var(--s-bg) 84%, transparent) 78%, var(--s-bg) 100%); }
.tsec--tint.tsec--photo::before { z-index: 0; opacity: .35; }
:root[data-theme="light"] .tsec--tint.tsec--photo::before { opacity: .4; }
.tbgphoto--top { bottom: auto; height: clamp(560px, 82vh, 860px); }
.tbgphoto--top::after { background: linear-gradient(180deg, color-mix(in srgb, var(--s-bg) 78%, transparent) 0%, color-mix(in srgb, var(--s-bg) 82%, transparent) 55%, var(--s-bg) 100%); }
@media (max-width: 760px) { .tbgphoto::after { background: color-mix(in srgb, var(--s-bg) 88%, transparent); } .tbgphoto--top::after { background: linear-gradient(180deg, color-mix(in srgb, var(--s-bg) 86%, transparent) 0%, var(--s-bg) 100%); } }
/* Client cover as the case-page header background (shows more of the cover than the stock photos). */
.tbgphoto--cover { height: clamp(520px, 72vh, 760px); background-position: center top; }
.tbgphoto--cover::after { background: linear-gradient(180deg, color-mix(in srgb, var(--s-bg) 62%, transparent) 0%, color-mix(in srgb, var(--s-bg) 74%, transparent) 45%, var(--s-bg) 100%); }
@media (max-width: 760px) { .tbgphoto--cover { height: 520px; } .tbgphoto--cover::after { background: linear-gradient(180deg, color-mix(in srgb, var(--s-bg) 70%, transparent) 0%, var(--s-bg) 100%); } }
/* Client cover band on work cards */
.tpc__cover { flex: 0 0 auto; height: clamp(104px, 9vw, 132px); background-size: cover; background-position: center; border-bottom: 1px solid var(--s-line, rgba(0,0,0,.06)); }
/* Photos with a daytime twin (<name>-light.webp): the light theme shows the daytime photo. */
:root[data-theme="light"] .tbgphoto--duo { background-image: var(--bgl) !important; }
/* White theme: lighter wash so the photos read clearly (text sits on solid cards or dark headings). */
:root[data-theme="light"] .tbgphoto::after { background: linear-gradient(180deg, var(--s-bg) 0%, color-mix(in srgb, var(--s-bg) 52%, transparent) 16%, color-mix(in srgb, var(--s-bg) 42%, transparent) 50%, color-mix(in srgb, var(--s-bg) 52%, transparent) 84%, var(--s-bg) 100%); }
:root[data-theme="light"] .tbgphoto--top::after { background: linear-gradient(180deg, color-mix(in srgb, var(--s-bg) 40%, transparent) 0%, color-mix(in srgb, var(--s-bg) 52%, transparent) 55%, var(--s-bg) 100%); }
:root[data-theme="light"] .tbgphoto--cover::after { background: linear-gradient(180deg, color-mix(in srgb, var(--s-bg) 38%, transparent) 0%, color-mix(in srgb, var(--s-bg) 58%, transparent) 50%, var(--s-bg) 100%); }
:root[data-theme="light"] .tsec--tint.tsec--photo::before { opacity: .12; }
:root[data-theme="light"] .tbgphoto { filter: saturate(1.08) contrast(1.04); }
@media (max-width: 760px) {
  :root[data-theme="light"] .tbgphoto::after { background: color-mix(in srgb, var(--s-bg) 64%, transparent); }
  :root[data-theme="light"] .tbgphoto--top::after, :root[data-theme="light"] .tbgphoto--cover::after { background: linear-gradient(180deg, color-mix(in srgb, var(--s-bg) 55%, transparent) 0%, var(--s-bg) 100%); }
}
:root[data-theme="light"] .tsec--photo .thead :is(.tkick, .th2, .tph1, .tsub), :root[data-theme="light"] .tsec--photo :is(.tcs2-name, .tcs2-hl, .tcrumbs) { text-shadow: 0 0 18px var(--s-bg), 0 0 6px var(--s-bg), 0 0 2px var(--s-bg); }
:root[data-theme="light"] .tsec--photo .thead .tsub { color: var(--s-text-2, #4A5B8C); font-weight: 500; }
/* See-through boxes over photo backgrounds (services cards + numbers strip): the photo shows through, text stays legible. */
.tsec--photo .tsvc, .tsec--photo .tstats { background: rgba(14,24,56,.42) !important; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px -34px rgba(0,0,0,.6); }
.tsec--photo .tsvcs--bento .tsvc--lead { background: linear-gradient(165deg, rgba(47,111,237,.34), rgba(23,195,178,.14) 70%), rgba(14,24,56,.36) !important; }
.tsec--photo .tstat + .tstat, .tsec--photo .tstat { border-color: rgba(255,255,255,.12) !important; }
.tsec--photo .tsvc :is(h3, p, li), .tsec--photo .tstat :is(b, span, small) { text-shadow: 0 1px 10px rgba(6,12,32,.55); }
:root[data-theme="light"] .tsec--photo .tsvc, :root[data-theme="light"] .tsec--photo .tstats { background: rgba(255,255,255,.5) !important; border-color: rgba(255,255,255,.7); box-shadow: 0 24px 60px -34px rgba(20,40,90,.35); }
:root[data-theme="light"] .tsec--photo .tsvcs--bento .tsvc--lead { background: linear-gradient(165deg, rgba(230,238,255,.62), rgba(242,251,249,.42) 75%) !important; }
:root[data-theme="light"] .tsec--photo .tstat + .tstat, :root[data-theme="light"] .tsec--photo .tstat { border-color: rgba(20,40,90,.1) !important; }
:root[data-theme="light"] .tsec--photo .tsvc :is(h3, p, li), :root[data-theme="light"] .tsec--photo .tstat :is(b, span, small) { text-shadow: 0 0 12px rgba(255,255,255,.9), 0 0 3px rgba(255,255,255,.9); }
/* Dark theme: a lighter wash too, so the photo stays clear behind the see-through boxes. */
:root:not([data-theme="light"]) #services .tbgphoto::after, :root:not([data-theme="light"]) #numbers .tbgphoto::after { background: linear-gradient(180deg, var(--s-bg) 0%, color-mix(in srgb, var(--s-bg) 62%, transparent) 16%, color-mix(in srgb, var(--s-bg) 52%, transparent) 50%, color-mix(in srgb, var(--s-bg) 62%, transparent) 84%, var(--s-bg) 100%); }
/* Gradient numbers (background-clip:text) must not carry a text-shadow: it shows through the transparent glyphs. */
.tsec--photo .tstat b, :root[data-theme="light"] .tsec--photo .tstat b { text-shadow: none !important; }
:root[data-theme="light"] .tsec--photo .tstats { background: rgba(255,255,255,.58) !important; }
/* White theme: the see-through boxes use the dark-theme glass (navy, white text) so they read on bright photos. */
:root[data-theme="light"] .tsec--photo .tsvc, :root[data-theme="light"] .tsec--photo .tstats { background: rgba(11,20,48,.62) !important; border-color: rgba(255,255,255,.14); box-shadow: 0 24px 60px -30px rgba(11,20,48,.55); }
:root[data-theme="light"] .tsec--photo .tsvcs--bento .tsvc--lead { background: linear-gradient(165deg, rgba(47,111,237,.5), rgba(23,195,178,.2) 70%), rgba(11,20,48,.55) !important; }
:root[data-theme="light"] .tsec--photo .tstat + .tstat, :root[data-theme="light"] .tsec--photo .tstat { border-color: rgba(255,255,255,.14) !important; }
:root[data-theme="light"] .tsec--photo .tsvc :is(h3, h3 a) { color: #FFFFFF !important; }
:root[data-theme="light"] .tsec--photo .tsvc :is(p, li) { color: rgba(234,240,255,.84) !important; }
:root[data-theme="light"] .tsec--photo .tsvc .tsvc__links a { color: #8FD9FF !important; }
:root[data-theme="light"] .tsec--photo .tsvc .tsvc__links { border-color: rgba(255,255,255,.14) !important; }
:root[data-theme="light"] .tsec--photo .tsvc .tsvc__n { color: #5FE3D5 !important; }
:root[data-theme="light"] .tsec--photo .tstat span { color: #FFFFFF !important; }
:root[data-theme="light"] .tsec--photo .tstat small { color: rgba(234,240,255,.72) !important; }
:root[data-theme="light"] .tsec--photo .tsvc :is(h3, p, li), :root[data-theme="light"] .tsec--photo .tstat :is(span, small) { text-shadow: 0 1px 10px rgba(6,12,32,.55); }
:root[data-theme="light"] .tsec--photo .tstat b { background-image: linear-gradient(90deg, #8FD9FF, #5FE3D5) !important; }
/* White theme, first home photo (#tartip): stronger wash + glow so the steps read clearly. */
:root[data-theme="light"] #tartip .tbgphoto::after { background: linear-gradient(180deg, var(--s-bg) 0%, color-mix(in srgb, var(--s-bg) 74%, transparent) 16%, color-mix(in srgb, var(--s-bg) 70%, transparent) 50%, color-mix(in srgb, var(--s-bg) 74%, transparent) 84%, var(--s-bg) 100%); }
:root[data-theme="light"] #tartip .tstep :is(h3, p) { text-shadow: 0 0 14px var(--s-bg), 0 0 6px var(--s-bg), 0 0 2px var(--s-bg); }
:root[data-theme="light"] #tartip .tstep p { color: #33456F; font-weight: 500; }
:root[data-theme="light"] #tartip .tstep h3 { color: #14224A; }
