/* =========================================================
   ArshiSoft — dark premium theme
   Brand: #1f92d0 (sky) · #1067ae (deep)
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #070b14;
  --bg-alt: #0a111e;
  --surface: #0f1729;
  --surface-2: #142038;
  --line: rgba(148, 178, 220, 0.12);
  --line-strong: rgba(148, 178, 220, 0.22);

  --text: #eaf1fb;
  --text-2: #c3cfdf;
  --muted: #8d9cb3;

  --brand: #1f92d0;
  --brand-light: #54b8ee;
  --brand-deep: #1067ae;
  --brand-tint: rgba(31, 146, 208, 0.12);
  --grad: linear-gradient(135deg, #36a9e5 0%, #1067ae 100%);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7);
  --glow: 0 20px 60px -20px rgba(31, 146, 208, 0.45);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-rtl: "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif;

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--font-rtl); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-family: var(--font-rtl); letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
::selection { background: rgba(31, 146, 208, 0.35); color: #fff; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s, translate 0.25s var(--ease);
}
html[dir="rtl"] .btn { font-family: var(--font-rtl); }
.btn svg { transition: transform 0.25s var(--ease); }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn:hover svg { transform: translateX(3px); }
html[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -12px rgba(31, 146, 208, 0.8); }
.btn-primary:hover { background: #2aa0de; translate: 0 -2px; box-shadow: 0 16px 34px -12px rgba(31, 146, 208, 0.9); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-outline:hover { border-color: var(--brand); color: #fff; background: var(--brand-tint); translate: 0 -2px; }
.btn-white { background: #fff; color: var(--brand-deep); }
.btn-white:hover { background: #eaf6fd; translate: 0 -2px; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-light); font-weight: 600; font-size: 0.95rem; }
.link-arrow svg { transition: transform 0.25s var(--ease); }
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.link-arrow:hover svg, .project:hover .link-arrow svg { transform: translateX(4px); }
html[dir="rtl"] .link-arrow:hover svg, html[dir="rtl"] .project:hover .link-arrow svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled, .site-header.open {
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 8px 14px; font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--brand);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.lang-switch button { border: 0; background: transparent; padding: 5px 10px; border-radius: 6px; font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; transition: background 0.2s, color 0.2s; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--brand); color: #fff; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); padding: 8px 24px 24px; display: flex; flex-direction: column; animation: menuIn 0.3s var(--ease); }
.mobile-menu[hidden] { display: none; }
.mobile-menu > a:not(.btn) { padding: 14px 4px; font-weight: 600; font-size: 1.05rem; color: var(--text-2); border-bottom: 1px solid var(--line); }
.mobile-menu > a[aria-current="page"] { color: var(--brand-light); }
.mobile-menu .lang-switch { align-self: flex-start; margin: 18px 0; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-light);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--brand); }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 14px; font-size: clamp(2rem, 3.8vw, 3rem); }
.section-head p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head-row .section-head { margin-bottom: 0; }

.glow { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(31, 146, 208, 0.22) 0%, rgba(31, 146, 208, 0) 65%); }
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.6;
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 80px) 0 100px; }
.hero .glow-1 { width: 900px; height: 900px; top: -420px; inset-inline-end: -300px; }
.hero .glow-2 { width: 700px; height: 700px; bottom: -420px; inset-inline-start: -300px; opacity: 0.6; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero-title { margin-top: 22px; font-size: clamp(2.6rem, 5.2vw, 4.3rem); line-height: 1.08; letter-spacing: -0.035em; }
.hero-sub { margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-trust div { display: grid; }
.hero-trust strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); line-height: 1.1; }
.hero-trust div > span { font-size: 0.86rem; color: var(--muted); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(180deg, rgba(7, 11, 20, 0), var(--bg)); pointer-events: none; }

.hero-visual { position: relative; padding-bottom: 40px; }
.browser {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), var(--glow);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #0c1424; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3650; }
.browser-bar span { margin-inline-start: 12px; font-size: 0.72rem; color: var(--muted); background: var(--surface-2); padding: 3px 14px; border-radius: 6px; direction: ltr; }
.browser img { width: 100%; aspect-ratio: 1024 / 700; object-fit: cover; object-position: top; }
.phone {
  position: absolute; width: 30%; bottom: 0; inset-inline-end: -18px;
  padding: 7px; border-radius: 26px; background: #05080f; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.phone-screen {
  position: relative; aspect-ratio: 9 / 18; overflow: hidden; border-radius: 20px; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.phone-screen > img { width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: center; }
.phone-screen .gen-cover { padding: 16px 14px; }
.phone-screen .gc-mark { top: 14px; inset-inline-start: 14px; width: 32px; height: 32px; font-size: 0.8rem; border-radius: 8px; }
.phone-screen .gc-title { font-size: 1rem; }
.phone-screen .gc-domain { font-size: 0.7rem; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 36px 28px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.1rem, 3.6vw, 2.8rem); font-weight: 700; color: var(--text); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat strong em { font-style: normal; color: var(--brand); }
.stat > span { display: block; margin-top: 12px; font-size: 0.92rem; color: var(--muted); }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, translate 0.35s var(--ease);
}
.service::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(31, 146, 208, 0.16), transparent 70%);
}
.service:hover { border-color: rgba(31, 146, 208, 0.45); translate: 0 -4px; }
.service:hover::after { opacity: 1; }
.service-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-light); border: 1px solid rgba(31, 146, 208, 0.25); margin-bottom: 24px; transition: background 0.3s, color 0.3s; }
.service:hover .service-icon { background: var(--brand); color: #fff; }
.service h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 0.95rem; }
.service.service-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--grad); border-color: transparent; }
.service.service-cta h3 { font-size: 1.4rem; color: #fff; }
.service.service-cta p { color: rgba(255, 255, 255, 0.82); }
.service.service-cta .btn { align-self: flex-start; }
.section-foot { display: flex; justify-content: center; margin-top: 48px; }

/* Core pillars (Web / Mobile / ERP) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; overflow: hidden; padding: 34px 30px 30px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong);
}
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.pillar-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; color: var(--brand-light); }
html[dir="rtl"] .pillar-label { letter-spacing: 0; }
.pillar h3 { margin-top: 14px; font-size: 1.35rem; }
.pillar p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.pillar-icon { position: absolute; top: 28px; inset-inline-end: 28px; color: rgba(84, 184, 238, 0.4); }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.brand-card {
  position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 40%, rgba(31, 146, 208, 0.18), transparent 60%), var(--surface);
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.brand-card .grid-lines { mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 70%); }
.brand-card .mark { position: relative; width: 26%; filter: drop-shadow(0 20px 40px rgba(31, 146, 208, 0.45)); }
.brand-card .wordmark { position: relative; width: 44%; }
.badge-row { position: absolute; bottom: 18px; left: 18px; right: 18px; display: flex; gap: 12px; }
.badge-row div { flex: 1; padding: 12px 16px; border-radius: 12px; background: rgba(7, 11, 20, 0.75); border: 1px solid var(--line); }
.badge-row strong { display: block; font-family: var(--font-display); color: var(--text); font-size: 1.25rem; line-height: 1.2; }
.badge-row span { font-size: 0.8rem; color: var(--muted); }
.split-copy h2 { margin-top: 14px; font-size: clamp(2rem, 3.8vw, 3rem); }
.split-copy .lead { margin-top: 16px; font-size: 1.15rem; font-weight: 500; color: var(--brand-light); }
.split-copy .body { margin-top: 20px; font-size: 1.05rem; line-height: 1.85; }
.split-copy > .btn { margin-top: 32px; }
.split-copy .body-lg { margin-top: 18px; font-size: 1.2rem; line-height: 1.8; color: var(--text-2); }
.services-all { margin-top: 20px; }
.location {
  margin-top: 28px; display: flex; gap: 14px; align-items: center; padding: 16px 18px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.location .ic { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-light); }
.location strong { display: block; color: var(--text); font-weight: 600; }
.location span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { border: 1px solid var(--line-strong); background: transparent; color: var(--muted); padding: 9px 20px; border-radius: 9px; font-weight: 600; font-size: 0.92rem; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.filter:hover { color: var(--text); border-color: var(--brand); }
.filter.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: start;
  transition: border-color 0.3s, translate 0.35s var(--ease), box-shadow 0.35s;
}
.project:hover { border-color: rgba(31, 146, 208, 0.45); translate: 0 -4px; box-shadow: var(--shadow); }
.project.is-hidden { display: none; }
.project-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0c1424; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s var(--ease); }
.project:hover .project-cover img, .project:hover .gen-cover { transform: scale(1.04); }
.gen-cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden; transition: transform 0.7s var(--ease); }
.gen-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.gc-mark { position: absolute; top: 20px; inset-inline-start: 22px; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); color: #fff; font-family: var(--font-display); font-weight: 700; }
.gc-title { position: relative; color: #fff; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.gc-domain { position: relative; margin-top: 6px; color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; direction: ltr; }
.gc-web { background: linear-gradient(135deg, #1f92d0, #0b3d6e); }
.gc-alt { background: linear-gradient(135deg, #12508a, #1f92d0); }
.gc-erp { background: linear-gradient(135deg, #0b1b33, #1067ae); }
.gc-mobile { background: linear-gradient(135deg, #1a7fc0, #45b0e6); }
.cat-tag { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1; padding: 4px 10px; border-radius: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(7, 11, 20, 0.85); color: var(--brand-light); border: 1px solid var(--line); }
.project-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.project-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.stack span { font-size: 0.74rem; font-weight: 500; padding: 4px 10px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.project .link-arrow { margin-top: auto; padding-top: 18px; font-size: 0.9rem; }

/* ---------- Tech strip ---------- */
.tech { padding: 56px 0; border-block: 1px solid var(--line); background: var(--bg-alt); }
.tech-inner { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.tech-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
html[dir="rtl"] .tech-label { letter-spacing: 0; }
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; direction: ltr; }
html[dir="rtl"] .tech-list { justify-content: flex-end; }
.tech-list span { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 0.88rem; font-weight: 500; transition: border-color 0.2s, color 0.2s; }
.tech-list span:hover { border-color: var(--brand); color: #fff; }

/* ---------- CTA band ---------- */
.cta { padding: 60px 0; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 18px; padding: clamp(24px, 3vw, 32px) clamp(22px, 3.5vw, 40px);
  background: linear-gradient(135deg, #1583c2 0%, #0d4f8f 55%, #0a2f5c 100%);
  display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.cta-box p { margin-top: 8px; color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; }
.cta-box .btn-lg { padding: 12px 22px; font-size: 0.92rem; }
.cta-actions .cta-mail { font-size: 0.9rem; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-mail { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.88); font-weight: 500; }
.cta-mail:hover { color: #fff; }

/* ---------- Inner page header ---------- */
.page-header { position: relative; overflow: hidden; padding: calc(var(--header-h) + 90px) 0 90px; border-bottom: 1px solid var(--line); }
.page-header .glow-1 { width: 800px; height: 800px; top: -460px; inset-inline-end: -200px; }
.page-header .container { position: relative; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-2); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand-light); }
.breadcrumb .sep { opacity: 0.5; }
.page-header h1 { margin-top: 16px; font-size: clamp(2.5rem, 5.6vw, 4.2rem); letter-spacing: -0.035em; }
html[dir="rtl"] .page-header h1 { letter-spacing: 0; }
.page-header .lead { margin-top: 18px; max-width: 620px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s; }
a.info-card:hover { border-color: rgba(31, 146, 208, 0.45); }
.info-card .ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-light); border: 1px solid rgba(31, 146, 208, 0.25); }
.info-card strong { display: block; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.info-card small { display: block; color: var(--muted); font-size: 0.88rem; }
.info-note { margin-top: 10px; padding: 24px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(31, 146, 208, 0.16), rgba(16, 103, 174, 0.06)); border: 1px solid rgba(31, 146, 208, 0.25); }
.info-note img { width: 44px; margin-bottom: 14px; }
.info-note p { color: var(--text); font-weight: 500; }

