/* ==========================================================================
   TECHNODIGG — Design System "Obsidian & Oasis"
   Hand-built. Zero frameworks. Zero external requests.
   ========================================================================== */

/* ---------- Font (self-hosted, latin subset, variable) ---------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/sora-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Core surfaces */
  --obsidian: #040a16;
  --obsidian-2: #08101f;
  --obsidian-3: #0d1830;
  --slate: #14203a;
  --hairline: rgba(255, 255, 255, .07);
  --hairline-2: rgba(255, 255, 255, .12);

  /* Brand accents — sampled from the Technodigg wordmark.
     #00c2e5 is the cyan of "TECHN"; #002c89 is the navy of "DIGG".
     The navy is too dark to read as an accent on a dark surface, so --azure
     is that navy brightened for on-screen use, with the true value kept as
     --azure-deep for gradient ends and light-on-dark fills. */
  --cyan: #00c2e5;          /* logo cyan, exact */
  --cyan-hi: #7ae6ff;
  --cyan-deep: #007fa3;
  --azure: #4d94ff;
  --azure-hi: #a6ccff;
  --azure-deep: #002c89;    /* logo navy, exact */
  --violet: #5f2ded;        /* from the old site's own hero gradient */
  --violet-hi: #9d7bff;

  /* Text */
  --ink: #eef4fc;
  --ink-2: #b0c1d8;
  --ink-3: #8ea1ba;
  --ink-4: #6f829e;

  /* Gradients */
  /* Runs the wordmark's own journey: cyan "TECHN" through to navy "DIGG". */
  --grad-signature: linear-gradient(115deg, var(--cyan-hi) 0%, var(--cyan) 34%, var(--azure) 100%);
  --grad-cyan: linear-gradient(120deg, var(--cyan-hi), var(--cyan) 55%, #008fb7);
  --grad-azure: linear-gradient(120deg, #cfe3ff, #7fb0ff 55%, var(--azure));
  --grad-surface: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));

  /* Type */
  --font-display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text',
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* Fluid scale */
  --fs-micro: .6875rem;
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-base: clamp(.97rem, .93rem + .18vw, 1.06rem);
  --fs-lg: clamp(1.06rem, 1rem + .3vw, 1.2rem);
  --fs-xl: clamp(1.25rem, 1.13rem + .55vw, 1.6rem);
  --fs-h3: clamp(1.35rem, 1.18rem + .8vw, 1.95rem);
  --fs-h2: clamp(1.85rem, 1.4rem + 2.1vw, 3.2rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 3.9vw, 5.1rem);
  --fs-mega: clamp(3rem, 1.3rem + 7.4vw, 8.5rem);

  /* Space */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.75rem, 2rem + 7vw, 8rem);

  /* Structure */
  --maxw: 78rem;
  --maxw-wide: 88rem;
  --maxw-prose: 44rem;
  --gutter: clamp(1.1rem, .55rem + 2.4vw, 3rem);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  /* Effects */
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -12px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 28px 60px -20px rgba(0, 0, 0, .85);
  --glow-cyan: 0 0 0 1px rgba(0, 194, 229, .3), 0 14px 44px -14px rgba(0, 194, 229, .45);
  --glow-azure: 0 0 0 1px rgba(77, 148, 255, .28), 0 14px 44px -14px rgba(77, 148, 255, .4);
  --ease: cubic-bezier(.22, .68, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -moz-tab-size: 2;
  tab-size: 2;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Must outrank component display rules, or [hidden] elements leak into view. */
[hidden] { display: none !important; }

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.024em;
  color: var(--ink);
  text-wrap: balance;
}

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

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--cyan); color: var(--obsidian); }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: var(--maxw-wide); }
.wrap-narrow { max-width: 60rem; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section > .wrap { position: relative; z-index: 2; }

/* Below-the-fold render skipping — a real win on the 10,000px+ pillar pages.
   Skipped subtrees can starve an IntersectionObserver, so the reveal logic in
   app.js carries a scroll-driven safety net; never remove that net while this
   is enabled, or content can stay hidden. */
.cv { content-visibility: auto; contain-intrinsic-size: auto 720px; }
.footer { content-visibility: auto; contain-intrinsic-size: auto 620px; }

.grid { display: grid; gap: var(--sp-5); }
.flex { display: flex; }
.stack > * + * { margin-top: var(--flow, 1rem); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.prose-w { max-width: var(--maxw-prose); }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.eyebrow--azure { color: var(--azure); }
.eyebrow--azure::before { background: linear-gradient(90deg, transparent, var(--azure)); }
.eyebrow--center::after {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.h-mega { font-size: var(--fs-mega); line-height: .92; letter-spacing: -.045em; font-weight: 800; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); letter-spacing: -.032em; }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-xl); letter-spacing: -.02em; }

