:root {
  --bg: #f7f8fc;
  --bg-soft: #eef3ff;
  --surface: #ffffff;
  --surface-strong: #0b1739;
  --text: #0b1739;
  --text-soft: #56617a;
  --text-muted: #7f899f;
  --line: #dfe5f0;
  --line-strong: #cbd4e4;
  --primary: #1769ff;
  --primary-dark: #0c4fd4;
  --secondary: #19a7ff;
  --success: #16a36a;
  --danger: #d93c58;
  --shadow-sm: 0 12px 32px rgba(11, 23, 57, 0.08);
  --shadow-lg: 0 30px 80px rgba(22, 66, 154, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shell: 1180px;
  --header-height: 82px;
  --font: "Manrope", "Cairo", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

[data-theme="dark"] {
  --bg: #070d1d;
  --bg-soft: #0d1730;
  --surface: #101b34;
  --surface-strong: #050a17;
  --text: #f2f6ff;
  --text-soft: #aab6ce;
  --text-muted: #7e8aa4;
  --line: #21304d;
  --line-strong: #30415f;
  --primary: #4d8dff;
  --primary-dark: #75a7ff;
  --secondary: #24b4ff;
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

body.menu-open {
  overflow: hidden;
}

html[lang="ar"] body {
  font-family: "Cairo", "Manrope", sans-serif;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  margin-inline: auto;
  max-width: var(--shell);
  padding-inline: 28px;
  width: 100%;
}

.skip-link {
  background: var(--text);
  color: var(--surface);
  inset-inline-start: 16px;
  padding: 10px 16px;
  position: fixed;
  top: -80px;
  z-index: 999;
}

.skip-link:focus {
  top: 10px;
}

.scroll-progress {
  background: transparent;
  height: 3px;
  inset: 0 0 auto;
  pointer-events: none;
  position: fixed;
  z-index: 130;
}

.scroll-progress span {
  background: linear-gradient(90deg, var(--primary), var(--secondary), #66e0ff);
  box-shadow: 0 0 14px rgba(23, 105, 255, .5);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

[dir="rtl"] .scroll-progress span {
  transform-origin: right center;
}

.cursor-aura {
  --cursor-scale: 1;
  height: 250px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate3d(-400px, -400px, 0) translate(-50%, -50%);
  transition: opacity .24s ease;
  width: 250px;
  will-change: transform;
  z-index: 90;
}

.cursor-aura span {
  background:
    radial-gradient(circle at center,
      color-mix(in srgb, var(--primary) 23%, transparent) 0,
      color-mix(in srgb, var(--secondary) 11%, transparent) 38%,
      transparent 72%);
  border: 1px solid color-mix(in srgb, var(--primary) 13%, transparent);
  border-radius: 50%;
  display: block;
  filter: blur(2px);
  height: 100%;
  transform: scale(var(--cursor-scale));
  transition: transform .22s var(--ease), filter .22s ease;
  width: 100%;
}

.cursor-aura.is-visible {
  opacity: .82;
}

.cursor-aura.is-interactive {
  --cursor-scale: .58;
}

.cursor-aura.is-interactive span {
  filter: blur(0);
}

.cursor-aura.is-pressed {
  --cursor-scale: .42;
  opacity: 1;
}

[data-theme="dark"] .cursor-aura.is-visible {
  opacity: .68;
}

.site-header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid transparent;
  height: var(--header-height);
  inset: 0 0 auto;
  position: fixed;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  z-index: 100;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled,
.site-header.is-solid {
  border-color: var(--line);
  box-shadow: 0 8px 34px rgba(11, 23, 57, .05);
}

.header-inner {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: flex-start;
  overflow: hidden;
  width: 190px;
}

.brand img {
  height: 44px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

[dir="rtl"] .brand img {
  object-position: right center;
}

[data-theme="dark"] .brand {
  background: #fff;
  border-radius: 11px;
  padding: 5px 10px;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 32px;
}

.desktop-nav a {
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 600;
  position: relative;
}

.desktop-nav a::after {
  background: var(--primary);
  border-radius: 9px;
  bottom: -10px;
  content: "";
  height: 2px;
  inset-inline: 50%;
  position: absolute;
  transition: inset .25s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  inset-inline: 0;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.text-control,
.icon-control {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  transition: border-color .2s ease, transform .2s ease;
  width: 40px;
}

.text-control:hover,
.icon-control:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.header-cta {
  background: var(--text);
  border-radius: 999px;
  color: var(--surface);
  font-size: .86rem;
  font-weight: 700;
  margin-inline-start: 6px;
  padding: 10px 19px;
  transition: transform .2s ease, background .2s ease;
}

[data-theme="dark"] .header-cta {
  background: var(--primary);
  color: #fff;
}

.header-cta:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.menu-toggle {
  align-items: center;
  background: var(--text);
  border-radius: 999px;
  display: none;
  flex-direction: column;
  gap: 6px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.menu-toggle span {
  background: var(--surface);
  height: 1.5px;
  transition: transform .2s ease;
  width: 17px;
}

.menu-toggle.open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle.open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: none;
  inset: var(--header-height) 0 auto;
  padding: 18px 24px 24px;
  position: fixed;
  z-index: 99;
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 4px;
}

.hero {
  align-items: center;
  display: flex;
  min-height: min(900px, 100vh);
  overflow: hidden;
  padding: calc(var(--header-height) + 64px) 0 72px;
  position: relative;
}

.hero-grid {
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 8%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  inset: 0;
  mask-image: linear-gradient(to bottom, #000 0, transparent 86%);
  opacity: .55;
  position: absolute;
}

.hero-orb {
  border-radius: 50%;
  filter: blur(1px);
  position: absolute;
}

.hero-orb-one {
  background: radial-gradient(circle, rgba(39, 126, 255, .18), transparent 68%);
  height: 650px;
  inset-inline-end: -180px;
  top: 0;
  width: 650px;
}

.hero-orb-two {
  background: radial-gradient(circle, rgba(61, 197, 255, .10), transparent 68%);
  bottom: -280px;
  height: 560px;
  inset-inline-start: -180px;
  width: 560px;
}

.hero-layout {
  align-items: center;
  display: grid;
  gap: clamp(48px, 7vw, 92px);
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  position: relative;
}

.hero-scroll-cue {
  align-items: center;
  bottom: 24px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  font-size: .62rem;
  font-weight: 800;
  gap: 7px;
  left: 50%;
  letter-spacing: .08em;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
  z-index: 4;
}

[lang="ar"] .hero-scroll-cue {
  letter-spacing: 0;
}

.hero-scroll-cue i {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  font-size: .6rem;
  height: 29px;
  justify-content: center;
  width: 29px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  align-items: center;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 999px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  gap: 10px;
  letter-spacing: .02em;
  margin-bottom: 26px;
  padding: 8px 13px;
}

.eyebrow span {
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 15%, transparent);
  height: 7px;
  width: 7px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.25vw, 5rem);
  letter-spacing: -.065em;
  line-height: 1.04;
  max-width: 760px;
}

[lang="ar"] .hero h1 {
  letter-spacing: -.035em;
  line-height: 1.22;
}

.hero-lead {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  margin-top: 28px;
  max-width: 650px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: .92rem;
  font-weight: 800;
  gap: 11px;
  justify-content: center;
  min-height: 52px;
  overflow: hidden;
  padding: 12px 22px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.button > * {
  position: relative;
  z-index: 1;
}

.button-primary::before {
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.34) 48%, transparent 70%);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-140%);
  transition: transform .65s var(--ease);
}

.button-primary:hover::before {
  transform: translateX(140%);
}

[dir="rtl"] .button-primary::before {
  transform: translateX(140%);
}

[dir="rtl"] .button-primary:hover::before {
  transform: translateX(-140%);
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #3da5ff);
  box-shadow: 0 15px 32px rgba(23, 105, 255, .24);
  color: #fff;
}

.button-primary:hover {
  box-shadow: 0 18px 40px rgba(23, 105, 255, .32);
}

.button-quiet {
  background: var(--surface);
  border-color: var(--line);
}

.button-quiet:hover {
  border-color: var(--primary);
}

.hero-proof {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: .82rem;
  gap: 10px;
  margin-top: 26px;
}

.proof-mark {
  align-items: center;
  background: color-mix(in srgb, var(--success) 12%, var(--surface));
  border-radius: 50%;
  color: var(--success);
  display: flex;
  height: 27px;
  justify-content: center;
  width: 27px;
}

.hero-showcase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-height: 515px;
  position: relative;
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}

.hero-showcase-wrap {
  min-width: 0;
  position: relative;
}

[dir="rtl"] .hero-showcase {
  transform: perspective(1200px) rotateY(4deg) rotateX(1deg);
}

.showcase-topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  display: grid;
  font-size: .72rem;
  grid-template-columns: 1fr auto 1fr;
  padding: 15px 18px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  background: #ff665f;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.window-dots span:nth-child(2) { background: #f7bd42; }
.window-dots span:nth-child(3) { background: #37c96b; }

.secure-pill {
  justify-self: end;
}

.showcase-body {
  padding: 32px;
}

.hero-code-showcase {
  background:
    radial-gradient(circle at 82% 16%, rgba(47, 136, 255, .13), transparent 29%),
    linear-gradient(145deg, #09142d, #071024);
  border-color: rgba(125, 166, 230, .22);
  box-shadow: 0 32px 90px rgba(4, 14, 38, .28);
  color: #dbe8ff;
  overflow: visible;
}

.hero-code-showcase::after {
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.055) 49%, transparent 63%);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-110%);
}

.motion-loaded .hero-code-showcase::after {
  animation: codeSurfaceShine 6.5s ease-in-out 1.3s infinite;
}

.hero-code-showcase .showcase-topbar {
  background: rgba(5, 13, 31, .72);
  border-color: rgba(126, 164, 222, .14);
  color: #8394b3;
}

.hero-code-showcase .secure-pill {
  color: #90a2c3;
}

.hero-showcase-wrap .float-note {
  white-space: nowrap;
  z-index: 3;
}

.code-workspace {
  direction: ltr;
  display: flex;
  flex-direction: column;
  height: 463px;
  padding: 20px;
  position: relative;
}

.code-editor-tabs {
  align-items: center;
  background: rgba(18, 32, 63, .72);
  border: 1px solid rgba(133, 169, 226, .15);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding-inline: 16px;
}

.code-file-tab {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.code-file-tab i {
  color: #58a6ff;
  font-size: .76rem;
}

.code-file-tab span {
  color: #e6efff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .74rem;
  font-weight: 700;
}

.code-file-tab small {
  background: rgba(69, 135, 255, .12);
  border: 1px solid rgba(86, 151, 255, .2);
  border-radius: 999px;
  color: #7eb5ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .55rem;
  padding: 3px 7px;
}

.code-editor-actions {
  display: flex;
  gap: 5px;
}

.code-editor-actions span {
  background: #536784;
  border-radius: 50%;
  height: 4px;
  opacity: .7;
  width: 4px;
}

.code-editor-stage {
  background:
    linear-gradient(rgba(86, 130, 195, .04) 1px, transparent 1px),
    #081127;
  background-size: 100% 27px;
  border: 1px solid rgba(133, 169, 226, .15);
  display: grid;
  flex: 1;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.code-line-numbers,
.code-typing-area {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .74rem;
  line-height: 27px;
  margin: 0;
  padding-block: 20px;
  position: relative;
  white-space: pre-wrap;
  z-index: 2;
}

.code-line-numbers {
  border-inline-end: 1px solid rgba(133, 169, 226, .1);
  color: #435371;
  padding-inline: 0 10px;
  text-align: end;
  user-select: none;
}

.code-typing-area {
  color: #b8d5ff;
  overflow: hidden;
  padding-inline: 17px;
  text-align: start;
  text-shadow: 0 0 18px rgba(76, 151, 255, .12);
}

.code-typing-area code {
  font: inherit;
}

.typing-caret {
  background: #55a4ff;
  box-shadow: 0 0 12px rgba(85, 164, 255, .85);
  display: inline-block;
  height: 1.05em;
  margin-inline-start: 2px;
  transform: translateY(2px);
  width: 2px;
}

.motion-loaded .typing-caret {
  animation: codeCaretBlink .8s steps(1, end) infinite;
}

.code-stage-glow {
  background: radial-gradient(circle, rgba(31, 113, 255, .16), transparent 68%);
  height: 250px;
  pointer-events: none;
  position: absolute;
  right: -80px;
  top: -100px;
  width: 250px;
}

.code-statusbar {
  align-items: center;
  background: linear-gradient(90deg, #1269e8, #338dff);
  border-radius: 0 0 15px 15px;
  color: #fff;
  display: flex;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .56rem;
  justify-content: space-between;
  min-height: 30px;
  padding-inline: 13px;
}

.code-statusbar > span {
  align-items: center;
  display: flex;
  gap: 10px;
}

.code-statusbar i {
  animation: livePulse 1.8s ease-in-out infinite;
  background: #7bf0b5;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(123, 240, 181, .16);
  height: 5px;
  width: 5px;
}

.code-statusbar b,
.code-statusbar em {
  font-style: normal;
  font-weight: 600;
}

.showcase-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.showcase-heading div {
  display: grid;
  gap: 4px;
}

.showcase-heading span {
  color: var(--text-muted);
  font-size: .72rem;
}

.showcase-heading strong {
  font-size: 1.2rem;
}

.live-status {
  align-items: center;
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--success) 20%, var(--line));
  border-radius: 999px;
  color: var(--success) !important;
  display: flex;
  gap: 7px;
  padding: 5px 10px;
}

.live-status i {
  background: var(--success);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 27px;
}

.metric-grid article {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  padding: 18px;
}

.metric-grid span {
  color: var(--text-muted);
  font-size: .68rem;
}

.metric-grid b {
  font-size: 1.85rem;
  letter-spacing: -.05em;
  line-height: 1.25;
}

.metric-grid small {
  color: var(--text-muted);
  font-size: .65rem;
}

.delivery-card {
  align-items: center;
  background: linear-gradient(135deg, #0b1739, #162b61);
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding: 20px;
}

.delivery-icon {
  align-items: center;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  display: flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.delivery-card div:last-child {
  display: grid;
}

.delivery-card b {
  font-size: .88rem;
}

.delivery-card span {
  color: #bac7df;
  font-size: .68rem;
  margin-top: 2px;
}

.mini-chart {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  height: 112px;
  margin-top: 26px;
  padding-inline: 8px;
}

.mini-chart span {
  background: linear-gradient(to top, color-mix(in srgb, var(--primary) 24%, transparent), var(--primary));
  border-radius: 6px 6px 1px 1px;
  flex: 1;
  opacity: .88;
  transform-origin: bottom center;
}

.float-note {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: flex;
  font-size: .72rem;
  font-weight: 800;
  gap: 8px;
  padding: 10px 14px;
  position: absolute;
}

.float-note i {
  color: var(--primary);
}

.float-note-one {
  inset-inline-start: -42px;
  top: 30%;
}

.float-note-two {
  bottom: 13%;
  inset-inline-end: -38px;
}

.stats-strip {
  background: var(--surface-strong);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  border-inline-end: 1px solid rgba(255,255,255,.12);
  padding: 33px 24px;
}

.stat-item:last-child {
  border-inline-end: 0;
}

.stat-item b {
  display: block;
  font-size: 1.75rem;
  letter-spacing: -.04em;
}

.stat-item span {
  color: #9facc6;
  font-size: .75rem;
}

.section {
  padding-block: 112px;
}

.section-intro {
  max-width: 760px;
}

.section-kicker {
  color: var(--primary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

[lang="ar"] .section-kicker {
  letter-spacing: .04em;
}

.section-intro h2,
.projects-hero h1,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
  letter-spacing: -.055em;
  line-height: 1.12;
}

[lang="ar"] .section-intro h2,
[lang="ar"] .projects-hero h1,
[lang="ar"] .contact-copy h2 {
  letter-spacing: -.025em;
  line-height: 1.3;
}

.section-intro > p:last-child {
  color: var(--text-soft);
  font-size: 1rem;
  margin-top: 20px;
  max-width: 630px;
}

.section-about {
  background: var(--surface);
}

.split-intro {
  align-items: end;
  display: grid;
  gap: 72px;
  grid-template-columns: 1fr .75fr;
  max-width: none;
}

.split-intro > p:last-child {
  margin-top: 0;
}

.value-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-height: 230px;
  padding: 28px;
  position: relative;
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}

.value-card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: var(--shadow-sm);
  transform: translateY(-6px);
}

.value-card > span {
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
}

.value-card i {
  color: var(--line-strong);
  font-size: 1.2rem;
  inset-inline-end: 27px;
  position: absolute;
  top: 28px;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-top: 54px;
}

.value-card p {
  color: var(--text-soft);
  font-size: .86rem;
  margin-top: 9px;
}

.section-services {
  background:
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 32%),
    var(--bg);
}

.services-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 56px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr;
  padding: 30px;
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--line));
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.service-icon {
  align-items: center;
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line));
  border-radius: 14px;
  color: var(--primary);
  display: flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.service-card h3 {
  font-size: 1.05rem;
}

