/* ==========================================================================
   ORAFDEV — Night & Signal design system
   Colours sampled from the official logo: the D's stroke runs signal cyan
   (#00BBFF) through volt blue (#2F5BFB) to ultraviolet (#6627FA); the O is
   logo white (#F1F2FA); everything sits on the logo's deep navy night.
   ========================================================================== */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  /* Surfaces: navy night, stepping up in blue rather than grey */
  --bg: #050A1F;
  --bg-2: #070E28;
  --surface: #0A1433;
  --surface-2: #0F1B42;
  --surface-3: #162452;
  --line: rgba(140, 170, 255, 0.12);
  --line-2: rgba(140, 170, 255, 0.21);
  --line-3: rgba(140, 170, 255, 0.34);

  /* Text: the logo's white, and a blue-tinted mute */
  --fg: #F1F2FA;
  --fg-2: #C9D1EE;
  --muted: #8E9AC6;

  /* The logo's three colours, at full strength */
  --ion: #00BBFF;      /* signal cyan — top of the D */
  --azure: #2F5BFB;    /* volt blue — the D's body, the code brackets */
  --iris: #6627FA;     /* ultraviolet — the D's tail */
  --ion-rgb: 0, 187, 255;
  --azure-rgb: 47, 91, 251;
  --iris-rgb: 102, 39, 250;
  --accent-text: #3CCBFF;
  /* The D: cyan into blue into violet, top to bottom like the stroke */
  --duo: linear-gradient(100deg, var(--ion), var(--azure) 52%, var(--iris));
  --brand: linear-gradient(160deg, #00BBFF 0%, #2F5BFB 52%, #6627FA 100%);
  /* Button fill: the D, deepened just enough for white text to stay readable */
  --brand-btn: linear-gradient(115deg, #0F6BE8 0%, #3352F7 50%, #6627FA 100%);

  --shadow-1: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -24px rgba(0, 3, 20, .7);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -40px rgba(0, 3, 20, .8);

  /* Type */
  --font-display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --font: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.6rem, 6vw, 5.6rem);
  --fs-xxl: clamp(2.4rem, 5.4vw, 4.8rem);
  --fs-xl: clamp(2.1rem, 4.1vw, 3.6rem);
  --fs-l: clamp(1.6rem, 2.5vw, 2.25rem);
  --fs-m: 1.25rem;
  --fs-s: 1.0625rem;

  /* Shape + rhythm */
  --r-xl: 24px;
  --r-l: 18px;
  --r-m: 12px;
  --r-s: 8px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(84px, 9vw, 128px);
  --nav-h: 80px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F4F6FD;
  --bg-2: #ECF0FB;
  --surface: #FFFFFF;
  --surface-2: #F1F4FC;
  --surface-3: #E4E9F8;
  --line: rgba(10, 24, 80, 0.09);
  --line-2: rgba(10, 24, 80, 0.16);
  --line-3: rgba(10, 24, 80, 0.27);
  --fg: #081236;
  --fg-2: #26325A;
  --muted: #56618A;
  --accent-text: #1F4FE6;
  --shadow-1: 0 1px 2px rgba(10, 24, 80, .05), 0 18px 36px -24px rgba(10, 24, 80, .24);
  --shadow-2: 0 1px 2px rgba(10, 24, 80, .06), 0 36px 70px -36px rgba(10, 24, 80, .32);
  color-scheme: light;
}

/* Screens and system visuals stay dark in both themes */
.dark-scope,
:root[data-theme="light"] :is(.panel-media, .mod-visual, .stack-viz, .hero-canvas, .case-visual) {
  --bg: #050A1F; --bg-2: #070E28; --surface: #0A1433; --surface-2: #0F1B42; --surface-3: #162452;
  --line: rgba(140, 170, 255, 0.12); --line-2: rgba(140, 170, 255, 0.21); --line-3: rgba(140, 170, 255, 0.34);
  --fg: #F1F2FA; --fg-2: #C9D1EE; --muted: #8E9AC6; --accent-text: #3CCBFF;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: var(--ion); color: #050A1F; }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 300;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--r-m); font-weight: 600; transition: top .2s;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }

/* Type */
.hero-title, .h-xxl, .h-xl, .h-l, .panel-title, .footer-statement, .price, .stat dd {
  font-family: var(--font-display);
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.04;
  text-wrap: balance;
}
.h-xxl { font-size: var(--fs-xxl); }
.h-xl { font-size: var(--fs-xl); }
.h-l { font-size: var(--fs-l); letter-spacing: -0.025em; line-height: 1.08; }
.h-m { font-family: var(--font-display); font-size: var(--fs-m); font-weight: 600; color: var(--fg); line-height: 1.25; letter-spacing: -0.01em; }
.h-s { font-family: var(--font-display); font-size: var(--fs-s); font-weight: 600; color: var(--fg); line-height: 1.3; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.2rem); color: var(--muted); line-height: 1.6; max-width: 36em; text-wrap: pretty; }
p { text-wrap: pretty; }

.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(44px, 6vw, 80px); }

/* ==========================================================================
   Logo
   ========================================================================== */
.logo { display: block; width: 88px; flex: none; }
.logo img { width: 100%; height: auto; }
.logo-lg { width: 132px; }
:root[data-theme="light"] .logo { background: #050A1F; border-radius: 10px; padding: 6px 9px; box-sizing: content-box; width: 74px; }
:root[data-theme="light"] .logo-lg { width: 112px; padding: 10px 14px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-m);
  font-weight: 600; font-size: .9375rem; letter-spacing: .005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease-out), background-color .25s, border-color .25s, box-shadow .3s, color .25s;
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--brand-btn); background-size: 170% 100%; background-position: 0% 0;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(var(--ion-rgb), .35), 0 12px 30px -14px rgba(var(--azure-rgb), .9);
  transition: transform .35s var(--ease-out), background-position .6s var(--ease-out), box-shadow .35s, color .25s;
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(var(--ion-rgb), .7), 0 0 0 4px rgba(var(--ion-rgb), .16), 0 18px 44px -14px rgba(var(--ion-rgb), .75);
}
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--line-3); background: var(--surface-2); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Live view: a light that flows around the border */
.live-btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 20px; border-radius: var(--r-m);
  background: var(--surface-2); color: var(--fg); font-weight: 600; font-size: .9375rem;
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer; transition: background .3s, box-shadow .3s, transform .35s var(--ease-out);
}
.live-btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang), transparent 0deg, transparent 200deg, var(--ion) 260deg, var(--iris) 310deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: orbit-ang 3.6s linear infinite;
}
.live-btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: radial-gradient(120% 140% at 0% 50%, rgba(var(--ion-rgb), .16), transparent 60%);
  transition: opacity .35s;
}
.live-btn:hover { background: var(--surface-3); transform: translateY(-1px); }
.live-btn:hover::before { animation-duration: 1.4s; }
.live-btn:hover::after { opacity: 1; }
.live-arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.live-btn:hover .live-arrow { transform: translateX(5px); }
.live-soon { display: none; }
.live-btn.is-soon { cursor: default; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.live-btn.is-soon::before { animation: none; opacity: .35; }
.live-btn.is-soon:hover { transform: none; background: transparent; }
.live-btn.is-soon .live-arrow { display: none; }
.live-btn.is-soon .live-soon { display: inline; font-size: .8125rem; font-weight: 500; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--fg-2); }
@keyframes orbit-ang { to { --ang: 360deg; } }