.lead {
  font-size: var(--fs-lg);
  color: var(--ink-2);
  line-height: 1.6;
  text-wrap: pretty;
}
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; }

.gradient-text {
  background: var(--grad-signature);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Guard against invisible text if background-clip fails */
  -webkit-text-fill-color: transparent;
}
.gradient-text--cyan { background-image: var(--grad-cyan); }
.gradient-text--azure { background-image: var(--grad-azure); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 1.4rem + 2.4vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .h2 + .lead { margin-top: var(--sp-4); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 100px;
  border: 1px solid var(--hairline-2);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease),
    color .3s var(--ease), background-color .3s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-fg: #02131c;
  border-color: transparent;
  background: var(--grad-cyan);
  box-shadow: 0 8px 26px -10px rgba(0, 194, 229, .6);
  font-weight: 700;
}
.btn--primary:hover { box-shadow: 0 14px 38px -10px rgba(0, 194, 229, .8); }
/* Sheen sweep */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  z-index: -1;
}
.btn--primary:hover::after { animation: sheen .85s var(--ease-out) forwards; }
@keyframes sheen { to { transform: translateX(120%); } }

.btn--ghost { background: rgba(255, 255, 255, .035); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(77, 148, 255, .5); color: var(--ink); background: rgba(77, 148, 255, .07); }

.btn--azure {
  --btn-fg: #041028;
  border-color: transparent;
  background: var(--grad-azure);
  font-weight: 700;
  box-shadow: 0 8px 26px -10px rgba(77, 148, 255, .55);
}

.btn--violet {
  --btn-fg: #0a0620;
  border-color: transparent;
  background: linear-gradient(120deg, #d7c9ff, #a98cff 55%, #8b67f2);
  font-weight: 700;
  box-shadow: 0 8px 26px -10px rgba(95, 45, 237, .6);
}

.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-base); }
.btn--sm { padding: .6rem 1.1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn .ico { width: 1.05em; height: 1.05em; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover .ico--arrow { transform: translateX(3px); }

/* Text link with animated underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--azure);
  font-weight: 600;
  font-size: var(--fs-sm);
  font-family: var(--font-display);
  position: relative;
}
.tlink::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }
.tlink .ico { width: 1em; height: 1em; transition: transform .35s var(--ease-out); }
.tlink:hover .ico { transform: translateX(3px); }

/* ---------- Surfaces / cards ---------- */
.card {
  position: relative;
  padding: clamp(1.35rem, 1rem + 1.1vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--grad-surface), var(--obsidian-2);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s var(--ease), transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.card:hover { border-color: var(--hairline-2); transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* Spotlight follows cursor (JS sets --mx/--my) */
.card--spot::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(0, 194, 229, .17), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.card--spot:hover::before { opacity: 1; }

/* Top hairline that lights up */
.card--beam::after {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--grad-signature);
  opacity: .28;
  transition: opacity .4s var(--ease), left .5s var(--ease-out), right .5s var(--ease-out);
}
.card--beam:hover::after { opacity: 1; left: 0; right: 0; }

.panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .008)), var(--obsidian-2);
}

/* ---------- Decorative backdrops ---------- */
.bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 20%, transparent 78%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.bg-orb--cyan { background: radial-gradient(circle, rgba(0, 194, 229, .5), transparent 68%); }
.bg-orb--azure { background: radial-gradient(circle, rgba(77, 148, 255, .38), transparent 68%); }

/* Fine grain — pure CSS, no image request */
.grain::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--hairline-2) 15%, var(--hairline-2) 85%, transparent);
}

/* ---------- Header / Nav ---------- */
.topbar {
  background: linear-gradient(90deg, var(--obsidian-3), var(--slate) 50%, var(--obsidian-3));
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  position: relative;
  z-index: 60;
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar__list { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; transition: color .25s var(--ease); }
.topbar a:hover { color: var(--cyan); }
.topbar .ico { width: 13px; height: 13px; color: var(--cyan); flex: none; }
.topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--azure);
  font-family: var(--font-mono);
  letter-spacing: .05em;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 0 0 rgba(77, 148, 255, .7);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(77, 148, 255, .6); }
  70% { box-shadow: 0 0 0 8px rgba(77, 148, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 148, 255, 0); }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 10, 22, .72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--hairline); background: rgba(4, 10, 22, .9); }
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -.045em;
  color: var(--ink);
  line-height: 1;
}
/* Mirrors the wordmark: cyan on "TECHN", the second tone on "DIGG".
   The logo's second tone is navy #002c89, which is unreadable on a dark
   surface, so the value relationship inverts while the hue order is kept. */
