/* ===== Codeva — Minimalist Editorial design system (emerald + sand) ===== */
:root {
  --bg: #f8faf4;
  --s-low: #f2f4ef;
  --s: #ecefe9;
  --s-high: #e6e9e3;
  --lowest: #ffffff;
  --ink: #191c19;
  --ink-2: #404942;
  --outline: #707971;
  --line: #c0c9bf;
  --variant: #dce5db;
  --primary: #004526;
  --primary-2: #1b5e3a;
  --on-primary-2: #92d5a8;
  --secondary: #885200;
  --accent: #d4892a;

  --g-xs: 4px; --g-sm: 8px; --g-md: 16px; --g-lg: 24px; --g-xl: 32px;
  --section: 64px;
  --margin: 32px;

  --r: 8px;
  --r-md: 12px;

  --font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Segoe UI", "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --t-state: 120ms ease-out;
  --t-enter: 240ms cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-kerning: normal; font-synthesis: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--margin); }
bdi { unicode-bidi: isolate; }
.mono { font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: 0; }
.latin { font-family: var(--font); font-weight: 500; font-size: .62em; color: var(--ink-2); margin-inline-start: 8px; }

/* Icons: inline SVG sprite (no external font) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ms {
  display: inline-block; flex: none; width: 1em; height: 1em; font-size: 24px; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--g-sm);
  padding: var(--g-md) var(--g-lg); border-radius: var(--r); border: 1px solid transparent;
  font-size: 15px; line-height: 22px; font-weight: 600; cursor: pointer;
  transition: background-color var(--t-state), border-color var(--t-state), color var(--t-state);
}
.btn .ms { font-size: 20px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-secondary { background: var(--lowest); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--s-low); }
.btn-sand { background: var(--accent); color: #1b1100; }
.btn-sand:hover { background: #e19a3f; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--g-lg); padding-block: var(--g-md); }
.brand { display: flex; align-items: center; gap: var(--g-sm); }
.brand img { width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--line); }
.brand .brand-logo { width: auto; height: 44px; border: 0; border-radius: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-text b { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.brand-text small { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: var(--g-xl); margin-inline-end: auto; margin-inline-start: var(--g-xl); }
.nav a { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink-2); transition: color var(--t-state); }
.nav a:hover { color: var(--primary); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: var(--lowest); cursor: pointer; place-items: center; align-content: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform var(--t-state), opacity var(--t-state); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Phone: iPhone Pro style (titanium frame, black bezel, Dynamic Island, side buttons) =====
   .phone is a size container, so every inner measurement uses cqw and scales with the phone. */
