:root {
  --ds-blue: #0865f5;
  --ds-blue2: #2583ff;
  --ds-ink: #10192d;
  --ds-muted: #53627a;
  --ds-pale: #eff6ff;
  --ds-line: #dce7f8;
  --ds-bg: #f7faff;
  --ds-white: #fff;
  --ds-shadow: 0 24px 70px rgba(27, 77, 150, 0.14);
  --font-sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--ds-bg);
  color: var(--ds-ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.6rem 0.9rem; background: var(--ds-ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.ds-wrap, .wrap { width: min(1320px, calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 252, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 231, 248, 0.7);
}
.nav-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; letter-spacing: -0.04em; color: #111827; flex-shrink: 0;
}
.brand img { width: 42px; height: 42px; }
.brand b { font-weight: 600; color: #202b3e; }
.header-tools { display: flex; align-items: center; gap: 0.55rem; }
.links { display: none; gap: clamp(16px, 2.4vw, 32px); color: #1f2b40; align-items: center; }
.links a { font-weight: 600; font-size: 0.92rem; position: relative; }
.links a:not(.nav-cta):hover { color: var(--ds-blue); }
.links .nav-cta, .mobile-cta, .ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 48px; padding: 0 1.2rem; border-radius: 999px; font-size: 0.9rem; font-weight: 700;
  border: 0; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.links .nav-cta, .ds-btn-primary, .mobile-cta {
  background: linear-gradient(110deg, #0865f5, #2583ff);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(8, 101, 245, 0.22);
}
.ds-btn-primary:hover, .links .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(8, 101, 245, 0.3); }
.ds-btn-secondary {
  border: 1px solid #b8cdef; background: rgba(255, 255, 255, 0.72); color: #17233b;
}
.ds-btn-secondary:hover { background: #fff; transform: translateY(-2px); }
.ds-btn:focus-visible, .links a:focus-visible, .menu:focus-visible,
.lang-toggle button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .skip-link:focus {
  outline: 3px solid rgba(8, 101, 245, 0.45); outline-offset: 3px;
}

.lang-toggle {
  display: inline-flex; border: 1px solid #dbe7f7; border-radius: 999px; overflow: hidden; background: #fff;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 0.4rem 0.65rem; cursor: pointer;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: #5a6a82;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ds-ink); color: #fff; }

.menu {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border: 1px solid #dbe7f7; border-radius: 12px; background: #fff; cursor: pointer;
}
.menu span { display: block; width: 18px; height: 2px; background: #17233b; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { background: rgba(250, 252, 255, 0.98); border-top: 1px solid var(--ds-line); padding: 8px 1rem 1.2rem; }
.mobile-menu nav { display: grid; }
.mobile-menu a { padding: 0.85rem 0.5rem; font-weight: 700; color: #17233b; }
.mobile-menu .mobile-cta { color: #fff; text-align: center; margin-top: 0.4rem; }

/* Hero */
.ds-hero {
  position: relative; isolation: isolate; overflow: visible;
  padding: 3rem 0 1.4rem;
  background:
    radial-gradient(ellipse at 76% 24%, rgba(109, 165, 255, 0.28), transparent 34%),
    radial-gradient(ellipse at 10% 80%, rgba(216, 235, 255, 0.9), transparent 36%),
    linear-gradient(115deg, #fbfdff 0%, #eef5ff 52%, #e3efff 100%);
}
.ds-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.28;
  background-image: radial-gradient(#8eb8ff 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(90deg, transparent, black 55%, transparent);
}
.ds-hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.ds-eyebrow, .ds-kicker {
  font-size: 0.72rem; letter-spacing: 0.18em; font-weight: 800; text-transform: uppercase;
  color: #214c94; display: flex; align-items: center; gap: 10px;
}
.ds-eyebrow::before { content: ""; width: 23px; height: 2px; background: var(--ds-blue); }
.ds-hero h1, h2 {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.045em; text-wrap: balance;
}
.ds-hero h1 {
  font-size: clamp(3.1rem, 12vw, 6.2rem); letter-spacing: -0.06em; line-height: 0.9;
  margin: 1.1rem 0 1.15rem; color: #101522;
}
.accent { color: var(--ds-blue); font-style: italic; }
.ds-hero h1 .accent { display: block; }
.ds-lead { font-size: clamp(1rem, 2.4vw, 1.2rem); line-height: 1.7; color: #33435c; max-width: 36rem; margin: 0; text-wrap: pretty; }
.ds-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.ds-note { display: flex; align-items: center; gap: 9px; color: #4a5b73; font-size: 0.92rem; margin-top: 1.3rem; }
.ds-note-dot { width: 8px; height: 8px; background: #1a9a6a; border-radius: 50%; box-shadow: 0 0 0 5px #20b17a22; flex-shrink: 0; }

.ds-visual { position: relative; min-height: 20rem; display: flex; align-items: center; justify-content: center; }
.ds-orb {
  position: absolute; width: min(28rem, 90%); height: min(28rem, 90%); border-radius: 50%;
  background: radial-gradient(circle, #c9e0ff 0%, rgba(201, 224, 255, 0.18) 55%, transparent 72%);
  right: 6%; top: 0; z-index: -1;
}
.ds-laptop {
  position: relative; width: min(36.5rem, 92%);
  transform: rotateY(-6deg) rotateX(2deg) rotateZ(-1deg);
  filter: drop-shadow(0 24px 28px rgba(25, 54, 103, 0.2));
  animation: dsFloat 7s ease-in-out infinite;
}
.ds-laptop-screen {
  padding: 8px 8px 10px; border: 2px solid #27354c; border-radius: 18px 18px 8px 8px;
  background: linear-gradient(135deg, #1b2a43, #070c15);
}
.ds-browser {
  height: 24px; border-radius: 8px 8px 0 0; background: #f8fbff;
  display: flex; align-items: center; gap: 5px; padding: 0 10px; color: #66758c; font-size: 0.62rem;
}
.ds-browser i { width: 6px; height: 6px; border-radius: 50%; background: #d0d8e4; }
.ds-browser span { margin-left: 8px; background: #edf2f9; border-radius: 5px; padding: 2px 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-screen-content { position: relative; overflow: hidden; background: #0d1728; aspect-ratio: 16 / 9; }
.ds-screen-content img, .ds-screen-content picture, .ds-screen-content picture img { width: 100%; height: 100%; object-fit: cover; }
.ds-screen-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 12, 24, 0.82), rgba(6, 12, 24, 0.08)), linear-gradient(0deg, rgba(6, 12, 24, 0.5), transparent 65%); }
.ds-screen-copy { position: absolute; left: 7%; top: 18%; color: #fff; max-width: 56%; }
.ds-screen-copy small { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: #d6e6ff; }
.ds-screen-copy h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.15rem, 3vw, 2.4rem); line-height: 1; margin: 0.5rem 0; }
.ds-screen-copy p { font-size: 0.72rem; color: #e0e8f5; margin: 0; }
.ds-screen-pill { display: inline-block; margin-top: 0.55rem; border-radius: 30px; padding: 0.4rem 0.7rem; background: #f5c98b; color: #222; font-size: 0.68rem; font-weight: 800; }
.ds-laptop-base { height: 14px; margin: 0 -4%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#dce6f2, #8b9bb2 55%, #e8eef7); }

.ds-phone {
  position: absolute; right: 1%; bottom: 8px; width: 7.6rem; padding: 7px; border-radius: 22px;
  background: linear-gradient(135deg, #26364e, #050912); border: 1px solid #64748b;
  box-shadow: 0 20px 36px #172b4d40; transform: rotate(5deg); z-index: 3;
  animation: dsPhoneFloat 6s ease-in-out infinite;
}
.ds-phone-screen { overflow: hidden; border-radius: 16px; background: #fff; }
.ds-phone-screen img { width: 100%; height: 6.4rem; object-fit: cover; }
.ds-phone-brand { padding: 10px 8px 4px; font-weight: 800; font-size: 0.62rem; display: flex; justify-content: space-between; }
.ds-phone-brand span { color: var(--ds-blue); }
.ds-phone-caption { padding: 4px 8px; font-size: 0.58rem; font-weight: 700; }
.ds-phone-line { height: 5px; margin: 5px 8px; border-radius: 5px; background: #e7edf7; }
.ds-phone-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 6px; }
.ds-phone-tiles img { height: 2.9rem; border-radius: 5px; object-fit: cover; }

.ds-float-card {
  position: absolute; display: none; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 16px;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px #3869b51f; color: #172d50; font-size: 0.72rem; font-weight: 700; line-height: 1.3;
  animation: dsFloat 6s ease-in-out infinite;
}
.ds-float-card .ds-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: #e9f2ff; color: var(--ds-blue); font-size: 1.05rem; }
.ds-float-a { left: 0; top: 8%; z-index: 4; }
.ds-float-b { right: 0; top: 12%; z-index: 4; animation-delay: -1.6s; }
.ds-float-c { left: 4%; bottom: 10%; z-index: 4; animation-delay: -2.5s; }

.ds-trust-strip {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem 1.6rem;
  padding: 1.3rem 0 1.6rem; border-top: 1px solid #dce8fa8c; margin-top: 0.6rem;
  color: #33435c; font-size: 0.9rem; flex-wrap: wrap;
}
.ds-trust-strip span { display: flex; align-items: center; gap: 8px; }
.ds-check { color: var(--ds-blue); font-size: 1.05rem; font-weight: 800; }

/* Sections */
.ds-services { padding: 3.2rem 0 4.5rem; background: linear-gradient(180deg, #eaf3ff 0%, #f8fbff 100%); }
.ds-section-heading { display: grid; gap: 1rem; margin-bottom: 2rem; }
.ds-section-heading h2, .ds-process h2, .page-hero h1, .ds-final-inner h2 {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.04em;
  font-size: clamp(2.1rem, 6vw, 4.4rem); line-height: 1; margin: 0.5rem 0 0;
}
.ds-section-heading p { max-width: 36rem; color: var(--ds-muted); margin: 0; }
.ds-service-grid { display: grid; gap: 0.85rem; }
.ds-service-card {
  position: relative; padding: 1.35rem 1.2rem 1.25rem; border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.96); background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 35px rgba(37, 82, 145, 0.055); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.ds-service-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--ds-blue), #8fc0ff);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.ds-service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 45px rgba(37, 82, 145, 0.12); }
.ds-service-card:hover::before { transform: scaleX(1); }
.ds-service-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #f2f7ff, #dfeeff); color: var(--ds-blue); font-size: 1.3rem; margin-bottom: 1.1rem;
}
.ds-service-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.ds-service-card p { margin: 0; color: #3f4f66; font-size: 0.95rem; line-height: 1.55; }
.ds-service-link { display: inline-flex; margin-top: 0.9rem; color: var(--ds-blue); font-size: 0.88rem; font-weight: 800; gap: 6px; }

.ds-work { padding: 4.5rem 0; background: #fbfdff; }
.ds-work-grid { display: grid; gap: 1.1rem; }
.ds-work-card {
  border: 1px solid #e0e9f7; border-radius: 1.3rem; overflow: hidden; background: #fff;
  box-shadow: 0 13px 35px rgba(26, 66, 125, 0.06);
}
.ds-work-image { height: 14rem; position: relative; overflow: hidden; background: #dbe9f9; }
.ds-work-image img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.7s; }
.ds-work-card:hover .ds-work-image img { transform: scale(1.05); }
.ds-work-image::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(6, 18, 36, 0.4)); }
.ds-work-label {
  position: absolute; left: 1rem; bottom: 0.9rem; z-index: 1; color: #fff;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.ds-work-copy { padding: 1.15rem 1.2rem 1.3rem; }
.ds-work-copy h3 { font-size: 1.2rem; margin: 0 0 0.35rem; letter-spacing: -0.03em; }
.ds-work-copy p { font-size: 0.95rem; color: #3f4f66; margin: 0; }
.ds-work-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.85rem; }
.ds-work-meta span {
  font-size: 0.72rem; border: 1px solid #e1eaf7; background: #f6f9ff; color: #2f4a6e;
  border-radius: 999px; padding: 0.3rem 0.6rem;
}
.concept-note { font-size: 0.92rem; color: #3f4f66; }

.ds-process {
  padding: 4.2rem 0; background: linear-gradient(125deg, #0d1a30, #153b70); color: #fff;
  position: relative; overflow: hidden;
}
.ds-process::after {
  content: ""; position: absolute; width: 36rem; height: 36rem; border-radius: 50%;
  right: -10rem; top: -16rem; background: radial-gradient(circle, #327de955, transparent 70%); pointer-events: none;
}
.ds-process .ds-kicker { color: #94c2ff; }
.ds-process-intro { color: #d4e0f2; max-width: 38rem; margin: 0; }
.ds-steps { display: grid; gap: 1.2rem; margin-top: 2.4rem; }
.ds-step { border-top: 1px solid #ffffff38; padding-top: 1.1rem; }
.ds-step-num { font-size: 0.75rem; font-weight: 800; color: #9cc8ff; letter-spacing: 0.12em; }
.ds-step h3 { font-size: 1.25rem; margin: 0.8rem 0 0.4rem; }
.ds-step p { color: #d0dcf0; font-size: 0.95rem; margin: 0; max-width: 20rem; }

.ds-final-cta { padding: 3.8rem 0; background: radial-gradient(ellipse at 80% 50%, #d6e8ff, transparent 45%), #f5f9ff; }
.ds-final-inner {
  display: grid; gap: 1.3rem; padding: 1.8rem 1.4rem;
  border: 1px solid #d9e7fa; border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.78); box-shadow: 0 20px 60px rgba(28, 75, 143, 0.08);
}
.ds-final-inner p { margin: 0; color: #4a5b73; }
.cta-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.85rem; color: #3f4f66; font-weight: 650; }
.cta-meta a { color: var(--ds-blue); text-decoration: underline; text-underline-offset: 3px; }

/* Inner pages */
.page-hero { padding: 3.2rem 0 2.2rem; background: linear-gradient(180deg, #eef5ff, #f7f9fc); }
.page-hero .lead { max-width: 44rem; color: #4d5d75; font-size: 1.08rem; }
.stack { display: grid; gap: 1.1rem; padding: 0 0 4rem; }
.block {
  background: #fff; border: 1px solid var(--ds-line); border-radius: 1.3rem; padding: 1.5rem 1.3rem;
  box-shadow: 0 10px 30px rgba(20, 50, 90, 0.045);
}
.block h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 0.7rem; }
.block ul { margin: 0.8rem 0 0; padding: 0; columns: 1; }
.block li { list-style: none; margin: 0.45rem 0; color: #3f4f66; padding-left: 1.3rem; position: relative; }
.block li::before { content: "→"; position: absolute; left: 0; color: var(--ds-blue); font-weight: 800; }
.cap-grid, .why-list { display: grid; gap: 0.9rem; }
.cap-card, .why-item { background: #fff; border: 1px solid var(--ds-line); border-radius: 1.2rem; padding: 1.25rem; }
.cap-card .tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ds-blue); }
.rule {
  margin: 1.2rem 0 0; padding: 1.4rem; border-radius: 1.2rem; color: #fff;
  background: linear-gradient(125deg, #0d1a30, #153b70);
}
.check { display: flex; gap: 0.6rem; margin: 0.55rem 0; color: #3f4f66; }
.check b { color: var(--ds-blue); }

/* Form */
.contact-grid { display: grid; gap: 1.3rem; padding-bottom: 4rem; }
form.form, .form {
  background: #fff; border: 1px solid var(--ds-line); border-radius: 1.3rem; padding: 1.3rem;
  display: grid; gap: 0.85rem; box-shadow: 0 20px 55px rgba(32, 82, 151, 0.08);
}
.field { display: grid; gap: 0.3rem; }
label { font-size: 0.88rem; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid #d9e0e8; border-radius: 12px; background: #fbfcfe; padding: 0.75rem 0.85rem;
}
textarea { min-height: 8.5rem; resize: vertical; }
.form-status { min-height: 1.3rem; font-size: 0.95rem; }
.form-status.ok { color: #0d6b4a; }
.form-status.err { color: #9a2a16; }
.hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }

/* Footer */
.footer { background: #0b1425; color: #fff; padding: 3.2rem 0 1.4rem; }
.foot-grid { display: grid; gap: 1.6rem; }
.footer p, .footer a, .footer span { color: #b7c4d8; font-size: 0.95rem; }
.footer a { display: block; margin: 0.4rem 0; }
.footer a:hover { color: #fff; }
.footer h4 { font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase; margin: 0 0 0.8rem; color: #e2eaf7; }
.foot-bottom { border-top: 1px solid #26344a; margin-top: 2.2rem; padding-top: 1.1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: #8ea0b8; font-size: 0.85rem; }
.foot-brand { margin-bottom: 0.8rem; color: #fff; }

.missing { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }

@keyframes dsFloat { 0%, 100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-9px) rotate(-0.3deg); } }
@keyframes dsPhoneFloat { 0%, 100% { transform: translateY(0) rotate(5deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.js .ds-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .ds-reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .ds-wrap, .wrap { width: min(1320px, calc(100% - 3.5rem)); }
  .ds-service-grid { grid-template-columns: 1fr 1fr; }
  .ds-work-grid, .ds-steps, .cap-grid { grid-template-columns: 1fr 1fr; }
  .block ul { columns: 2; }
  .ds-section-heading { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
  .ds-float-card { display: flex; }
  .foot-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
  .ds-final-inner { grid-template-columns: 1fr auto; align-items: center; padding: 2.4rem 2.6rem; }
}

@media (min-width: 980px) {
  .menu, .mobile-menu { display: none !important; }
  .links { display: flex; }
  .ds-hero { padding: 4.2rem 0 1.6rem; }
  .ds-hero-grid { grid-template-columns: 0.92fr 1.08fr; min-height: 32rem; gap: 1.4rem; }
  .ds-visual { min-height: 28rem; padding: 1.5rem 0.5rem 1.8rem; }
  .ds-service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ds-work-grid, .ds-steps { grid-template-columns: repeat(3, 1fr); }
  .ds-steps { grid-template-columns: repeat(4, 1fr); }
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ds-laptop, .ds-phone, .ds-float-card { animation: none; }
  .ds-reveal { opacity: 1; transform: none; transition: none; }
  .ds-btn, .ds-service-card, .ds-work-image img { transition: none; }
}

/* =====================================================================
   REDESIGN v4 (2026-11-13): motion + premium visual layer.
   Pure CSS/vanilla JS. Overrides the base styles above.
   ===================================================================== */
@property --ds-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --ds-violet: #7b5cff;
  --ds-cyan: #12c2e9;
  --ds-grad: linear-gradient(110deg, #0865f5 0%, #5b6cff 45%, #12c2e9 100%);
  --ds-grad-text: linear-gradient(100deg, #0865f5 0%, #7b5cff 35%, #12c2e9 65%, #0865f5 100%);
  --ds-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ds-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
::selection { background: rgba(8, 101, 245, 0.18); }

/* ---------- Scroll progress + nav ---------- */
.ds-progress {
  position: fixed; left: 0; top: 0; z-index: 120; height: 3px; width: 100%;
  background: var(--ds-grad); transform-origin: 0 50%; transform: scaleX(var(--ds-progress, 0));
  pointer-events: none; box-shadow: 0 0 12px rgba(91, 108, 255, 0.55);
}
.nav { transition: background 0.35s var(--ds-ease), box-shadow 0.35s var(--ds-ease), border-color 0.35s; }
.nav-inner { transition: height 0.35s var(--ds-ease); }
.nav.is-scrolled {
  background: rgba(250, 252, 255, 0.78);
  box-shadow: 0 10px 30px rgba(16, 40, 90, 0.08);
  border-bottom-color: rgba(200, 216, 245, 0.6);
}

.js .nav { animation: dsNavIn 0.8s var(--ds-ease) both; }
.brand img { transition: transform 0.6s var(--ds-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.links a:not(.nav-cta) { padding: 0.35rem 0; }
.links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--ds-grad); transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform 0.35s var(--ds-ease);
}
.links a:not(.nav-cta):hover::after, .links a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
.links a[aria-current="page"]:not(.nav-cta) { color: var(--ds-blue); }
.lang-toggle { position: relative; }
.lang-toggle button { transition: background 0.3s var(--ds-ease), color 0.3s; }
.lang-toggle button[aria-pressed="true"] { background: linear-gradient(120deg, #10192d, #23365c); }
.menu span { transition: transform 0.35s var(--ds-spring), opacity 0.2s; }
.mobile-menu:not([hidden]) { animation: dsMenuIn 0.4s var(--ds-ease) both; }
.mobile-menu:not([hidden]) a { animation: dsFadeUp 0.45s var(--ds-ease) both; }
.mobile-menu:not([hidden]) a:nth-child(2) { animation-delay: 0.04s; }
.mobile-menu:not([hidden]) a:nth-child(3) { animation-delay: 0.08s; }
.mobile-menu:not([hidden]) a:nth-child(4) { animation-delay: 0.12s; }
.mobile-menu:not([hidden]) a:nth-child(5) { animation-delay: 0.16s; }

/* ---------- Buttons ---------- */
.links .nav-cta, .ds-btn-primary, .mobile-cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(110deg, #0865f5, #5b6cff, #12c2e9, #0865f5);
  background-size: 300% 100%; background-position: 0% 50%;
  transition: transform 0.35s var(--ds-spring), box-shadow 0.35s var(--ds-ease), background-position 0.8s var(--ds-ease);
}
.links .nav-cta::after, .ds-btn-primary::after, .mobile-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ds-ease);
}
.ds-btn-primary:hover, .links .nav-cta:hover, .mobile-cta:hover {
  background-position: 100% 50%;
  box-shadow: 0 16px 34px rgba(8, 101, 245, 0.32), 0 0 0 4px rgba(91, 108, 255, 0.12);
}
.ds-btn-primary:hover::after, .links .nav-cta:hover::after, .mobile-cta:hover::after { transform: translateX(120%); }
.ds-btn:active, .links .nav-cta:active { transform: translateY(0) scale(0.97); }
.ds-btn span[aria-hidden="true"] { display: inline-block; transition: transform 0.35s var(--ds-spring); }
.ds-btn:hover span[aria-hidden="true"] { transform: translateX(4px); }
.ds-btn-secondary:hover span[aria-hidden="true"] { transform: translate(3px, 3px); }
.ds-btn-secondary {
  position: relative; backdrop-filter: blur(10px);
  border: 1px solid transparent;
  background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)) padding-box,
              linear-gradient(120deg, #b8cdef, #c9c1ff, #b8e6f3) border-box;
  transition: transform 0.35s var(--ds-spring), box-shadow 0.35s var(--ds-ease);
}
.ds-btn-secondary:hover {
  background: linear-gradient(#fff, #fff) padding-box, var(--ds-grad) border-box;
  box-shadow: 0 12px 28px rgba(37, 82, 145, 0.14);
}
.ds-btn.is-magnetic { transition: transform 0.25s var(--ds-ease), box-shadow 0.35s, background-position 0.8s; }

/* ---------- Gradient accents ---------- */
.accent {
  background: var(--ds-grad-text); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em; margin-right: -0.04em;
  animation: dsGradShift 8s ease-in-out infinite;
}
.ds-process .accent, .rule .accent {
  background-image: linear-gradient(100deg, #8ec2ff, #b9a8ff, #7ee3f5, #8ec2ff);
}
.ds-eyebrow::before { background: var(--ds-grad); width: 30px; }
.ds-kicker { position: relative; }
.ds-kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--ds-grad);
  flex-shrink: 0;
}
.ds-reveal .ds-kicker::before, .ds-section-heading .ds-kicker::before { transform-origin: left; }
.js .ds-reveal:not(.is-in) .ds-kicker::before { transform: scaleX(0); }
.ds-kicker::before { transition: transform 0.8s 0.25s var(--ds-ease); }

/* ---------- Hero ---------- */
.ds-hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.ds-hero { overflow: clip; }
.ds-mesh { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ds-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  will-change: transform; translate: 0 var(--ds-par, 0px);
}
.ds-blob-1 { width: 34rem; height: 34rem; left: 46%; top: -12rem; background: radial-gradient(circle at 30% 30%, #5ea0ff, #2a6bff 60%, transparent 70%); animation: dsBlobA 18s ease-in-out infinite; }
.ds-blob-2 { width: 26rem; height: 26rem; left: 72%; top: 30%; background: radial-gradient(circle, #a58bff, #7b5cff 55%, transparent 70%); opacity: 0.38; animation: dsBlobB 22s ease-in-out infinite; }
.ds-blob-3 { width: 24rem; height: 24rem; left: -6rem; top: 55%; background: radial-gradient(circle, #6fe0f5, #12c2e9 50%, transparent 70%); opacity: 0.32; animation: dsBlobC 20s ease-in-out infinite; }
.page-hero .ds-blob { opacity: 0.32; }
.page-hero .ds-blob-1 { left: 60%; top: -14rem; }
.page-hero .ds-blob-3 { top: 20%; left: -10rem; }
.ds-hero::before { opacity: 0.35; animation: dsDots 30s linear infinite; }
.ds-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6rem; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(234, 243, 255, 0.85));
}

/* staggered entrance */
.js .ds-hero-grid > div:first-child > *,
.js .ds-hero h1 > span,
.js .page-hero .ds-wrap > * { animation: dsRise 0.95s var(--ds-ease) both; }
.js .ds-hero h1 { animation: none !important; }
.js .ds-hero h1 > span { display: inline-block; }
.js .ds-hero h1 > span.accent { display: block; animation-name: dsRiseAccent; }
.js .ds-hero-grid > div:first-child > :nth-child(1) { animation-delay: 0.1s; }
.js .ds-hero h1 > span:nth-child(1) { animation-delay: 0.2s; }
.js .ds-hero h1 > span.accent { animation: dsRiseAccent 0.95s 0.38s var(--ds-ease) both, dsGradShift 8s 1.3s ease-in-out infinite; }
.js .ds-hero-grid > div:first-child > :nth-child(3) { animation-delay: 0.52s; }
.js .ds-hero-grid > div:first-child > :nth-child(4) { animation-delay: 0.64s; }
.js .ds-hero-grid > div:first-child > :nth-child(5) { animation-delay: 0.76s; }
.js .page-hero .ds-wrap > :nth-child(1) { animation-delay: 0.05s; }
.js .page-hero .ds-wrap > :nth-child(2) { animation-delay: 0.16s; }
.js .page-hero .ds-wrap > :nth-child(3) { animation-delay: 0.28s; }
.js .ds-visual { animation: dsVisualIn 1.2s 0.3s var(--ds-ease) both; }
.js .ds-trust-strip > span { animation: dsFadeUp 0.7s var(--ds-ease) both; }
.js .ds-trust-strip > span:nth-child(1) { animation-delay: 0.9s; }
.js .ds-trust-strip > span:nth-child(2) { animation-delay: 1s; }
.js .ds-trust-strip > span:nth-child(3) { animation-delay: 1.1s; }
.js .ds-trust-strip > span:nth-child(4) { animation-delay: 1.2s; }
.ds-check {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ds-grad); color: #fff; font-size: 0.7rem; box-shadow: 0 4px 12px rgba(8, 101, 245, 0.28);
}
.ds-note-dot { animation: dsPulse 2.2s ease-out infinite; }

/* mockups: parallax via individual translate (composes with float animation) */
.ds-visual { perspective: 1200px; }
.ds-laptop { translate: var(--ds-lx, 0px) var(--ds-ly, 0px); transition: translate 0.6s var(--ds-ease); filter: drop-shadow(0 30px 40px rgba(25, 54, 103, 0.26)); }
.ds-phone { translate: var(--ds-phx, 0px) var(--ds-phy, 0px); transition: translate 0.6s var(--ds-ease); box-shadow: 0 30px 50px rgba(23, 43, 77, 0.35); }
.ds-float-card { translate: var(--ds-fx, 0px) var(--ds-fy, 0px); transition: translate 0.7s var(--ds-ease), box-shadow 0.3s; }
.ds-float-card .ds-icon { background: var(--ds-grad); color: #fff; box-shadow: 0 6px 16px rgba(8, 101, 245, 0.3); }
.ds-orb {
  background: conic-gradient(from var(--ds-angle), #b9d6ff, #d4c8ff, #bff0fa, #b9d6ff);
  filter: blur(40px); opacity: 0.75; animation: dsSpin 14s linear infinite;
}
.ds-screen-content::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.16) 48%, transparent 60%);
  transform: translateX(-100%); animation: dsScreenShine 6s 2s ease-in-out infinite;
}
.ds-screen-pill { animation: dsPillPulse 3s ease-in-out infinite; }

/* ---------- Section transitions ---------- */
.ds-services, .ds-work, .ds-process, .ds-final-cta { position: relative; }
.ds-services { background: linear-gradient(180deg, #eaf3ff 0%, #f4f7ff 60%, #fbfdff 100%); overflow: hidden; }
.ds-services::before, .ds-work::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(70px);
}
.ds-services::before { width: 30rem; height: 30rem; right: -10rem; top: 10%; background: rgba(123, 92, 255, 0.12); }
.ds-work { overflow: hidden; }
.ds-work::before { width: 28rem; height: 28rem; left: -10rem; bottom: 5%; background: rgba(18, 194, 233, 0.1); }
.ds-services > .ds-wrap, .ds-work > .ds-wrap, .ds-process > .ds-wrap { position: relative; z-index: 1; }
.ds-process {
  background: linear-gradient(125deg, #0a1426, #12305f 55%, #2a2470);
  clip-path: polygon(0 3.5rem, 100% 0, 100% calc(100% - 3.5rem), 0 100%);
  padding: 7rem 0;
  margin: -1px 0;
}
.ds-process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 40%, black, transparent 75%);
}
.ds-process::after { background: radial-gradient(circle, rgba(91, 108, 255, 0.45), transparent 70%); animation: dsBlobA 20s ease-in-out infinite; }
.ds-section-heading h2, .ds-process h2 { text-wrap: balance; }

/* ---------- Service cards: lift, glow, gradient border, tilt ---------- */
.ds-service-card {
  --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg;
  isolation: isolate; transform-style: preserve-3d;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ds-ease), box-shadow 0.5s var(--ds-ease), opacity 0.8s var(--ds-ease);
}
.ds-service-card::before { height: 0; } /* replaced by gradient border */
.ds-service-card::after, .ds-work-card::after, .cap-card::after, .block::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ds-angle), #0865f5, #7b5cff, #12c2e9, #0865f5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.45s var(--ds-ease);
  animation: dsSpin 6s linear infinite paused;
}
.ds-service-card > *, .cap-card > *, .block > * { position: relative; z-index: 1; }
.ds-service-card .ds-glow, .cap-card .ds-glow, .ds-work-card .ds-glow, .block .ds-glow {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(91, 108, 255, 0.14), transparent 45%);
  transition: opacity 0.4s;
}
.ds-service-card:hover, .ds-service-card:focus-within {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px);
  box-shadow: 0 30px 60px rgba(37, 82, 145, 0.16), 0 0 40px rgba(91, 108, 255, 0.14);
}
.ds-service-card:hover::after, .ds-service-card:focus-within::after,
.ds-work-card:hover::after, .cap-card:hover::after, .block:hover::after { opacity: 1; animation-play-state: running; }
.ds-service-card:hover .ds-glow, .cap-card:hover .ds-glow, .ds-work-card:hover .ds-glow, .block:hover .ds-glow { opacity: 1; }
.ds-service-icon {
  background: linear-gradient(145deg, #eef5ff, #e3e4ff); position: relative;
  transition: transform 0.6s var(--ds-spring), background 0.4s, color 0.4s, box-shadow 0.4s;
}
.ds-service-card:hover .ds-service-icon {
  background: var(--ds-grad); color: #fff; transform: translateZ(30px) rotate(-8deg) scale(1.08);
  box-shadow: 0 12px 24px rgba(8, 101, 245, 0.3);
}
.ds-service-card h3 { transition: color 0.3s; }
.ds-service-link span[aria-hidden="true"] { display: inline-block; transition: transform 0.35s var(--ds-spring); }
.ds-service-card:hover .ds-service-link span[aria-hidden="true"] { transform: translateX(5px); }

/* ---------- Work / concept cards ---------- */
.ds-work-card {
  position: relative; isolation: isolate;
  --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg;
  transition: transform 0.55s var(--ds-ease), box-shadow 0.55s var(--ds-ease), opacity 0.8s var(--ds-ease);
}
.ds-work-card:hover {
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px);
  box-shadow: 0 34px 70px rgba(26, 66, 125, 0.18), 0 0 50px rgba(91, 108, 255, 0.12);
}
.ds-work-image img { transition: transform 1.1s var(--ds-ease), filter 0.6s; translate: 0 var(--ds-img-par, 0px); scale: 1.08; }
.ds-work-card:hover .ds-work-image img { transform: scale(1.06); filter: saturate(1.15); }
.ds-work-image::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform 1s var(--ds-ease);
}
.ds-work-card:hover .ds-work-image::before { transform: translateX(110%); }
.ds-work-label {
  padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(10, 20, 40, 0.35);
  backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.5s var(--ds-spring);
}
.ds-work-card:hover .ds-work-label { transform: translateY(-4px); }
.ds-work-meta span { transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s; }
.ds-work-card:hover .ds-work-meta span { border-color: #cdd6ff; background: #f1f0ff; }
.ds-work-copy, .ds-work-image { position: relative; z-index: 1; }

/* ---------- Process steps ---------- */
.ds-step { position: relative; border-top: 0; padding-top: 1.4rem; }
.ds-step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,0.2);
}
.ds-step::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, #8ec2ff, #b9a8ff, #7ee3f5); transform-origin: left;
  transform: scaleX(0); transition: transform 1.1s 0.2s var(--ds-ease);
}
.ds-step.is-in::after, .no-motion .ds-step::after { transform: scaleX(1); }
.ds-step-num {
  display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.6rem; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  backdrop-filter: blur(6px); transition: transform 0.5s var(--ds-spring), background 0.4s;
}
.ds-step:hover .ds-step-num { transform: scale(1.12) rotate(-6deg); background: linear-gradient(120deg, #2a7bff, #7b5cff); }
.ds-step h3 { transition: transform 0.4s var(--ds-ease); }
.ds-step:hover h3 { transform: translateX(4px); }
.about-steps .ds-step-num, .page-steps .ds-step-num { color: inherit; }

/* ---------- Final CTA: rotating gradient border ---------- */
.ds-final-cta { background: radial-gradient(ellipse at 80% 50%, #dcd6ff, transparent 45%), radial-gradient(ellipse at 15% 30%, #d3ecff, transparent 45%), #f5f9ff; overflow: hidden; }
.ds-final-inner {
  position: relative; isolation: isolate; border: 1.5px solid transparent;
  background: linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)) padding-box,
              conic-gradient(from var(--ds-angle), #0865f5, #7b5cff, #12c2e9, #c9dcff, #0865f5) border-box;
  animation: dsSpin 8s linear infinite;
  box-shadow: 0 30px 80px rgba(60, 70, 180, 0.14);
}
.cta-meta a { transition: color 0.3s; }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(180deg, #eef5ff, #f7f9fc); padding: 4rem 0 2.8rem; }
.page-hero h1 { position: relative; }
.block, .cap-card, .why-item, form.form, .form {
  position: relative; isolation: isolate; --mx: 50%; --my: 0%;
  transition: transform 0.5s var(--ds-ease), box-shadow 0.5s var(--ds-ease), opacity 0.8s var(--ds-ease);
}
.block:hover, .cap-card:hover { transform: translateY(-5px); box-shadow: 0 26px 55px rgba(20, 50, 90, 0.1); }
.block li { transition: transform 0.3s var(--ds-ease), color 0.3s; }
.block li::before { transition: transform 0.35s var(--ds-spring); }
.block li:hover { transform: translateX(4px); color: var(--ds-ink); }
.block li:hover::before { transform: translateX(3px); }
.cap-card .tag {
  background: var(--ds-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.rule {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(125deg, #0a1426, #12305f 55%, #2a2470);
}
.rule::after {
  content: ""; position: absolute; width: 22rem; height: 22rem; right: -6rem; top: -8rem; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,108,255,0.5), transparent 70%); animation: dsBlobB 18s ease-in-out infinite;
}
.rule .ds-kicker { color: #9cc8ff; }
input, select, textarea { transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
input:focus, select:focus, textarea:focus { border-color: #8aa9ff; background: #fff; box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.12); }
.check b { display: inline-grid; place-items: center; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #0865f5, #7b5cff, #12c2e9, transparent);
  background-size: 200% 100%; animation: dsGradShift 10s linear infinite;
}
.footer::after {
  content: ""; position: absolute; width: 30rem; height: 30rem; right: -12rem; bottom: -18rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(91,108,255,0.22), transparent 70%);
}
.footer a { transition: color 0.25s, transform 0.3s var(--ds-ease); }
.footer a:hover { transform: translateX(3px); }

/* ---------- Reveal variants ---------- */
.js .ds-reveal { opacity: 0; transform: translateY(34px) scale(0.98); filter: blur(6px);
  transition: opacity 0.9s var(--ds-ease), transform 0.9s var(--ds-ease), filter 0.9s var(--ds-ease), box-shadow 0.5s var(--ds-ease); }
.js .ds-reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .ds-reveal.is-in.ds-service-card:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px); }
.js .ds-reveal.is-in.ds-work-card:hover { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px); }
.js .ds-reveal.is-in.block:hover, .js .ds-reveal.is-in.cap-card:hover { transform: translateY(-5px); }
.js .ds-reveal.is-in.ds-step:hover { transform: none; }
.js .ds-reveal.is-settled { transition: transform 0.45s var(--ds-ease), box-shadow 0.45s var(--ds-ease), opacity 0.3s, filter 0.3s; transition-delay: 0s !important; }
.js .ds-process h2, .js .ds-process .ds-process-intro, .js .ds-process > .ds-wrap > .ds-kicker { transition: opacity 0.9s var(--ds-ease), transform 0.9s var(--ds-ease); }
.js .ds-process:not(.is-in) > .ds-wrap > .ds-kicker, .js .ds-process:not(.is-in) h2, .js .ds-process:not(.is-in) .ds-process-intro { opacity: 0; transform: translateY(24px); }
.js .ds-process.is-in h2 { transition-delay: 0.1s; }
.js .ds-process.is-in .ds-process-intro { transition-delay: 0.2s; }

/* ---------- Cursor glow (desktop) ---------- */
.ds-cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 40;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(91, 108, 255, 0.11), rgba(18, 194, 233, 0.05) 40%, transparent 65%);
  transition: opacity 0.5s; will-change: transform;
}
.ds-cursor-glow.is-on { opacity: 1; }

/* ---------- Keyframes ---------- */
@keyframes dsNavIn { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dsMenuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes dsFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dsRise { from { opacity: 0; transform: translateY(36px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes dsRiseAccent { from { opacity: 0; transform: translateY(40px) skewY(4deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes dsVisualIn { from { opacity: 0; transform: translateY(40px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes dsGradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes dsSpin { to { --ds-angle: 360deg; } }
@keyframes dsBlobA { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-6rem, 4rem) scale(1.12); } 66% { transform: translate(3rem, 2rem) scale(0.92); } }
@keyframes dsBlobB { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-8rem, -3rem) scale(1.2); } }
@keyframes dsBlobC { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(7rem, -5rem) scale(1.15); } }
@keyframes dsDots { to { background-position: 250px 250px; } }
@keyframes dsPulse { 0% { box-shadow: 0 0 0 0 rgba(32, 177, 122, 0.45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(32, 177, 122, 0); } }
@keyframes dsScreenShine { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@keyframes dsPillPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 201, 139, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(245, 201, 139, 0); } }

/* ---------- Responsive / performance ---------- */
@media (max-width: 719px) {
  .ds-blob { filter: blur(44px); }
  .ds-blob-1 { width: 22rem; height: 22rem; left: 30%; top: -8rem; }
  .ds-blob-2 { width: 16rem; height: 16rem; left: 55%; top: 45%; }
  .ds-blob-3 { width: 16rem; height: 16rem; }
  .ds-process { clip-path: polygon(0 1.8rem, 100% 0, 100% calc(100% - 1.8rem), 0 100%); padding: 5rem 0; }
  .ds-service-card:hover, .ds-work-card:hover { transform: translateY(-4px); }
}
@media (hover: none) {
  .ds-service-card:hover, .ds-work-card:hover,
  .js .ds-reveal.is-in.ds-service-card:hover, .js .ds-reveal.is-in.ds-work-card:hover { transform: none; }
  .ds-cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .ds-reveal, .js .ds-reveal.is-in { opacity: 1; transform: none; filter: none; }
  .js .ds-process:not(.is-in) h2, .js .ds-process:not(.is-in) .ds-process-intro, .js .ds-process:not(.is-in) > .ds-wrap > .ds-kicker { opacity: 1; transform: none; }
  .ds-step::after { transform: scaleX(1); }
  .ds-cursor-glow, .ds-progress { display: none; }
  .ds-laptop, .ds-phone, .ds-float-card, .ds-blob, .ds-work-image img { translate: none !important; }
  .ds-service-card:hover, .ds-work-card:hover, .block:hover, .cap-card:hover,
  .js .ds-reveal.is-in.ds-service-card:hover, .js .ds-reveal.is-in.ds-work-card:hover { transform: none; }
}

/* v4: classes replacing inline styles (CSP-safe) + light-context steps */
.ds-w72 { width: 72%; }
.ds-w54 { width: 54%; }
.ds-steps-light { margin-top: 1.5rem; }
.ds-steps-light .ds-step::before { background: var(--ds-line); }
.ds-steps-light .ds-step::after { background: var(--ds-grad); }
.ds-block-in .ds-steps-light .ds-step::after, .no-js .ds-steps-light .ds-step::after { transform: scaleX(1); }
.ds-steps-light .ds-step-num { color: var(--ds-blue); background: var(--ds-pale); border-color: var(--ds-line); }
.ds-steps-light .ds-step:hover .ds-step-num { color: #fff; }
.ds-steps-light .ds-step p { color: #3f4f66; }
.block.is-in .ds-steps-light .ds-step::after { transform: scaleX(1); }
.block.is-in .ds-steps-light .ds-step:nth-child(2)::after { transition-delay: 0.35s; }
.block.is-in .ds-steps-light .ds-step:nth-child(3)::after { transition-delay: 0.5s; }
.block.is-in .ds-steps-light .ds-step:nth-child(4)::after { transition-delay: 0.65s; }
@media (prefers-reduced-motion: reduce) { .ds-steps-light .ds-step::after { transform: scaleX(1); } }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5rem; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--ds-bg));
}
.foot-brand b, .foot-brand span { color: #fff; }

/* =====================================================================
   LAYOUT READABILITY (2026-11-13)
   Clearer section separation, a comfortable reading measure, and
   calmer 2–3 column grids. Brand colours, copy, and the fixed
   nav height are unchanged.
   ===================================================================== */

/* Comfortable body text and a ~65ch measure for paragraphs */
body {
  font-size: 1.125rem;
  line-height: 1.7;
}
.ds-lead,
.ds-section-heading p,
.ds-process-intro,
.page-hero .lead,
.block p,
.ds-final-inner p,
.ds-service-card p,
.ds-work-copy p,
.ds-step p,
.cap-card p,
.why-item p {
  max-width: 65ch;
  line-height: 1.7;
}

/* Stronger heading hierarchy and contrast */
.ds-hero h1,
.ds-section-heading h2,
.page-hero h1,
.ds-final-inner h2,
.block h2,
.cap-card h2 {
  color: var(--ds-ink);
  line-height: 1.15;
}
.ds-process h2 { color: #fff; line-height: 1.15; }
.ds-service-card h3,
.ds-work-copy h3,
.ds-step h3,
.cap-card h2,
.block h2 {
  color: var(--ds-ink);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.ds-process .ds-step h3 { color: #fff; }
.ds-service-card h3 { font-size: 1.2rem; line-height: 1.3; }
.ds-work-copy h3 { font-size: 1.35rem; line-height: 1.3; }
.ds-step h3 { font-size: 1.3rem; }

/* More space between sections; alternate surfaces so each reads as distinct */
.ds-services,
.ds-work,
.ds-final-cta { padding: 5.75rem 0 6.25rem; }
.ds-section-heading { margin-bottom: 2.75rem; gap: 1.25rem; }
.ds-services {
  background: var(--ds-pale);
  border-top: 1px solid var(--ds-line);
}
.ds-work {
  background: var(--ds-white);
  border-top: 1px solid var(--ds-line);
  border-bottom: 1px solid var(--ds-line);
}
.ds-final-cta {
  background: var(--ds-bg);
  border-top: 1px solid var(--ds-line);
}
.page-hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--ds-line);
}
.stack { gap: 1.85rem; padding: 2.5rem 0 5.5rem; }
.contact-grid { gap: 2rem; padding-bottom: 5.5rem; }

/* Grids: never more than 3 items per row; more space between cards */
.ds-service-grid,
.ds-work-grid,
.ds-steps,
.cap-grid,
.why-list { gap: 1.5rem; }

@media (min-width: 980px) {
  .ds-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; }
  .cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Cards: solid surfaces and a visible edge (hover gradient border stays) */
.ds-service-card,
.ds-work-card,
.cap-card,
.why-item,
.block,
form.form,
.form {
  border: 1px solid var(--ds-line);
  background: var(--ds-white);
}
.ds-service-card { padding: 1.55rem 1.4rem 1.45rem; }
.ds-work-copy { padding: 1.35rem 1.4rem 1.5rem; }
.cap-card, .why-item { padding: 1.45rem 1.4rem; }
.block { padding: 1.7rem 1.5rem; }

/* Nav stays a fixed height; no layout shift on scroll */
.nav-inner {
  height: var(--header-h);
  transition: none;
}
.nav.is-scrolled .nav-inner { height: var(--header-h); }

/* =====================================================================
   HOMEPAGE COPY UPDATE (2026-11-13)
   Longer hero title, 3 service cards, proof, FAQ. Fixed nav height kept.
   ===================================================================== */
.ds-hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
  max-width: none;
  text-wrap: balance;
  margin: 1.1rem 0 1.15rem;
}
.ds-service-points {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}
.ds-service-points li {
  position: relative;
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  color: #3f4f66;
  font-size: 1rem;
  line-height: 1.55;
}
.ds-service-points li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ds-blue);
  font-weight: 700;
}

.ds-proof {
  padding: 5.75rem 0 6.25rem;
  background: var(--ds-white);
  border-top: 1px solid var(--ds-line);
  border-bottom: 1px solid var(--ds-line);
}
.ds-proof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  max-width: 65ch;
}
.ds-proof-item {
  margin: 0;
  padding: 1.25rem 1.4rem;
  background: var(--ds-white);
  border: 1px solid var(--ds-line);
  border-radius: 1.2rem;
  color: var(--ds-ink);
  font-size: 1.125rem;
  line-height: 1.6;
}

.ds-faq {
  padding: 5.75rem 0 6.25rem;
  background: var(--ds-pale);
  border-top: 1px solid var(--ds-line);
}
.ds-faq-list {
  display: grid;
  gap: 1.25rem;
}
.ds-faq-item {
  margin: 0;
  padding: 1.35rem 1.4rem 1.4rem;
  background: var(--ds-white);
  border: 1px solid var(--ds-line);
  border-radius: 1.2rem;
}
.ds-faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ds-ink);
  letter-spacing: -0.02em;
}
.ds-faq-item p {
  margin: 0;
  max-width: 65ch;
  line-height: 1.7;
  color: #3f4f66;
}
@media (min-width: 720px) {
  .ds-faq-list { grid-template-columns: 1fr 1fr; gap: 1.35rem 1.5rem; }
}

/* =====================================================================
   REVIEW UPDATES (2026-11-13): intro, mid CTA, mock label, tighter mobile
   ===================================================================== */
.ds-hero-cred {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: #4a5b73;
  font-size: 0.98rem;
  line-height: 1.55;
}
.ds-mock-label {
  margin: 0.2rem auto 0.85rem;
  text-align: center;
  color: #5a6a82;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.ds-mid-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
  padding: 1.3rem 1.4rem;
  background: var(--ds-white);
  border: 1px solid var(--ds-line);
  border-radius: 1.3rem;
}
.ds-mid-cta p {
  margin: 0;
  max-width: 38rem;
  color: #3f4f66;
  line-height: 1.6;
}

.ds-proof-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.ds-proof-photo {
  width: min(16rem, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  border: 1px solid var(--ds-line);
  background:
    linear-gradient(180deg, #eef4ff 0%, #e4edf8 100%);
}
.ds-proof-copy h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--ds-ink);
  margin: 0.4rem 0 1rem;
  text-wrap: balance;
}
.ds-proof-copy p {
  margin: 0;
  max-width: 65ch;
  line-height: 1.7;
  color: #33435c;
  font-size: 1.125rem;
}

.links .nav-cta, .mobile-cta {
  font-size: 0.82rem;
  padding: 0 1rem;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .ds-proof-grid { grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr); gap: 2.4rem; }
}

@media (max-width: 719px) {
  .ds-hero-cred { font-size: 0.92rem; margin-top: 0.7rem; }
  .ds-trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.75rem;
    justify-content: stretch;
    padding: 0.7rem 0 0.85rem;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    line-height: 1.3;
  }
  .ds-trust-strip span { gap: 6px; }
  .ds-services,
  .ds-proof,
  .ds-faq,
  .ds-final-cta { padding: 3rem 0 3.25rem; }
  .ds-section-heading { margin-bottom: 1.4rem; }
  .ds-mid-cta { margin-top: 1.4rem; padding: 1.1rem 1.15rem; }
  .ds-proof-photo { width: 7.5rem; aspect-ratio: 1; }
  .ds-proof-copy h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); margin: 0.25rem 0 0.7rem; }
  .ds-mock-label { margin-bottom: 0.5rem; }
  .ds-process { padding: 4.2rem 0; }
}

@media (min-width: 980px) and (max-width: 1180px) {
  .links { gap: 14px; }
  .links a { font-size: 0.86rem; }
  .links .nav-cta { font-size: 0.78rem; padding: 0 0.85rem; }
}


/* =====================================================================
   TASK #18 / #19 — local draft patch (not deployed)
   ===================================================================== */

/* #18 Header shake
   FACT: .js .nav uses animation dsNavIn (transform: translateY(-100%)
   to none, fill-mode both) on a position:sticky header. A transform on
   a sticky element creates a containing block and is a known cause of
   header jitter while scrolling.
   FACT: body { overflow-x: hidden } on an ancestor can also break
   sticky positioning in some browsers.
   FACT: a later rule already locked .nav-inner height and disabled its
   height transition; .nav.is-scrolled only changes background,
   box-shadow and border-color (no height/padding change).
   Fix: keep the bar out of the document flow (fixed + body offset),
   never animate transform on it, and move backdrop-filter onto a
   decorative pseudo-element so scroll-linked style changes do not
   relayout the bar. */

.js .nav { animation: none; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  isolation: isolate;
  transform: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(250, 252, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.35s var(--ds-ease), box-shadow 0.35s var(--ds-ease);
}

.nav.is-scrolled {
  background: transparent;
  box-shadow: none;
}

.nav.is-scrolled::before {
  background: rgba(250, 252, 255, 0.96);
  box-shadow: 0 10px 30px rgba(16, 40, 90, 0.08);
}

.nav-inner,
.nav.is-scrolled .nav-inner {
  height: var(--header-h);
  min-height: var(--header-h);
  max-height: var(--header-h);
  transition: none;
}

body {
  padding-top: calc(var(--header-h) + 1px);
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  .js .nav { animation: none; }
  .nav, .nav::before { transition: none; }
}

/* #19 Layout readability
   CSS-only. Brand colours and all page copy stay the same.
   Builds on the existing readability block: consistent section
   rhythm, clearer dividers, comfortable measure and line-height. */

.ds-hero {
  padding-top: 3.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--ds-line);
}

.ds-trust-strip {
  padding: 1.5rem 0 1.75rem;
  margin-top: 1.25rem;
}

.ds-services,
.ds-work,
.ds-proof,
.ds-faq,
.ds-final-cta,
.ds-process {
  padding: 5.75rem 0 6.25rem;
}

.ds-process {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ds-lead,
.ds-section-heading p,
.ds-process-intro,
.page-hero .lead,
.block p,
.ds-final-inner p,
.ds-service-card p,
.ds-work-copy p,
.ds-step p,
.cap-card p,
.why-item p,
.ds-faq-item p,
.ds-proof-copy p,
.ds-hero-cred,
.ds-mid-cta p {
  max-width: 70ch;
  line-height: 1.6;
}

.footer {
  padding-top: 3.75rem;
}

@media (min-width: 980px) {
  .ds-hero { padding: 4.75rem 0 3rem; }
}

@media (max-width: 719px) {
  .ds-hero { padding: 2.5rem 0 2.25rem; }
  .ds-trust-strip {
    padding: 1.15rem 0 1.35rem;
    margin-top: 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }
  .ds-services,
  .ds-proof,
  .ds-faq,
  .ds-final-cta,
  .ds-process,
  .ds-work { padding: 4rem 0 4.25rem; }
  .ds-section-heading { margin-bottom: 1.75rem; }
}