.logo__text { color: var(--cyan); }
.logo__text span { color: var(--ink); }
.logo__text .logo__sub { color: var(--ink-4); }
.logo__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .28em;
  color: var(--ink-4);
  margin-top: 3px;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .8rem;
  font-family: var(--font-display);
  font-size: .855rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
  position: relative;
}
.nav__link:hover, .nav__link[aria-current='page'] { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .22rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-cyan);
}
.nav__caret { width: 11px; height: 11px; opacity: .6; transition: transform .3s var(--ease); }

/* Mega dropdown */
.nav__item { position: relative; }
.nav__item--has-menu:hover .nav__caret, .nav__item--has-menu:focus-within .nav__caret { transform: rotate(180deg); }
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: min(680px, calc(100vw - 2rem));
  padding: .7rem;
  border-radius: 18px;
  border: 1px solid var(--hairline-2);
  background: rgba(8, 16, 31, .97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease-out), visibility .28s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .2rem;
}
.nav__item--has-menu:hover .mega, .nav__item--has-menu:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega__link {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  transition: background-color .25s var(--ease);
}
.mega__link:hover { background: rgba(255, 255, 255, .06); }
.mega__ico {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(0, 194, 229, .16), rgba(77, 148, 255, .1));
  border: 1px solid var(--hairline);
  color: var(--cyan);
}
.mega__ico svg { width: 17px; height: 17px; }
.mega__t {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .87rem;
  color: var(--ink);
  line-height: 1.3;
}
.mega__d { display: block; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; margin-top: 2px; }

/* Pillar-organised mega menu: one column per commercial door.
   Anchored to the header row rather than the nav item, so a 940px panel can
   never hang off the left edge on a narrow desktop. */