.phone {
  container-type: inline-size; isolation: isolate;
  position: relative; aspect-ratio: 1320 / 2868; width: 100%;
  border-radius: 14% / 6.44%;
  background: linear-gradient(150deg, #e6e7ea 0%, #a3a7ae 18%, #f3f4f6 40%, #8d9199 64%, #cfd2d8 84%, #9b9fa6 100%);
  box-shadow: 0 0 0 1px rgba(8, 10, 12, .55), 0 18px 36px -14px rgba(8, 12, 16, .35);
}
.phone::before { content: ""; position: absolute; z-index: 0; inset: 1.15cqw; border-radius: 12.85cqw; background: #050608; }
/* Dynamic Island */
.phone::after {
  content: ""; position: absolute; z-index: 3; top: 4.9cqw; left: 50%; transform: translateX(-50%);
  width: 27cqw; height: 8cqw; border-radius: 99px; background: #000;
}
.phone img {
  position: absolute; z-index: 1; inset: 3.15cqw; width: calc(100% - 6.3cqw); height: calc(100% - 6.3cqw);
  object-fit: cover; border-radius: 10.9cqw; background: var(--s); max-width: none;
}
/* side buttons: action + volume on the left, power on the right */
.phone .bt {
  position: absolute; z-index: -1; inset: 0 -1.7cqw; pointer-events: none;
  background:
    linear-gradient(90deg, #8f939b, #c9ccd2) 0 15% / 1.9cqw 4.2% no-repeat,
    linear-gradient(90deg, #8f939b, #c9ccd2) 0 24% / 1.9cqw 7.6% no-repeat,
    linear-gradient(90deg, #8f939b, #c9ccd2) 0 34.5% / 1.9cqw 7.6% no-repeat,
    linear-gradient(270deg, #8f939b, #c9ccd2) 100% 27% / 1.9cqw 11% no-repeat;
}

/* ===== Shared editorial blocks ===== */
.frame { position: relative; border: 1px solid var(--line); background: var(--s-low); border-radius: 0; overflow: hidden; }
.frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(112, 121, 113, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 121, 113, .13) 1px, transparent 1px);
  background-size: 32px 32px;
}
.fig { position: absolute; inset-inline-end: 12px; top: 10px; font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 16px; color: var(--outline); z-index: 3; }

.badge { display: inline-flex; align-items: center; gap: var(--g-xs); padding: var(--g-xs) var(--g-md); border-radius: 9999px; background: var(--variant); color: var(--ink-2); font-size: 12px; line-height: 16px; font-weight: 500; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.eyebrow { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--secondary); }
.label-p { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--primary); }

.stack { display: flex; flex-direction: column; gap: var(--g-xl); }
.sec-head { display: grid; grid-template-columns: 7fr 5fr; gap: var(--g-lg); align-items: end; }
.sec-title { display: flex; flex-direction: column; gap: var(--g-sm); }
.sec-title.narrow { max-width: 672px; }
h2 { font-size: 36px; line-height: 46px; font-weight: 600; color: var(--ink); text-wrap: balance; }
.sec-head > p { color: var(--ink-2); text-wrap: pretty; }
h3 { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--ink); }

.band { background: var(--s-low); border-block: 1px solid var(--line); padding-block: var(--section); }
.band-top { border-top: 1px solid var(--line); }
.spot { padding-block: var(--section); }

/* ===== Hero ===== */
.hero { padding-top: var(--section); padding-bottom: var(--g-xl); }
.hero-copy { max-width: 896px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--g-lg); }
h1 { font-size: 56px; line-height: 68px; font-weight: 700; color: var(--ink); text-wrap: balance; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 65ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--g-md); padding-top: var(--g-sm); }

.showcase { margin-top: var(--section); border: 1px solid var(--line); background: var(--s-low); }
.showcase-stage { position: relative; height: 384px; overflow: hidden; background: var(--s); }
.showcase-stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(112, 121, 113, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 121, 113, .15) 1px, transparent 1px);
  background-size: 32px 32px;
}
.showcase-stage::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--accent); z-index: 4; }
.showcase-stage .phone { position: absolute; }
.sc-c { width: 232px; left: 50%; top: 40px; transform: translateX(-50%); z-index: 3; }
.sc-l { width: 200px; left: calc(50% - 340px); top: 78px; z-index: 2; }
.sc-r { width: 200px; left: calc(50% + 140px); top: 78px; z-index: 2; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--lowest); }
.metric { padding: var(--g-xl); display: flex; flex-direction: column; gap: var(--g-xs); }
.metric + .metric { border-inline-start: 1px solid var(--line); }
.metric b { align-self: flex-start; font-size: 36px; line-height: 46px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.metric span { font-size: 14px; line-height: 22px; color: var(--ink-2); }

.sc-note { display: none; }

/* ===== Cards ===== */
.card { display: flex; flex-direction: column; gap: var(--g-md); padding: var(--g-xl); background: var(--lowest); border: 1px solid var(--line); border-radius: var(--r-md); }
.card p { color: var(--ink-2); text-wrap: pretty; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--g-lg); align-items: stretch; }
.cards-2 .card { justify-content: space-between; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--g-sm); }
.card-top .mono { color: var(--ink-2); }
.ic { color: var(--primary); }
.cards-2 h3 { padding-top: var(--g-sm); }
.chips { display: flex; flex-wrap: wrap; gap: var(--g-sm); padding-top: var(--g-md); border-top: 1px solid var(--line); }
.chips a { display: inline-block; padding: 2px var(--g-md); border: 1px solid var(--line); border-radius: 9999px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--primary); background: var(--bg); transition: background-color var(--t-state), border-color var(--t-state); }
.chips a:hover { background: var(--variant); border-color: var(--primary); }

