/* ==========================================================================
   DNKS Solutions — landing page
   Type: Sora (display) · Manrope (body) · JetBrains Mono (system labels)
   ========================================================================== */

:root {
  --navy: #071A3D;
  --navy-2: #0B2E68;
  --blue: #0B6FD3;
  --cyan: #00B8E6;
  --white: #FFFFFF;
  --bg: #F7F9FC;
  --line: #E5EAF2;

  --ink: #081733;
  --ink-2: #24365A;
  --muted: #5A6A86;
  --line-dark: rgba(255, 255, 255, .1);
  --text-dark: rgba(226, 236, 255, .72);

  --grad: linear-gradient(100deg, #0B6FD3 0%, #00B8E6 100%);

  --f-display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --max: 1360px;
  --pad: clamp(20px, 4vw, 56px);
  --header: 80px;
  --sec-y: clamp(88px, 10vw, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; font-weight: 600; letter-spacing: -.03em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--navy); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: var(--sec-y); position: relative; }

.ic, .chip-ic svg, .svc-ic svg, .svc-arrow svg, .ind-ic svg, .ind-arrow svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- Type primitives ---------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 24px; height: 1.5px; margin: -2px 12px 0 0; background: var(--grad); }
.eyebrow i { font-style: normal; color: var(--cyan); }
.eyebrow--dark { color: var(--cyan); }

.h2 {
  font-size: clamp(34px, 3.9vw, 58px);
  line-height: 1.04;
  letter-spacing: -.038em;
}
.lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); max-width: 34em; }

.grad-text {
  font-style: normal;
  background: linear-gradient(95deg, #0B6FD3 0%, #00B8E6 45%, #0B6FD3 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 9s ease-in-out infinite alternate;
}
@keyframes gradShift { to { background-position: 100% 0; } }

.link-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none; color: var(--ink);
  padding-bottom: 6px;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 1.5px no-repeat;
  transition: background-size .4s var(--ease), color .3s;
}
.link-cta .ic { transition: transform .3s var(--ease); }
.link-cta:hover { color: var(--blue); background-image: var(--grad); }
.link-cta:hover .ic { transform: translateX(5px); }
.link-cta--dark { color: #fff; background-image: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)); }
.link-cta--dark:hover { color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border: 1px solid transparent; border-radius: 12px;
  font-family: var(--f-body); font-weight: 700; font-size: 15.5px; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .35s var(--ease), translate .2s;
}
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { translate: 0 1px; }
.btn-sm { --h: 44px; padding: 0 18px; font-size: 14.5px; border-radius: 10px; }
.btn-lg { --h: 58px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad); opacity: 0; transition: opacity .35s var(--ease);
}
.btn-primary:hover { box-shadow: 0 12px 30px -12px rgba(11, 111, 211, .6); }
.btn-primary:hover::before { opacity: 1; }

.btn-ghost { background: #fff; color: var(--ink); border-color: #D5DDEA; }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, #E6F8FE, #CFF2FC); opacity: 0; transition: opacity .35s;
}
.btn-light:hover { box-shadow: 0 14px 40px -14px rgba(0, 184, 230, .7); }
.btn-light:hover::before { opacity: 1; }

.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-dark:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   01 — Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header);
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background-color .35s, box-shadow .35s, border-color .35s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-color: rgba(229, 234, 242, .8);
  box-shadow: 0 10px 30px -18px rgba(7, 26, 61, .25);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-logo { display: block; height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a {
  position: relative; padding: 10px 16px;
  font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 1.5px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(7, 26, 61, .35);
}
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 12px 24px; }
.mobile-menu a:not(.btn) {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -.02em; text-decoration: none;
}
.mobile-menu .btn { margin-top: 20px; }

/* ==========================================================================
   02 — Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(var(--pad), 1fr)
    minmax(0, calc(var(--max) * .48))
    minmax(0, calc(var(--max) * .52))
    minmax(var(--pad), 1fr);
  min-height: clamp(720px, calc(100vh - var(--header)), 860px);
  background: #fff;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 70% at 18% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(60% 70% at 18% 45%, #000 0%, transparent 70%);
  opacity: .55;
}
.hero-copy { grid-column: 2; align-self: center; position: relative; z-index: 2; padding: 72px 56px 72px 0; }
.hero-title {
  font-size: clamp(44px, 4.7vw, 68px); /* capped so "Build What's Next" stays on one line in the 48% column */
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0 0 30px;
}
.hero-title > span { display: block; }
.hero-lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); max-width: 32em; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  display: flex; align-items: center; gap: 12px;
  max-width: 470px; margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--muted);
}
.pulse, .live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none;
  box-shadow: 0 0 0 0 rgba(0, 184, 230, .5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 184, 230, .55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(0, 184, 230, 0); }
}