.form-card { padding: 40px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#contactForm { display: grid; gap: 24px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-alt);
  color: var(--text); font: inherit; font-size: 0.98rem; outline: none; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 146, 208, 0.15); }
.field.invalid input, .field.invalid textarea { border-color: #f06a6f; }
.group-label { font-size: 0.88rem; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.group-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.group-row .group-label { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; direction: ltr; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chip:hover { border-color: var(--brand); color: #fff; }
.chip.selected { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-light); }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 5px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 700; }
.seg button.active { background: var(--brand); color: #fff; }
.err { display: block; margin-top: 6px; color: #f06a6f; font-size: 0.8rem; font-weight: 600; }
.err:empty { display: none; }
.form-error { padding: 12px 16px; border-radius: 10px; background: rgba(240, 106, 111, 0.1); border: 1px solid rgba(240, 106, 111, 0.35); color: #ffb3b6; font-size: 0.9rem; }
.form-success { text-align: center; padding: 60px 10px; }
.form-success[hidden] { display: none; }
.success-icon { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: var(--glow); }
.form-success p { font-family: var(--font-display); font-size: 1.35rem; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: #05080f; border-top: 1px solid var(--line); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; font-size: 0.92rem; color: var(--muted); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text-2); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-title { font-family: var(--font-display); color: var(--text); font-weight: 600; margin-bottom: 18px; }
html[dir="rtl"] .footer-title { font-family: var(--font-rtl); }
.footer-col a, .footer-col span { display: block; margin-bottom: 11px; font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-col a.accent { color: var(--brand-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--text); }

/* ---------- Scroll reveal (subtle) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a { padding: 8px 10px; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-links, .nav-actions > .lang-switch, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-inner, .split, .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 620px; }
  .phone { inset-inline-end: 0; }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cta-box { grid-template-columns: 1fr; }
  .tech-inner { grid-template-columns: 1fr; gap: 20px; }
  .page-header { padding: calc(var(--header-h) + 56px) 0 64px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .cta { padding: 48px 0; }
  .brand img { height: 32px; }
  .services-grid, .work-grid, .row-2, .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; }
  .stat { padding: 26px 18px; }
  .form-card { padding: 26px 20px; }
  .brand-card { aspect-ratio: 1 / 1; }
  .cta-box { border-radius: 20px; }
}

/* =========================================================
   Motion layer — GSAP drives entrances; CSS handles ambient effects
   ========================================================= */

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.gsap-on { scroll-behavior: auto; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; pointer-events: none;
  background: linear-gradient(90deg, #1067ae, #54b8ee); transform-origin: 0 50%; transform: scaleX(0);
}
html[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

/* Split headline words */
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-word { display: inline-block; }
.grad-text .split-word, .grad-word { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s ease-in-out infinite; }
.hero-title.is-split .grad-text { background: none; animation: none; }

/* Brand-name shimmer */
.grad-text { background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Hero particle network */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; }

/* Rotating light on the hero screenshot frame */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.browser::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0deg 250deg, rgba(84, 184, 238, 0.9) 300deg, transparent 340deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 6s linear infinite;
}
@keyframes spinBorder { to { --ang: 360deg; } }

/* Cursor spotlight on card borders */
.service::before, .project::before, .info-card::before, .pillar::after, .stats::before, .why-card::before, .deliver-card::before, .feature-card::before, .wc-reason::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(84, 184, 238, 0.85), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s;
}
.info-card, .stats { position: relative; }
.service:hover::before, .project:hover::before, .info-card:hover::before, .pillar:hover::after, .stats:hover::before, .why-card:hover::before, .deliver-card:hover::before, .feature-card:hover::before, .wc-reason:hover::before { opacity: 1; }

/* Button shine sweep */
.btn-primary, .btn-white { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-white::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); transition: left 0.7s var(--ease);
}
.btn-white::after { background: linear-gradient(100deg, transparent, rgba(31, 146, 208, 0.18), transparent); }
.btn-primary:hover::after, .btn-white:hover::after { left: 125%; }

/* Nav underline grows in on hover */
.nav-links a::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--brand-light); transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.nav-links a:hover::before { transform: scaleX(1); }

/* CTA: slow moving gradient + floating orbs */
.cta-box { background-size: 180% 180%; animation: ctaShift 12s ease-in-out infinite; }
@keyframes ctaShift { 0%, 100% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } }
.cta-orb { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.04) 60%, transparent 70%); }

/* Header hides on scroll down (transform owned by GSAP) */
html.gsap-on .site-header { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .browser::before, .grad-text, .cta-box, .grad-text .split-word { animation: none !important; }
  .hero-canvas { display: none; }
}

/* =========================================================
   Home: interactive world globe
   ========================================================= */
.world { overflow: hidden; }
.world-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.world .section-head { margin-bottom: 36px; }
.world-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.world-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; outline: none;
  transition: border-color 0.25s, background 0.25s, translate 0.3s var(--ease);
}
.world-list li:hover, .world-list li:focus-visible { border-color: rgba(31, 146, 208, 0.5); background: var(--surface-2); translate: 6px 0; }
html[dir="rtl"] .world-list li:hover, html[dir="rtl"] .world-list li:focus-visible { translate: -6px 0; }
.flag-dot { flex: none; position: relative; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--brand-light); box-shadow: 0 0 0 4px rgba(84, 184, 238, 0.15); }
.is-hq .flag-dot { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15); }
.flag-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--brand-light); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.world-list strong { display: block; color: var(--text); font-weight: 600; }
.world-list small { display: block; color: var(--brand-light); font-size: 0.82rem; font-weight: 600; }
.world-list em { display: block; margin-top: 4px; font-style: normal; font-size: 0.86rem; color: var(--muted); }
.world-hint { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 0.85rem; color: var(--muted); }
.globe-wrap { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 580px; margin-inline: auto; cursor: grab; touch-action: pan-y; }
.globe-wrap.is-dragging { cursor: grabbing; }
.globe-wrap canvas { display: block; width: 100%; height: 100%; }