.card-action { gap: var(--g-md); }
.card-action header { display: flex; flex-direction: column; gap: var(--g-xs); }
.card-action .sub { font-size: 14px; line-height: 22px; color: var(--ink-2); }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--g-md); }
.title-row img { border-radius: 4px; border: 1px solid var(--line); }
.card-body { display: flex; flex-direction: column; gap: var(--g-md); flex: 1; }
.ticks { display: grid; gap: var(--g-sm); }
.ticks li { position: relative; padding-inline-start: 24px; font-size: 15px; line-height: 24px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 8px; height: 8px; background: var(--primary); }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g-md); padding-top: var(--g-md); border-top: 1px solid var(--line); }
.mini-metrics div { display: flex; flex-direction: column; gap: var(--g-xs); }
.mini-metrics b { align-self: flex-start; font-size: 22px; line-height: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-metrics span { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-2); }
.card-foot { display: flex; flex-wrap: wrap; gap: var(--g-md) var(--g-lg); padding-top: var(--g-md); border-top: 1px solid var(--line); margin-top: auto; }
.link { display: inline-flex; align-items: center; gap: var(--g-xs); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--primary); transition: color var(--t-state); }
.link:hover { color: var(--primary-2); }
.link .ms { font-size: 20px; }

/* ===== Sanad spotlight ===== */
.spot-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--g-xl); align-items: stretch; }
.sanad-frame { display: flex; flex-direction: column; align-items: center; padding: var(--g-lg) var(--g-lg) 0; min-height: 600px; }
.sanad-frame > * { position: relative; z-index: 2; }
.st-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g-sm); }
.st-tab { cursor: pointer; padding: var(--g-sm) var(--g-md); border: 1px solid var(--line); border-radius: var(--r); background: var(--lowest); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); transition: background-color var(--t-state), color var(--t-state), border-color var(--t-state); }
.st-tab:hover { background: var(--s-low); }
.st-tab.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.st-stage { margin-top: var(--g-lg); width: 252px; }
.st-phone img { transition: opacity var(--t-enter); }
.st-phone img.fade { opacity: 0; }
.st-cap { position: absolute !important; inset-inline: 0; bottom: 0; padding: var(--g-md) var(--g-lg); background: var(--lowest); border-top: 1px solid var(--line); font-size: 14px; line-height: 22px; color: var(--ink-2); text-align: center; z-index: 4 !important; }

/* ===== Project blocks ===== */
.proj-list { display: flex; flex-direction: column; gap: var(--g-xl); }
.proj { display: grid; grid-template-columns: 7fr 5fr; gap: var(--g-xl); align-items: stretch; }
.proj-rev .pv { order: 2; }
.pv { display: grid; place-items: center; min-height: 460px; padding: var(--g-xl) var(--g-lg) 0; }
.pv > * { position: relative; z-index: 2; }
.pv .fig { position: absolute; z-index: 3; }
.duo { display: flex; justify-content: center; align-items: flex-end; gap: var(--g-lg); margin-bottom: -90px; align-self: end; }
.duo .phone { width: 210px; }
.duo .phone:nth-child(2) { transform: translateY(24px); }
.win { width: 100%; max-width: 460px; background: #0b0f14; border: 1px solid #0a0d10; border-radius: 4px; overflow: hidden; margin-bottom: var(--g-xl); }
.win-bar { display: flex; gap: 6px; padding: 9px 12px; background: #161c24; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3b4452; }
.win img { width: 100%; height: auto; }
.shield-card { width: 100%; max-width: 330px; background: var(--lowest); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--g-lg); margin-bottom: var(--g-xl); }
.sc-head { display: flex; align-items: center; gap: 12px; padding-bottom: var(--g-md); border-bottom: 1px solid var(--line); }
.sc-head b { display: block; font-size: 18px; line-height: 26px; font-weight: 600; }
.sc-head small { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--primary-2); }
.sc-logo { width: 44px; height: 44px; border-radius: 4px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary-2); flex: none; }
.sc-logo .ms { font-size: 26px; }
.sc-list li { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; font-size: 15px; line-height: 22px; font-weight: 500; border-bottom: 1px solid var(--s); }
.sc-list li:last-child { border-bottom: 0; }
.sw { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--primary); flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }

