/* Rovira — business homepage (studio). Tokens from the Rovira design system. */
:root {
  --brand: #0B3D4A;
  --brand-strong: #082C36;
  --brand-deep: #061F26;
  --brand-soft: #D3E4E7;
  --accent: #E8A33D;
  --accent-text: #B5761C;
  --ink-on-accent: #0E2229;
  --cream: #F4EEE3;
  --surface: #FAF7F1;
  --card: #FFFFFF;
  --border: #E2DACB;
  --ink: #0E2229;
  --muted: #4A5F66;
  --muted-on-dark: #A9BCC1;
  --soft-on-dark: #C9D8DB;
  --success: #2E7D5B;
  --success-on-dark: #5CC195;
  --danger: #B3412E;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 28px;
  --f-ar: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --f-disp: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
  --f-lat: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--f-ar);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
.disp { font-family: var(--f-disp); }
.lat { font-family: var(--f-lat); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatY2 { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes draw { from { stroke-dashoffset: var(--len, 800); } to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes rotate3 { 0%,26% { transform: translateY(0); } 33%,59% { transform: translateY(-1.4em); } 66%,92% { transform: translateY(-2.8em); } 100% { transform: translateY(-4.2em); } }
@keyframes shine { 0% { left: -60%; } 55%,100% { left: 130%; } }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(92,193,149,.7); } 70% { box-shadow: 0 0 0 12px rgba(92,193,149,0); } 100% { box-shadow: 0 0 0 0 rgba(92,193,149,0); } }
@keyframes pulseWa { 0% { box-shadow: 0 0 0 0 rgba(46,125,91,.6); } 70% { box-shadow: 0 0 0 20px rgba(46,125,91,0); } 100% { box-shadow: 0 0 0 0 rgba(46,125,91,0); } }
@keyframes glow { 0%,100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.15); opacity: .55; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes letter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }

/* ---------- page loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--brand-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
}
.loader.is-done { animation: loaderOut .6s var(--ease) forwards; }
.rv-skip-loader .loader { display: none; }
.loader__glow { position: absolute; width: 420px; height: 420px; border-radius: 999px; background: var(--accent); filter: blur(150px); opacity: .25; animation: glow 8s ease-in-out infinite; }
.loader svg { width: 140px; height: 140px; position: relative; }
.loader__name { font-family: var(--f-lat); font-size: 34px; font-weight: 800; color: var(--cream); letter-spacing: -.02em; position: relative; }
.loader__name span { display: inline-block; animation: letter .5s var(--ease) both; }
.loader__bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(244,238,227,.12); overflow: hidden; position: relative; }
.loader__bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transform-origin: right; animation: grow 2s .2s cubic-bezier(.6,0,.2,1) both; }
.ld-draw { stroke-dasharray: var(--len, 800); animation: draw 1.3s .15s cubic-bezier(.6,0,.2,1) both; }
.ld-draw-late { stroke-dasharray: var(--len, 800); animation: draw .8s 1.3s cubic-bezier(.6,0,.2,1) both; }

/* Hero animations wait for the loader; .is-ready is set on <html> by studio.js. */
.intro { opacity: 0; }
.is-ready .intro { animation: fadeUp 1s var(--ease) both; }
.is-ready .d1 { animation-delay: .1s; } .is-ready .d2 { animation-delay: .25s; } .is-ready .d3 { animation-delay: .45s; }
.is-ready .d4 { animation-delay: .65s; } .is-ready .d5 { animation-delay: .85s; }
.pop { opacity: 0; }
.is-ready .pop { animation: popIn .7s var(--ease) both; }
.draw, .draw-late { stroke-dasharray: var(--len, 800); stroke-dashoffset: var(--len, 800); }
.is-ready .draw { animation: draw 2.2s .3s cubic-bezier(.6,0,.2,1) both; }
.is-ready .draw-late { animation: draw 1.4s 1.9s cubic-bezier(.6,0,.2,1) both; }