.header__in { position: relative; }
.nav__item--has-menu { position: static; }
.mega--pillars {
  width: min(940px, calc(100vw - 2rem));
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding: .85rem;
}
.mega__col {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .35rem;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.mega__col:hover { background: rgba(255, 255, 255, .022); border-color: var(--hairline); }
.mega__link--head { padding: .65rem .7rem; align-items: center; }
.mega__col--cyan .mega__ico { color: var(--cyan); }
.mega__col--azure .mega__ico { color: var(--azure); }
.mega__col--violet .mega__ico { color: #9d7bff; }
.mega__col--cyan .mega__d { color: var(--cyan); }
.mega__col--azure .mega__d { color: var(--azure); }
.mega__col--violet .mega__d { color: #9d7bff; }
.mega__d { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; }
.mega__subs { display: grid; gap: 1px; padding-top: .3rem; }
.mega__sub {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .7rem;
  border-radius: 9px;
  font-size: .82rem;
  color: var(--ink-3);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.mega__sub svg { width: 15px; height: 15px; flex: none; opacity: .65; }
.mega__sub:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.mega__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: .4rem;
  padding: .8rem .9rem .35rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-xs);
}
.mega__foot a { color: var(--ink-3); transition: color .25s var(--ease); }
.mega__foot a:hover { color: var(--cyan); }

.drawer__group {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .9rem;
  padding: .7rem .25rem .55rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--cyan);
  border-bottom: 1px solid var(--hairline);
}
.drawer__group svg { width: 17px; height: 17px; flex: none; }

.header__cta { display: flex; align-items: center; gap: .6rem; flex: none; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--hairline-2);
  place-items: center;
  flex: none;
  background: rgba(255, 255, 255, .04);
}
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .2s var(--ease);
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--obsidian);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .35s var(--ease-out), visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem .25rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.drawer__sub { padding: .25rem 0 .6rem .9rem; }
.drawer__sub a {
  display: block;
  padding: .5rem 0;
  font-size: .89rem;
  color: var(--ink-3);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.drawer__sub a:hover { color: var(--azure); }
.drawer__foot { margin-top: 1.75rem; display: grid; gap: .7rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem) clamp(3.5rem, 2rem + 6vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__in {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero__title { font-size: var(--fs-h1); line-height: .98; letter-spacing: -.042em; font-weight: 800; }
.hero__title .ln { display: block; }
.hero__lead { margin-top: var(--sp-5); max-width: 34rem; font-size: var(--fs-lg); }
.hero__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__trust {
  margin-top: clamp(2rem, 1.4rem + 2vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.2rem;
  align-items: center;
}
.hero__trust-item { display: flex; align-items: baseline; gap: .5rem; }
.hero__trust-n {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1;
}
.hero__trust-l { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.3; max-width: 8rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .9rem .42rem .55rem;
  border-radius: 100px;
  border: 1px solid var(--hairline-2);
  background: rgba(255, 255, 255, .04);
  font-size: var(--fs-xs);
  color: var(--ink-2);
  margin-bottom: var(--sp-5);
}
.pill__tag {
  padding: .12rem .5rem;
  border-radius: 100px;
  background: var(--grad-cyan);
  color: #02131c;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Hero art frame */
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; overflow: visible; }

/* Floating stat chips over the art */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .85rem;
  border-radius: 13px;
  border: 1px solid var(--hairline-2);
  background: rgba(8, 16, 31, .88);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: var(--fs-xs);
  z-index: 4;
}
.chip__ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.chip__ico svg { width: 14px; height: 14px; }
.chip__ico--cyan { background: rgba(0, 194, 229, .16); color: var(--cyan); }
.chip__ico--azure { background: rgba(77, 148, 255, .14); color: var(--azure); }
.chip strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: .82rem; font-weight: 700; }
.chip span { color: var(--ink-3); font-size: 10.5px; }
.chip--a { top: 6%; right: -2%; animation: float 7s var(--ease) infinite; }
.chip--b { bottom: 10%; left: -4%; animation: float 8.5s var(--ease) infinite reverse; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ---------- Signature hero artwork: "Digital Dune Horizon" ---------- */
.dune-art { width: 100%; height: auto; overflow: visible; }

.da-gridline { stroke: rgba(0, 194, 229, .22); stroke-width: .7; }
.da-gridline--h { stroke: rgba(77, 148, 255, .16); }

.da-sun { animation: da-breathe 9s var(--ease) infinite; transform-origin: 300px 300px; }
@keyframes da-breathe { 0%, 100% { opacity: .24; } 50% { opacity: .4; } }

.da-sun-ring { stroke-dasharray: 740; stroke-dashoffset: 740; animation: da-draw 2.6s var(--ease-out) .2s forwards; }
.da-sun-ring--2 {
  animation: da-draw 2.6s var(--ease-out) .2s forwards, da-spin 46s linear 2.8s infinite;
  transform-origin: 300px 300px;
}
@keyframes da-draw { to { stroke-dashoffset: 0; } }
@keyframes da-spin { to { transform: rotate(360deg); } }

.da-dune { stroke-dasharray: 760; stroke-dashoffset: 760; animation: da-draw 2.2s var(--ease-out) .35s forwards; }
.da-dune--2 { animation-delay: .55s; }
.da-dune--3 { animation-delay: .75s; }

.da-orbit { animation: da-tilt 24s var(--ease) infinite; transform-origin: 300px 170px; transform-box: fill-box; }
@keyframes da-tilt {
  0%, 100% { transform: translate(300px, 170px) rotate(0deg); }
  50% { transform: translate(300px, 170px) rotate(9deg); }
}

.da-link {
  stroke: url(#da-edge);
  stroke-width: 1.15;
  opacity: 0;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: da-link-in .9s var(--ease-out) forwards, da-flicker 5s ease-in-out infinite;
}
@keyframes da-link-in { to { opacity: .6; stroke-dashoffset: 0; } }
@keyframes da-flicker { 0%, 100% { opacity: .42; } 50% { opacity: .85; } }

.da-hex {
  fill: rgba(4, 10, 22, .85);
  stroke: url(#da-edge);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: da-pop .7s var(--ease-out) forwards;
}
@keyframes da-pop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }

.da-core {
  fill: var(--cyan-hi);
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: da-pop .6s var(--ease-out) forwards, da-throb 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(122, 230, 255, .8));
}
@keyframes da-throb { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.35; } }

.da-packet { filter: drop-shadow(0 0 5px rgba(122, 230, 255, .9)); }

@media (prefers-reduced-motion: reduce) {
  .da-sun-ring, .da-dune, .da-link, .da-hex, .da-core {
    stroke-dashoffset: 0 !important;
    opacity: .6 !important;
    scale: 1 !important;
  }
  .da-hex { opacity: .9 !important; }
  .da-packet { display: none; }
}

/* ---------- Marquee (logos / tech) ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--mq-gap, 3.5rem);
  animation: marquee var(--mq-dur, 42s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(calc(-50% - (var(--mq-gap, 3.5rem) / 2))); } }

.tech-chip {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--obsidian-2);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
  flex: none;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.tech-chip:hover { border-color: rgba(77, 148, 255, .4); color: var(--ink); }
.tech-chip svg { width: 19px; height: 19px; flex: none; }

.client-logo {
  display: grid;
  place-items: center;
  min-width: 150px;
  height: 62px;
  padding-inline: 1.25rem;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.02em;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--obsidian-2);
  flex: none;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.client-logo:hover { color: var(--cyan); border-color: rgba(0, 194, 229, .35); }

/* ---------- Service cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(.9rem, .6rem + .8vw, 1.35rem);
}
.svc {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-height: 100%;
}
.svc__ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-2);
  background: linear-gradient(150deg, rgba(0, 194, 229, .15), rgba(77, 148, 255, .08));
  color: var(--cyan);
  flex: none;
  transition: transform .45s var(--ease-out), color .35s var(--ease);
}
.svc__ico svg { width: 25px; height: 25px; }
.card:hover .svc__ico { transform: translateY(-3px) scale(1.06); color: var(--cyan-hi); }
.svc__t { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.svc__d { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6; flex: 1; }
.svc__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  padding: .22rem .5rem;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  color: var(--ink-3);
  background: rgba(255, 255, 255, .025);
  text-transform: uppercase;
}
.svc__num {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .1em;
}

/* ---------- The three commercial doors ---------- */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: clamp(1rem, .7rem + 1vw, 1.5rem);
}
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-2);
  background: var(--grad-surface), var(--obsidian-2);
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease-out), border-color .4s var(--ease), box-shadow .45s var(--ease);
}
.door:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.door::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background: radial-gradient(520px circle at 50% -10%, var(--door-tint, rgba(0, 194, 229, .22)), transparent 68%);
  transition: opacity .45s var(--ease);
}
.door:hover::before { opacity: 1; }
.door::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--door-bar, var(--grad-cyan));
  transform: scaleX(.28);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.door:hover::after { transform: scaleX(1); }