/* ===== Process ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--lowest); }
.steps li { padding: var(--g-xl) var(--g-lg); display: flex; flex-direction: column; gap: var(--g-xs); }
.steps li + li { border-inline-start: 1px solid var(--line); }
.num { color: var(--accent); font-size: 14px; }
.steps h3 { font-size: 18px; line-height: 26px; padding-top: var(--g-xs); }
.steps p { font-size: 14px; line-height: 22px; color: var(--ink-2); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g-lg); }
.value { padding: var(--g-lg); background: var(--s-low); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: var(--g-xs); }
.value b { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--primary); }
.value span { font-size: 14px; line-height: 22px; color: var(--ink-2); }

/* ===== CTA / contact ===== */
.cta { background: var(--primary); color: #fff; padding-block: var(--section); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta h2 { font-size: 44px; line-height: 54px; font-weight: 700; color: #fff; }
.cta-copy > p { margin-top: var(--g-md); font-size: 18px; line-height: 28px; color: var(--on-primary-2); max-width: 46ch; }
.contact-list { margin-top: var(--g-xl); display: grid; gap: var(--g-md); max-width: 400px; }
.contact-list li { display: flex; flex-direction: column; padding: var(--g-md); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); }
.contact-list span { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--on-primary-2); }
.contact-list a { font-family: var(--mono); font-weight: 500; font-size: 17px; line-height: 26px; color: #fff; }
.cta-links { display: flex; flex-wrap: wrap; gap: var(--g-md); margin-top: var(--g-xl); }
.form { background: var(--lowest); color: var(--ink); border-radius: var(--r-md); padding: var(--g-xl); display: grid; gap: var(--g-md); }
.form label { display: grid; gap: 6px; font-size: 14px; line-height: 22px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; padding: 12px var(--g-md); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: 16px; font-weight: 400; transition: border-color var(--t-state), background-color var(--t-state); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); background: #fff; outline: 2px solid var(--primary); outline-offset: 0; }
.form input.invalid { border-color: #ba1a1a; background: #fff4f2; }
.form textarea { resize: vertical; min-height: 92px; }
.form-note { min-height: 22px; font-size: 14px; line-height: 22px; color: var(--ink-2); text-align: center; }
.form-note.err { color: #ba1a1a; font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--g-md); padding-block: var(--g-xl); }
.f-left { display: flex; align-items: center; gap: var(--g-sm); font-size: 14px; line-height: 22px; color: var(--ink-2); }
.f-left img { border-radius: 4px; border: 1px solid var(--line); }
.f-links { display: flex; align-items: center; flex-wrap: wrap; gap: var(--g-lg); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); }
.f-links a { transition: color var(--t-state); }
.f-links a:hover { color: var(--primary); }

/* ===== Collapsible feature lists, sticky bar, carousel dots (desktop defaults) ===== */
.more > summary { display: none; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.m-only { display: none; }
.m-bar { display: none; }
.dots { display: none; }

/* ===== Reveal (surface-enter) ===== */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--t-enter), transform var(--t-enter); }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .spot-grid, .proj { grid-template-columns: 1fr; }
  .proj-rev .pv { order: 0; }
  .cta-grid { grid-template-columns: 1fr; gap: var(--g-xl); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-inline-start: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sc-l { left: calc(50% - 300px); }
  .sc-r { left: calc(50% + 100px); }
}
@media (max-width: 860px) {
  :root { --margin: 20px; }
  .menu-btn { display: grid; margin-inline-start: auto; }
  .header-cta { display: none; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--g-sm) var(--margin) var(--g-md);
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity var(--t-state), transform var(--t-state);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--s); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .brand-text small { display: none; }
  h1 { font-size: 32px; line-height: 40px; }
  h2 { font-size: 24px; line-height: 32px; }
  .cta h2 { font-size: 28px; line-height: 36px; }
  .lead { font-size: 16px; line-height: 26px; }
  .cards-2 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: var(--g-lg); }
  .metric b { font-size: 28px; line-height: 36px; }
  .metric:nth-child(3) { border-inline-start: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .showcase-stage { height: 470px; }
  .sc-l, .sc-r { display: none; }
  .sc-c { width: 196px; top: 40px; }
  .sc-note {
    position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: var(--lowest); border: 1px solid var(--line); border-radius: var(--r);
    font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink);
  }
  .sc-note i { width: 8px; height: 8px; background: var(--primary); flex: none; }
  .sc-note.n1 { top: 112px; inset-inline-start: 12px; }
  .sc-note.n2 { bottom: 70px; inset-inline-end: 12px; }
  .sc-note.n2 i { background: var(--accent); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero { padding-top: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card { padding: var(--g-lg); }
  .sanad-frame { min-height: 560px; padding-inline: var(--g-md); }
  .st-stage { width: 220px; }
  .pv { min-height: 400px; padding-inline: var(--g-md); }
  .duo { gap: var(--g-md); margin-bottom: -70px; }
  .duo .phone { width: 150px; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .form { padding: var(--g-lg); }
}


/* ===================================================================
   MOBILE REDESIGN (<= 860px): compact rhythm, swipeable projects,
   collapsible feature lists, timeline steps, sticky action bar
   =================================================================== */
@media (max-width: 860px) {
  :root { --section: 44px; --margin: 20px; }
  .site-footer { padding-bottom: 72px; }
  .d-only { display: none; }
  .m-only { display: inline; }
  .stack { gap: 24px; }

  /* header */
  .header-inner { padding-block: 12px; }
  .brand img { width: 36px; height: 36px; }
  .brand .brand-logo { width: auto; height: 38px; }
  .brand-text b { font-size: 17px; line-height: 24px; }

  /* hero */
  .hero { padding-top: 28px; padding-bottom: 8px; }
  .hero-copy { gap: 14px; }
  h1 { font-size: 30px; line-height: 40px; }
  .lead { font-size: 15.5px; line-height: 25px; }
  .hero-actions { width: 100%; gap: 10px; padding-top: 6px; }
  .hero-actions .btn { flex: 1 1 100%; padding: 14px 20px; }
  .showcase { margin-top: 28px; }
  .showcase-stage { height: 430px; }
  .sc-c { width: 180px; top: 28px; }
  .sc-note.n1 { top: 96px; }
  .sc-note.n2 { bottom: 64px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 16px 18px; gap: 0; }
  .metric b { font-size: 26px; line-height: 34px; }
  .metric span { font-size: 13px; line-height: 20px; }

  /* section heads */
  .band, .spot { padding-block: var(--section); }
  .sec-head { gap: 8px; }
  .sec-head > p { font-size: 15px; line-height: 24px; }
  h2 { font-size: 24px; line-height: 32px; }

  /* capabilities: editorial list instead of boxed cards */
  .cards-2 { display: block; }
  .cards-2 .card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 20px; gap: 6px; }
  .cards-2 .card:last-child { border-bottom: 1px solid var(--line); }
  .cards-2 h3 { padding-top: 0; font-size: 19px; line-height: 28px; }
  .cards-2 .card p { font-size: 14.5px; line-height: 23px; }
  .card-top { justify-content: flex-start; gap: 10px; }
  .card-top .mono { font-size: 11px; line-height: 16px; letter-spacing: .02em; }
  .card-top .ms { order: -1; font-size: 22px; }
  .chips { border-top: 0; padding-top: 6px; }

  /* sanad */
  .spot-grid { gap: 16px; }
  .sanad-frame { min-height: 0; padding: 16px 0 0; }
  .st-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .st-tabs::-webkit-scrollbar { display: none; }
  .st-tab { flex: 0 0 auto; scroll-snap-align: start; padding: 8px 14px; white-space: nowrap; }
  .st-stage { width: 186px; margin-top: 18px; margin-bottom: 78px; }
  .st-cap { position: relative !important; margin-top: -58px; padding: 14px 16px; font-size: 13.5px; }
  .sanad-frame > .st-cap { width: 100%; }
  .card { padding: 20px; }
  .card-action .sub { font-size: 13.5px; }
  .title-row img { width: 36px; height: 36px; }
  .card-body { gap: 12px; }
  .mini-metrics b { font-size: 20px; line-height: 28px; }

  /* collapsible feature lists */
  .more > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer;
    padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    font-size: 14.5px; line-height: 22px; font-weight: 600; color: var(--primary);
  }
  .more[open] > summary { border-bottom-color: transparent; }
  .more > summary .ms { font-size: 22px; transition: transform var(--t-state); }
  .more[open] > summary .ms { transform: rotate(180deg); }
  .more > .ticks { padding-top: 4px; }
  .ticks li { font-size: 14.5px; line-height: 23px; }
  .card-foot { padding-top: 14px; gap: 12px 20px; }
  .link { font-size: 14.5px; }

  /* projects: swipeable carousel */
  .proj-list {
    display: flex; flex-direction: row; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--margin) * -1); padding: 2px var(--margin) 6px; scroll-padding-inline: var(--margin); scrollbar-width: none;
  }
  .proj-list::-webkit-scrollbar { display: none; }
  .proj { flex: 0 0 88%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--lowest); }
  .js .proj.reveal { opacity: 1; transform: none; }
  .proj-rev .pv { order: 0; }
  .proj .pv { min-height: 290px; padding: 18px 14px 0; border: 0; border-bottom: 1px solid var(--line); }
  .proj .card-action { border: 0; border-radius: 0; padding: 18px 18px 20px; }
  .duo { gap: 12px; margin-bottom: -56px; }
  .duo .phone { width: 128px; }
  .duo .phone:nth-child(2) { transform: translateY(18px); }
  .win { margin-bottom: 20px; }
  .shield-card { padding: 16px; margin-bottom: 16px; max-width: 290px; }
  .sc-list li { padding: 9px 2px; font-size: 14px; }
  .fig { top: 8px; inset-inline-end: 10px; font-size: 10px; }
  .dots { display: flex; justify-content: center; gap: 8px; }
  .dots i { width: 8px; height: 8px; border: 1px solid var(--outline); background: transparent; transition: background-color var(--t-state), width var(--t-state); }
  .dots i.on { background: var(--primary); border-color: var(--primary); width: 22px; }

  /* process: vertical timeline */
  .steps { grid-template-columns: 1fr; border: 0; background: transparent; gap: 0; }
  .steps li { position: relative; padding: 0 44px 22px 0; border: 0 !important; gap: 2px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line); }
  .num { position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--lowest); font-size: 12px; }
  .steps h3 { padding-top: 2px; font-size: 17px; line-height: 26px; }
  .steps p { font-size: 14px; }
  .steps li { padding-inline-start: 44px; padding-inline-end: 0; }
  .values { gap: 0; }
  .value { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0; }
  .value:last-child { border-bottom: 1px solid var(--line); }

  /* contact */
  .cta { padding-block: var(--section); }
  .cta-grid { gap: 28px; }
  .cta h2 { font-size: 26px; line-height: 34px; }
  .cta-copy > p { font-size: 15.5px; line-height: 25px; }
  .contact-list { margin-top: 22px; gap: 10px; max-width: none; }
  .contact-list li { padding: 12px 14px; }
  .contact-list a { font-size: 16px; }
  .cta-links { margin-top: 20px; }
  .cta-links .btn { flex: 1 1 100%; }
  .form { padding: 20px; }
  .footer-inner { padding-block: 24px; gap: 14px; }
  .f-left { align-items: flex-start; }
  .f-links { gap: 10px 18px; }

  /* sticky bottom action bar */
  .m-bar {
    display: flex; gap: 8px; position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    padding: 10px var(--margin) calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform var(--t-enter);
  }
  body.show-bar .m-bar { transform: none; }
  .m-bar .btn { padding: 13px 18px; }
  .m-bar .btn-primary { flex: 1; }
  .m-bar .m-wa { flex: none; width: 50px; padding: 0; }
}
@media (max-width: 380px) {
  h1 { font-size: 27px; line-height: 36px; }
  .showcase-stage { height: 410px; }
}

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