/* =========================================================
   About page sections
   ========================================================= */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card {
  position: relative; overflow: hidden; padding: 40px 36px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong);
}
.mv-card::after { content: ""; position: absolute; width: 260px; height: 260px; top: -130px; inset-inline-end: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 146, 208, 0.25), transparent 70%); pointer-events: none; }
.mv-icon, .value-icon, .industry-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--brand-tint); color: var(--brand-light); border: 1px solid rgba(31, 146, 208, 0.25); }
.mv-card h3 { margin-top: 22px; font-size: 1.5rem; }
.mv-card p { margin-top: 12px; font-size: 1.08rem; line-height: 1.8; }

.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps-line { position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.steps-fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #1067ae, #54b8ee); transform-origin: 0 50%; }
html[dir="rtl"] .steps-fill { transform-origin: 100% 50%; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--brand); color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; box-shadow: 0 0 0 6px var(--bg-alt), var(--glow);
}
.step h3 { margin-top: 22px; font-size: 1.15rem; }
.step p { margin-top: 8px; font-size: 0.94rem; color: var(--muted); }

.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, translate 0.35s var(--ease); }
.industry:hover { border-color: rgba(31, 146, 208, 0.45); translate: 0 -4px; }
.industry:hover .industry-icon { background: var(--brand); color: #fff; }
.industry-icon { width: 48px; height: 48px; border-radius: 12px; transition: background 0.3s, color 0.3s; }
.industry h3 { margin-top: 18px; font-size: 1.05rem; }
.industry small { display: block; margin-top: 6px; font-size: 0.84rem; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 30px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; transition: border-color 0.3s; }
.value:hover { border-color: rgba(31, 146, 208, 0.45); }
.value-icon { margin-inline: auto; border-radius: 50%; }
.value h3 { margin-top: 18px; font-size: 1.1rem; }
.value p { margin-top: 8px; font-size: 0.93rem; color: var(--muted); }

/* Footer language switch */
.footer-legal { align-items: center; }
.footer-legal .lang-switch { margin-inline-start: 8px; }

@media (max-width: 1080px) {
  .industries, .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .world-inner, .mv-grid { grid-template-columns: 1fr; }
  .globe-wrap { max-width: 460px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps-line { display: none; }
}
@media (max-width: 640px) {
  .industries, .values, .steps { grid-template-columns: 1fr; }
  .mv-card { padding: 30px 24px; }
  .footer-legal { flex-wrap: wrap; }
}

/* =========================================================
   Service & project detail pages
   ========================================================= */
.service .link-arrow { margin-top: 20px; font-size: 0.9rem; }
a.pillar { display: block; transition: border-color 0.3s, translate 0.35s var(--ease); }
a.pillar:hover { border-color: rgba(31, 146, 208, 0.5); translate: 0 -4px; }

.detail-header h1 { max-width: 880px; }
.detail-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--brand-tint); color: var(--brand-light); border: 1px solid rgba(31, 146, 208, 0.3); box-shadow: var(--glow); }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.detail-main { display: grid; gap: 48px; min-width: 0; }
.detail-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 22px; }
.detail-lead { margin-top: 16px; font-size: 1.2rem; line-height: 1.85; color: var(--text-2); }
.results-grid li {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 500;
  transition: border-color 0.25s, translate 0.3s var(--ease);
}
.tick { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-light); }

.detail-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.side-card { padding: 28px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); display: grid; gap: 14px; }
.side-card h3 { font-size: 0.8rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-light); }
html[dir="rtl"] .side-card h3 { letter-spacing: 0; font-family: var(--font-rtl); }
.side-card .stack { margin-top: 0; }
.side-value { color: var(--text); font-weight: 600; margin-bottom: 8px; }
.side-card .btn + .btn { margin-top: -4px; }
.side-cta { background: linear-gradient(145deg, #1583c2, #0b3d72); border: 0; }
.side-cta h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.01em; text-transform: none; color: #fff; }
.side-cta p { color: rgba(255, 255, 255, 0.82); }

/* Project page */
.project-hero-section { padding-top: 70px; }
.project-showcase {
  max-width: 860px; margin: 0 auto 64px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), var(--glow);
}
.showcase-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c1424; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-showcase.is-generated .showcase-media { aspect-ratio: 16 / 7; }
.offer-block { max-width: 860px; margin: 0 auto 56px; }
.offer-block h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 18px; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer-card {
  position: relative; display: block; padding: 26px 24px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-strong); text-decoration: none; color: inherit;
  transition: border-color 0.3s, translate 0.35s var(--ease);
}
.offer-card:hover { border-color: rgba(31, 146, 208, 0.5); translate: 0 -3px; }
.offer-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 16px; background: #0c1424; }
.offer-num { display: block; margin-bottom: 12px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; color: var(--brand-light); }
.offer-card h3 { font-size: 1.2rem; color: var(--text); }
.offer-card p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.offer-card .link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand-light); font-weight: 600; }
.offer-detail { margin-top: 36px; }
.offer-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.offer-points li {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); line-height: 1.65; font-weight: 500;
}
.offer-detail + .btn { margin-top: 28px; }
.offer-more { margin-top: 48px; }
.project-showcase .gc-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.project-showcase .gen-cover { padding: 40px; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cs-card { position: relative; overflow: hidden; padding: 30px 28px; border-radius: var(--radius-lg); background: linear-gradient(170deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); }
.cs-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.cs-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-light); }
html[dir="rtl"] .cs-label { letter-spacing: 0; }
.cs-card p { margin-top: 12px; font-size: 1.04rem; line-height: 1.8; }
.results-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.results-grid li { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; }

.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.pn-link { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s, translate 0.3s var(--ease); }
.pn-link:hover { border-color: rgba(31, 146, 208, 0.45); }
.pn-prev:hover { translate: -4px 0; }
.pn-next { text-align: end; }
.pn-next:hover { translate: 4px 0; }
.pn-link small { color: var(--muted); font-size: 0.82rem; }
.pn-link strong { color: var(--text); font-family: var(--font-display); font-size: 1.1rem; }

@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cs-grid, .project-nav, .offer-grid { grid-template-columns: 1fr; }
  .showcase-media, .project-showcase.is-generated .showcase-media { aspect-ratio: 4 / 3; }
  .project-showcase .gen-cover { padding: 24px; }
}

/* ---------- Service page: richer sections ---------- */
/* Orbiting ring around the header icon */
.detail-icon { position: relative; margin: 6px 0 4px 6px; }
.orbit { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(84, 184, 238, 0.35); animation: orbit 12s linear infinite; }
.orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-light); box-shadow: 0 0 12px var(--brand-light); }
.orbit i:first-child { top: -4px; left: 50%; margin-left: -4px; }
.orbit i:last-child { bottom: -4px; left: 50%; margin-left: -4px; width: 6px; height: 6px; opacity: 0.6; }
@keyframes orbit { to { transform: rotate(360deg); } }

.ideal-title { margin-top: 30px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .ideal-title { letter-spacing: 0; font-family: var(--font-rtl); }
.ideal { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ideal li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--brand-tint); border: 1px solid rgba(31, 146, 208, 0.3); color: var(--text); font-size: 0.9rem; font-weight: 500;
  transition: background 0.25s, border-color 0.25s;
}
.ideal li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); }
.ideal li:hover { background: rgba(31, 146, 208, 0.22); border-color: var(--brand); }