.door--cyan { --door-tint: rgba(0, 194, 229, .22); --door-bar: var(--grad-cyan); }
.door--azure { --door-tint: rgba(77, 148, 255, .18); --door-bar: var(--grad-azure); }
.door--violet { --door-tint: rgba(95, 45, 237, .22); --door-bar: linear-gradient(120deg, #9d7bff, #5f2ded); }
.door--cyan:hover { border-color: rgba(0, 194, 229, .45); }
.door--azure:hover { border-color: rgba(77, 148, 255, .42); }
.door--violet:hover { border-color: rgba(95, 45, 237, .5); }

.door__n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.door__ico {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-2);
  background: rgba(255, 255, 255, .05);
  color: var(--cyan);
  flex: none;
  transition: transform .5s var(--ease-out);
}
.door--azure .door__ico { color: var(--azure); }
.door--violet .door__ico { color: #9d7bff; }
.door__ico svg { width: 28px; height: 28px; }
.door:hover .door__ico { transform: translateY(-3px) scale(1.07); }
.door__t {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.028em;
  color: var(--ink);
  line-height: 1.15;
}
.door__promise {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--cyan);
}
.door--azure .door__promise { color: var(--azure); }
.door--violet .door__promise { color: #9d7bff; }
.door__d { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.65; flex: 1; }
.door__list { display: grid; gap: .4rem; padding-top: .9rem; border-top: 1px solid var(--hairline); }
.door__list li { display: flex; gap: .5rem; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.door__list li::before { content: '→'; color: var(--cyan); flex: none; opacity: .7; }
.door--azure .door__list li::before { color: var(--azure); }
.door--violet .door__list li::before { color: #9d7bff; }
.door .btn { margin-top: .3rem; }

/* ---------- Pillar page: sticky section jump-nav ---------- */
.pnav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  border-block: 1px solid var(--hairline);
  background: rgba(4, 10, 22, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pnav__in {
  display: flex;
  gap: .3rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: .6rem;
  scroll-snap-type: x proximity;
}
.pnav__in::-webkit-scrollbar { display: none; }
.pnav a {
  flex: none;
  scroll-snap-align: start;
  padding: .5rem .85rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.pnav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); border-color: var(--hairline); }

/* ---------- Pillar page: sub-service blocks ---------- */
.pnode {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  padding-block: clamp(2.2rem, 1.5rem + 2.6vw, 3.75rem);
  border-top: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--header-h) + 5rem);
}
.pnode:last-of-type { border-bottom: 1px solid var(--hairline); }
.pnode__head { align-self: start; position: sticky; top: calc(var(--header-h) + 5rem); }
.pnode__n {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--cyan);
  margin-bottom: .9rem;
}
.pnode__n::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.pnode__t {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -.028em;
  color: var(--ink);
  line-height: 1.15;
}
.pnode__lead { font-size: var(--fs-base); color: var(--ink-2); line-height: 1.7; }
.pnode__outcome {
  margin-top: 1.15rem;
  padding: .85rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(77, 148, 255, .25);
  background: rgba(77, 148, 255, .07);
  font-size: var(--fs-xs);
  color: var(--azure-hi);
  line-height: 1.6;
}
.pnode__link { margin-top: 1.1rem; display: inline-flex; }

@media (max-width: 860px) {
  .pnode { grid-template-columns: 1fr; gap: 1.25rem; }
  .pnode__head { position: static; }
}

/* ---------- Outcome cards ---------- */
.outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(.85rem, .6rem + .8vw, 1.25rem);
}
.outcome { display: flex; flex-direction: column; gap: .7rem; }
.outcome__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-2);
  background: rgba(0, 194, 229, .1);
  color: var(--cyan);
  flex: none;
}
.outcome__ico svg { width: 21px; height: 21px; }
.outcome__t { font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--ink); }
.outcome__d { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6; }