.hero-visual {
  grid-column: 3 / 5;
  position: relative;
  margin-block: 24px;
  min-height: 640px;
  border-radius: 28px 0 0 28px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 55% 42%, rgba(0, 184, 230, .16) 0%, transparent 60%),
    radial-gradient(120% 100% at 60% 30%, #0E3A7E 0%, #0B2E68 32%, #071A3D 72%);
  color: #fff;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  border-radius: inherit;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hv-hud {
  position: absolute; left: 32px; right: 40px; z-index: 4;
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(214, 229, 255, .5);
}
.hv-hud--top { top: 26px; }
.hv-hud--bottom { bottom: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.hv-coords { font-variant-numeric: tabular-nums; }
.live { display: inline-flex; align-items: center; gap: 10px; color: rgba(214, 229, 255, .8); }
.live i { width: 6px; height: 6px; }

.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px 9px 9px;
  border-radius: 14px;
  background: rgba(9, 34, 82, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .9s var(--ease), opacity .8s var(--ease);
  animation: float 8s ease-in-out infinite;
  white-space: nowrap;
}
.chip-ic {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(11, 111, 211, .55), rgba(0, 184, 230, .2));
  border: 1px solid rgba(0, 184, 230, .35);
  color: #8BE6FF;
}
.chip-ic svg { width: 18px; height: 18px; }
.chip-tx { display: flex; flex-direction: column; line-height: 1.25; }
.chip-tx small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(214, 229, 255, .55); }
.chip-tx b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.chip--ai    { top: 15%; left: 7%; }
.chip--cloud { top: 12%; right: 9%; animation-delay: -2s; }
.chip--data  { top: 49%; right: 4%; animation-delay: -4s; }
.chip--soft  { bottom: 19%; left: 5%; animation-delay: -6s; }
.chip--sec   { bottom: 15%; right: 24%; animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -9px; } }

/* ==========================================================================
   03 — Capability strip
   ========================================================================== */
.cap-strip {
  background: #EEF3FA;
  border-block: 1px solid var(--line);
}
.cap-grid { display: flex; }
.cap-grid li {
  flex: 1 1 auto; min-width: 0; justify-content: center; white-space: normal; /* shrink + wrap rather than overflow */
  display: flex; align-items: center; gap: 12px;
  padding: 30px 20px;
  border-left: 1px solid #D9E2EE;
  font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink-2);
  transition: background-color .3s, color .3s;
}
.cap-grid li:last-child { border-right: 1px solid #D9E2EE; }
.cap-grid li .ic { width: 22px; height: 22px; color: var(--blue); transition: color .3s, transform .4s var(--ease); }
.cap-grid li:hover { background: #fff; color: var(--ink); }
.cap-grid li:hover .ic { color: var(--cyan); transform: scale(1.08); }

/* ==========================================================================
   04 — Services
   ========================================================================== */
.services { background: #fff; }

/* Header band: headline left, summary right, grid runs full width below */
.svc-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 72px);
}
.svc-head .eyebrow { margin-bottom: 22px; }
.svc-head .h2 { max-width: 13.5em; }

/* 12-column bento */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: 16px;
}
.svc--feature { grid-column: span 6; grid-row: span 2; }
.svc--soft, .svc--cloud, .svc--sec { grid-column: span 3; }
.svc--data { grid-column: span 6; }
.svc--web { grid-column: span 4; }
.svc--ent { grid-column: span 5; }

