/* KILN: colours and fonts. Change these few lines to make it yours. */
:root {
  --bg: #FBFAF7; --paper: #FFFFFF; --ink: #14121A; --mute: #6B6874; --line: #E8E5EE;
  --violet: #6C4CF5; --lemon: #FFE45C; --coral: #FF7A59; --mint: #5EE6B5; --lilac: #E9E2FF;
  --display: "Syne", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --b-bg: var(--bg); --b-paper: var(--paper); --b-ink: var(--ink); --b-mute: var(--mute); --b-line: var(--line); --b-soft: var(--lilac);
  --b-accent: var(--violet); --b-accent-ink: #fff; --b-display: var(--display); --b-body: var(--body); --b-radius: 24px; --b-card: 22px; --b-ratio: 4 / 3;
}
html[lang="ar"] { --display: "Readex Pro", sans-serif; --body: "Readex Pro", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1300px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: .98; }
h1 em, h2 em { font-style: normal; position: relative; z-index: 0; white-space: nowrap; }
h1 em::before, h2 em::before { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .06em; height: .42em; border-radius: .2em; background: var(--lemon); transform: rotate(-1.5deg); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
.kick { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-weight: 600; font-size: 14px; }
.kick i { width: 12px; height: 12px; border-radius: 4px; background: var(--violet); transform: rotate(45deg); }
.lead { color: var(--mute); font-size: clamp(16px, 1.4vw, 19px); max-width: 32em; }
.sec { padding: clamp(70px, 9vw, 130px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.sec-head h2 { margin: 0; font-size: clamp(44px, 6.6vw, 104px); }
.btn { font-weight: 600; }

/* the blob that follows the cursor */
.blob { position: fixed; z-index: 0; top: 0; left: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--lemon), var(--coral) 45%, var(--violet) 75%); filter: blur(70px); opacity: .45; pointer-events: none; will-change: transform; }
main, .top, .foot { position: relative; z-index: 1; }

/* header */
.top { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); }
.top-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 28px/1 var(--display); text-decoration: none; letter-spacing: -.04em; }
.logo i { width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; background: var(--violet); box-shadow: 8px 6px 0 -2px var(--lemon); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 10px 14px; border-radius: 999px; font-weight: 500; text-decoration: none; transition: background .2s; }
.nav a:hover { background: var(--lilac); }
.top-r { display: flex; align-items: center; gap: 10px; }
.lang { height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 14px var(--body); cursor: pointer; }
.top-go { min-height: 44px; background: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

/* hero */
.hero { position: relative; padding: clamp(40px, 7vw, 100px) 0 40px; overflow: hidden; }
.hero-t { margin: 0; max-width: 11em; font-size: clamp(60px, 10.5vw, 176px); line-height: .9; }
.hero-t .w { display: inline-block; }
.hero-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-top: 36px; }
.hero-row .lead { margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn { min-height: 56px; padding: 0 26px; }
.shapes i { position: absolute; z-index: -1; display: block; }
.s1 { top: 12%; inset-inline-end: 6%; width: 120px; height: 120px; border-radius: 50%; background: var(--coral); }
.s2 { top: 44%; inset-inline-end: 18%; width: 80px; height: 80px; border-radius: 22px; background: var(--mint); transform: rotate(18deg); }
.s3 { top: 26%; inset-inline-end: 26%; width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 86px solid var(--lemon); }
.s4 { top: 6%; inset-inline-end: 34%; width: 50px; height: 50px; border-radius: 50%; border: 10px solid var(--violet); }
.clients { display: flex; align-items: center; gap: 30px; margin-top: 70px; padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden; }
.clients > span { position: relative; z-index: 1; flex: none; padding-inline: max(20px, (100vw - 1300px) / 2) 20px; background: var(--bg); box-shadow: 20px 0 20px var(--bg); color: var(--mute); font-size: 14px; }
.cl-track { display: flex; gap: 56px; width: max-content; font: 700 26px/1 var(--display); color: #B8B3C4; white-space: nowrap; animation: cl 30s linear infinite; }
html[lang="ar"] .cl-track { animation-direction: reverse; }
@keyframes cl { to { transform: translateX(-50%); } }

/* work: stacked cards */
.stack { display: grid; gap: 30px; }
.case { position: sticky; top: 100px; display: grid; grid-template-columns: 1.3fr 1fr; min-height: 520px; border-radius: 34px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -60px rgba(20, 18, 26, .6); transform-origin: 50% 0; text-decoration: none; }
.case:nth-child(4n+1) .case-b { background: var(--lilac); }
.case:nth-child(4n+2) .case-b { background: #FFF4C2; }
.case:nth-child(4n+3) .case-b { background: #FFE2D8; }
.case:nth-child(4n+4) .case-b { background: #D8F8EB; }
.case-img { overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.case:hover .case-img img { transform: scale(1.05); }
.case-b { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 4vw, 48px); }
.case-b small { font-weight: 600; color: var(--mute); }
.case-b h3 { margin: 0; font-size: clamp(32px, 3.8vw, 56px); }
.case-b p { margin: 0; color: var(--mute); font-size: 17px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 500; }
.case-res { margin-top: auto; font: 700 30px/1.1 var(--display); }
.case-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.case-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s; }
.case:hover .case-go svg { transform: translateX(6px); }
html[dir="rtl"] .case-go svg { transform: scaleX(-1); }

/* services */
.services { position: relative; }
.svc-list { border-top: 1px solid var(--ink); }
.svc { display: grid; grid-template-columns: 70px 1fr 1.1fr; gap: 20px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--ink); cursor: default; transition: padding .3s, color .3s; }
.svc b { font: 600 15px var(--display); color: var(--mute); }
.svc h3 { margin: 0; font-size: clamp(30px, 4.4vw, 64px); transition: transform .4s; }
.svc p { margin: 0; color: var(--mute); font-size: 17px; }
.svc:hover h3 { transform: translateX(16px); color: var(--violet); }
html[dir="rtl"] .svc:hover h3 { transform: translateX(-16px); }
.svc-peek { position: fixed; z-index: 50; top: 0; left: 0; width: 280px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.8); transition: opacity .25s, transform .25s; box-shadow: 0 30px 60px -20px rgba(20, 18, 26, .5); }
.svc-peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* process */
.pro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: p; }
.pro li { position: relative; padding: 30px 24px; border-radius: 26px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); counter-increment: p; min-height: 240px; display: flex; flex-direction: column; }
.pro li::before { content: "0" counter(p); font: 700 56px/1 var(--display); color: var(--violet); }
.pro li:nth-child(2)::before { color: var(--coral); }
.pro li:nth-child(3)::before { color: #E5B800; }
.pro li:nth-child(4)::before { color: #18B07A; }
.pro h3 { margin: auto 0 8px; font-size: 30px; }
.pro p { margin: 0; color: var(--mute); }

/* team */
.team-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.tg-people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.member { margin: 0; }
.member img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 26px; transition: border-radius .5s; }
.member:hover img { border-radius: 50% 50% 26px 26px; }
.member b { display: block; margin-top: 14px; font: 700 26px var(--display); }
.member span { color: var(--violet); font-weight: 600; }
.member p { margin: 4px 0 0; color: var(--mute); }
.join { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 34px; border-radius: 26px; border: 2px dashed #C9C2DA; }
.join b { font: 700 30px/1.05 var(--display); }
.join p { margin: 0; color: var(--mute); }
.join .btn { align-self: flex-start; }
.studio-img { margin-top: 30px; border-radius: 30px; overflow: hidden; aspect-ratio: 21 / 8; }
.studio-img img { width: 100%; height: 130%; object-fit: cover; }

/* cta */
.cta-sec { padding: 0 0 clamp(70px, 9vw, 130px); }
.cta-in { display: grid; justify-items: center; gap: 10px; padding: clamp(50px, 8vw, 110px) 20px; border-radius: 40px; background: var(--violet); color: #fff; text-align: center; }
.cta-in .kick i { background: var(--lemon); }
.cta-in h2 { margin: 0 0 26px; font-size: clamp(48px, 8vw, 130px); }
.cta-in h2 em::before { background: var(--coral); }
.btn-big { min-height: 70px; padding: 0 40px; font-size: 19px; background: var(--lemon); color: var(--ink); }

/* footer */
.foot { padding: 80px 0 0; background: var(--ink); color: #CFCBDA; }
.foot-mail { display: block; margin-bottom: 60px; font: 700 clamp(36px, 7.5vw, 120px)/1 var(--display); letter-spacing: -.04em; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.foot-mail:hover { color: var(--lemon); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.foot .logo { color: #fff; }
.foot h3 { margin: 0 0 14px; color: #fff; font-size: 18px; letter-spacing: 0; }
.foot-grid a:not(.logo) { display: block; margin-bottom: 8px; text-decoration: none; opacity: .85; }
.foot-grid a:hover { opacity: 1; color: var(--lemon); }
.foot .links a { display: inline; margin-inline-end: 12px; }
.foot .links.col { flex-direction: column; gap: 6px; }
.hours.sm li { padding: 6px 0; font-size: 13.5px; border-color: #2E2B38; }
.foot-end { margin-top: 50px; padding: 22px 0; border-top: 1px solid #2E2B38; font-size: 14px; opacity: .7; }

/* other pages */
.it-main { border-radius: 30px; }
body:not([data-page="home"]) .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
body:not([data-page="home"]) .case { position: relative; top: 0; grid-template-columns: 1fr; min-height: 0; }
body:not([data-page="home"]) .case-img { aspect-ratio: 4 / 3; }

@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; padding: 14px 20px 22px; background: var(--paper); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .3); }
  .menu-open .nav { display: flex; }
  .nav a { padding: 14px; font-size: 18px; }
  .menu-btn { display: grid; place-items: center; }
  .top-r { margin-inline-start: auto; }
  .pro { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; position: relative; top: 0; }
  .case-img { aspect-ratio: 4 / 3; }
  .svc { grid-template-columns: 50px 1fr; }
  .svc p { grid-column: 2; }
  .team-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .shapes { display: none; }
  .svc-peek { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top-in { height: 66px; gap: 10px; }
  .nav { top: 66px; }
  .top-go { display: none; }
  .lang { padding: 0 10px; }
  .hero-t { font-size: 54px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .pro, .tg-people { grid-template-columns: 1fr; }
  .studio-img { aspect-ratio: 4 / 3; }
  .foot-grid { grid-template-columns: 1fr; }
  .blob { width: 280px; height: 280px; margin: -140px 0 0 -140px; }
}
@media (prefers-reduced-motion: reduce) { .cl-track { animation: none; } }