/* ---------- Cluster group (services index) ---------- */
.cluster { margin-bottom: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.cluster__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.cluster__t { display: flex; align-items: center; gap: .85rem; }
.cluster__ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-2);
  background: rgba(255, 255, 255, .04);
  color: var(--cyan);
  flex: none;
}
.cluster__ico svg { width: 22px; height: 22px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  padding: clamp(1.15rem, .9rem + .8vw, 1.9rem) 1.1rem;
  background: var(--obsidian-2);
  text-align: center;
  position: relative;
  transition: background-color .4s var(--ease);
}
.stat:hover { background: var(--obsidian-3); }
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat__l {
  margin-top: .5rem;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: .02em;
  line-height: 1.4;
}
/* Four stats: always a clean 2x2 so no track is ever left empty */
.stats--quad { grid-template-columns: repeat(2, 1fr); }

/* ---------- Feature rows ---------- */
.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: clamp(1rem, .7rem + 1vw, 1.6rem);
}
.feat__item { display: flex; gap: 1rem; }
.feat__ico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-2);
  background: rgba(77, 148, 255, .08);
  color: var(--azure);
}
.feat__ico svg { width: 21px; height: 21px; }
.feat__t { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: .35rem; }
.feat__d { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6; }

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 1.2rem + 3.5vw, 4.5rem);
  align-items: center;
}
.split--art-first .split__art { order: -1; }

/* ---------- Industry hex/chip grid ---------- */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(158px, 100%), 1fr));
  gap: .7rem;
}
.ind {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.35rem .85rem;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--obsidian-2);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-display);
  transition: transform .4s var(--ease-out), border-color .35s var(--ease), background-color .35s var(--ease), color .3s var(--ease);
}
.ind svg { width: 27px; height: 27px; color: var(--ink-3); transition: color .35s var(--ease), transform .4s var(--ease-out); }
.ind:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 229, .38);
  background: linear-gradient(160deg, rgba(0, 194, 229, .1), transparent);
  color: var(--ink);
}
.ind:hover svg { color: var(--cyan); transform: scale(1.1); }