.service-card p {
  color: var(--text-soft);
  font-size: .86rem;
  margin-top: 7px;
}

.deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  grid-column: 2;
}

.deliverables span {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 700;
  padding: 5px 9px;
}

.section-work {
  background: var(--surface-strong);
  color: #fff;
}

.section-work .section-kicker {
  color: #67a0ff;
}

.section-heading-row {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.inline-link {
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.25);
  color: #c2cce0;
  display: flex;
  font-size: .84rem;
  font-weight: 700;
  gap: 11px;
  padding-bottom: 7px;
}

.inline-link i {
  transition: transform .2s ease;
}

.inline-link:hover {
  color: #fff;
}

.inline-link:hover i {
  transform: translateX(4px);
}

[dir="rtl"] .inline-link:hover i {
  transform: translateX(-4px);
}

.projects-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 56px;
}

.project-card {
  background: #101c3c;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .25s ease;
}

.project-card:hover {
  border-color: rgba(255,255,255,.3);
  transform: translateY(-7px);
}

.project-visual {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--project-accent) 72%, #09122b), #101c3c);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-visual::before {
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(135deg, #000, transparent);
  position: absolute;
}

.project-visual > img {
  height: 100%;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 2;
}

.project-mockup {
  background: rgba(255,255,255,.96);
  border: 5px solid rgba(255,255,255,.25);
  border-radius: 13px;
  box-shadow: 0 22px 48px rgba(2, 8, 25, .36);
  height: 68%;
  overflow: hidden;
  position: relative;
  transform: rotate(-2.4deg) translateY(6%);
  width: 76%;
  z-index: 1;
}