.deliver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.deliver-card {
  position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 14px; padding: 22px 20px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, translate 0.35s var(--ease), background 0.3s;
}
.deliver-card:hover { border-color: rgba(31, 146, 208, 0.45); translate: 0 -3px; background: var(--surface-2); }
.deliver-card p { color: var(--text); font-weight: 500; line-height: 1.5; padding-top: 5px; }
.deliver-num { position: absolute; top: 10px; inset-inline-end: 14px; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; color: rgba(84, 184, 238, 0.1); transition: color 0.3s; }
.deliver-card:hover .deliver-num { color: rgba(84, 184, 238, 0.25); }
.deliver-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  position: relative; overflow: hidden; padding: 34px 30px; border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong);
  transition: translate 0.35s var(--ease);
}
.why-card:hover { translate: 0 -5px; }
.why-card::after { content: ""; position: absolute; width: 200px; height: 200px; bottom: -110px; inset-inline-end: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 146, 208, 0.22), transparent 70%); pointer-events: none; transition: transform 0.6s var(--ease); }
.why-card:hover::after { transform: scale(1.5); }
.why-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.why-card h3 { margin-top: 22px; font-size: 1.25rem; }
.why-card p { margin-top: 10px; color: var(--muted); }

.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-layout .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq-layout .section-head .btn { margin-top: 28px; }
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, background 0.3s; }
.faq-item.is-open { border-color: rgba(31, 146, 208, 0.45); background: var(--surface-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px;
  background: none; border: 0; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; text-align: start;
}
html[dir="rtl"] .faq-q { font-family: var(--font-rtl); }
.faq-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-light); transition: transform 0.4s var(--ease), background 0.3s, color 0.3s; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 22px; color: var(--text-2); line-height: 1.8; }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .section-head { position: static; }
}
@media (max-width: 640px) {
  .deliver-grid { grid-template-columns: 1fr; }
  .deliver-card:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- Project page: client, features, services ---------- */
.client-block .detail-lead { margin-top: 14px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-card {
  position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 22px 20px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s, translate 0.35s var(--ease);
}
.feature-card:hover { border-color: rgba(31, 146, 208, 0.45); background: var(--surface-2); translate: 0 -3px; }
.feature-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-light); border: 1px solid rgba(31, 146, 208, 0.25); transition: background 0.3s, color 0.3s, rotate 0.6s var(--ease); }
.feature-card:hover .feature-icon { background: var(--brand); color: #fff; rotate: 90deg; }
.feature-card h3 { font-size: 1.02rem; }
.feature-card p { margin-top: 4px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

.service-links { display: grid; gap: 8px; margin-bottom: 6px; }
.service-links a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--text); font-size: 0.9rem; font-weight: 500;
  transition: border-color 0.25s, background 0.25s, translate 0.3s var(--ease);
}
.service-links a svg { color: var(--brand-light); flex: none; }
.service-links a:hover { border-color: var(--brand); background: var(--brand-tint); translate: 4px 0; }
html[dir="rtl"] .service-links a:hover { translate: -4px 0; }

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Step count comes from the admin panel */
.steps { grid-template-columns: repeat(var(--steps, 4), 1fr); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Home hero: project chosen in the admin ---------- */
a.browser.hero-project { display: block; text-decoration: none; transition: box-shadow 0.4s var(--ease), translate 0.4s var(--ease); }
a.browser.hero-project:hover { translate: 0 -4px; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.85), 0 30px 80px -20px rgba(31, 146, 208, 0.6); }
.hero-shot { position: relative; aspect-ratio: 1024 / 700; overflow: hidden; background: #0c1424; }
.hero-shot > img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease); }
a.hero-project:hover .hero-shot > img, a.hero-project:hover .gen-cover { transform: scale(1.03); }
.hero-shot .gen-cover { padding: 32px; }
.hero-shot .gc-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.hero-feature {
  position: absolute; bottom: 0; inset-inline-start: -28px; z-index: 4;
  display: grid; gap: 4px; min-width: 240px; max-width: 300px; padding: 18px 20px;
  border-radius: 16px; text-decoration: none;
  background: rgba(15, 23, 41, 0.92); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, translate 0.35s var(--ease);
}
.hero-feature:hover { border-color: rgba(31, 146, 208, 0.6); translate: 0 -3px; }
.hf-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-light); }
.hf-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-light); box-shadow: 0 0 0 4px rgba(84, 184, 238, 0.2); }
.hero-feature strong { color: var(--text); font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; }
.hf-cats { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }
.hf-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--brand-light); font-weight: 600; font-size: 0.9rem; }
.hf-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.hero-feature:hover .hf-link svg { transform: translateX(4px); }

@media (max-width: 960px) {
  .hero-feature { inset-inline-start: 12px; bottom: -8px; }
}
@media (max-width: 640px) {
  .hero-feature { position: relative; inset: auto; margin-top: -24px; margin-inline: 12px; max-width: none; }
}

/* Phone-sized screens: keep the hero images clear of the bottom fade */
@media (max-width: 960px) {
  .hero { padding-bottom: 120px; }
  .hero::after { height: 70px; }
}
@media (max-width: 640px) {
  .phone { width: 34%; inset-inline-end: -6px; padding: 5px; border-radius: 20px; }
  .phone-screen { border-radius: 15px; }
}

/* ---------- About: project journey timeline (alternating left / right) ---------- */
.journey-section { overflow: hidden; }
.journey { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; gap: 34px; }
.journey-line { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.journey-fill { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, #54b8ee, #1067ae); transform-origin: 50% 0; }
.journey-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.journey-left .journey-card { grid-column: 1; margin-right: 56px; }
.journey-right .journey-card { grid-column: 2; margin-left: 56px; }
.journey-dot {
  position: absolute; z-index: 1; left: 50%; top: 26px; transform: translateX(-50%);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--brand); color: var(--text);
  font: 700 1rem var(--font-display); box-shadow: 0 0 0 6px var(--bg-alt), var(--glow);
}
.journey-card {
  position: relative; padding: 26px 26px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong);
  transition: border-color 0.3s, translate 0.35s var(--ease);
}
.journey-card:hover { border-color: rgba(31, 146, 208, 0.5); translate: 0 -4px; }
/* little pointer toward the line */
.journey-card::after {
  content: ""; position: absolute; top: 40px; width: 14px; height: 14px; rotate: 45deg;
  background: var(--surface-2); border: 1px solid var(--line-strong);
}
.journey-left .journey-card::after { right: -8px; border-left: 0; border-bottom: 0; }
.journey-right .journey-card::after { left: -8px; border-right: 0; border-top: 0; }
.journey-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.journey-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.journey-num { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-light); }
.journey-card h3 { font-size: 1.25rem; }
.journey-card p { margin-top: 8px; color: var(--muted); }

/* desktop: interleave the two columns so the zig-zag stays compact */
@media (min-width: 761px) {
  .journey { gap: 0; }
  .journey-step + .journey-step { margin-top: -60px; }
}
@media (max-width: 760px) {
  .journey { gap: 22px; }
  .journey-line { left: 22px; }
  .journey-step { grid-template-columns: 1fr; }
  .journey-left .journey-card, .journey-right .journey-card { grid-column: 1; margin: 0 0 0 64px; }
  .journey-dot { left: 22px; top: 22px; width: 40px; height: 40px; font-size: 0.9rem; }
  .journey-left .journey-card::after, .journey-right .journey-card::after { left: -8px; right: auto; border: 1px solid var(--line-strong); border-right: 0; border-top: 0; }
  .journey-card { padding: 22px 20px; }
}

/* =========================================================
   About page: text and images a step smaller
   ========================================================= */
.page-about .section { padding: 68px 0; }
.page-about .section-head { margin-bottom: 32px; }
.page-about .section-head h2, .page-about .split-copy h2 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); }
.page-about .section-head p { font-size: 0.92rem; margin-top: 10px; }
.page-about .eyebrow { font-size: 0.68rem; }

/* page header */
.page-about .page-header { padding: calc(var(--header-h) + 48px) 0 48px; }
.page-about .page-header h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-about .page-header .lead { font-size: 0.95rem; max-width: 540px; }
.page-about .breadcrumb { font-size: 0.8rem; margin-bottom: 16px; }