/* ---------- Capability list ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap { padding: 1.4rem 1.25rem; background: var(--obsidian-2); transition: background-color .35s var(--ease); }
.cap:hover { background: var(--obsidian-3); }
.cap__t {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .93rem;
  color: var(--ink);
  margin-bottom: .6rem;
}
.cap__t svg { width: 17px; height: 17px; color: var(--azure); flex: none; }
.cap__list { display: flex; flex-wrap: wrap; gap: .3rem; }
.cap__list li {
  font-size: 11.5px;
  color: var(--ink-3);
  padding: .18rem .45rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, .035);
}

/* ---------- Process timeline ---------- */
.process { position: relative; display: grid; gap: 1px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hairline);
  transition: background-color .4s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step__n {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid rgba(0, 194, 229, .3);
  background: radial-gradient(circle at 30% 25%, rgba(0, 194, 229, .18), transparent 70%);
  position: relative;
  transition: transform .45s var(--ease-out), border-color .35s var(--ease);
}
.step:hover .step__n { transform: scale(1.07); border-color: var(--cyan); }
.step__body { display: grid; gap: .4rem; align-content: center; }
.step__t { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.step__d { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6; max-width: 46rem; }
.step__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--azure);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-2);
  padding: clamp(2rem, 1.2rem + 3.5vw, 4rem);
  background:
    radial-gradient(1000px circle at 12% 0%, rgba(0, 194, 229, .16), transparent 55%),
    radial-gradient(900px circle at 88% 100%, rgba(77, 148, 255, .14), transparent 55%),
    var(--obsidian-2);
  isolation: isolate;
}
.cta-band__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
}
.cta-band__in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  align-items: center;
}
.cta-contacts { display: grid; gap: .7rem; }
.cta-contact {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.1rem;
  border-radius: 13px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .035);
  transition: border-color .3s var(--ease), transform .35s var(--ease-out);
}
.cta-contact:hover { border-color: rgba(0, 194, 229, .45); transform: translateX(4px); }
.cta-contact__ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(0, 194, 229, .14);
  color: var(--cyan);
}
.cta-contact__ico svg { width: 18px; height: 18px; }
.cta-contact__l { display: block; font-size: 10.5px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.cta-contact__v { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink); margin-top: 2px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: .85rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: .85rem; }
.field { display: grid; gap: .35rem; }
.field__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.input, .textarea, .select {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 11px;
  border: 1px solid var(--hairline-2);
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  font-size: var(--fs-sm);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
  appearance: none;
}
.textarea { min-height: 118px; resize: vertical; font-family: inherit; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237688a3' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 15px;
  padding-right: 2.4rem;
  cursor: pointer;
}
.select option { background: var(--obsidian-2); color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(77, 148, 255, .6);
  background: rgba(77, 148, 255, .05);
  box-shadow: 0 0 0 3px rgba(77, 148, 255, .12);
}
.form__note { font-size: 11.5px; color: var(--ink-4); line-height: 1.5; }
.form__ok, .form__err {
  display: none;
  padding: .8rem 1rem;
  border-radius: 11px;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.form__ok {
  border: 1px solid rgba(77, 148, 255, .35);
  background: rgba(77, 148, 255, .09);
  color: var(--azure-hi);
}
.form__err {
  border: 1px solid rgba(255, 138, 138, .4);
  background: rgba(255, 138, 138, .1);
  color: #ffc9c9;
}
.form__err a { color: #fff; text-decoration: underline; }
.form.is-sent .form__ok { display: block; }
.form.is-error .form__err { display: block; }
/* Delivered — nothing left to submit, so retire the inputs. */
.form.is-sent .form__row,
.form.is-sent .field,
.form.is-sent .form__note { display: none; }

/* ---------- FAQ / accordion ---------- */
.faq { display: grid; gap: .6rem; }
.faq__item {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--obsidian-2);
  overflow: hidden;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.faq__item[open] { border-color: rgba(0, 194, 229, .3); background: var(--obsidian-3); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
  list-style: none;
  line-height: 1.45;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  color: var(--cyan);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .35s var(--ease-out);
}
.faq__item[open] .faq__q::after { transform: rotate(135deg); }
.faq__a { padding: 0 1.25rem 1.2rem; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.7; max-width: 62rem; }
.faq__a p + p { margin-top: .7rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 1.1rem; }
.quote { display: flex; flex-direction: column; gap: 1rem; }
.quote__stars { display: flex; gap: 2px; color: var(--cyan); }
.quote__stars svg { width: 15px; height: 15px; }
.quote__txt { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; flex: 1; }
.quote__who { display: flex; align-items: center; gap: .75rem; padding-top: .9rem; border-top: 1px solid var(--hairline); }
.quote__av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--obsidian);
  background: var(--grad-cyan);
}
.quote__n { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink); }
.quote__r { display: block; font-size: 11.5px; color: var(--ink-4); margin-top: 1px; }