/* Touch screens: a press you can feel, and the hero light drifting on its own */
.btn:active, .live-btn:active, .tool-btn:active, .channels a:active { transform: scale(.96); transition-duration: .12s; }
.has-touch .hero-glow { animation: glow-drift 9s var(--ease) infinite alternate; }
@keyframes glow-drift { from { translate: -18% 6%; } to { translate: 8% -6%; } }

.link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 6px; color: var(--fg); font-weight: 600; font-size: .9375rem; position: relative; }
.link-btn::after { content: ""; position: absolute; inset-inline: 6px; bottom: 12px; height: 1px; background: var(--line-3); transition: background .3s; }
.link-btn:hover::after { background: var(--ion); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: height .4s var(--ease), background-color .4s, border-color .4s; }
.nav.is-scrolled {
  height: 66px;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.nav .logo { transition: width .4s var(--ease); }
.nav.is-scrolled .logo { width: 74px; }
:root[data-theme="light"] .nav.is-scrolled .logo { width: 62px; }
.nav-links { display: flex; gap: 2px; margin-inline-start: auto; }
.nav-links a { position: relative; padding: 10px 14px; font-size: .9375rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }
.nav-links a::after {
  content: ""; position: absolute; inset-inline-start: 14px; bottom: 4px; height: 2px; width: 18px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ion) 0 10px, transparent 10px 13px, var(--iris) 13px 18px);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: transparent; color: var(--fg); font-size: .875rem; font-weight: 600; cursor: pointer; transition: border-color .25s, background .25s; }
.tool-btn:hover { border-color: var(--line-3); background: var(--surface-2); }
.tool-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tool-btn .i-sun { display: none; }
:root[data-theme="light"] .tool-btn .i-sun { display: block; }
:root[data-theme="light"] .tool-btn .i-moon { display: none; }
.lang-btn { font-family: "IBM Plex Sans Arabic", var(--font); }
:root[lang="ar"] .lang-btn { font-family: "Funnel Sans", sans-serif; letter-spacing: .04em; }