/* who we are */
.page-about .split { grid-template-columns: 0.78fr 1.22fr; gap: 40px; }
.page-about .brand-card { aspect-ratio: 1; max-width: 380px; }
.page-about .brand-card .mark { width: 20%; }
.page-about .brand-card .wordmark { width: 34%; }
.page-about .badge-row strong { font-size: 1.05rem; }
.page-about .badge-row span { font-size: 0.74rem; }
.page-about .split-copy .body { font-size: 0.92rem; line-height: 1.7; margin-top: 12px; }
.page-about .location { margin-top: 18px; padding: 12px 14px; }
.page-about .location .ic { width: 36px; height: 36px; }
.page-about .location span { font-size: 0.84rem; }

/* mission & vision */
.page-about .mv-card { padding: 22px 22px; }
.page-about .mv-icon { width: 40px; height: 40px; }
.page-about .mv-card h3 { margin-top: 12px; font-size: 1.08rem; }
.page-about .mv-card p { font-size: 0.9rem; line-height: 1.65; }

/* stats */
.page-about .stat { padding: 20px 18px; }
.page-about .stat strong { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.page-about .stat > span { margin-top: 6px; font-size: 0.8rem; }

/* project journey */
.page-about .journey { max-width: 860px; gap: 26px; }
.page-about .journey-card { padding: 16px 18px 14px; }
.page-about .journey-top { margin-bottom: 10px; }
.page-about .journey-icon { width: 34px; height: 34px; border-radius: 10px; }
.page-about .journey-icon svg { width: 18px; height: 18px; }
.page-about .journey-card h3 { font-size: 1rem; }
.page-about .journey-card p { font-size: 0.86rem; margin-top: 4px; }
.page-about .journey-dot { width: 32px; height: 32px; top: 18px; font-size: 0.8rem; }
.page-about .journey-card::after { top: 26px; }
@media (min-width: 761px) {
  .page-about .journey-step + .journey-step { margin-top: -36px; }
  .page-about .journey-left .journey-card { margin-right: 40px; }
  .page-about .journey-right .journey-card { margin-left: 40px; }
}

/* industries & values */
.page-about .industry { padding: 16px 14px; }
.page-about .industry-icon { width: 34px; height: 34px; }
.page-about .industry h3 { margin-top: 10px; font-size: 0.9rem; }
.page-about .industry small { font-size: 0.76rem; }
.page-about .value { padding: 18px 16px; }
.page-about .value-icon { width: 38px; height: 38px; }
.page-about .value h3 { margin-top: 10px; font-size: 0.92rem; }
.page-about .value p { font-size: 0.82rem; }

/* core services cards */
.page-about .pillar { padding: 20px 18px 18px; }
.page-about .pillar h3 { font-size: 1.02rem; margin-top: 10px; }
.page-about .pillar p { font-size: 0.84rem; }
.page-about .pillar-icon svg { width: 28px; height: 28px; }


@media (max-width: 960px) {
  .page-about .split { grid-template-columns: 1fr; }
  .page-about .brand-card { max-width: 340px; }
}
@media (max-width: 640px) {
  .page-about .section { padding: 52px 0; }
  .page-about .page-header { padding: calc(var(--header-h) + 32px) 0 36px; }
  .page-about .page-header h1 { font-size: 1.7rem; }
}

/* ---------- Images chosen in the admin (Pages & Sections) ---------- */
.page-header.has-image { background: linear-gradient(180deg, rgba(7, 11, 20, 0.72), rgba(7, 11, 20, 0.92)), var(--header-image) center / cover no-repeat; }
.page-header.has-image .grid-lines { opacity: 0.25; }
.brand-card.photo-card { padding: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.brand-card.photo-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.contact-layout.form-only { grid-template-columns: minmax(0, 760px); justify-content: center; }

/* =========================================================
   Why Us page
   ========================================================= */
.wc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.wc-reason { position: relative; overflow: hidden; padding: 30px 28px 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: translate 0.4s var(--ease), border-color 0.3s; }
.wc-reason:hover { translate: 0 -6px; border-color: var(--line-strong); }
.wc-reason::after { content: ""; position: absolute; width: 220px; height: 220px; bottom: -130px; inset-inline-end: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 146, 208, 0.2), transparent 70%); pointer-events: none; transition: transform 0.6s var(--ease); }
.wc-reason:hover::after { transform: scale(1.4); }
.wc-num { position: absolute; top: 18px; inset-inline-end: 24px; font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(148, 178, 220, 0.18); transition: -webkit-text-stroke-color 0.3s; }
.wc-reason:hover .wc-num { -webkit-text-stroke-color: rgba(84, 184, 238, 0.55); }
.wc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.wc-reason h3 { margin-top: 22px; font-size: 1.22rem; }
.wc-reason p { margin-top: 10px; color: var(--muted); line-height: 1.7; }
.wc-lead { background: linear-gradient(160deg, rgba(31, 146, 208, 0.16), var(--surface) 60%); border-color: rgba(84, 184, 238, 0.3); }
.wc-stat { display: flex; align-items: baseline; gap: 2px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wc-stat strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--text); }
.wc-stat > span { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--brand-light); }
.wc-stat small { margin-inline-start: 10px; color: var(--muted); font-size: 0.9rem; }