/* Scroll reveal (IntersectionObserver adds .is-in) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.grow-line { transform: scaleX(0); transform-origin: right; transition: transform 1.4s cubic-bezier(.6,0,.2,1); }
.grow-line.is-in { transform: scaleX(1); }

.float { animation: floatY 6s ease-in-out infinite; }
.float2 { animation: floatY2 7s ease-in-out infinite; }
.float3 { animation: floatY 5s 1s ease-in-out infinite; }
.spin { transform-origin: center; transform-box: fill-box; animation: spin 18s linear infinite; }
.spin-rev { transform-origin: center; transform-box: fill-box; animation: spinRev 30s linear infinite; }
.orbit { transform-origin: 240px 240px; animation: spin 9s linear infinite; }
.orbit--slow { animation-duration: 14s; animation-direction: reverse; }
.glow { animation: glow 8s ease-in-out infinite; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--ink-on-accent); text-decoration: none; font-weight: 700;
  font-family: inherit; font-size: 18px; padding: 18px 32px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-20deg); animation: shine 3.4s 2s ease-in-out infinite;
}
.btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(232,163,61,.45); color: var(--ink-on-accent); }
.btn--sm { font-size: 15px; padding: 12px 22px; }
.btn--dark { background: var(--brand); color: var(--cream); }
.btn--dark:hover { color: var(--cream); box-shadow: 0 18px 40px rgba(11,61,74,.35); }
.ghost {
  display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none;
  font-weight: 600; font-size: 18px; padding: 18px 28px; border-radius: 999px;
  border: 1px solid rgba(244,238,227,.3); transition: background .3s, border-color .3s;
}
.ghost:hover { background: rgba(244,238,227,.08); border-color: rgba(244,238,227,.7); color: var(--cream); }

/* ---------- header ---------- */
.hdr { position: relative; z-index: 20; }
.hdr__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 22px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.logo img { width: 42px; height: 42px; }
.logo span { font-family: var(--f-lat); font-weight: 800; font-size: 25px; letter-spacing: -.02em; }
.nav {
  display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; justify-content: center; font-size: 15px;
  background: rgba(244,238,227,.06); border: 1px solid rgba(244,238,227,.1); border-radius: 999px;
  padding: 6px; max-width: 600px; margin: 0 auto;
}
.nav a { color: var(--cream); text-decoration: none; padding: 10px 18px; border-radius: 999px; transition: background .3s; }
.nav a:hover { background: rgba(244,238,227,.08); }
.hdr__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(244,238,227,.3);
  background: transparent; align-items: center; justify-content: center; cursor: pointer;
}
.burger svg { stroke: var(--cream); }