[dir="rtl"] .project-mockup {
  transform: rotate(2.4deg) translateY(6%);
}

.mockup-bar {
  background: #e9eef8;
  height: 16%;
}

.mockup-content {
  display: grid;
  gap: 6%;
  grid-template-columns: 25% 1fr;
  height: 84%;
  padding: 7%;
}

.mockup-sidebar {
  background: #dce4f2;
  border-radius: 5px;
}

.mockup-panels {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.mockup-panels span {
  background: color-mix(in srgb, var(--project-accent) 18%, #edf2fa);
  border-radius: 5px;
}

.project-body {
  padding: 28px;
}

.project-category {
  color: #79a8ff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-body h3 {
  font-size: 1.28rem;
  margin-top: 8px;
}

.project-body > p {
  color: #a9b6d0;
  font-size: .85rem;
  margin-top: 10px;
}

.project-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 23px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-tags span {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #bdc9df;
  font-size: .62rem;
  padding: 5px 9px;
}

.project-link {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 800;
  gap: 7px;
}

.project-link.disabled {
  color: #7c8ba8;
  cursor: default;
}

.section-process {
  background: var(--surface);
}

.process-layout {
  align-items: start;
  display: grid;
  gap: 90px;
  grid-template-columns: .78fr 1.22fr;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-item {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 46px 150px 1fr;
  padding-block: 27px;
}

.process-item > span {
  color: var(--primary);
  font-size: .7rem;
  font-weight: 800;
}

.process-item h3 {
  font-size: 1rem;
}

.process-item p {
  color: var(--text-soft);
  font-size: .84rem;
}

.contact-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(68, 147, 255, .3), transparent 30%),
    linear-gradient(145deg, #09132f, #0d1e4b);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 90px;
  grid-template-columns: .82fr 1.18fr;
}

.contact-copy .section-kicker {
  color: #70a5ff;
}

.contact-copy > p:not(.section-kicker) {
  color: #afbbd3;
  margin-top: 22px;
  max-width: 500px;
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.contact-details a,
.contact-details p {
  align-items: center;
  color: #d8e1f2;
  display: flex;
  font-size: .82rem;
  gap: 12px;
}

.contact-details i {
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: #79a8ff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.contact-details .contact-facebook:hover {
  color: #fff;
}

.contact-details .contact-facebook:hover i {
  background: #1877f2;
  border-color: #438ff4;
  color: #fff;
}

.contact-details .contact-instagram:hover {
  color: #fff;
}

.contact-details .contact-instagram:hover i {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  color: #0b1739;
  padding: 34px;
}

.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.contact-form label {
  display: grid;
  font-size: .74rem;
  font-weight: 800;
  gap: 7px;
  margin-bottom: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #f7f9fd;
  border: 1px solid #dfe5f0;
  border-radius: 10px;
  outline: none;
  padding: 12px 13px;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #1769ff;
  box-shadow: 0 0 0 4px rgba(23,105,255,.1);
}

.contact-form .invalid {
  border-color: #d93c58;
}

.phone-input-group {
  direction: ltr;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(135px, .72fr) minmax(0, 1.28fr);
}

.country-picker {
  direction: ltr;
  min-width: 0;
  position: relative;
}

.country-code-native {
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px !important;
}

.country-picker-button {
  align-items: center;
  background: #f7f9fd;
  border: 1px solid #dfe5f0;
  border-radius: 10px;
  color: #0b1739;
  display: flex;
  font-size: .78rem;
  font-weight: 700;
  gap: 8px;
  height: 100%;
  justify-content: space-between;
  min-height: 45px;
  padding: 10px 12px;
  width: 100%;
}

.country-picker-button:hover,
.country-picker.is-open .country-picker-button {
  border-color: #1769ff;
}

.country-picker-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(23,105,255,.1);
  outline: none;
}

.country-picker-button i {
  color: #7b879e;
  font-size: .65rem;
  transition: transform .2s ease;
}

.country-picker.is-open .country-picker-button i {
  transform: rotate(180deg);
}

.country-picker-menu {
  background: #fff;
  border: 1px solid #dbe2ef;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(18, 34, 68, .18);
  direction: rtl;
  left: 0;
  min-width: 290px;
  padding: 9px;
  position: absolute;
  top: calc(100% + 7px);
  z-index: 50;
}

.country-picker-menu[hidden] {
  display: none;
}

.country-search-wrap {
  align-items: center;
  display: flex;
  position: relative;
}

.country-search-wrap i {
  color: #8a96ab;
  font-size: .7rem;
  pointer-events: none;
  position: absolute;
  right: 12px;
}

.country-search-wrap input {
  background: #f7f9fd;
  direction: rtl;
  font-size: .72rem;
  padding: 10px 34px 10px 11px;
}

.country-options {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-left: 3px;
}

.country-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #26324b;
  cursor: pointer;
  display: grid;
  font-size: .69rem;
  gap: 8px;
  grid-template-columns: 28px 1fr auto;
  padding: 9px 10px;
  text-align: right;
  width: 100%;
}

.country-option:hover,
.country-option:focus-visible {
  background: #eef4ff;
  color: #1769ff;
  outline: none;
}

.country-option.is-selected {
  background: #e7f0ff;
  color: #1769ff;
  font-weight: 800;
}

.country-option-flag {
  font-size: 1rem;
  text-align: center;
}

.country-option-code {
  direction: ltr;
  font-weight: 800;
}

.country-empty {
  color: #77839a;
  display: block;
  font-size: .68rem;
  padding: 20px 10px;
  text-align: center;
}

.phone-input-group input {
  direction: ltr;
  text-align: left;
}

.phone-detection-note {
  color: #6c7891;
  font-size: .58rem;
  font-weight: 600;
  line-height: 1.7;
}

.button-submit {
  width: 100%;
}

.button-submit:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.form-status {
  color: #56617a;
  font-size: .75rem;
  margin-top: 12px;
  min-height: 24px;
  text-align: center;
}

.form-status.success { color: #12845a; }
.form-status.error { color: #c22e49; }
.honeypot { display: none !important; }

.site-footer {
  background: #050a18;
  color: #fff;
  padding-top: 72px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  padding-bottom: 60px;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand img {
  background: #fff;
  border-radius: 12px;
  height: 48px;
  object-fit: contain;
  padding: 5px 10px;
  width: auto;
}

.footer-brand p {
  color: #8592ad;
  font-size: .82rem;
  margin-top: 20px;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.footer-socials a,
.footer-social-link {
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #9eabc4;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  width: 38px;
}

.footer-socials a:hover,
.footer-social-link:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-links > div {
  display: grid;
  gap: 9px;
}

.footer-links b {
  font-size: .78rem;
  margin-bottom: 5px;
}

.footer-links a {
  color: #8592ad;
  font-size: .75rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #6f7d99;
  display: flex;
  font-size: .7rem;
  justify-content: space-between;
  padding-block: 22px;
}

.footer-bottom-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.projects-page {
  background: var(--surface-strong);
}

.projects-page .site-header {
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

.projects-page .text-control,
.projects-page .icon-control {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.13);
  color: #fff;
}

.projects-page .header-cta {
  background: var(--primary);
  color: #fff;
}

.projects-hero {
  background:
    radial-gradient(circle at 70% 20%, rgba(31,112,255,.3), transparent 30%),
    var(--surface-strong);
  color: #fff;
  padding: calc(var(--header-height) + 80px) 0 90px;
}

.projects-hero .shell {
  max-width: 900px;
}

.projects-hero .section-kicker {
  color: #6ca2ff;
  margin-top: 48px;
}

.projects-hero h1 {
  max-width: 800px;
}

.projects-hero p:last-child {
  color: #a8b4ca;
  margin-top: 20px;
  max-width: 620px;
}

.back-link {
  align-items: center;
  color: #b9c5da;
  display: inline-flex;
  font-size: .78rem;
  gap: 9px;
}

[dir="rtl"] .back-link i {
  transform: rotate(180deg);
}

.projects-archive {
  background: var(--surface-strong);
  padding-top: 20px;
}

.projects-grid-all {
  margin-top: 0;
}

.compact-footer {
  padding-top: 0;
}

.reveal {
  --reveal-delay: 0ms;
  filter: blur(7px);
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.985);
  transition:
    opacity .78s var(--ease) var(--reveal-delay),
    filter .78s var(--ease) var(--reveal-delay),
    transform .78s var(--ease) var(--reveal-delay);
  will-change: opacity, filter, transform;
}

.reveal[data-reveal="left"] {
  transform: translate3d(-36px, 0, 0);
}

.reveal[data-reveal="right"] {
  transform: translate3d(36px, 0, 0);
}

[dir="rtl"] .reveal[data-reveal="left"] {
  transform: translate3d(36px, 0, 0);
}

[dir="rtl"] .reveal[data-reveal="right"] {
  transform: translate3d(-36px, 0, 0);
}

.reveal[data-reveal="scale"] {
  transform: translate3d(0, 22px, 0) scale(.955);
}

.reveal.visible {
  filter: none;
  opacity: 1;
  transform: none;
  will-change: auto;
}

.motion-card {
  --card-lift: 0px;
  --spot-x: 50%;
  --spot-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  isolation: isolate;
  position: relative;
  transform-style: preserve-3d;
}

.motion-card::after {
  background: radial-gradient(360px circle at var(--spot-x) var(--spot-y), rgba(89, 161, 255, .15), transparent 58%);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity .25s ease;
  z-index: 3;
}

.motion-card.motion-settled {
  transform:
    perspective(1100px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(var(--card-lift));
  transition: border-color .25s ease, box-shadow .25s ease, transform .18s ease-out;
  will-change: transform;
}

.motion-card.motion-settled:hover {
  --card-lift: -7px;
  transition-delay: 0s;
}

.motion-card:hover::after {
  opacity: 1;
}

.motion-card.project-card::after {
  background: radial-gradient(480px circle at var(--spot-x) var(--spot-y), rgba(116, 174, 255, .16), transparent 60%);
}

.motion-card.project-card:hover .project-visual > img {
  transform: scale(1.035);
}

.project-visual > img {
  transition: transform .7s var(--ease);
}

.service-card:hover .service-icon,
.value-card:hover > i {
  transform: rotate(-5deg) scale(1.08);
}

.service-icon,
.value-card > i {
  transition: transform .3s var(--ease), background .3s ease, color .3s ease;
}

.process-item.reveal.visible {
  transition: background .25s ease, opacity .78s var(--ease), transform .3s var(--ease);
}

.process-item.reveal.visible:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 5%, transparent), transparent);
  transform: translateX(7px);
  transition-delay: 0s;
}

[dir="rtl"] .process-item.reveal.visible:hover {
  transform: translateX(-7px);
}

.contact-details .reveal.visible {
  transition: color .2s ease, opacity .78s var(--ease), transform .25s var(--ease);
}

.contact-details .reveal.visible:hover {
  transform: translateX(6px);
  transition-delay: 0s;
}

[dir="rtl"] .contact-details .reveal.visible:hover {
  transform: translateX(-6px);
}

.motion-ready .site-header {
    opacity: 0;
    transform: translateY(-18px);
  }

  .motion-ready.motion-loaded .site-header {
    opacity: 1;
    transform: none;
    transition:
      background .25s ease,
      border-color .25s ease,
      box-shadow .25s ease,
      opacity .65s var(--ease) .05s,
      transform .65s var(--ease) .05s;
  }

  .motion-ready .hero-copy > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }

  .motion-ready.motion-loaded .hero-copy > * {
    opacity: 1;
    transform: none;
  }

  .motion-ready.motion-loaded .hero-copy > :nth-child(1) { transition-delay: .12s; }
  .motion-ready.motion-loaded .hero-copy > :nth-child(2) { transition-delay: .2s; }
  .motion-ready.motion-loaded .hero-copy > :nth-child(3) { transition-delay: .29s; }
  .motion-ready.motion-loaded .hero-copy > :nth-child(4) { transition-delay: .38s; }
  .motion-ready.motion-loaded .hero-copy > :nth-child(5) { transition-delay: .47s; }

  .motion-ready .showcase-heading,
  .motion-ready .metric-grid,
  .motion-ready .delivery-card {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
  }

  .motion-ready.motion-loaded .showcase-heading,
  .motion-ready.motion-loaded .metric-grid,
  .motion-ready.motion-loaded .delivery-card {
    opacity: 1;
    transform: none;
  }

  .motion-ready.motion-loaded .showcase-heading { transition-delay: .54s; }
  .motion-ready.motion-loaded .metric-grid { transition-delay: .64s; }
  .motion-ready.motion-loaded .delivery-card { transition-delay: .74s; }

  .motion-ready .hero-showcase {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(.965);
    transition: opacity .95s var(--ease) .25s, transform 1.05s var(--ease) .25s;
  }

  .motion-ready.motion-loaded .hero-showcase {
    opacity: 1;
    transform: none;
  }

  .motion-ready.motion-loaded .mini-chart span {
    animation: chartBarIn .8s var(--ease) both;
  }

  .motion-ready.motion-loaded .mini-chart span:nth-child(1) { animation-delay: .58s; }
  .motion-ready.motion-loaded .mini-chart span:nth-child(2) { animation-delay: .64s; }
  .motion-ready.motion-loaded .mini-chart span:nth-child(3) { animation-delay: .7s; }
  .motion-ready.motion-loaded .mini-chart span:nth-child(4) { animation-delay: .76s; }
  .motion-ready.motion-loaded .mini-chart span:nth-child(5) { animation-delay: .82s; }
  .motion-ready.motion-loaded .mini-chart span:nth-child(6) { animation-delay: .88s; }
  .motion-ready.motion-loaded .mini-chart span:nth-child(7) { animation-delay: .94s; }

  .live-status i {
    animation: livePulse 1.9s ease-out infinite;
  }

  .motion-ready.motion-loaded .float-note-one {
    animation: floatingNote 4.2s ease-in-out .9s infinite;
  }

.motion-ready.motion-loaded .float-note-two {
    animation: floatingNote 4.8s ease-in-out 1.25s infinite reverse;
}

@media (min-width: 1061px) {
  .hero {
    --showcase-base-y: -4deg;
  }

  [dir="rtl"] .hero {
    --showcase-base-y: 4deg;
  }

  .hero-grid {
    transform: translate3d(0, var(--hero-grid-shift, 0px), 0);
    transition: transform .18s linear;
    will-change: transform;
  }

  .hero-orb-one {
    transform: translate3d(
      var(--orb-one-x, 0px),
      calc(var(--orb-one-y, 0px) + var(--hero-orb-shift, 0px)),
      0
    );
  }

  .hero-orb-two {
    transform: translate3d(
      var(--orb-two-x, 0px),
      calc(var(--orb-two-y, 0px) + var(--hero-orb-shift, 0px)),
      0
    );
  }

  .hero-orb {
    transition: transform .45s var(--ease);
    will-change: transform;
  }

  .motion-ready .hero-showcase {
    transform:
      perspective(1200px)
      rotateY(var(--showcase-base-y))
      rotateX(1deg)
      translate3d(42px, 32px, 0)
      scale(.95);
  }

  [dir="rtl"] .motion-ready .hero-showcase {
    transform:
      perspective(1200px)
      rotateY(var(--showcase-base-y))
      rotateX(1deg)
      translate3d(-42px, 32px, 0)
      scale(.95);
  }

  .motion-ready.motion-loaded .hero-showcase,
  [dir="rtl"] .motion-ready.motion-loaded .hero-showcase {
    transform:
      perspective(1200px)
      rotateY(calc(var(--showcase-base-y) + var(--showcase-ry, 0deg)))
      rotateX(calc(1deg + var(--showcase-rx, 0deg)))
      translate3d(0, 0, 0)
      scale(1);
    transition: opacity .95s var(--ease) .25s, transform .35s ease-out;
    will-change: transform;
  }
}

@keyframes chartBarIn {
  from {
    opacity: 0;
    transform: scaleY(.08);
  }
  to {
    opacity: .88;
    transform: scaleY(1);
  }
}

@keyframes codeCaretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes codeSurfaceShine {
  0%, 68% { transform: translateX(-110%); }
  82%, 100% { transform: translateX(110%); }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 106, .42); }
  70% { box-shadow: 0 0 0 7px rgba(22, 163, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 106, 0); }
}