.wc-compare { max-width: 980px; margin: 52px auto 0; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.wc-row { display: grid; grid-template-columns: 190px 1fr 1fr; align-items: stretch; }
.wc-row + .wc-row { border-top: 1px solid var(--line); }
.wc-row > span { display: flex; align-items: center; gap: 12px; padding: 20px 24px; }
.wc-topic { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 0.95rem; }
.wc-other { color: var(--muted); }
.wc-us { color: var(--text); font-weight: 500; background: rgba(31, 146, 208, 0.08); border-inline-start: 1px solid rgba(84, 184, 238, 0.22); }
.wc-head > span { padding-block: 16px; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wc-head .wc-us { background: var(--grad); color: #fff; border-inline-start: 0; }
.wc-x, .wc-ok { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; }
.wc-x { background: rgba(240, 106, 111, 0.12); color: #f06a6f; }
.wc-ok { background: rgba(63, 207, 142, 0.14); color: #3fcf8e; }

.wc-promises { list-style: none; padding: 0; margin: 48px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wc-promises li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 500; transition: border-color 0.3s, translate 0.4s var(--ease); }
.wc-promises li:hover { border-color: rgba(63, 207, 142, 0.4); translate: 0 -3px; }

@media (max-width: 960px) {
  .wc-grid, .wc-promises { grid-template-columns: repeat(2, 1fr); }
  .wc-row { grid-template-columns: 140px 1fr 1fr; }
  .wc-row > span { padding: 16px 16px; }
}
@media (max-width: 640px) {
  .wc-grid, .wc-promises { grid-template-columns: 1fr; }
  .wc-grid { margin-top: 36px; }
  .wc-reason { padding: 26px 22px; }
  .wc-head { display: none; }
  .wc-row { grid-template-columns: 1fr; }
  .wc-row > span { padding: 12px 18px; }
  .wc-topic { padding-top: 18px !important; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-light); }
  .wc-us { border-inline-start: 0; padding-bottom: 16px !important; }
}

/* =========================================================
   Careers
   ========================================================= */
.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; }
.careers-section { padding-top: 64px; }
.job-search { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); margin-bottom: 56px; }
.js-field { position: relative; display: flex; align-items: center; }
.js-field svg { position: absolute; inset-inline-start: 16px; color: var(--muted); pointer-events: none; }
.js-field input, .js-field select { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-alt); color: var(--text); font: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.js-keyword input { padding-inline-start: 46px; }
.js-field select { appearance: none; cursor: pointer; padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238d9cb3' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.js-field input:focus, .js-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 146, 208, 0.15); }
.job-search .btn { height: 52px; padding-inline: 30px; }

.jobs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.jobs-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.jobs-count { color: var(--muted); font-size: 0.92rem; }
.jobs-count [data-n] { color: var(--brand-light); font-weight: 700; }
.job-list { display: grid; gap: 14px; }
.job-card { position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, translate 0.35s var(--ease), background-color 0.3s; }
.job-card[hidden] { display: none; }
.job-card::before { content: ""; position: absolute; inset-block: 22px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--grad); transform: scaleY(0); transition: transform 0.35s var(--ease); }
.job-card:hover { border-color: rgba(84, 184, 238, 0.35); translate: 0 -3px; background-color: var(--surface-2); }
.job-card:hover::before { transform: scaleY(1); }
.job-card h3 { font-size: 1.2rem; }
.job-card h3 a { color: var(--text); }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.job-meta { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 0.9rem; }
.job-meta li { display: inline-flex; align-items: center; gap: 7px; }
.job-meta svg { color: var(--brand-light); flex: none; }
.job-cat { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--brand-tint); border: 1px solid rgba(84, 184, 238, 0.25); color: var(--brand-light); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.job-view { position: relative; z-index: 1; }
.job-card:hover .job-view { border-color: var(--brand); background: var(--brand); color: #fff; }
.job-empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.job-empty[hidden] { display: none; }
.job-none { text-align: center; padding: 56px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px dashed var(--line-strong); }
.job-none-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: var(--brand-tint); color: var(--brand-light); margin-bottom: 18px; }
.job-none p { max-width: 520px; margin: 10px auto 0; color: var(--muted); }

/* job page */
.job-meta-lg { margin-top: 22px; gap: 10px; }
.job-meta-lg li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); color: var(--text-2); }
.job-apply-top { margin-top: 28px; }
.job-closed-note { margin-top: 24px; display: inline-block; padding: 10px 16px; border-radius: 10px; background: rgba(240, 106, 111, 0.1); border: 1px solid rgba(240, 106, 111, 0.35); color: #ffb3b6; }
.job-summary { margin-top: 0; }
.job-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.job-points li { display: flex; align-items: flex-start; gap: 14px; color: var(--text-2); line-height: 1.7; }
.job-points .tick { width: 26px; height: 26px; margin-top: 1px; }
.job-points .tick svg { width: 14px; height: 14px; }
.job-details dl { margin: 0; display: grid; }
.job-details dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.job-details dl > div:last-child { border-bottom: 0; }
.job-details dt { color: var(--muted); }
.job-details dd { margin: 0; color: var(--text); font-weight: 600; text-align: end; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row a, .share-row button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-alt); color: var(--text-2); cursor: pointer; transition: border-color 0.2s, color 0.2s, translate 0.25s var(--ease); }
.share-row a:hover, .share-row button:hover { border-color: var(--brand); color: #fff; translate: 0 -2px; }
.share-row button.copied { border-color: #3fcf8e; color: #3fcf8e; }

.apply-card { scroll-margin-top: calc(var(--header-h) + 24px); }
.apply-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.apply-sub { margin: 8px 0 26px; color: var(--muted); }
.apply-form { display: grid; gap: 20px; }
.field.has-error input, .field.has-error textarea, .field.has-error .cv-drop { border-color: #f06a6f; }
.cv-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.field .cv-drop { display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px 20px; border-radius: 12px; border: 2px dashed var(--line-strong); background: var(--bg-alt); color: var(--muted); cursor: pointer; font-weight: 500; transition: border-color 0.2s, background 0.2s; }
.cv-drop svg { color: var(--brand-light); flex: none; }
.field .cv-drop:hover, .field .cv-drop.has-file, .cv-input:focus-visible ~ .cv-drop { border-color: var(--brand); background: var(--brand-tint); }
.cv-drop.has-file .cv-name { color: var(--text); }
.apply-success { padding: 36px 10px 20px; }

.job-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.job-mini { display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: inherit; transition: border-color 0.3s, translate 0.35s var(--ease); }
.job-mini:hover { border-color: rgba(84, 184, 238, 0.35); translate: 0 -4px; text-decoration: none; }
.job-mini h3 { font-size: 1.12rem; color: var(--text); }
.job-mini .job-meta { margin: 0; gap: 6px 16px; font-size: 0.85rem; }
.job-mini .link-arrow { margin-top: 6px; }

/* seven menu items: tighten on mid-size screens */
@media (max-width: 1240px) { .nav-links a { padding: 8px 10px; font-size: 0.9rem; } }
@media (max-width: 1080px) { .nav-links a { padding: 8px 7px; font-size: 0.86rem; } }

@media (max-width: 960px) {
  .job-search { grid-template-columns: 1fr 1fr; }
  .js-keyword { grid-column: 1 / -1; }
  .job-search .btn { grid-column: 1 / -1; }
  .job-related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .job-search { grid-template-columns: 1fr; margin-bottom: 40px; }
  .job-card { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .job-view { justify-self: start; }
  .job-related { grid-template-columns: 1fr; }
  .apply-form .row-2 { grid-template-columns: 1fr; }
}

/* =========================================================
   Menu with dropdowns
   ========================================================= */
.nav-links { gap: 2px; }
.nav-item { position: relative; }
.nav-links .nav-top { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; background: none; font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: color 0.2s; }
.nav-links .nav-top:hover, .nav-item:hover > .nav-top, .nav-item.open > .nav-top, .nav-links .nav-top[aria-current="page"] { color: var(--text); }
.nav-top .chev { transition: transform 0.3s var(--ease); }
.nav-item:hover > .nav-top .chev, .nav-item.open > .nav-top .chev { transform: rotate(180deg); }
.nav-item > .nav-top::before, .nav-item > .nav-top::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; border-radius: 2px; }
.nav-item > .nav-top::before { background: var(--brand-light); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.nav-item:hover > .nav-top::before { transform: scaleX(1); }
.nav-item.is-current > .nav-top::after { background: var(--brand); }

.drop { position: absolute; top: 100%; left: 50%; padding-top: 10px; opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s; z-index: 120; }
.nav-item:hover > .drop, .nav-item:focus-within > .drop, .nav-item.open > .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.nav-item.closed > .drop { opacity: 0; visibility: hidden; }
.drop-inner { width: 250px; padding: 6px; display: grid; gap: 0; border-radius: 14px; background: rgba(13, 20, 36, 0.97); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.drop-mega .drop-inner { width: min(640px, calc(100vw - 48px)); grid-template-columns: repeat(3, 1fr); }
.nav-links .drop a.drop-link { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px; color: var(--text-2); font-size: 0.84rem; transition: background 0.2s, color 0.2s; }
.nav-links .drop a.drop-link::before, .nav-links .drop a.drop-link::after { display: none; }
.nav-links .drop a.drop-link:hover, .nav-links .drop a.drop-link:focus-visible { background: rgba(31, 146, 208, 0.1); color: var(--text); text-decoration: none; }
.drop-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-tint); border: 1px solid rgba(84, 184, 238, 0.2); color: var(--brand-light); transition: background 0.2s, color 0.2s, transform 0.3s var(--ease); }
.drop-link:hover .drop-icon { background: var(--grad); color: #fff; transform: scale(1.06); }
.drop-text { display: grid; gap: 2px; min-width: 0; }
.drop-text strong { font-weight: 600; color: var(--text); line-height: 1.3; }
.drop-text small { color: var(--muted); font-size: 0.74rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drop-mega .drop-text small { display: none; }
.drop-icon svg { width: 15px; height: 15px; }
.drop-text strong { font-size: 0.84rem; }

/* mobile groups */
.mobile-menu .m-group { border-bottom: 1px solid var(--line); }
.mobile-menu .m-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border: 0; background: none; font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--text-2); cursor: pointer; }
.mobile-menu .m-head[aria-current="page"] { color: var(--brand-light); }
.mobile-menu .m-head .chev { transition: transform 0.3s var(--ease); }
.mobile-menu .m-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mobile-menu .m-sub { display: grid; padding: 0 0 12px 12px; border-inline-start: 2px solid var(--brand-tint); margin-inline-start: 6px; }
.mobile-menu .m-sub[hidden] { display: none; }
.mobile-menu .m-sub a { padding: 9px 10px; color: var(--muted); font-size: 0.97rem; }
.mobile-menu .m-sub a:hover { color: var(--text); }
.mobile-menu { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }

@media (max-width: 1240px) { .nav-links .nav-top { padding: 8px 11px; font-size: 0.92rem; } }
@media (max-width: 1080px) { .nav-links .nav-top { padding: 8px 8px; } .drop-mega .drop-inner { width: 440px; grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Blog
   ========================================================= */
.blog-section { padding-top: 64px; }
.post-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-img-generated { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 28px; background: linear-gradient(135deg, #0b2342, #070b14 70%); }
.pig-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 178, 220, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 178, 220, 0.07) 1px, transparent 1px); background-size: 36px 36px; }
.pig-glow { position: absolute; width: 70%; aspect-ratio: 1; top: -30%; right: -20%; border-radius: 50%; background: radial-gradient(circle, rgba(31, 146, 208, 0.45), transparent 65%); }
.post-img-generated .pig-cat { position: relative; align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: rgba(31, 146, 208, 0.18); color: var(--brand-light); font-size: 0.75rem; font-weight: 700; }
.post-img-generated strong { position: relative; font-family: var(--font-display); color: var(--text); font-size: 1.35rem; line-height: 1.3; }

.post-cat { display: inline-block; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--brand-tint); border: 1px solid rgba(84, 184, 238, 0.25); color: var(--brand-light); font-size: 0.76rem; font-weight: 700; }
.post-by { display: inline-flex; align-items: center; gap: 12px; }
.post-by > span:last-child { display: grid; line-height: 1.35; }
.post-by strong { color: var(--text); font-size: 0.92rem; }
.post-by small { color: var(--muted); font-size: 0.82rem; }
.post-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 700; }

/* featured */
.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); color: inherit; margin-bottom: 72px; transition: border-color 0.3s, translate 0.4s var(--ease); box-shadow: var(--shadow); }
.post-featured:hover { border-color: rgba(84, 184, 238, 0.4); translate: 0 -4px; text-decoration: none; }
.pf-media { position: relative; overflow: hidden; min-height: 340px; background: #070b14; }
.pf-media .post-img { position: absolute; inset: 0; transition: transform 0.8s var(--ease); }
.post-featured:hover .pf-media .post-img { transform: scale(1.04); }
.pf-body { display: flex; flex-direction: column; gap: 16px; padding: 44px 44px 40px; position: relative; }
.pf-flag { position: absolute; top: 22px; inset-inline-end: 22px; padding: 5px 12px; border-radius: 999px; background: rgba(242, 195, 91, 0.14); color: #f6d37d; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pf-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; color: var(--text); }
.pf-body p { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; }
.pf-body .post-by { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.post-featured .link-arrow svg { transition: transform 0.25s var(--ease); }
.post-featured:hover .link-arrow svg, .post-card:hover .link-arrow svg { transform: translateX(4px); }

/* grid */
.blog-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.blog-bar h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.blog-filters { margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; transition: border-color 0.3s, translate 0.4s var(--ease); }
.post-card[hidden] { display: none; }
.post-card:hover { border-color: rgba(84, 184, 238, 0.35); translate: 0 -6px; text-decoration: none; }
.pc-media { aspect-ratio: 16 / 9; overflow: hidden; background: #070b14; }
.pc-media .post-img { transition: transform 0.7s var(--ease); }
.post-card:hover .pc-media .post-img { transform: scale(1.05); }
.pc-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; }
.pc-body h3 { font-size: 1.15rem; line-height: 1.35; color: var(--text); }
.pc-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.82rem; }
.pc-time { display: inline-flex; align-items: center; gap: 6px; }
.pc-time svg { color: var(--brand-light); }

/* single post */
.post-header h1 { max-width: 900px; }
.post-header .lead { max-width: 760px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.pm-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.pm-item svg { color: var(--brand-light); }
.post-section { padding-top: 0; }
.post-cover { margin-top: -10px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), var(--glow); aspect-ratio: 16 / 9; background: #070b14; }
.post-cover .post-img-generated { height: 100%; padding: 48px; }
.post-cover .post-img-generated strong { font-size: clamp(1.6rem, 3vw, 2.6rem); max-width: 760px; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 64px; justify-content: center; margin-top: 64px; }
.post-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 30px; }
.aside-title { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 12px; }
.post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-inline-start: 2px solid var(--line); counter-reset: toc; }
.post-toc li { counter-increment: toc; }
.post-toc a { display: block; padding: 7px 0 7px 16px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--muted); font-size: 0.9rem; line-height: 1.45; transition: color 0.2s, border-color 0.2s; }
.post-toc a:hover, .post-toc a.active { color: var(--text); border-inline-start-color: var(--brand); text-decoration: none; }