/* ---------- hero ---------- */
.hero { background: var(--brand-deep); color: var(--cream); position: relative; overflow: hidden; }
.hero__glow { position: absolute; border-radius: 999px; pointer-events: none; }
.hero__glow--a { width: 620px; height: 620px; background: var(--accent); filter: blur(160px); left: -180px; top: 120px; }
.hero__glow--b { width: 520px; height: 520px; background: #1E7A8C; filter: blur(150px); right: -160px; top: -160px; animation-delay: -4s; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 56px 72px; position: relative; z-index: 2; }
.hero__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.badge-live {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(244,238,227,.07); border: 1px solid rgba(244,238,227,.14);
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
}
.badge-live i { width: 9px; height: 9px; border-radius: 999px; background: var(--success-on-dark); animation: pulseDot 2s infinite; }
.hero h1 { margin: 0; font-family: var(--f-disp); font-size: 68px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.rotator { display: inline-block; height: 1.4em; line-height: 1.4em; overflow: hidden; vertical-align: bottom; color: var(--accent); }
.rotator__in { display: flex; flex-direction: column; animation: rotate3 7.5s cubic-bezier(.7,0,.2,1) infinite; }
.rotator__in span { height: 1.4em; line-height: 1.4em; white-space: nowrap; }
.hero__lead { margin: 0; font-size: 19px; line-height: 1.9; color: var(--muted-on-dark); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.construct { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; align-items: center; position: relative; height: 520px; }
.construct svg.construct__svg { width: 480px; height: 480px; max-width: 100%; }
.chip {
  display: inline-block; font-family: var(--f-lat); font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
}
.chip--cream { background: var(--cream); color: var(--brand); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.chip--amber { background: var(--accent); color: var(--ink-on-accent); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.chip--teal { background: #1E7A8C; color: var(--cream); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.chip--glass { background: rgba(244,238,227,.1); border: 1px solid rgba(244,238,227,.25); color: var(--cream); }
.chip--amber-glass { background: rgba(232,163,61,.16); border: 1px solid rgba(232,163,61,.45); color: #F0B65C; }
.slot { position: absolute; }
.code-tile {
  display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 16px;
  background: var(--accent); color: var(--ink-on-accent); font-family: var(--f-lat); font-weight: 800; font-size: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--cream); color: var(--ink);
  padding: 10px 14px 10px 16px; border-radius: 16px; box-shadow: 0 16px 36px rgba(0,0,0,.35);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.toast i { width: 28px; height: 28px; border-radius: 999px; background: var(--success); display: flex; align-items: center; justify-content: center; }
.stat-tile { background: rgba(6,31,38,.85); border: 1px solid rgba(232,163,61,.4); padding: 10px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-tile b { font-family: var(--f-lat); font-size: 20px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-tile span { font-size: 12px; color: var(--soft-on-dark); }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px;
  background: rgba(244,238,227,.12); border: 1px solid rgba(244,238,227,.12); border-radius: 24px; overflow: hidden;
  position: relative; z-index: 2; margin-bottom: 64px;
}
.stats > div { background: var(--brand-deep); padding: 28px; }
.stats b { display: block; font-family: var(--f-lat); font-size: 46px; font-weight: 800; color: var(--cream); line-height: 1; }
.stats b.is-accent { color: var(--accent); }
.stats span { display: block; font-size: 15px; color: var(--muted-on-dark); margin-top: 10px; }

.marquee { overflow: hidden; padding: 8px 0 40px; position: relative; z-index: 2; }
.marquee__track {
  display: flex; width: max-content; gap: 48px; animation: marquee 34s linear infinite;
  font-family: var(--f-disp); font-size: 110px; font-weight: 800; white-space: nowrap; line-height: 1.15;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244,238,227,.35);
}
.marquee__track .lat { font-family: var(--f-lat); }
.marquee__track .star { color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- sections ---------- */
.sec { padding-block: 112px; }
.sec--tight-top { padding-top: 0; }
.eyebrow { font-family: var(--f-lat); color: var(--accent-text); font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.eyebrow--on-dark { color: var(--accent); }
.h2 { margin: 0; font-family: var(--f-disp); font-size: 48px; line-height: 1.35; font-weight: 800; }
.h2 em { font-style: normal; color: var(--brand); }
.h2--on-dark em { color: var(--accent); }
.lead { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.9; }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.sec__head > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.sec__head .lead { max-width: 420px; }
.hl { position: relative; display: inline-block; }
.hl .grow-line { position: absolute; left: 0; right: 0; bottom: 2px; height: 10px; border-radius: 8px; background: var(--accent); opacity: .55; z-index: -1; }

/* services bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.span2c { grid-column: span 2; }
.bento--few { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.bento--few .tile__media { height: 300px; }
.span2r { grid-row: span 2; }
.svc {
  border-radius: var(--r-xl); padding: 34px 32px; display: flex; flex-direction: column; gap: 18px; min-height: 220px;
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.svc:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(6,31,38,.22); }
.svc__num { font-family: var(--f-lat); font-size: 52px; font-weight: 800; line-height: 1; transition: transform .45s; }
.svc:hover .svc__num { transform: translateX(-10px) scale(1.08); }
.svc h3 { margin: 0; font-family: var(--f-disp); font-size: 24px; font-weight: 700; line-height: 1.4; }
.svc p { margin: 0; font-size: 16px; line-height: 1.8; }
.svc--hero { background: var(--brand); color: var(--cream); padding: 40px 36px; justify-content: space-between; gap: 40px; min-height: 460px; }
.svc--hero .svc__num { font-size: 88px; color: var(--accent); }
.svc--hero h3 { font-size: 32px; }
.svc--hero p { color: var(--soft-on-dark); font-size: 17px; line-height: 1.9; }
.svc--hero .svc__link { color: var(--accent); font-weight: 700; font-size: 16px; margin-top: 8px; }
.svc--hero .svc__deco { position: absolute; left: -60px; bottom: -60px; width: 260px; height: 260px; opacity: .25; }
.svc--amber { background: var(--accent); color: var(--ink-on-accent); }
.svc--amber p { color: #2A2416; }
.svc--light { background: var(--card); border: 1px solid var(--border); }
.svc--light .svc__num { color: var(--brand); }
.svc--light p { color: var(--muted); }
.svc--wide { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; min-height: 200px; }
.svc--wide > div:first-child { display: flex; flex-direction: column; gap: 14px; flex: 1 1 320px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 280px; }
.tag { background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; }

/* demo chat */
.demo { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.demo__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.feat { display: flex; flex-direction: column; gap: 14px; }
.feat div { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.feat i { flex: none; width: 34px; height: 34px; border-radius: 12px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.chat {
  flex: 1 1 420px; min-width: 0; max-width: 480px; margin: 0 auto; background: #E9E2D6; border-radius: 32px;
  overflow: hidden; box-shadow: 0 40px 80px rgba(6,31,38,.18); border: 1px solid var(--border);
}
.chat__top { background: var(--brand); color: var(--cream); padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.chat__avatar { width: 42px; height: 42px; border-radius: 999px; background: var(--accent); color: var(--ink-on-accent); display: flex; align-items: center; justify-content: center; font-family: var(--f-disp); font-weight: 800; }
.chat__who { flex: 1; }
.chat__who b { display: block; font-size: 16px; }
.chat__who span { font-size: 13px; color: var(--success-on-dark); }
.chat__time { font-family: var(--f-lat); font-size: 13px; color: var(--muted-on-dark); }
.chat__body { padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.7; }
.msg { max-width: 80%; padding: 10px 14px; opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.chat.is-in .msg { opacity: 1; transform: none; }
.msg--in { align-self: flex-start; background: var(--card); border-radius: 16px 16px 16px 4px; }
.msg--out { align-self: flex-end; background: var(--brand-soft); border-radius: 16px 16px 4px 16px; }
.msg--sys { align-self: center; background: var(--brand); color: var(--cream); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; max-width: none; }
.msg--typing { align-self: flex-start; background: var(--card); padding: 12px 16px; border-radius: 16px 16px 16px 4px; }
.msg--typing span { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: var(--muted); margin: 0 2px; animation: typing 1.2s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; } .msg--typing span:nth-child(3) { animation-delay: .3s; }

/* work */
.work { background: var(--brand-deep); color: var(--cream); position: relative; overflow: hidden; }
.work__glow { position: absolute; width: 500px; height: 500px; border-radius: 999px; background: var(--accent); filter: blur(170px); right: -200px; bottom: 0; opacity: .2; }
.work .wrap { position: relative; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-xl); display: flex; flex-direction: column; text-decoration: none;
  background: var(--brand); color: var(--cream); border: 1px solid rgba(244,238,227,.1);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.tile:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.tile__media { position: relative; height: 340px; overflow: hidden; background: #0A2E38; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.06); }
.tile__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 72px; }
.tile__info { flex: 1; padding: 24px 28px 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tile__info > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tile__tags span { background: rgba(244,238,227,.12); color: var(--cream); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.tile h3 { margin: 0; font-family: var(--f-disp); font-size: 30px; font-weight: 800; }
.tile p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--soft-on-dark); }
.tile__go { flex: none; width: 52px; height: 52px; border-radius: 999px; background: var(--cream); display: flex; align-items: center; justify-content: center; transition: transform .45s var(--ease), background .3s; }
.tile:hover .tile__go { transform: rotate(-45deg); background: var(--accent); }
.tile--tall .tile__media { height: auto; flex: 1; min-height: 340px; }
.tile--tall .tile__info { flex: none; }

/* idea */
.idea {
  background: var(--card); border: 1px solid var(--border); border-radius: 32px; padding: 56px 48px;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center; position: relative; overflow: hidden;
}
.idea__deco { position: absolute; left: -70px; bottom: -70px; width: 240px; height: 240px; opacity: .18; }
.idea__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: relative; }
.idea__copy .h2 { font-size: 44px; }
.idea__steps { flex: 1 1 380px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.idea__steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--surface); transition: transform .4s var(--ease), background .4s; }
.idea__steps li:hover { transform: translateX(-8px); background: rgba(232,163,61,.12); }
.num-tile { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--f-lat); font-weight: 800; }
.num-tile--amber { background: var(--accent); color: var(--ink-on-accent); }
.idea__steps h3 { margin: 0 0 4px; font-family: var(--f-disp); font-size: 19px; font-weight: 700; }
.idea__steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.idea__foot { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); text-decoration: none; color: var(--ink); position: relative; font-size: 16px; }
.idea__foot b { font-family: var(--f-lat); font-weight: 800; color: var(--brand); }

/* process */
.process__head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; margin-bottom: 64px; }
.process { position: relative; }
.process__line { position: absolute; top: 34px; right: 6%; left: 6%; height: 2px; background: var(--border); }
.process__line .grow-line { height: 100%; background: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.steps .num-tile { width: 68px; height: 68px; border-radius: 22px; font-size: 22px; box-shadow: 0 0 0 8px var(--surface); }
.steps h3 { margin: 0; font-family: var(--f-disp); font-size: 21px; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }

/* contact */
.contact { background: var(--brand); color: var(--cream); position: relative; overflow: hidden; }
.contact__deco { position: absolute; left: -120px; top: -120px; width: 480px; height: 480px; opacity: .14; }
.contact__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; position: relative; }
.contact__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__copy .h2 { font-size: 64px; line-height: 1.3; }
.contact__copy .h2 em { color: var(--accent); }
.contact__copy p { margin: 0; color: var(--soft-on-dark); font-size: 19px; line-height: 1.9; max-width: 520px; }
.contact__follow { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.contact__follow > span { font-size: 15px; color: var(--soft-on-dark); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.soc {
  width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: rgba(244,238,227,.08); border: 1px solid rgba(244,238,227,.16);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.soc svg { stroke: var(--cream); transition: stroke .3s; }
.soc:hover { transform: translateY(-5px) rotate(-6deg); background: var(--accent); border-color: var(--accent); }
.soc:hover svg { stroke: var(--ink-on-accent); }
.form {
  flex: 1 1 480px; min-width: 0; background: var(--surface); color: var(--ink); border-radius: 32px; padding: 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; box-shadow: 0 40px 80px rgba(0,0,0,.3);
}
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--card); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form textarea { resize: vertical; }
.form .full { grid-column: 1 / -1; }
.form .btn { justify-content: center; }
.form input[type=tel] { direction: ltr; text-align: right; }
.alert { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--r-md); font-weight: 600; font-size: 15px; }
.alert--ok { background: #DDF1E6; color: #1F5C41; }
.alert--err { background: #F8DDD7; color: #8A2F20; }

/* footer */
.foot { background: var(--brand-deep); color: var(--muted-on-dark); overflow: hidden; }
.foot__in { display: flex; flex-direction: column; gap: 48px; padding-top: 72px; }
.foot__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot__brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.foot__brand p { margin: 0; font-size: 15px; line-height: 1.9; }
.foot__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot__col strong { color: var(--cream); font-size: 16px; }
.foot__col a { color: var(--muted-on-dark); text-decoration: none; }
.foot__col a:hover { color: var(--cream); }
.foot__bar { border-top: 1px solid rgba(244,238,227,.1); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.foot__giant {
  font-family: var(--f-lat); font-size: 22vw; font-weight: 800; line-height: .8; text-align: center; letter-spacing: -.04em;
  margin-bottom: -3vw; color: transparent; -webkit-text-stroke: 1.5px rgba(244,238,227,.35);
}

/* floating whatsapp */
.wa {
  position: fixed; left: 24px; bottom: 24px; width: 62px; height: 62px; border-radius: 999px; background: var(--success);
  display: flex; align-items: center; justify-content: center; z-index: 50; animation: pulseWa 2.2s infinite; transition: transform .25s;
}
.wa:hover { transform: scale(1.1); }

/* ---------- inner pages ---------- */
.page-hero { background: var(--brand-deep); color: var(--cream); position: relative; overflow: hidden; }
.page-hero .hero__glow--a { width: 520px; height: 520px; top: -120px; left: -200px; opacity: .3; }
.page-hero__in { position: relative; z-index: 2; padding-block: 40px 88px; display: flex; flex-direction: column; gap: 22px; max-width: 900px; margin-inline: auto; }
.page-hero__in.wrap { max-width: 1240px; margin-inline: auto; }
.page-hero__title { margin: 0; font-family: var(--f-disp); font-size: 60px; line-height: 1.3; font-weight: 800; }
.page-hero__title em { font-style: normal; color: var(--accent); }
.page-hero__lead { margin: 0; font-size: 19px; line-height: 1.9; color: var(--muted-on-dark); max-width: 640px; }
.page-hero__sub { margin: 0; font-size: 20px; color: var(--soft-on-dark); }
.page-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.page-hero__tags > span { background: rgba(244,238,227,.1); border: 1px solid rgba(244,238,227,.16); font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; }
.status-pill i { width: 8px; height: 8px; border-radius: 999px; background: var(--success-on-dark); animation: pulseDot 2s infinite; }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--soft-on-dark); text-decoration: none; font-size: 15px; font-weight: 600; transition: color .3s; }
.back-link:hover { color: var(--accent); }
.back-ico { transform: scaleX(-1); }
[dir="ltr"] .back-ico { transform: none; }

.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.works-grid .tile__media { height: 260px; }

.cta-band { background: var(--brand); color: var(--cream); padding-block: 72px; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

.gallery-sec { background: linear-gradient(var(--brand-deep) 0 42%, var(--surface) 42% 100%); padding-bottom: 24px; perspective: 1600px; }
/* ---------- project showcase (details gallery) ---------- */
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1%, -1%); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
.showcase {
  position: relative; border-radius: 28px; background: #082C36; border: 1px solid rgba(244,238,227,.1);
  box-shadow: 0 50px 100px rgba(6,31,38,.35), 0 0 0 1px rgba(232,163,61,.06);
  transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform;
}
.showcase__chrome {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid rgba(244,238,227,.08);
  color: var(--muted-on-dark); font-size: 13px;
}
.showcase__dots { display: flex; gap: 7px; }
.showcase__dots i { width: 11px; height: 11px; border-radius: 999px; background: rgba(244,238,227,.18); }
.showcase__dots i:first-child { background: #E8735C; } .showcase__dots i:nth-child(2) { background: var(--accent); } .showcase__dots i:nth-child(3) { background: var(--success-on-dark); }
.showcase__url {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  background: rgba(244,238,227,.06); border-radius: 999px; padding: 7px 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.showcase__count { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.showcase__count b { color: var(--accent); font-weight: 800; }
.showcase__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #0E3A46 0%, #061F26 70%); cursor: zoom-in; touch-action: pan-y; }
.showcase__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.03); transition: opacity .9s var(--ease), transform 1.2s var(--ease); display: flex; align-items: center; justify-content: center; }
.showcase__slide.is-active { opacity: 1; transform: none; z-index: 1; }
.showcase__slide img { width: 100%; height: 100%; object-fit: contain; }
.showcase__slide.is-active img { animation: kenburns 9s ease-out forwards; }
.showcase__scan {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(232,163,61,.10) 48%, rgba(244,238,227,.22) 50%, rgba(232,163,61,.10) 52%, transparent 100%);
}
.showcase.is-switching .showcase__scan { opacity: 1; animation: scan .8s cubic-bezier(.6,0,.2,1); }
.showcase__zoom, .showcase__nav {
  position: absolute; z-index: 3; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(244,238,227,.25);
  background: rgba(6,31,38,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--cream);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .3s, transform .3s var(--ease), opacity .3s;
}
.showcase__zoom { top: 16px; inset-inline-end: 16px; }
.showcase__nav { top: 50%; transform: translateY(-50%); opacity: 0; }
.showcase__nav--prev { inset-inline-start: 16px; } .showcase__nav--next { inset-inline-end: 16px; }
.showcase:hover .showcase__nav, .showcase__nav:focus-visible { opacity: 1; }
.showcase__zoom:hover, .showcase__nav:hover { background: var(--accent); color: var(--ink-on-accent); border-color: var(--accent); }
.showcase__progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(244,238,227,.08); }
.showcase__progress i { display: block; height: 100%; background: var(--accent); transform-origin: right; transform: scaleX(0); }
[dir="ltr"] .showcase__progress i { transform-origin: left; }
.showcase.is-playing .showcase__progress i { animation: progress var(--dur, 6s) linear forwards; }
.showcase.is-paused .showcase__progress i { animation-play-state: paused; }
.showcase__thumbs { display: flex; gap: 10px; padding: 14px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.showcase__thumb {
  flex: none; width: 124px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer;
  border: 2px solid transparent; background: #0A2E38; opacity: .55; scroll-snap-align: start;
  transition: opacity .3s, border-color .3s, transform .3s var(--ease);
}
.showcase__thumb img { width: 100%; height: 100%; object-fit: cover; }
.showcase__thumb:hover { opacity: .85; transform: translateY(-3px); }
.showcase__thumb.is-active { opacity: 1; border-color: var(--accent); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 64px 24px; background: rgba(4,20,25,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 40px 100px rgba(0,0,0,.5); transform: scale(.94); transition: transform .45s var(--ease), opacity .25s; cursor: zoom-in; touch-action: pan-y; }
.lb.is-open .lb__img { transform: scale(1); }
.lb__img.is-zoomed { transform: scale(1.9); cursor: zoom-out; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(244,238,227,.25); background: rgba(244,238,227,.06); color: var(--cream); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .3s; }
.lb__btn:hover { background: var(--accent); color: var(--ink-on-accent); border-color: var(--accent); }
.lb__close { top: 18px; inset-inline-end: 18px; }
.lb__prev { top: 50%; inset-inline-start: 18px; transform: translateY(-50%); }
.lb__next { top: 50%; inset-inline-end: 18px; transform: translateY(-50%); }
.lb__count { position: absolute; top: 32px; right: 24px; color: var(--muted-on-dark); font-family: var(--f-lat); font-size: 14px; letter-spacing: .06em; }
.lb__count b { color: var(--accent); }
body.lb-lock { overflow: hidden; }
[dir="ltr"] .lb__count { right: auto; left: 24px; }

.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.detail__main { display: flex; flex-direction: column; gap: 18px; }
.detail__desc { margin: 0; font-size: 19px; line-height: 2; color: var(--ink); white-space: pre-wrap; }
.detail__h { margin: 24px 0 4px; font-family: var(--f-disp); font-size: 26px; font-weight: 800; }
.detail__main .tags { flex: none; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px; font-size: 16px; line-height: 1.7; }
.checks i { flex: none; width: 28px; height: 28px; border-radius: 10px; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.detail__aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.dl-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; }
.dl-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.dl { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--surface); }
.dl__ico { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.dl__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dl__body b { font-size: 16px; }
.dl__body a { color: var(--brand); font-weight: 600; text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.dl__body a:hover { color: var(--accent-text); }
.ask-card { background: var(--brand); color: var(--cream); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.ask-card h2 { margin: 0; font-family: var(--f-disp); font-size: 24px; font-weight: 800; }
.ask-card p { margin: 0; color: var(--soft-on-dark); line-height: 1.8; }
.ask-card .btn { align-self: flex-start; }

.err { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }

/* ---------- language switch + LTR (English) ---------- */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(244,238,227,.3); color: var(--cream); text-decoration: none;
  font-family: var(--f-lat); font-weight: 700; font-size: 14px; transition: background .3s, border-color .3s;
}
.lang-switch:lang(ar) { font-family: var(--f-ar); font-size: 15px; }
.lang-switch:hover { background: rgba(244,238,227,.08); border-color: rgba(244,238,227,.7); color: var(--cream); }
.ltr-field { text-align: start; }
[dir="rtl"] .ltr-field { text-align: right; }

html[lang="en"] body { font-family: var(--f-lat); }
html[lang="en"] .disp, html[lang="en"] .h2, html[lang="en"] .hero h1, html[lang="en"] .svc h3,
html[lang="en"] .tile h3, html[lang="en"] .steps h3, html[lang="en"] .idea__steps h3 { font-family: var(--f-lat); letter-spacing: -.02em; }
html[lang="en"] .hero h1, html[lang="en"] .page-hero__title { line-height: 1.12; }
html[lang="en"] .page-hero__title, html[lang="en"] .detail__h, html[lang="en"] .ask-card h2 { font-family: var(--f-lat); letter-spacing: -.02em; }
html[lang="en"] .h2 { line-height: 1.2; }
html[lang="en"] .contact__copy .h2 { line-height: 1.12; }
html[lang="en"] .hero__lead, html[lang="en"] .lead, html[lang="en"] .contact__copy p { line-height: 1.7; }
[dir="ltr"] .flip { transform: scaleX(-1); }
[dir="ltr"] .tile:hover .tile__go { transform: rotate(45deg); }
[dir="ltr"] .grow-line, [dir="ltr"] .loader__bar i { transform-origin: left; }
[dir="ltr"] .svc:hover .svc__num { transform: translateX(10px) scale(1.08); }
[dir="ltr"] .idea__steps li:hover { transform: translateX(8px); }
[dir="ltr"] .wa { left: auto; right: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .span2c { grid-column: auto; }
  .span2r { grid-row: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .process__line { display: none; }
  .hero h1 { font-size: 44px; }
  .contact__copy .h2 { font-size: 44px; }
  .h2 { font-size: 34px; }
  .idea__copy .h2 { font-size: 32px; }
  .sec { padding-block: 72px; }
  .sec--tight-top { padding-top: 0; }
  .construct { height: 400px; flex-basis: 100%; order: -1; }
  .construct svg.construct__svg { width: 340px; height: 340px; }
  .chip { font-size: 12px; padding: 8px 12px; }
  .hide-sm { display: none !important; }
  .marquee__track { font-size: 64px; }
  .tile__media, .tile--tall .tile__media { height: 240px; min-height: 0; flex: none; }
  .tile h3 { font-size: 24px; }
  .tile__info { padding: 20px; }
  .tile__go { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 20px; }
  .stats b { font-size: 30px; }
  .svc, .svc--hero { min-height: 0; }
  .svc--hero .svc__num { font-size: 56px; }
  .svc__num { font-size: 44px; }
  .form { padding: 24px; }
  .page-hero__title { font-size: 38px; }
  .page-hero__in { padding-block: 24px 64px; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .showcase { border-radius: 20px; }
  .showcase__chrome { padding: 10px 12px; gap: 10px; }
  .showcase__url { display: none; }
  .showcase__count { margin-inline-start: auto; }
  .showcase__nav { opacity: 1; width: 40px; height: 40px; }
  .showcase__zoom { display: none; }
  .showcase__thumb { width: 92px; }
  .lb { padding: 72px 8px; }
  .lb__prev, .lb__next { top: auto; bottom: 18px; transform: none; }
  .detail__aside { position: static; }
  .works-grid { grid-template-columns: minmax(0, 1fr); }
  .works-grid .tile__media { height: 220px; }
  .cta-band { padding-block: 56px; }
  .idea { padding: 30px 22px; }

  .burger { display: flex; }
  .nav {
    display: none; order: 3; flex-basis: 100%; flex-direction: column; border-radius: 24px; max-width: none;
    background: rgba(6,31,38,.97); padding: 10px;
  }
  .hdr.is-open .nav { display: flex; }
  .nav a { padding: 14px 18px; font-size: 17px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .contact__copy .h2 { font-size: 36px; }
  .hdr__cta { display: none; }
  .lang-switch { min-width: 42px; height: 42px; padding: 0 12px; }
  html[lang="en"] .hero h1 { font-size: 34px; }
  .btn, .ghost { font-size: 16px; padding: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro, .pop, .reveal, .msg { opacity: 1 !important; transform: none !important; }
  .draw, .draw-late { stroke-dashoffset: 0 !important; }
  .grow-line { transform: none !important; }
  .loader { display: none !important; }
}