/* Card base */
.svc {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px 28px 84px;
  border: 1px solid var(--line); border-radius: 20px;
  background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color .35s, box-shadow .5s var(--ease), translate .5s var(--ease);
}
.svc::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.svc:hover { border-color: #C8D5E8; translate: 0 -4px; box-shadow: 0 34px 60px -38px rgba(7, 26, 61, .38); }
.svc:hover::before { transform: scaleX(1); }

.svc-top { display: flex; align-items: center; justify-content: space-between; }
.svc-ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--blue);
  transition: background-color .35s, color .35s, border-color .35s;
}
.svc-ic svg { width: 22px; height: 22px; }
.svc:hover .svc-ic { background: var(--navy); border-color: var(--navy); color: var(--cyan); }
.svc h3 { margin: 0 0 10px; padding-top: 36px; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.svc p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.svc--soft p, .svc--cloud p, .svc--sec p { margin-bottom: 22px; }
.svc-arrow {
  position: absolute; right: 22px; bottom: 22px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink);
  transition: background-color .35s, border-color .35s, color .35s, transform .5s var(--ease);
}
.svc-arrow svg { width: 16px; height: 16px; }
.svc:hover .svc-arrow { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(45deg); }

/* Featured card */
.svc--feature {
  min-height: 580px; padding: 0;
  background:
    radial-gradient(80% 60% at 70% 18%, rgba(0, 184, 230, .18) 0%, transparent 60%),
    radial-gradient(120% 90% at 60% 10%, #0E3A7E 0%, #0B2E68 35%, #071A3D 75%);
  border-color: transparent; color: #fff;
}
.svc--feature:hover { border-color: transparent; box-shadow: 0 40px 70px -40px rgba(7, 26, 61, .7); }
/* AI render fills the card and fades into navy behind the copy */
.svc-feature-visual { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; }
.svc-feature-visual img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  transform-origin: 50% 30%; animation: aiDrift 22s ease-in-out infinite alternate;
  transition: filter .6s var(--ease);
}
.svc-feature-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 26, 61, 0) 28%, rgba(7, 26, 61, .72) 56%, #071A3D 76%);
}
.svc-scan {
  position: absolute; left: 0; right: 0; top: -120px; height: 120px; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 184, 230, .14));
  border-bottom: 1px solid rgba(120, 230, 255, .6);
  box-shadow: 0 6px 18px -6px rgba(0, 184, 230, .7);
  animation: aiScan 7s cubic-bezier(.45, 0, .2, 1) infinite;
}
.svc--feature:hover .svc-feature-visual img { filter: brightness(1.12) saturate(1.1); }
.svc--feature .svc-body > :not(.svc-top):not(.svc-arrow) { position: relative; z-index: 1; }
.svc--feature .svc-top, .svc--feature .svc-arrow { z-index: 2; }
@keyframes aiDrift { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); } }
@keyframes aiScan {
  0% { top: -120px; opacity: 0; }
  12% { opacity: 1; }
  62% { top: 58%; opacity: 0; }
  100% { top: 58%; opacity: 0; }
}
.svc--feature .svc-body { position: static; margin-top: auto; padding: 36px; }
.svc--feature .svc-top { position: absolute; top: 28px; left: 36px; right: 28px; }
.svc--feature .svc-ic { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--cyan); }
.svc--feature h3 { padding-top: 0; font-size: clamp(28px, 2.5vw, 38px); letter-spacing: -.035em; color: #fff; }
.svc--feature p { font-size: 17px; color: var(--text-dark); max-width: 30em; }
.svc--feature .svc-arrow { right: 28px; bottom: 28px; width: 48px; height: 48px; border-color: rgba(255, 255, 255, .22); color: #fff; }
.svc--feature:hover .svc-arrow { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-right: 64px; }
.svc-tags li {
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: rgba(214, 229, 255, .82);
}


/* Wide cards: top row across, text left, illustration right */
.svc--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  grid-template-rows: auto 1fr;
  column-gap: 28px;
}
.svc--wide > .svc-top { grid-column: 1 / -1; }
.svc--wide .svc-body { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.svc--wide .svc-illus { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; width: 100%; max-width: 290px; margin-top: 20px; }

/* Shared illustration parts */
.svc-illus { display: block; overflow: visible; }
.s-frame { fill: #fff; stroke: #D3DDEB; stroke-width: 1.2; }
.s-line { stroke: var(--line); stroke-width: 1.2; }
.s-dot { fill: #DCE4EF; }
.s-fill { fill: #EEF3FA; }
.s-fill-strong { fill: #C9D6EA; }
.s-accent { fill: var(--blue); transition: fill .4s; }
.svc:hover .s-accent { fill: var(--cyan); }
.svc-illus--ent .s-frame { fill: var(--bg); }
.s-link { fill: none; stroke: #BFCDE2; stroke-width: 1.2; stroke-dasharray: 3 5; animation: linkFlow 1.4s linear infinite; animation-play-state: paused; }
.svc:hover .s-link { animation-play-state: running; stroke: var(--blue); }
@keyframes linkFlow { to { stroke-dashoffset: -16; } }
.s-hub { fill: var(--navy); }
.s-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-anchor: middle; fill: var(--ink-2); }
.s-label--hub { fill: var(--cyan); }

/* Web & Mobile: device illustration on top */
.svc-illus--web { width: 100%; max-width: 250px; margin: 24px auto 0; }
.svc--web h3 { padding-top: 28px; }

/* Data: chart */
.ch-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.ch-base { stroke: #C9D6EA; stroke-width: 1; }
.ch-bar { fill: #E3EAF5; transform-box: fill-box; transform-origin: bottom; transition: fill .4s, transform .5s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.ch-bar--hi { fill: var(--blue); }
.ch-line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: #fff; stroke: var(--cyan); stroke-width: 2; }
.svc:hover .ch-bar { fill: #CFE0F5; }
.svc:hover .ch-bar--hi { fill: var(--blue); }
.svc:hover .ch-bar:nth-child(odd) { transform: scaleY(1.08); }

/* Software: code snippet */
.svc-code {
  margin-top: auto; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  font-family: var(--f-mono); font-size: 12px; line-height: 1.8; color: var(--ink-2);
  white-space: nowrap; overflow: hidden;
}
.svc-code code { display: block; font: inherit; }
.svc-code i { display: inline-block; width: 18px; font-style: normal; color: #A3B1C6; }
.svc-code .k { color: var(--blue); }
.svc-code .f { color: var(--navy-2); font-weight: 500; }
.svc-code .s { color: #0A8CB0; }
.svc-code .caret { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Cloud: CI/CD pipeline */
.svc-pipe { position: relative; display: flex; justify-content: space-between; margin-top: auto; padding-top: 24px; }
.svc-pipe::before, .svc-pipe::after { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 1.5px; background: var(--line); }
.svc-pipe::after { background: var(--grad); transform: scaleX(.5); transform-origin: left; transition: transform .8s var(--ease); }
.svc:hover .svc-pipe::after { transform: scaleX(1); }
.svc-pipe li { position: relative; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc-pipe li::before {
  content: ""; position: absolute; top: -24px; left: 0; z-index: 1;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 1.5px solid #C3D0E3;
  transition: background-color .3s, border-color .3s;
}
.svc-pipe li:nth-child(2)::before { left: 50%; margin-left: -6px; }
.svc-pipe li:last-child::before { left: auto; right: 0; transition-delay: .5s; }
.svc-pipe li:nth-child(-n+2)::before, .svc:hover .svc-pipe li::before { background: var(--blue); border-color: var(--blue); }

/* Security: check list */
.svc-checks { margin-top: auto; border-top: 1px solid var(--line); }
.svc-checks li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.svc-checks .ic { width: 16px; height: 16px; color: var(--blue); transition: color .3s; }
.svc:hover .svc-checks .ic { color: var(--cyan); }
.svc-checks span {
  margin-left: auto; padding: 2px 8px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #0A8CB0; background: rgba(0, 184, 230, .1);
}

/* Services — responsive */
@media (max-width: 1120px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .svc-grid > .svc { grid-column: span 1; grid-row: auto; }
  .svc-grid > .svc--feature, .svc-grid > .svc--data, .svc-grid > .svc--ent { grid-column: span 2; }
  .svc--feature { min-height: 540px; }
}
/* Tablet: the feature card is wide, so the render sits on the right and fades in behind the copy */
@media (min-width: 761px) and (max-width: 1120px) {
  .svc--feature { background: radial-gradient(90% 130% at 72% 40%, #0B2E68 0%, #071A3D 68%); }
  .svc-feature-visual { left: 32%; border-radius: 0 20px 20px 0; }
  .svc-feature-visual img {
    object-position: 50% 32%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  }
  .svc-feature-visual::after { background: linear-gradient(180deg, rgba(7, 26, 61, 0) 62%, rgba(7, 26, 61, .9) 100%); }
  .svc--feature p { max-width: 24em; }
  .svc--feature .svc-tags { max-width: 60%; }
}
@media (max-width: 960px) {
  .svc-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-grid > .svc, .svc-grid > .svc--feature, .svc-grid > .svc--data, .svc-grid > .svc--ent { grid-column: auto; }
  .svc--feature { min-height: 0; }
  .svc-feature-visual { position: relative; inset: auto; height: 300px; }
  .svc--feature .svc-body { padding: 8px 28px 32px; }
  .svc--wide { grid-template-columns: minmax(0, 1fr); }
  .svc--wide .svc-illus { grid-column: 1; grid-row: 3; justify-self: start; max-width: 300px; }
}

/* ==========================================================================
   05 — Technology
   ========================================================================== */
.tech { background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.tech::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(45% 60% at 85% 18%, rgba(11, 111, 211, .38), transparent 70%),
    radial-gradient(40% 50% at 8% 92%, rgba(0, 184, 230, .12), transparent 70%);
}
.tech-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.tech-layout {
  display: grid;
  grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.tech .h2 { color: #fff; margin-bottom: 24px; }
.tech .lede { color: var(--text-dark); }

.tech-panel {
  padding: 0 28px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 58, 126, .42), rgba(7, 26, 61, .5));
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .7);
}
.tabs {
  position: relative; display: flex; gap: 2px;
  margin-inline: -28px; padding-inline: 18px;
  border-bottom: 1px solid var(--line-dark);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 24px 14px 22px; border: 0; background: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; white-space: nowrap; color: rgba(214, 229, 255, .58);
  transition: color .25s;
}
.tab:hover, .tab[aria-selected="true"] { color: #fff; }
.tab:focus-visible { outline-offset: -6px; }
.tab-ink {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; border-radius: 2px;
  background: var(--grad); box-shadow: 0 0 12px rgba(0, 184, 230, .8);
  transition: transform .5s var(--ease), width .5s var(--ease);
}
.tech-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 24px 0 20px; }
.tech-meta p { font-size: 15.5px; color: var(--text-dark); }

.tech-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tech-tiles:focus-visible { outline-offset: 6px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 124px; padding: 16px 18px 18px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
  transition: border-color .3s, background-color .3s, box-shadow .4s, translate .4s var(--ease);
}
/* Accent bar slides in along the bottom edge on hover */
.tile::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.tile:hover { border-color: rgba(0, 184, 230, .55); background-color: rgba(0, 184, 230, .07); translate: 0 -3px; box-shadow: 0 22px 40px -22px rgba(0, 184, 230, .45); }
.tile:hover::after { transform: scaleX(1); }
.tile-no { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--cyan); }
.tile-no::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(0, 184, 230, .4), transparent); }
.tile-name { margin-top: 18px; font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: #fff; }
.tile-role { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: rgba(214, 229, 255, .6); }
.tech-tiles.is-swapping .tile { animation: tileIn .55s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.tech-foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: rgba(214, 229, 255, .6); }
.tech-foot .ic { color: var(--cyan); width: 16px; height: 16px; }

/* ==========================================================================
   06 — Visual break
   ========================================================================== */
.flow {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(480px, 38vw, 560px);
  background: linear-gradient(112deg, #071A3D 0%, #0A2757 45%, #0B3F8C 80%, #0B5AB8 100%);
  color: #fff;
}
.flow::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(40% 70% at 88% 60%, rgba(0, 184, 230, .25), transparent 70%);
}
.flow::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 230, .4), transparent);
}
.flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.flow-inner { position: relative; padding-top: clamp(56px, 6vw, 88px); }
.flow-title {
  max-width: 15em;
  font-size: clamp(30px, 3.3vw, 50px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em;
  color: rgba(214, 229, 255, .55);
}
.flow-title span { display: block; font-weight: 600; color: #fff; }
.flow-stages { position: absolute; left: 0; right: 0; bottom: 34px; height: 20px; }
.flow-stages li {
  position: absolute; left: var(--x); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(226, 236, 255, .88);
}
.flow-stages span { color: var(--cyan); }