.post-body { min-width: 0; color: var(--text-2); font-size: 1.08rem; line-height: 1.85; }
.post-body > * + * { margin-top: 22px; }
.post-body h2 { margin-top: 52px; font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.25; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
.post-body h2:first-child { margin-top: 0; }
.post-body h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--grad); }
.post-body h3 { margin-top: 36px; font-size: 1.3rem; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
.post-body strong { color: var(--text); }
.post-body a { color: var(--brand-light); text-decoration: underline; text-underline-offset: 3px; }
.post-body hr { border: 0; height: 1px; background: var(--line-strong); margin: 44px 0; }
.post-list { padding: 0; list-style: none; display: grid; gap: 10px; }
.post-list li { position: relative; padding-inline-start: 26px; }
.post-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.post-steps { padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: st; }
.post-steps li { counter-increment: st; position: relative; padding-inline-start: 46px; }
.post-steps li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 0.1em; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-light); font: 700 0.85rem var(--font-display); }
.post-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.post-card-item { position: relative; overflow: hidden; padding: 22px 22px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, translate 0.35s var(--ease); }
.post-card-item:hover { border-color: rgba(84, 184, 238, 0.35); translate: 0 -3px; }
.post-card-item::after { content: ""; position: absolute; width: 160px; height: 160px; bottom: -90px; inset-inline-end: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 146, 208, 0.2), transparent 70%); }
.pci-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; font: 700 0.85rem var(--font-display); box-shadow: var(--glow); }
.post-card-item strong { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 1.08rem; }
.post-card-item p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.post-callout { margin-inline: 0; padding: 22px 26px; border-radius: 16px; background: linear-gradient(120deg, rgba(31, 146, 208, 0.14), rgba(31, 146, 208, 0.03)); border-inline-start: 4px solid var(--brand); color: var(--text); font-size: 1.12rem; }
.post-figure { margin-inline: 0; }
.post-figure img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-strong); }
.post-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 0.88rem; text-align: center; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px !important; }
.post-tags span { padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
.post-cta { margin-top: 44px !important; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 32px; border-radius: 20px; background: linear-gradient(135deg, #1583c2 0%, #0d4f8f 60%, #0a2f5c 100%); position: relative; overflow: hidden; }
.post-cta::after { content: ""; position: absolute; width: 260px; height: 260px; top: -140px; inset-inline-end: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%); pointer-events: none; }
.post-cta h2 { margin: 0; color: #fff; font-size: 1.45rem; }
.post-cta h2::after { display: none; }
.post-cta p { margin-top: 6px; color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; line-height: 1.6; }
.post-cta .btn { flex: none; position: relative; z-index: 1; text-decoration: none; }
.post-services { margin-top: 36px !important; }
.post-services .service-links a { text-decoration: none; }

@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .post-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .post-featured { grid-template-columns: 1fr; }
  .pf-media { min-height: 0; aspect-ratio: 16 / 9; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pf-body { padding: 26px 22px; }
  .post-grid, .post-cards, .post-aside { grid-template-columns: 1fr; }
  .post-cover { border-radius: 16px; }
  .post-body { font-size: 1.02rem; }
  .post-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
}
.post-featured:last-child { margin-bottom: 0; }
.post-aside .share-row { gap: 8px; }
.post-aside .share-row a, .post-aside .share-row button { width: 40px; height: 40px; }

/* Blog: more compact featured card and post cover */
.post-featured { grid-template-columns: 1fr 1fr; max-width: 1040px; margin-inline: auto; border-radius: 20px; }
.pf-media { min-height: 0; aspect-ratio: 16 / 10; }
.pf-body { gap: 12px; padding: 30px 32px 28px; }
.pf-flag { top: 16px; inset-inline-end: 16px; font-size: 0.68rem; padding: 4px 10px; }
.pf-body h2 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
.pf-body p { font-size: 0.95rem; line-height: 1.65; }
.pf-body .post-by { padding-top: 14px; }
.post-featured .post-avatar { width: 34px; height: 34px; font-size: 0.85rem; }
.blog-section .post-cat { font-size: 0.72rem; padding: 4px 10px; }
.post-cover { max-width: 860px; margin-inline: auto; border-radius: 20px; }
.post-figure { max-width: 680px; margin-inline: auto; }
.post-figure img { border-radius: 14px; }
@media (max-width: 960px) { .post-featured { grid-template-columns: 1fr; } }
.post-cover { max-width: 680px; border-radius: 16px; }
.post-cover .post-img-generated { padding: 32px; }
.post-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.post-header .lead { font-size: 1.02rem; }

/* Hide the browser scrollbar (the page still scrolls; the thin bar at the top shows progress) */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 1040px; margin-inline: auto; }
.blog-bar:has(+ .post-grid-2) { max-width: 1040px; margin-inline: auto; }
@media (max-width: 640px) { .post-grid-2 { grid-template-columns: 1fr; } }
.section-head.head-wide { max-width: none; }
@media (min-width: 900px) { .section-head.head-wide h2 { white-space: nowrap; } }
.field .cv-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.field:has(.cv-input) { position: relative; }

/* =========================================================
   Mobile polish (phones and small tablets)
   ========================================================= */
@media (max-width: 960px) {
  /* job and service pages: the side card (details) comes before the long content */
  /* job page: only the details card moves above the description; share and back links stay below the form */
  .job-layout .detail-side { display: contents; }
  .job-layout .job-details { order: -1; }
  .job-layout .detail-main { order: 0; }
  .job-layout .job-share, .job-layout .detail-side > .btn { order: 1; }
  .detail-side { position: static; }
  .side-cta { display: none; } /* the same box is repeated at the bottom of the page */
}

@media (max-width: 640px) {
  html { -webkit-tap-highlight-color: transparent; }
  body { font-size: 15.5px; }

  /* rhythm: less empty space between sections */
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(1.65rem, 7.4vw, 2rem); line-height: 1.2; }
  .section-head p { font-size: 0.98rem; }
  .section-head-row { margin-bottom: 32px; gap: 18px; }
  .cta { padding: 40px 0; }
  .cta-box { padding: 24px 20px; gap: 18px; }

  /* inner page headers */
  .page-header { padding: calc(var(--header-h) + 36px) 0 40px; }
  .page-header h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .page-header .lead { font-size: 0.98rem; margin-top: 12px; }
  .post-header h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }

  /* home hero */
  .hero { padding: calc(var(--header-h) + 28px) 0 48px; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .hero-inner { gap: 36px; }

  /* service cards: compact, icon beside the title */
  .service { padding: 22px 20px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .service .service-icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .service .service-icon svg { width: 22px; height: 22px; }
  .service h3 { margin: 2px 0 6px; font-size: 1.05rem; }
  .service p { font-size: 0.9rem; grid-column: 2; }
  .service .link-arrow { grid-column: 2; margin-top: 12px; }
  .services-grid { gap: 12px; }

  /* about: industries two per row */
  .industries { grid-template-columns: 1fr 1fr; gap: 10px; }
  .industry { padding: 18px 14px; }
  .industry h3 { font-size: 0.95rem; }
  .industry p, .industry small { font-size: 0.8rem; }

  /* footer: links side by side instead of one long column */
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-bottom: 36px; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col a, .footer-col span { margin-bottom: 9px; font-size: 0.88rem; }
  .footer-bottom { gap: 10px; }

  /* tidy cards and forms */
  .post-card .pc-body { padding: 18px 18px 16px; }
  .job-card { padding: 20px 18px; }
  .apply-card, .form-card { padding: 24px 18px; }
  .side-card { padding: 22px 20px; }
  .brand-card { margin-inline: auto; }

  /* blog article */
  .post-layout { margin-top: 36px; }
  .post-body h2 { margin-top: 40px; }
  .post-cards { gap: 10px; }
  .post-card-item { padding: 18px; }

  /* comparison table and why-us cards */
  .wc-grid { gap: 12px; margin-top: 28px; }
  .wc-compare { margin-top: 28px; }
  .wc-promises { margin-top: 28px; gap: 10px; }
}

@media (max-width: 380px) {
  .industries { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; }
}
.post-figure a { display: block; cursor: zoom-in; }
@media (max-width: 960px) and (min-width: 641px) { .hero-visual { margin-inline: auto; } .hero { padding-bottom: 64px; } }

/* Client logos on projects */
.project-cover { position: relative; }
.proj-logo { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: grid; place-items: center; height: 40px; padding: 7px 12px; border-radius: 10px; background: rgba(7, 11, 20, 0.82); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7); }
.proj-logo img { height: 100%; width: auto; max-width: 120px; object-fit: contain; }
.gen-cover .gc-logo { width: auto; min-width: 0; padding: 6px 10px; background: rgba(7, 11, 20, 0.6); }
.gen-cover .gc-logo img { height: 26px; width: auto; max-width: 110px; object-fit: contain; }
.project-logo { display: inline-flex; align-items: center; height: 56px; padding: 10px 16px; margin-bottom: 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); }
.project-logo img { height: 100%; width: auto; max-width: 180px; object-fit: contain; }
@media (max-width: 640px) { .proj-logo { height: 34px; left: 10px; bottom: 10px; } .project-logo { height: 48px; } }