@keyframes floatingNote {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.motion-ready .site-header {
    animation: headerArrival .72s var(--ease) both;
  }

  .motion-ready .hero-copy > * {
    animation: heroCopyArrival .9s var(--ease) both;
  }

  .motion-ready .hero-copy > :nth-child(1) { animation-delay: .08s; }
  .motion-ready .hero-copy > :nth-child(2) { animation-delay: .18s; }
  .motion-ready .hero-copy > :nth-child(3) { animation-delay: .3s; }
  .motion-ready .hero-copy > :nth-child(4) { animation-delay: .42s; }
  .motion-ready .hero-copy > :nth-child(5) { animation-delay: .54s; }

  .motion-ready .hero-showcase {
    animation: showcaseArrival 1.05s var(--ease) .2s both;
  }

  .motion-ready .showcase-heading,
  .motion-ready .metric-grid,
  .motion-ready .delivery-card {
    animation: showcasePartArrival .72s var(--ease) both;
  }

  .motion-ready .showcase-heading { animation-delay: .5s; }
  .motion-ready .metric-grid { animation-delay: .62s; }
  .motion-ready .delivery-card { animation-delay: .74s; }

  .motion-ready .hero-scroll-cue {
    animation: cueArrival .65s var(--ease) 1.05s both;
  }

.motion-ready .hero-scroll-cue i {
    animation: cueBounce 1.7s ease-in-out 1.7s infinite;
}

@keyframes headerArrival {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroCopyArrival {
  from {
    filter: blur(8px);
    opacity: 0;
    transform: translateY(38px) scale(.985);
  }
  to {
    filter: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes showcaseArrival {
  from {
    clip-path: inset(5% 18% 5% 18% round 30px);
    filter: blur(9px);
    opacity: 0;
  }
  to {
    clip-path: inset(0 round 30px);
    filter: none;
    opacity: 1;
  }
}

@keyframes showcasePartArrival {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cueArrival {
  from {
    filter: blur(5px);
    opacity: 0;
  }
  to {
    filter: none;
    opacity: 1;
  }
}

@keyframes cueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-force) *,
  html:not(.motion-force) *::before,
  html:not(.motion-force) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  html:not(.motion-force) .reveal {
    filter: none;
    opacity: 1;
    transform: none;
  }
  html:not(.motion-force) .scroll-progress {
    display: none;
  }
  html:not(.motion-force) .cursor-aura {
    display: none;
  }
  html:not(.motion-force) .motion-card,
  html:not(.motion-force) .motion-card.motion-settled,
  html:not(.motion-force) .process-item.reveal.visible:hover,
  html:not(.motion-force) .contact-details .reveal.visible:hover {
    transform: none !important;
  }
}

@media (max-width: 1060px) {
  .desktop-nav {
    gap: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 80px);
  }

  .hero-layout {
    gap: 58px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-showcase {
    margin-inline: auto;
    max-width: 620px;
    min-height: 480px;
    transform: none;
    width: 100%;
  }

  .hero-showcase-wrap {
    margin-inline: auto;
    max-width: 620px;
    width: 100%;
  }

  [dir="rtl"] .hero-showcase {
    transform: none;
  }
}

@media (max-width: 900px) {
  .cursor-aura {
    display: none;
  }

  :root {
    --header-height: 74px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .brand {
    width: 170px;
  }

  .split-intro,
  .process-layout,
  .contact-layout {
    gap: 46px;
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: auto;
  }

  .value-card h3 {
    margin-top: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-inline-end: 0;
  }

  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
}

@media (max-width: 680px) {
  .shell {
    padding-inline: 18px;
  }

  .process-layout,
  .process-list,
  .contact-layout,
  .contact-copy,
  .contact-form,
  .contact-details {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .reveal[data-reveal="left"],
  .reveal[data-reveal="right"],
  [dir="rtl"] .reveal[data-reveal="left"],
  [dir="rtl"] .reveal[data-reveal="right"] {
    transform: translate3d(0, 24px, 0);
  }

  .reveal.visible,
  [dir="rtl"] .reveal.visible {
    transform: none;
  }

  .brand {
    height: 42px;
    width: 150px;
  }

  .brand img {
    height: 38px;
  }

  .text-control,
  .icon-control {
    height: 36px;
    width: 36px;
  }

  .menu-toggle {
    height: 38px;
    width: 38px;
  }

  .hero {
    align-items: flex-start;
    min-height: 0;
    padding: calc(var(--header-height) + 48px) 0 58px;
  }

  .hero-grid {
    background-size: 52px 52px;
  }

  .hero-layout {
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .hero-lead {
    margin-top: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 30px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    align-items: flex-start;
  }

  .hero-showcase {
    border-radius: 22px;
    min-height: 0;
  }

  .showcase-topbar {
    grid-template-columns: 1fr auto;
  }

  .showcase-topbar > span:nth-child(2) {
    display: none;
  }

  .showcase-body {
    padding: 22px;
  }

  .code-workspace {
    height: 410px;
    padding: 14px;
  }

  .code-line-numbers,
  .code-typing-area {
    font-size: .64rem;
    line-height: 24px;
  }

  .code-editor-stage {
    background-size: 100% 24px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .code-typing-area {
    padding-inline: 12px;
  }

  .code-file-tab small {
    display: none;
  }

  .metric-grid {
    margin-top: 20px;
  }

  .delivery-card {
    padding: 16px;
  }

  .mini-chart {
    display: none;
  }

  .float-note {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    padding: 24px 16px;
  }

  .section {
    padding-block: 78px;
  }

  .section-intro h2,
  .projects-hero h1,
  .contact-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .value-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .service-card {
    gap: 16px;
    grid-template-columns: auto 1fr;
    padding: 22px;
  }

  .deliverables {
    grid-column: 1 / -1;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .project-body {
    padding: 22px;
  }

  .process-item {
    gap: 12px;
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .process-item h3,
  .process-item p {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .process-item p {
    grid-column: 2;
  }

  .contact-details a,
  .contact-details p {
    align-items: flex-start;
    max-width: 100%;
    min-width: 0;
  }

  .contact-details i {
    flex: 0 0 34px;
  }

  .contact-details a span,
  .contact-details p span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-form {
    padding: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .phone-input-group {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 34px;
  }

  .footer-links {
    gap: 54px;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: row;
    gap: 16px;
  }

  .projects-hero {
    padding: calc(var(--header-height) + 54px) 0 66px;
  }
}

@media (max-width: 380px) {
  .brand {
    width: 122px;
  }

  .header-actions {
    gap: 5px;
  }

  .eyebrow {
    align-items: flex-start;
    border-radius: 14px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
  }
}