/* ---------- Work / portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1.15rem; }
.work { display: flex; flex-direction: column; padding: 0; }
.work__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(150deg, var(--obsidian-3), var(--obsidian));
}
.work__art svg { width: 100%; height: 100%; }
.work__body { padding: 1.4rem; display: grid; gap: .6rem; }
.work__cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--azure); }
.work__t { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.work__d { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6; }
.work__metrics { display: flex; flex-wrap: wrap; gap: 1.15rem; padding-top: .85rem; border-top: 1px solid var(--hairline); margin-top: .3rem; }
.work__metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -.03em;
  line-height: 1;
}
.work__metric span { font-size: 10.5px; color: var(--ink-4); }

/* ---------- Page hero (inner pages) ---------- */
.phero {
  position: relative;
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.5rem) clamp(2rem, 1.2rem + 3vw, 3.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.phero__in { position: relative; z-index: 2; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: var(--fs-xs);
  color: var(--ink-4);
  margin-bottom: var(--sp-5);
}
.crumbs a { color: var(--ink-3); transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--cyan); }
.crumbs .sep { opacity: .45; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); background: var(--obsidian-2); position: relative; overflow: hidden; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}
.footer__brandcol { max-width: 24rem; display: grid; gap: 1.1rem; align-content: start; }
.footer__desc { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.7; }
.footer__col-t {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__links { display: grid; gap: .55rem; }
.footer__links a { font-size: var(--fs-sm); color: var(--ink-3); transition: color .25s var(--ease), padding-left .3s var(--ease-out); }
.footer__links a:hover { color: var(--cyan); padding-left: 4px; }
.footer__addr { display: flex; gap: .6rem; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6; font-style: normal; }
.footer__addr svg { width: 16px; height: 16px; flex: none; color: var(--cyan); margin-top: 3px; }
.socials { display: flex; gap: .5rem; }
.social {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-2);
  color: var(--ink-3);
  background: rgba(255, 255, 255, .03);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease-out);
}
.social svg { width: 17px; height: 17px; }
.social:hover { color: var(--cyan); border-color: rgba(0, 194, 229, .45); transform: translateY(-3px); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.15rem; }
.footer__legal a:hover { color: var(--cyan); }

/* ---------- Floating actions ---------- */
.fab-stack {
  position: fixed;
  right: clamp(.9rem, .5rem + 1vw, 1.5rem);
  bottom: clamp(.9rem, .5rem + 1vw, 1.5rem);
  z-index: 40;
  display: grid;
  gap: .6rem;
  justify-items: end;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-lift);
  transition: transform .35s var(--ease-out);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 25px; height: 25px; }
.fab--wa { background: #25d366; }
.fab--top {
  width: 42px;
  height: 42px;
  background: rgba(8, 16, 31, .9);
  border: 1px solid var(--hairline-2);
  color: var(--ink-2);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s, transform .35s var(--ease-out);
}
.fab--top.is-on { opacity: 1; visibility: visible; }
.fab--top svg { width: 18px; height: 18px; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 14, .8);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-2);
  background: var(--obsidian-2);
  box-shadow: var(--shadow-lift);
  transform: translateY(16px) scale(.98);
  transition: transform .4s var(--ease-out);
  position: relative;
}
.modal.is-open .modal__box { transform: none; }
.modal__x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  color: var(--ink-3);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.modal__x:hover { color: var(--ink); border-color: var(--hairline-2); }
.modal__x svg { width: 15px; height: 15px; }

/* ---------- Scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); }
.rv.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.rv-d1.is-in { transition-delay: .07s; }
.rv-d2.is-in { transition-delay: .14s; }
.rv-d3.is-in { transition-delay: .21s; }
.rv-d4.is-in { transition-delay: .28s; }
.rv-d5.is-in { transition-delay: .35s; }
.no-js .rv { opacity: 1; transform: none; }

/* Scroll progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad-signature);
  z-index: 70;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root block); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .7rem 1.1rem;
  border-radius: 0 0 10px 10px;
  background: var(--cyan);
  color: var(--obsidian);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: top .25s var(--ease);
}
.skip:focus { top: 0; }
.nowrap { white-space: nowrap; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }

.checklist { display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .7rem; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.checklist li::before {
  content: '';
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(77, 148, 255, .13);
  border: 1px solid rgba(77, 148, 255, .3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d94ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header__cta .btn--primary { display: none; }
  .burger { display: grid; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; margin-inline: auto; width: 100%; }
  .chip--a { right: 0; }
  .chip--b { left: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .topbar__in { justify-content: center; min-height: 34px; padding-block: .3rem; }
  .topbar__list--right { display: none; }
  .step { grid-template-columns: auto 1fr; gap: 1rem; }
  .step__n { width: 44px; height: 44px; font-size: .78rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brandcol { grid-column: 1 / -1; max-width: none; }
  .chip { font-size: 10.5px; padding: .5rem .7rem; }
  .chip__ico { width: 22px; height: 22px; }
  .hero__trust { gap: 1rem 1.5rem; }
}

@media (max-width: 420px) {
  .footer__top { grid-template-columns: 1fr; }
  .btn { padding: .78rem 1.25rem; }
}

/* ---------- Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: #dbe6f5; --ink-3: #a3b6cf; --hairline: rgba(255, 255, 255, .16); --hairline-2: rgba(255, 255, 255, .26); }
}

/* ---------- Print ---------- */
@media print {
  .header, .topbar, .footer, .fab-stack, .modal, .drawer, .progress, .bg-grid, .bg-orb, .grain::after { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4 { color: #000; }
  a::after { content: ' (' attr(href) ')'; font-size: 10px; color: #555; }
}