.not-included li { color: var(--text-2); }
.tick.tick-off { background: rgba(240, 106, 111, 0.12); color: #f06a6f; }
.project-cover .proj-logo img { position: static; width: auto; height: 100%; max-width: 110px; aspect-ratio: auto; object-fit: contain; transform: none; }
.proj-logo { height: 34px; padding: 6px 10px; }
.project-logo { display: flex; width: fit-content; }
.project:hover .project-cover .proj-logo img { transform: none; }
.proj-logo { display: flex; align-items: center; } .project-cover .proj-logo img { height: 22px; max-width: 100px; }
/* square client logos (e.g. Chawla) read better a little larger */
.gen-cover .gc-logo { padding: 6px; border-radius: 12px; background: #fff; }
.gen-cover .gc-logo img { height: 52px; max-width: 120px; }
.project-logo { height: 72px; padding: 8px 14px; }
.project-showcase .gen-cover .gc-logo img { height: 72px; }

/* white chip for dark-coloured client logos */
.proj-logo.light, .project-logo.light { background: #fff; border-color: rgba(255, 255, 255, 0.6); }

/* =========================================================
   Show every picture in full (no cropping)
   ========================================================= */
/* project cards: the whole picture is always visible */
.project-cover img { object-fit: contain; object-position: center; background: #0c1424; }
/* project page: the frame takes the picture's own shape, on every screen size */
.project-showcase:not(.is-generated) .showcase-media { aspect-ratio: auto; }
.project-showcase:not(.is-generated) .showcase-media img { height: auto; object-fit: contain; }
/* home hero laptop frame: same, follow the picture's shape */
.hero-shot:has(> img) { aspect-ratio: auto; }
.hero-shot > img, .browser img { height: auto; aspect-ratio: auto; object-fit: contain; }
/* hero phone: the picture fills the whole screen, no empty bands */
.phone-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: left top; }
/* never zoom project pictures on hover/tap (it cut the edges) */
.project:hover .project-cover img, a.hero-project:hover .hero-shot > img { transform: none; }

/* "Concept" label for in-house projects */
.concept-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(242, 195, 91, 0.16); border: 1px solid rgba(242, 195, 91, 0.5); color: #f6d37d; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.project-cover .concept-tag { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; background: rgba(7, 11, 20, 0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.concept-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

/* Contact page: small header so the whole form fits on screen right away */
.page-contact .page-header { padding: calc(var(--header-h) + 22px) 0 22px; }
.page-contact .page-header .eyebrow { display: none; }
.page-contact .page-header h1 { margin-top: 8px; font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.page-contact .page-header .lead { margin-top: 6px; font-size: 1rem; }
.page-contact .section { padding: 26px 0 64px; }
.page-contact .contact-layout { align-items: start; gap: 28px; }
.page-contact .form-card { padding: 24px 28px; }
.page-contact #contactForm { gap: 14px; }
.page-contact .field label, .page-contact .group-label { margin-bottom: 6px; }
.page-contact .field input { padding: 10px 14px; }
.page-contact .field textarea { padding: 10px 14px; height: 96px; min-height: 72px; }
.page-contact .chips { gap: 6px; }
.page-contact .chip { padding: 5px 11px; font-size: 0.8rem; }
.page-contact .group-row { margin-bottom: 8px; }
.page-contact .contact-info { gap: 10px; }
.page-contact .info-card { padding: 16px 18px; }
.info-social { justify-content: space-between; align-items: center; }
.info-social .social { display: flex; gap: 8px; }
@media (max-width: 960px) { .page-contact .contact-layout { display: flex; flex-direction: column-reverse; } }

/* Contact page v2: no separate header, title beside the form */
.page-contact .contact-section { padding: calc(var(--header-h) + 22px) 0 64px; }
.contact-intro { margin-bottom: 8px; }
.contact-intro h1 { margin-top: 14px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
.contact-intro .lead { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.contact-layout.form-only .contact-intro { margin-bottom: 18px; }
@media (max-width: 960px) {
  .page-contact .contact-layout { flex-direction: column; }
  .page-contact .contact-info { display: contents; }
  .page-contact .contact-intro { order: -2; }
  .page-contact .form-card { order: -1; }
}