.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: transparent; position: relative; cursor: pointer; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 27px; right: 20px; background: var(--ion); }
.menu-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 23px; right: 14px; transform: rotate(-45deg); background: var(--fg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  padding: calc(var(--nav-h) + 12px) var(--gutter) 32px; display: flex; flex-direction: column;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .6s var(--ease-out);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.mobile-menu nav { display: flex; flex-direction: column; margin: auto 0; padding: 24px 0; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 600; color: var(--fg);
  letter-spacing: -0.03em; padding: 8px 0; line-height: 1.15; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .2s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 110px; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-fallback {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(38% 46% at 74% 44%, rgba(var(--azure-rgb), .30), transparent 70%),
    radial-gradient(24% 30% at 84% 24%, rgba(var(--ion-rgb), .24), transparent 70%),
    radial-gradient(30% 36% at 68% 78%, rgba(var(--iris-rgb), .26), transparent 70%),
    radial-gradient(90% 80% at 72% 42%, #0B1A4E, transparent 72%);
}
/* The D's curve as an arc of light: cyan at the top, ultraviolet at the tail */
.hero-fallback::before, .hero-fallback::after {
  content: ""; position: absolute; top: 52%; inset-inline-end: -7vw;
  width: min(68vw, 980px); aspect-ratio: 1; border-radius: 50%;
  translate: 0 -50%; padding: 3px;
  /* the right half of a circle, like the D: cyan at the top, violet at the tail */
  background: conic-gradient(from -12deg, transparent 0deg, var(--ion) 26deg, var(--azure) 96deg, var(--iris) 158deg, transparent 196deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: arc-breathe 8s var(--ease) infinite alternate;
}
.hero-fallback::after { padding: 30px; filter: blur(38px); opacity: .5; }
@keyframes arc-breathe { from { rotate: -6deg; opacity: .75; } to { rotate: 6deg; opacity: 1; } }
:root[data-theme="light"] .hero-fallback {
  background:
    radial-gradient(38% 46% at 74% 44%, rgba(var(--azure-rgb), .16), transparent 70%),
    radial-gradient(24% 30% at 84% 24%, rgba(var(--ion-rgb), .16), transparent 70%),
    radial-gradient(30% 36% at 68% 78%, rgba(var(--iris-rgb), .14), transparent 70%);
}
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--gx, 70%) var(--gy, 40%), rgba(var(--ion-rgb), .06), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 180px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-title { font-size: var(--fs-hero); max-width: 12.5em; line-height: 1; letter-spacing: -0.032em; margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .07em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.hero-title .line:nth-child(3) > span { transition-delay: .16s; }
.is-loaded .hero-title .line > span { transform: none; }
.hero-lead { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--muted); max-width: 32em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.reveal-hero { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.is-loaded .reveal-hero { opacity: 1; transform: none; }
.is-loaded .hero-lead { transition-delay: .4s; }
.is-loaded .hero-actions.reveal-hero { transition-delay: .5s; }
.is-loaded .capabilities { transition-delay: .64s; }
.capabilities { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-top: 48px; font-size: .875rem; color: var(--muted); letter-spacing: .02em; }
.capabilities li { display: inline-flex; align-items: center; }
.capabilities li + li::before { content: ""; width: 22px; height: 2px; margin: 0 14px; border-radius: 2px; background: linear-gradient(90deg, var(--ion) 0 12px, transparent 12px 15px, var(--iris) 15px 22px); opacity: .8; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Experience — the paper band
   ========================================================================== */
/* The experience band: a lifted indigo night, lit at opposite corners by the
   logo's cyan and violet, edged with hairlines of the D. Same in both themes,
   so the gradient numbers always glow on dark. */
.proof {
  --fg: #F1F2FA; --fg-2: #C9D1EE; --muted: #97A3D0; --line: rgba(140, 170, 255, .14); --line-2: rgba(140, 170, 255, .24);
  background:
    radial-gradient(55% 110% at 100% 0%, rgba(var(--ion-rgb), .11), transparent 62%),
    radial-gradient(45% 100% at 0% 100%, rgba(var(--iris-rgb), .15), transparent 62%),
    linear-gradient(180deg, #08123A 0%, #070F31 60%, #080D2E 100%);
  color: var(--fg-2); padding: clamp(80px, 10vw, 136px) 0; position: relative; overflow: hidden; isolation: isolate;
}
/* Light theme: white, washed with the logo's cyan and violet light */
:root[data-theme="light"] .proof {
  --fg: #081236; --fg-2: #26325A; --muted: #56618A; --line: rgba(10, 24, 80, .1); --line-2: rgba(10, 24, 80, .17);
  background:
    radial-gradient(55% 120% at 100% 0%, rgba(var(--ion-rgb), .16), transparent 62%),
    radial-gradient(50% 110% at 0% 100%, rgba(var(--iris-rgb), .13), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, #F6F8FF 100%);
}
.proof::before, .proof::after {
  content: ""; position: absolute; inset-inline: 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(var(--ion-rgb), .7) 20%, rgba(var(--azure-rgb), .7) 55%, rgba(var(--iris-rgb), .7) 85%, transparent);
}
.proof::before { top: 0; }
.proof::after { bottom: 0; opacity: .5; }
:root[data-theme="light"] .proof::before { opacity: .55; }
.proof-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 40px 64px; align-items: end; }
.proof-copy { display: grid; gap: 22px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.stat { display: flex; flex-direction: column-reverse; gap: 10px; padding: 26px 0 0; }
.stat + .stat { padding-inline-start: 28px; border-inline-start: 1px solid var(--line-2); }
.stat dt { font-size: .9375rem; color: var(--muted); }
.stat dd { font-size: clamp(4.5rem, 11vw, 9.5rem); line-height: .85; letter-spacing: -0.06em; display: flex; align-items: flex-start; font-variant-numeric: tabular-nums; }
.stat-num { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .02em; }
.stat-plus { font-size: .42em; letter-spacing: 0; margin-inline-start: .06em; margin-top: .08em; background: var(--duo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof-sign { grid-column: 1 / -1; font-family: var(--font-display); font-size: var(--fs-m); color: var(--fg); padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.proof-sign::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--azure) 0 14px, transparent 14px 18px, var(--iris) 18px 26px); }

/* ==========================================================================
   Selected work — stacking deck
   ========================================================================== */
.deck { display: grid; gap: 28px; }
.panel {
  --shrink: 0;
  position: sticky; top: calc(var(--nav-h) + 8px);
  display: grid; grid-template-columns: 5fr 7fr; min-height: min(74vh, 640px);
  border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(70% 90% at 100% 0%, rgba(var(--tint), .13), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow-2);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--shrink) * .06));
  filter: brightness(calc(1 - var(--shrink) * .35));
}
.panel-info { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 3.6vw, 52px); position: relative; z-index: 1; }
.panel-num { font-family: var(--font-display); font-size: .9375rem; font-weight: 600; color: rgb(var(--tint)); letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
.panel-num::after { content: ""; width: 40px; height: 1px; background: rgba(var(--tint), .5); }
:root[data-theme="light"] .panel-num { filter: brightness(.65) saturate(1.3); }
:root[data-theme="light"] .panel { filter: brightness(calc(1 - var(--shrink) * .06)); }
.project-cat { font-size: .875rem; color: var(--muted); margin-top: 10px; }
.panel-title { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.panel-desc { color: var(--fg-2); max-width: 30em; }
.panel-tech { font-size: .875rem; color: var(--muted); }
.panel-tech:empty { display: none; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.panel-media { position: relative; display: grid; place-items: center; padding: clamp(20px, 2.4vw, 36px); perspective: 1400px; overflow: hidden; background: rgba(5, 10, 31, .35); }
:root[data-theme="light"] .panel-media { background: #070E28; }
.panel-media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 36px 36px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 36px 36px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 60% 50%, #000, transparent);
  opacity: .7;
}
.panel-media > * { --rx: 0deg; --ry: 0deg; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease-out); }

/* Real project images */
.shot { position: relative; width: 100%; max-width: 860px; border-radius: 14px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0, 3, 20, .8), 0 0 0 1px var(--line-2); background: #050A1F; }
.shot img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.panel:hover .shot img, .panel.is-live .shot img { transform: scale(1.03); }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0; transition: background-position 1.2s var(--ease-out); }
.panel:hover .shot::after, .panel.is-live .shot::after { background-position: -30% 0; }
.shot-frame .mk-bar { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #081130; }
.shot-crop img { aspect-ratio: 2.15; object-fit: cover; object-position: top; }

/* Shared mock chrome */
.mk-browser { width: 100%; border-radius: 14px; border: 1px solid var(--line-2); background: #081130; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0, 3, 20, .85); }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.mk-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.mk-url { margin-inline-start: 14px; height: 18px; flex: 0 1 42%; border-radius: 6px; background: var(--surface-2); }
.concept-tag { position: absolute; top: 0; inset-inline-end: 0; font-size: .75rem; color: var(--muted); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(5, 10, 31, .7); backdrop-filter: blur(6px); }

/* Car rental mock */
.mock-rental { position: relative; width: 100%; max-width: 760px; padding: 34px 9% 40px 0; }
.rent-ui { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; padding: 16px; font-size: .8125rem; color: var(--fg-2); }
.rent-list { display: grid; gap: 10px; align-content: start; }
.rent-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.rent-filter b, .rent-filter span { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line-2); font-weight: 500; font-size: .75rem; }
.rent-filter b { background: var(--fg); color: #050A1F; border-color: var(--fg); }
.rent-car { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.rent-car svg { width: 92px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rent-car b { display: block; color: var(--fg); font-size: .875rem; }
.rent-car span { font-size: .75rem; color: var(--muted); }
.rent-car.is-on { border-color: rgba(var(--ion-rgb), .5); background: linear-gradient(90deg, rgba(var(--ion-rgb), .08), var(--surface)); }
.rent-car.is-on svg { stroke: var(--ion); }
.rent-book { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.rent-head { display: flex; justify-content: space-between; align-items: baseline; }
.rent-head b { color: var(--fg); font-size: .9375rem; }
.rent-head span { font-size: .75rem; color: var(--muted); }
.rent-hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rent-hours span { text-align: center; padding: 7px 0; border-radius: 8px; border: 1px solid var(--line-2); font-weight: 600; }
.rent-hours .is-on { background: rgba(var(--ion-rgb), .14); border-color: var(--ion); color: var(--fg); }
.rent-timeline { position: relative; height: 34px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 calc(12.5% - 2px), transparent calc(12.5% - 2px) 12.5%); }
.rent-timeline i { position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 12.5%); width: calc((var(--e) - var(--s)) * 12.5%); border-radius: 8px; background: linear-gradient(90deg, rgba(var(--ion-rgb), .55), rgba(var(--iris-rgb), .55)); box-shadow: 0 0 0 1px rgba(var(--ion-rgb), .6) inset; }
.rent-times { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.rent-cta { margin-top: auto; text-align: center; padding: 10px; border-radius: 9px; background: var(--fg); color: #050A1F; font-weight: 700; font-size: .8125rem; }
.mk-phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 23%; min-width: 132px; aspect-ratio: 9 / 17; border-radius: 22px; border: 1px solid var(--line-3); background: #081130; padding: 18px 12px 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 40px 70px -30px rgba(0, 3, 20, .9); transform: rotate(3deg); font-size: .75rem; color: var(--fg-2); }
.cal b { color: var(--fg); font-size: .8125rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.cal-grid i { aspect-ratio: 1; border-radius: 5px; background: var(--surface-2); }
.cal-grid i.is-on { background: var(--ion); }
.slot { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(var(--ion-rgb), .5); color: var(--fg); font-weight: 600; }
.mk-phone .rent-cta { margin-top: auto; }

/* ATS mock */
.mock-ats { position: relative; width: 100%; max-width: 800px; padding: 34px 0 10px; }
.ats-ui { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; padding: 16px; }
.ats-doc { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.ats-doc b { font-size: .75rem; color: var(--fg); margin-top: 4px; }
.ats-doc i { height: 6px; width: var(--w); border-radius: 3px; background: var(--surface-3); }
.ats-job i:nth-of-type(2), .ats-doc i:nth-of-type(5) { background: rgba(var(--ion-rgb), .45); }
.ats-match { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px; border-radius: 10px; border: 1px solid rgba(var(--iris-rgb), .35); background: linear-gradient(180deg, rgba(var(--iris-rgb), .08), var(--surface)); }
.ats-ring { position: relative; width: 62%; aspect-ratio: 1; display: grid; place-items: center; }
.ats-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ats-ring circle { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.ats-ring .arc { stroke: var(--ion); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.6s var(--ease-out); }
.panel.is-current .ats-ring .arc, .panel:hover .ats-ring .arc { stroke-dashoffset: 72; }
.ats-ring span { font-size: .8125rem; font-weight: 600; color: var(--fg); }
.ats-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.ats-skills span { font-size: .6875rem; padding: 3px 7px; border-radius: 5px; border: 1px dashed var(--line-3); color: var(--muted); }
.ats-skills .is-hit { border-style: solid; border-color: rgba(var(--ion-rgb), .5); color: var(--fg); background: rgba(var(--ion-rgb), .08); }

/* ==========================================================================
   Services — five modules, five identities
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; perspective: 1600px; }
.mod {
  --rx: 0deg; --ry: 0deg; --lx: 50%; --ly: 50%; --acc: var(--ion-rgb);
  position: relative; display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow-1);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), border-color .35s, opacity .9s var(--ease-out);
}
.mod.reveal.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.mod::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--lx) var(--ly), rgba(var(--acc), .1), transparent 60%); transition: opacity .35s; }
.mod:hover, .mod.is-live { border-color: rgba(var(--acc), .35); }
.mod:hover::after, .mod.is-live::after { opacity: 1; }
.mod-web { grid-column: span 7; }
.mod-landing { grid-column: span 5; --acc: var(--iris-rgb); }
.mod-app { grid-column: span 12; grid-template-columns: 5fr 7fr; grid-template-rows: none; --acc: var(--azure-rgb); }
.mod-solutions { grid-column: span 5; --acc: var(--iris-rgb); }
.mod-support { grid-column: span 7; }
.mod-body { display: grid; gap: 12px; align-content: start; padding: 28px 32px 32px; }
.mod-body > p { color: var(--muted); max-width: 34em; }
.mod-app .mod-body { padding: clamp(28px, 3.4vw, 48px); align-content: center; }
.mod-visual { position: relative; min-height: 240px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(70% 90% at 50% 110%, rgba(var(--acc), .2), transparent 70%), #070E28; border-bottom: 1px solid var(--line); }
.mod-app .mod-visual { border-bottom: 0; border-inline-start: 1px solid var(--line); min-height: 340px; }
.caps { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px; }
.caps li { font-size: .8125rem; color: var(--fg-2); padding: 4px 10px; border-radius: 6px; background: var(--surface-2); }

/* websites */
.v-web { position: relative; width: 74%; height: 76%; margin-top: 8%; }
.v-desk { position: absolute; inset: 0 14% 0 0; border-radius: 10px 10px 0 0; border: 1px solid var(--line-2); border-bottom: 0; background: var(--surface); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.v-desk i, .v-mob i { display: block; border-radius: 4px; background: var(--surface-3); }
.v-nav { height: 6px; width: 30%; }
.v-desk .v-hero, .v-mob .v-hero { height: 30%; background: linear-gradient(120deg, rgba(var(--ion-rgb), .5), rgba(var(--azure-rgb), .35)); }
.v-line { height: 6px; width: 60%; }
.v-line.s { width: 40%; }
.v-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; }
.v-cols i { height: 100%; }
.v-mob { position: absolute; inset-inline-end: 0; bottom: -10%; width: 26%; height: 92%; border-radius: 14px; border: 1px solid var(--line-3); background: #081130; padding: 14px 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: -20px 20px 40px -20px rgba(0, 3, 20, .8); transition: transform .7s var(--ease-out); }
.v-mob .v-btn { margin-top: auto; height: 14px; background: var(--ion); }
.mod-web:hover .v-mob, .mod-web.is-live .v-mob { transform: translateY(-10%); }

/* landing funnel */
.v-funnel { width: 76%; display: grid; gap: 10px; justify-items: center; }
.v-funnel span { width: var(--w); padding: 11px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: .8125rem; font-weight: 600; color: var(--fg-2); text-align: center; transition: transform .6s var(--ease-out), background .4s; }
.v-funnel .is-on { background: linear-gradient(90deg, rgba(var(--iris-rgb), .45), rgba(var(--ion-rgb), .35)); border-color: rgba(var(--iris-rgb), .6); color: #fff; box-shadow: 0 16px 40px -16px rgba(var(--iris-rgb), .7); }
.mod-landing:hover .v-funnel span:nth-child(1), .mod-landing.is-live .v-funnel span:nth-child(1) { transform: scaleX(1.03); }
.mod-landing:hover .v-funnel .is-on, .mod-landing.is-live .v-funnel .is-on { transform: scale(1.06); }

/* app */
.v-app { position: relative; width: 84%; height: 74%; display: grid; grid-template-columns: 44px 1fr; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.v-side { border-inline-end: 1px solid var(--line); padding: 12px 10px; display: grid; gap: 10px; align-content: start; }
.v-side i { height: 22px; border-radius: 6px; background: var(--surface-2); }
.v-side i.is-on { background: rgba(var(--azure-rgb), .45); }
.v-main { padding: 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.v-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v-kpis i { height: 46px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.v-chart svg { width: 100%; height: 100%; min-height: 80px; }
.v-chart .area { fill: rgba(var(--azure-rgb), .14); }
.v-chart .ln { fill: none; stroke: var(--azure); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 0; }
.mod-app:hover .v-chart .ln, .mod-app.is-live .v-chart .ln { animation: draw 1.4s var(--ease-out); }
.v-rows { display: grid; gap: 6px; }
.v-rows i { height: 8px; border-radius: 4px; background: var(--surface-2); }
.v-graph { position: absolute; inset-inline-end: -6%; bottom: -10%; width: 36%; overflow: visible; }
.v-graph path { fill: none; stroke: rgba(var(--ion-rgb), .5); stroke-width: 1.4; stroke-dasharray: 4 4; }
.v-graph circle { fill: #081130; stroke: var(--ion); stroke-width: 1.6; }
.mod-app:hover .v-graph path, .mod-app.is-live .v-graph path { animation: dash 1s linear infinite; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: -16; } }

/* solutions: modules snapping together */
.v-blocks { display: grid; grid-template-columns: repeat(3, 58px); gap: 10px; transform: rotateX(50deg) rotateZ(-38deg); transform-style: preserve-3d; }
.v-blocks i { height: 58px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); transition: transform .6s var(--ease-out), background .4s, box-shadow .5s; }
.v-blocks .is-lift { transform: translateZ(26px); background: linear-gradient(135deg, rgba(var(--iris-rgb), .6), rgba(var(--ion-rgb), .4)); box-shadow: 0 0 40px -6px rgba(var(--iris-rgb), .6); }
.mod-solutions:hover .v-blocks i:nth-child(5), .mod-solutions.is-live .v-blocks i:nth-child(5) { transform: translateZ(18px); background: rgba(var(--ion-rgb), .35); }
.mod-solutions:hover .v-blocks i:nth-child(1), .mod-solutions.is-live .v-blocks i:nth-child(1) { transform: translateZ(10px); }

/* support pulse */
.v-pulse { width: 82%; display: grid; gap: 16px; }
.v-pulse svg { width: 100%; height: 70px; }
.v-pulse path { fill: none; stroke: var(--ion); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 340; animation: pulse-line 3.2s var(--ease) infinite; }
@keyframes pulse-line { 0% { stroke-dashoffset: 340; } 60%, 100% { stroke-dashoffset: 0; } }
.v-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v-status span { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: .75rem; color: var(--fg-2); }
.v-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 0 3px rgba(var(--ion-rgb), .18); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 80px; align-items: start; }
.team-head { position: sticky; top: 120px; display: grid; gap: 22px; justify-items: start; }
.disciplines { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.disciplines li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.disciplines svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.disciplines p { color: var(--muted); font-size: .9375rem; margin-top: 6px; }

/* ==========================================================================
   Why + system
   ========================================================================== */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { position: relative; display: grid; gap: 12px; align-content: start; padding: 28px 4px 0; border-top: 1px solid var(--line-2); }
.pillar::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 100%; height: 1px; background: var(--duo); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.pillar:hover::before, .pillar.is-live::before { transform: scaleX(1); }
.pillar svg { width: 30px; height: 30px; fill: none; stroke: var(--accent-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; stroke-dasharray: 80; stroke-dashoffset: 0; }
.pillar:hover svg, .pillar.is-live svg { animation: icon-draw 1.1s var(--ease-out); }
@keyframes icon-draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.pillar p { color: var(--muted); font-size: .9375rem; }

.system { position: relative; margin-top: clamp(64px, 8vw, 110px); padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px) clamp(28px, 3vw, 44px); border-radius: var(--r-xl); border: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 0%, rgba(var(--azure-rgb), .09), transparent 70%), var(--surface); overflow: hidden; }
.system-track { position: absolute; left: 10%; right: 10%; top: calc(clamp(28px, 4vw, 56px) + 70px); height: 2px; background: var(--line-2); border-radius: 2px; }
.system-fill { position: absolute; inset: 0; background: var(--duo); transform: scaleX(var(--p, 0)); transform-origin: left; border-radius: 2px; box-shadow: 0 0 16px rgba(var(--ion-rgb), .5); }
.system-stages { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.system-stages li { display: grid; justify-items: center; text-align: center; gap: 6px; }
.system-stages h3 { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; color: var(--muted); margin-top: 18px; transition: color .5s; }
.system-stages p { font-size: .8125rem; color: var(--muted); opacity: .85; }
.system-stages li.is-on h3 { color: var(--fg); }
.iso { position: relative; width: 104px; height: 104px; margin: 18px 0 0; transform: rotateX(58deg) rotateZ(-45deg); transform-style: preserve-3d; }
.iso i { position: absolute; inset: 0; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); transition: transform .8s var(--ease-out), border-color .6s, background .6s, box-shadow .6s; }
.iso i:nth-child(2) { inset: 14%; }
.iso i:nth-child(3) { inset: 30%; }
.iso-design i:nth-child(2) { inset: 8% 50% 8% 10%; }
.iso-dev i:nth-child(2) { inset: 10% 10% 55% 10%; }
.iso-dev i:nth-child(3) { inset: 55% 10% 10% 10%; }
.iso-deploy i:nth-child(2) { inset: 25%; border-radius: 50%; }
.iso-support i:first-child { border-radius: 50%; }
.system-stages li.is-on .iso i { border-color: rgba(var(--ion-rgb), .6); background: linear-gradient(135deg, rgba(var(--ion-rgb), .14), var(--surface-2)); box-shadow: 0 0 30px -8px rgba(var(--ion-rgb), .5); }
.system-stages li.is-on .iso i:nth-child(1) { transform: translateZ(4px); }
.system-stages li.is-on .iso i:nth-child(2) { transform: translateZ(18px); background: linear-gradient(135deg, rgba(var(--iris-rgb), .35), rgba(var(--ion-rgb), .18)); }
.system-stages li.is-on .iso i:nth-child(3) { transform: translateZ(32px); background: linear-gradient(135deg, rgba(var(--ion-rgb), .5), rgba(var(--azure-rgb), .3)); }
.system-stages li.is-on .iso-support i:first-child { transform: translateZ(14px); background: linear-gradient(135deg, rgba(var(--ion-rgb), .45), rgba(var(--iris-rgb), .35)); }

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 80px; align-items: start; }
.process-head { position: sticky; top: 120px; justify-items: start; }
.timeline { position: relative; display: grid; }
.tl-track { position: absolute; inset-inline-start: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); border-radius: 2px; }
.tl-fill { position: absolute; inset: 0; transform: scaleY(var(--p, 0)); transform-origin: top; background: linear-gradient(180deg, var(--ion), var(--azure) 60%, var(--iris)); box-shadow: 0 0 14px rgba(var(--ion-rgb), .5); border-radius: 2px; }
.tl-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding-block: 30px; padding-inline: 52px 0; border-bottom: 1px solid var(--line); }
.tl-step:last-child { border-bottom: 0; }
.tl-node { position: absolute; inset-inline-start: 4px; top: 38px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-3); background: var(--bg); transition: border-color .4s, background .4s, box-shadow .5s, transform .5s var(--ease-out); }
.tl-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--line-3); line-height: 1.1; transition: color .5s; }
.tl-step h3 { margin-bottom: 6px; }
.tl-step p { color: var(--muted); }
.tl-step > div { opacity: .5; transform: translateX(-6px); transition: opacity .6s, transform .6s var(--ease-out); }
.tl-step.is-active .tl-node { border-color: var(--ion); background: var(--ion); box-shadow: 0 0 0 6px rgba(var(--ion-rgb), .14), 0 0 20px rgba(var(--ion-rgb), .5); transform: scale(1.05); }
.tl-step.is-active .tl-num { color: var(--fg); }
.tl-step.is-active > div { opacity: 1; transform: none; }

/* ==========================================================================
   Technology
   ========================================================================== */
.tech-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.tech-copy { display: grid; gap: 22px; }
.tech-list { margin-top: 10px; border-top: 1px solid var(--line); }
.tech-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 12px; border-bottom: 1px solid var(--line); cursor: default; transition: background .3s; }
.tech-list dt { font-weight: 600; color: var(--fg); font-family: var(--font-display); }
.tech-list dd { color: var(--muted); font-size: .9375rem; }
.tech-list > div.is-active { background: linear-gradient(90deg, rgba(var(--ion-rgb), .08), transparent); }
.tech-list > div.is-active dt { color: var(--accent-text); }
.stack-viz { position: relative; height: 540px; display: grid; place-items: center; border-radius: var(--r-xl); }
.stack-viz::before { content: ""; position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(var(--azure-rgb), .14), transparent); pointer-events: none; }
:root[data-theme="light"] .stack-viz { background: radial-gradient(70% 60% at 50% 60%, rgba(var(--azure-rgb), .16), transparent 70%), #081130; overflow: hidden; }
.stack-scene { position: relative; width: 320px; height: 320px; transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(-42deg); margin-top: 110px; }
.plate {
  position: absolute; inset: 0; border-radius: 18px; padding: 0; cursor: pointer;
  border: 1px solid var(--line-3); background: linear-gradient(135deg, rgba(15, 27, 66, .85), rgba(10, 20, 51, .65));
  transform: translateZ(calc((4 - var(--i)) * 60px));
  transition: transform .6s var(--ease-out), border-color .4s, background .4s, box-shadow .5s;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.plate span { padding: 18px 22px; font-weight: 600; color: var(--muted); font-size: 1.05rem; transition: color .3s; font-family: var(--font-display); }
.plate[data-layer="0"] { --i: 0; } .plate[data-layer="1"] { --i: 1; } .plate[data-layer="2"] { --i: 2; } .plate[data-layer="3"] { --i: 3; } .plate[data-layer="4"] { --i: 4; }
.plate::before { content: ""; position: absolute; inset: 28px; border-radius: 10px; border: 1px dashed var(--line-2); }
.plate.is-active { transform: translateZ(calc((4 - var(--i)) * 60px + 24px)); border-color: rgba(var(--ion-rgb), .7); background: linear-gradient(135deg, rgba(var(--ion-rgb), .2), rgba(15, 27, 66, .8)); box-shadow: 0 0 50px -6px rgba(var(--ion-rgb), .4); }
.plate.is-active span { color: var(--fg); }
.data-path { position: absolute; left: 50%; top: 50%; width: 2px; height: 240px; margin-left: -1px; transform-origin: top center; transform: rotateX(90deg); background: linear-gradient(180deg, rgba(var(--ion-rgb), .6), rgba(var(--iris-rgb), .2)); pointer-events: none; }
.data-path i { position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 12px var(--ion); top: 0; animation: flow 3s linear infinite; }
.data-path i:nth-child(2) { animation-delay: -1s; }
.data-path i:nth-child(3) { animation-delay: -2s; }
@keyframes flow { from { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { top: 100%; opacity: 0; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.voices-head { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.voices-head > div:first-child { display: grid; gap: 18px; }
.carousel-ctrl { display: flex; gap: 8px; }
.ctrl-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: border-color .25s, background .25s; }
.ctrl-btn:hover { border-color: var(--line-3); background: var(--surface-2); }
.ctrl-btn:disabled { opacity: .35; cursor: default; }
.ctrl-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[dir="rtl"] .ctrl-btn svg { transform: scaleX(-1); }
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 8px 2px 24px; perspective: 1400px; cursor: grab; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.quote {
  flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 22px; padding: 32px; min-height: 340px;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform .6s var(--ease-out), opacity .6s, border-color .3s; user-select: none;
}
.quote.is-dim { opacity: .55; transform: scale(.97) rotateY(-3deg); }
.quote:hover { border-color: var(--line-2); }
.quote-mark { width: 34px; height: 34px; fill: rgba(var(--ion-rgb), .5); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--fg); letter-spacing: -0.01em; flex: 1; }
.quote-stars { display: flex; gap: 3px; }
.quote-stars svg { width: 16px; height: 16px; fill: var(--ion); }
.quote footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #050A1F; background: var(--duo); overflow: hidden; }
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-name { color: var(--fg); font-weight: 600; }
.quote-role { font-size: .875rem; color: var(--muted); }
.quote-project { margin-inline-start: auto; font-size: .75rem; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); color: var(--fg-2); white-space: nowrap; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; }
.carousel-dots button { width: 26px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: background .3s, width .3s; }
.carousel-dots button[aria-current="true"] { background: var(--ion); width: 40px; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px 26px 26px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); transition: transform .45s var(--ease-out), border-color .35s, opacity .9s var(--ease-out); }
.plan.reveal.is-in:hover, .plan:hover, .plan.reveal.is-in.is-live { transform: translateY(-6px); border-color: var(--line-3); }
.plan-featured { background: linear-gradient(180deg, var(--surface-2), var(--surface)) padding-box, var(--duo) border-box; border: 1px solid transparent; }
.plan-featured:hover { border-color: transparent; }
.price { font-size: clamp(2.3rem, 3vw, 2.9rem); letter-spacing: -0.04em; line-height: 1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .from, .price .per { font-family: var(--font); font-size: .875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price .per { font-size: 1rem; }
.plan-desc { color: var(--muted); font-size: .9375rem; min-height: 4.8em; }
.plan-feats { display: grid; align-content: start; gap: 10px; padding: 18px 0 22px; border-top: 1px solid var(--line); flex: 1; }
.plan-feats li { position: relative; padding-inline-start: 24px; font-size: .9375rem; color: var(--fg-2); }
.plan-feats li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .45em; width: 10px; height: 5px; border-left: 1.6px solid var(--accent-text); border-bottom: 1.6px solid var(--accent-text); transform: rotate(-45deg); }
.plans-note { margin-top: 28px; color: var(--muted); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { position: relative; padding: clamp(120px, 15vw, 210px) 0; overflow: hidden; text-align: center; isolation: isolate; }
.cta-inner { display: grid; justify-items: center; gap: 26px; }
.cta-inner .h-xxl { max-width: 14em; }
.cta-inner .lead { margin: 0 auto; }
.cta-inner .hero-actions { justify-content: center; margin-top: 6px; }
.cta-system { position: absolute; left: 50%; top: 50%; width: min(1100px, 160vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; }
.orbit { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--line); }
.orbit::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 16px var(--ion); }
.o1 { width: 100%; height: 100%; animation: spin 70s linear infinite; }
.o2 { width: 72%; height: 72%; animation: spin 50s linear infinite reverse; }
.o2::after { background: var(--azure); box-shadow: 0 0 16px var(--azure); }
.o3 { width: 46%; height: 46%; animation: spin 34s linear infinite; }
.o3::after { background: var(--iris); box-shadow: 0 0 16px var(--iris); }
.cta-core { position: absolute; inset: 0; margin: auto; width: 34%; height: 34%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--ion-rgb), .16), rgba(var(--iris-rgb), .08) 55%, transparent); transform: scale(var(--core, .6)); transition: transform .2s linear; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, transparent 30%, var(--bg) 80%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-intro { display: grid; gap: 22px; }
.next-steps { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.next-steps span { font-family: var(--font-display); font-size: .9375rem; font-weight: 600; color: var(--accent-text); padding-top: 1px; }
.next-steps p { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.channels a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-m); border: 1px solid var(--line-2); color: var(--fg); font-size: .9375rem; transition: border-color .25s, background .25s; }
.channels a:hover { border-color: var(--line-3); background: var(--surface-2); }
.channels li[data-missing], .socials li[data-missing] { display: none; }
/* Instagram: the glyph in the logo's gradient, then the handle */
.channels a, .socials a { gap: 9px; }
.socials a { display: inline-flex; align-items: center; }
svg.ig { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--accent-text); stroke-width: 1.8; }
svg.ig .ig-dot { fill: var(--accent-text); stroke: none; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; padding: clamp(24px, 3.5vw, 44px); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); }
.field { display: grid; gap: 8px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 500; color: var(--fg); }
.opt { color: var(--muted); font-weight: 400; margin-inline-start: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field textarea::placeholder { color: var(--muted); opacity: .8; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
.field select option { background: var(--surface); color: var(--fg); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ion); box-shadow: 0 0 0 4px rgba(var(--ion-rgb), .15); }
.field-error { display: none; font-size: .8125rem; color: var(--accent-text); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--iris); box-shadow: 0 0 0 3px rgba(var(--iris-rgb), .16); }
.field.has-error .field-error { display: block; }
.field.has-error label::after { content: " (required)"; color: var(--muted); font-weight: 400; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 6px; }
.form-status { color: var(--muted); font-size: .9375rem; flex: 1 1 220px; }
.form-status.is-ok { color: var(--accent-text); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 110px) 0 0; overflow: hidden; }
.footer-statement { font-size: clamp(2.6rem, 8.4vw, 8.4rem); line-height: .95; letter-spacing: -0.05em; max-width: 11em; margin-bottom: clamp(48px, 6vw, 88px); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 26em; font-size: .9375rem; }
.footer-h { font-size: .875rem; font-weight: 600; color: var(--fg); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: .9375rem; transition: color .2s; }
.footer ul a:hover { color: var(--fg); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0 28px; font-size: .8125rem; color: var(--muted); }

/* ==========================================================================
   WhatsApp, cursor, page veil
   ========================================================================== */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 16px; border-radius: 25px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); color: var(--fg); font-size: .9375rem; font-weight: 600; box-shadow: var(--shadow-2);
  transition: transform .35s var(--ease-out), border-color .3s, opacity .4s;
  opacity: 0; transform: translateY(16px); pointer-events: none;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { border-color: rgba(var(--ion-rgb), .6); }
.wa-float svg { width: 21px; height: 21px; fill: var(--accent-text); }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 300; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--fg); }
  .cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background .3s, border-color .3s, opacity .3s; }
  .cursor.is-hover .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(var(--ion-rgb), .07); border-color: rgba(var(--ion-rgb), .7); }
  .cursor.is-hidden .cursor-dot, .cursor.is-hidden .cursor-ring { opacity: 0; }
}
.page-veil { position: fixed; inset: 0; z-index: 400; pointer-events: none; background: var(--bg); opacity: 0; transition: opacity .45s var(--ease); }
.page-veil span { position: absolute; left: 0; top: 50%; height: 2px; width: 100%; background: var(--duo); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.page-veil.is-active { opacity: 1; pointer-events: all; }
.page-veil.is-active span { transform: scaleX(1); }
.page-veil.is-entering { opacity: 1; }

/* ==========================================================================
   Project pages
   ========================================================================== */
.case-hero { padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(40px, 5vw, 72px); position: relative; overflow: hidden; }
.case-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 85% 10%, rgba(var(--tint, 0, 187, 255), .14), transparent 70%); }
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9375rem; margin-bottom: 40px; transition: color .2s; }
.back::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--iris) 0 5px, transparent 5px 8px, var(--ion) 8px 18px); }
.back:hover { color: var(--fg); }
.case-hero .project-cat { margin: 0; }
.case-hero .h-xxl { margin: 12px 0 22px; }
.case-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-meta dt { font-size: .8125rem; color: var(--muted); margin-bottom: 6px; }
.case-meta dd { color: var(--fg); font-weight: 500; }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.case-visual { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: #050A1F; }
.case-visual img { width: 100%; height: auto; }
.case-visual.is-mock { display: grid; place-items: center; padding: clamp(24px, 5vw, 72px); background: radial-gradient(60% 80% at 50% 0%, rgba(var(--tint, 0, 187, 255), .12), transparent 70%), #070E28; }
.case-body { padding: var(--section) 0; }
.case-section { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 48px; padding: 44px 0; border-top: 1px solid var(--line); }
.case-section h2 { font-family: var(--font-display); font-size: var(--fs-m); font-weight: 600; color: var(--fg); }
.case-section .content { display: grid; gap: 18px; color: var(--muted); font-size: 1.125rem; max-width: 40em; }
.case-points { display: grid; gap: 10px; }
.case-points li { position: relative; padding-inline-start: 24px; }
.case-points li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 10px; height: 5px; border-left: 1.6px solid var(--accent-text); border-bottom: 1.6px solid var(--accent-text); transform: rotate(-45deg); }
.case-next { padding: 0 0 var(--section); }
.case-next a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; padding: 40px 0; border-top: 1px solid var(--line); }
.case-next span { color: var(--muted); font-size: .9375rem; }
.case-next strong { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; color: var(--fg); letter-spacing: -0.035em; line-height: 1.05; transition: color .3s; }
.case-next a:hover strong { color: var(--accent-text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-links a { padding: 10px 10px; }
  .nav-links a::after { inset-inline-start: 10px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan-desc { min-height: 0; }
  .pillars { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .quote { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 1024px) {
  :root { --nav-h: 72px; }
  .nav-links, .nav-cta { display: none; }
  .nav-tools { margin-inline-start: auto; }
  .menu-toggle { display: block; }
  .tool-btn { height: 48px; min-width: 48px; }
  .logo { width: 78px; }
  .nav.is-scrolled { height: 64px; }
  .nav.is-scrolled .logo { width: 70px; }

  .hero { --band: clamp(320px, 44vh, 440px); align-items: flex-start; padding-top: calc(var(--nav-h) + var(--band) - 8px); }
  .hero-canvas { top: calc(var(--nav-h) - 12px); height: var(--band); }
  /* the arc frames the 3D band above the headline instead of crossing it */
  .hero-fallback::before, .hero-fallback::after { top: calc(var(--nav-h) + var(--band) / 2 - 12px); inset-inline-end: 2vw; width: 96vw; }

  .proof-grid { grid-template-columns: 1fr; }
  .team-grid, .process-grid, .tech-grid, .contact-grid { grid-template-columns: 1fr; }
  .team-head, .process-head { position: static; }
  .stack-viz { height: 440px; order: -1; }
  .stack-scene { width: 270px; height: 270px; margin-top: 100px; }

  /* the same stacking deck as on desktop: each card sticks under the nav and recedes as the next slides over */
  .panel { grid-template-columns: 1fr; min-height: 0; top: calc(var(--nav-h) + 8px); }
  .panel-media { order: -1; min-height: 340px; }
  .panel-num { margin-bottom: 0; }
  .project-cat { margin-top: 0; }

  .mod-web, .mod-landing, .mod-solutions, .mod-support { grid-column: span 6; }
  .mod-app { grid-template-columns: 1fr; }
  .mod-app .mod-visual { order: -1; border-inline-start: 0; border-bottom: 1px solid var(--line); min-height: 280px; }

  .system { background: var(--surface); }
  .system-stages { grid-template-columns: 1fr; gap: 0; }
  .system-track { left: calc(clamp(16px, 3vw, 40px) + 51px); right: auto; width: 2px; height: auto; top: 40px; bottom: 40px; }
  .system-fill { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .system-stages li { grid-template-columns: 104px 1fr; justify-items: start; text-align: start; column-gap: 24px; align-items: center; padding: 6px 0; }
  .system-stages li .iso { grid-row: span 2; width: 72px; height: 72px; margin: 14px 16px; }
  .system-stages h3 { margin-top: 0; align-self: end; }
  .system-stages p { align-self: start; }
  :root[dir="rtl"] .system-track { left: auto; right: calc(clamp(16px, 3vw, 40px) + 51px); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .mod-web, .mod-landing, .mod-solutions, .mod-support { grid-column: span 12; }
  .disciplines { grid-template-columns: 1fr; }
  .case-section { grid-template-columns: 1fr; padding: 34px 0; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .quote { flex-basis: 86%; }
  .voices-head { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section: 84px; }
  body { font-size: 1rem; }
  .hero { --band: clamp(230px, 36vh, 320px); padding-bottom: 64px; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 2.8rem); letter-spacing: -0.04em; }
  .hero-lead { margin-bottom: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 34px; font-size: .8125rem; }
  .capabilities li::before, .capabilities li + li::before { content: ""; width: 16px; height: 2px; margin: 0; margin-inline-end: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--ion) 0 9px, transparent 9px 11px, var(--iris) 11px 16px); }

  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line-2); margin-top: 22px; }
  .stat dd { font-size: clamp(4.5rem, 26vw, 7rem); }

  .panel-media { min-height: 0; padding: 22px 16px; }
  .panel-info { padding: 20px 18px 22px; }
  /* mockups keep their desktop layout; main.js zooms them to the card's width */
  .mock-rental { width: 760px; max-width: none; }
  .mock-ats { width: 800px; max-width: none; }
  .panel-info { gap: 10px; }
  .panel-title { font-size: clamp(1.7rem, 7.4vw, 2.1rem); }
  .panel-desc { font-size: .9375rem; }
  .panel-actions .live-btn { flex: 1 1 100%; justify-content: center; }

  .mod-body { padding: 24px 22px 26px; }
  .mod-visual { min-height: 200px; }
  .v-status { grid-template-columns: 1fr 1fr; }
  .v-status span:nth-child(3) { display: none; }

  .tl-step { grid-template-columns: 1fr; padding-block: 24px; padding-inline: 46px 0; gap: 4px; }
  .tl-node { top: 28px; }

  .stack-viz { height: 360px; }
  .stack-scene { width: 210px; height: 210px; margin-top: 80px; }
  .plate { transform: translateZ(calc((4 - var(--i)) * 44px)); }
  .plate.is-active { transform: translateZ(calc((4 - var(--i)) * 44px + 16px)); }
  .plate span { font-size: .875rem; padding: 12px 16px; }
  .data-path { height: 176px; }
  .tech-list > div { grid-template-columns: 1fr; gap: 2px; }

  .plans { grid-template-columns: 1fr; }
  .cta-inner .hero-actions { width: 100%; }
  .form { grid-template-columns: 1fr; padding: 22px 18px; }
  .form-foot .btn { width: 100%; }
  .footer-grid { gap: 32px; }
  .wa-float { inset-inline-end: 16px; bottom: 16px; width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .case-meta { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .nav-inner { gap: 10px; }
  .nav-tools { gap: 4px; }
  .tool-btn { min-width: 44px; height: 44px; padding: 0 9px; }
  .menu-toggle { width: 44px; height: 44px; }
  .menu-toggle span:first-child { top: 17px; }
  .menu-toggle span:last-child { top: 25px; }
  .menu-toggle[aria-expanded="true"] span:first-child, .menu-toggle[aria-expanded="true"] span:last-child { top: 21px; }
}

/* ==========================================================================
   Arabic / RTL
   ========================================================================== */
:root[lang="ar"] { --font: "IBM Plex Sans Arabic", "Funnel Sans", system-ui, sans-serif; --font-display: "IBM Plex Sans Arabic", "Funnel Display", system-ui, sans-serif; }
:root[lang="ar"] body { line-height: 1.75; }
:root[lang="ar"] :is(.hero-title, .h-xxl, .h-xl, .h-l, .h-m, .h-s, .panel-title, .footer-statement, .price, .mobile-menu nav a, .case-next strong, .capabilities, .btn) { letter-spacing: 0; }
:root[lang="ar"] :is(.hero-title, .h-xxl, .h-xl, .panel-title, .footer-statement) { line-height: 1.25; font-weight: 700; }
:root[lang="ar"] .hero-title .line { padding-bottom: .14em; }
:root[lang="ar"] .stat dd { font-family: "Funnel Display", sans-serif; }
:root[lang="ar"] .field.has-error label::after { content: " (مطلوب)"; }
:root[dir="rtl"] .mobile-menu { clip-path: circle(0% at 40px 40px); }
:root[dir="rtl"] .mobile-menu.is-open { clip-path: circle(150% at 40px 40px); }
:root[dir="rtl"] .field select { background-position: 15px 22px, 20px 22px; }
:root[dir="rtl"] .tech-list > div.is-active { background: linear-gradient(270deg, rgba(var(--ion-rgb), .08), transparent); }
:root[dir="rtl"] .back::before { transform: scaleX(-1); }
:root[dir="rtl"] .live-arrow { transform: scaleX(-1); }
:root[dir="rtl"] .live-btn:hover .live-arrow { transform: scaleX(-1) translateX(5px); }
:root[dir="rtl"] .hero-fallback { transform: scaleX(-1); }
:root[dir="rtl"] .system-fill, :root[dir="rtl"] .pillar::before { transform-origin: right; }
html.i18n-pending body { visibility: hidden; }
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, .reveal-hero { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .tl-fill { transform: none; }
  .system-fill { transform: none; }
  .tl-step > div { opacity: 1; transform: none; }
  .panel { position: relative; top: auto; transform: none; filter: none; }
  .live-btn::before { animation: none; background: linear-gradient(90deg, var(--ion), var(--iris)); opacity: .6; }
}

:root[dir="rtl"] .stat dd { direction: ltr; justify-content: flex-end; }
