/* ==========================================================================
   Digital Brings — design system
   Derived from the logo: deep navy ink, off-white geometric wordmark,
   and the blue signal wave (light cyan-blue -> deep navy blue).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink — the logo background, extended into a ramp */
  --ink-1000: #04070D;
  --ink-900:  #070C16;
  --ink-850:  #0A1120;
  --ink-800:  #0D1526;
  --ink-750:  #101A2E;
  --ink-700:  #142139;
  --ink-600:  #1A2A47;

  /* Blue — sampled from the wave */
  --blue-200: #B8DCFF;
  --blue-300: #7CC4FF;
  --blue-400: #45A8F7;
  --blue-500: #1E7BEE;
  --blue-600: #1657D6;
  --blue-700: #1139AE;
  --blue-800: #0C2478;

  /* Semantic accents — used sparingly, mostly in the automation story */
  --em-green: #34D399;
  --em-amber: #F5B23D;
  --em-rose:  #F2606A;

  /* Text */
  --txt:   #EDF2FA;
  --txt-2: #A6B4CB;
  --txt-3: #71809A;
  --txt-4: #4C5B75;

  /* Lines & fills */
  --line:    rgba(255, 255, 255, .075);
  --line-2:  rgba(255, 255, 255, .13);
  --line-3:  rgba(255, 255, 255, .22);
  --fill-1:  rgba(255, 255, 255, .022);
  --fill-2:  rgba(255, 255, 255, .045);
  --fill-3:  rgba(255, 255, 255, .07);

  /* The signature gradient — the wave, unrolled */
  --wave: linear-gradient(100deg, #6FC0FF 0%, #2A8BF2 36%, #1447C6 72%, #0E2A8E 100%);
  --wave-soft: linear-gradient(100deg, rgba(111, 192, 255, .18), rgba(20, 71, 198, .12));
  --glow-blue: 0 0 0 1px rgba(69, 168, 247, .25), 0 18px 60px -18px rgba(30, 123, 238, .55);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --fs-hero: clamp(2.15rem, 3.85vw, 4.1rem);
  --fs-h1:   clamp(2.25rem, 4.9vw, 4.15rem);
  --fs-h2:   clamp(1.9rem, 3.5vw, 3.1rem);
  --fs-h3:   clamp(1.25rem, 1.65vw, 1.55rem);
  --fs-h4:   clamp(1.05rem, 1.2vw, 1.2rem);
  --fs-lead: clamp(1.05rem, 1.25vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-sm:   .9375rem;
  --fs-xs:   .8125rem;
  --fs-2xs:  .72rem;

  /* Space */
  --sect: clamp(5rem, 4vw + 5.5vh, 9.5rem);
  --gut:  clamp(1.25rem, 4vw, 3.25rem);
  --shell: 1280px;
  --shell-wide: 1500px;
  --shell-narrow: 880px;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .18s;
  --t:      .34s;
  --t-slow: .7s;

  --nav-h: 78px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--txt-2);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv05";
}

/* A single, very quiet grain layer keeps the large dark fields from banding. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

::selection { background: rgba(30, 123, 238, .38); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Programmatic focus targets (headings we move focus to for screen readers)
   should be announced, not outlined — they aren't interactive controls. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible { outline: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-1000); }
::-webkit-scrollbar-thumb {
  background: var(--ink-700);
  border-radius: var(--r-pill);
  border: 3px solid var(--ink-1000);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-600); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  translate: -50% -160%;
  z-index: 10000;
  padding: .7rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--blue-500);
  color: #fff;
  font-weight: 600;
  transition: translate var(--t) var(--ease-out);
}
.skip-link:focus { translate: -50% 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--txt);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.028em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.018em; line-height: 1.2; }
h4 { font-size: var(--fs-h4); letter-spacing: -.012em; line-height: 1.3; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--txt-2);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-400));
}
.eyebrow.is-plain::before { display: none; }

.grad-text {
  background: var(--wave);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* the deep end of the wave is too dark on ink — lift the ramp for text */
  background-image: linear-gradient(100deg, #9BD3FF 0%, #45A8F7 42%, #2E7BEE 100%);
}

.muted { color: var(--txt-3); }
.mono { font-family: var(--font-mono); letter-spacing: -.01em; }

.u-max-52 { max-width: 52ch; }
.u-max-60 { max-width: 60ch; }
.u-center { text-align: center; margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.shell.is-wide   { max-width: var(--shell-wide); }
.shell.is-narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--sect); position: relative; }
.section.is-tight { padding-block: calc(var(--sect) * .62); }
.section.is-flush-top { padding-top: 0; }

/* Faint engineering grid — used behind a few technical sections */
.bg-grid::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: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  opacity: .55;
}

.bg-ink { background: var(--ink-1000); }
.bg-lift { background: linear-gradient(180deg, var(--ink-900), var(--ink-850) 55%, var(--ink-900)); }

/* Soft blue bloom used to anchor key sections */
.bloom { position: relative; isolation: isolate; }
.bloom::before {
  content: "";
  position: absolute;
  z-index: -1;
  /* must not exceed the section width, or it widens the document */
  width: min(1100px, 100%);
  aspect-ratio: 1.6;
  left: 50%;
  top: var(--bloom-y, -10%);
  translate: -50% 0;
  background: radial-gradient(ellipse at center, rgba(30, 123, 238, .16), transparent 66%);
  pointer-events: none;
}

.section-head { margin-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1.1rem; }
.section-head.is-center { text-align: center; }
.section-head.is-center .lead { margin-inline: auto; }
.section-head.is-split {
  display: grid;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: end;
}
@media (max-width: 860px) {
  .section-head.is-split { grid-template-columns: 1fr; align-items: start; }
}

.grid { display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stack { display: grid; gap: 1.5rem; }
.row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Motion primitives
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition:
    opacity .95s var(--ease-out) var(--rd, 0ms),
    transform .95s var(--ease-out) var(--rd, 0ms),
    filter .95s var(--ease-out) var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translate3d(0, 30px, 0); }
[data-reveal="down"]  { transform: translate3d(0, -24px, 0); }
[data-reveal="left"]  { transform: translate3d(-34px, 0, 0); }
[data-reveal="right"] { transform: translate3d(34px, 0, 0); }
[data-reveal="scale"] { transform: scale(.94); filter: blur(6px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

/* Below the point where two-column layouts stack, a sideways start offset is
   wider than the gutter and would push the page horizontally. Go vertical. */
@media (max-width: 940px) {
  [data-reveal="left"],
  [data-reveal="right"] { transform: translate3d(0, 26px, 0); }
}

/* Kinetic line reveal — each line masked, then lifted into place */
.kinetic { display: block; }
.kinetic .k-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.kinetic .k-inner {
  display: block;
  transform: translate3d(0, 110%, 0) rotate(2.5deg);
  transform-origin: left top;
  transition: transform 1.15s var(--ease-out) var(--kd, 0ms);
  will-change: transform;
}
.kinetic.is-in .k-inner { transform: none; }

/* Words that swap in place */
.rotator {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
}
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translate3d(0, 90%, 0);
  transition: opacity .55s var(--ease-out), transform .7s var(--ease-out);
}
.rotator > span.is-live { opacity: 1; transform: none; }
.rotator > span.is-out { opacity: 0; transform: translate3d(0, -90%, 0); }

/* Line that draws itself when the section arrives */
.draw path,
.draw line,
.draw circle {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.8s var(--ease-io) var(--rd, 0ms);
}
.draw.is-in path,
.draw.is-in line,
.draw.is-in circle { stroke-dashoffset: 0; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--fill-2);
  --btn-fg: var(--txt);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform var(--t) var(--ease-out),
              border-color var(--t) var(--ease-out),
              background var(--t) var(--ease-out),
              box-shadow var(--t) var(--ease-out),
              color var(--t) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-3); }
.btn:active { transform: translateY(0) scale(.985); }

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

/* Primary — the wave, with a sheen that sweeps on hover */
.btn-primary {
  --btn-fg: #fff;
  background: var(--wave);
  background-size: 160% 100%;
  background-position: 0% 50%;
  border-color: transparent;
  box-shadow: 0 12px 34px -14px rgba(30, 123, 238, .75);
  transition: background-position .8s var(--ease-out), transform var(--t) var(--ease-out),
              box-shadow var(--t) var(--ease-out);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .3) 46%, transparent 68%);
  translate: -110% 0;
  transition: translate .85s var(--ease-out);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 44px -14px rgba(30, 123, 238, .9);
}
.btn-primary:hover::before { translate: 110% 0; }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--fill-2); }

.btn-solid {
  background: var(--txt);
  color: var(--ink-900);
  border-color: transparent;
}
.btn-solid:hover { background: #fff; }

.btn-wa {
  background: rgba(37, 211, 102, .1);
  border-color: rgba(37, 211, 102, .32);
  color: #7BE8A8;
}
.btn-wa:hover { background: rgba(37, 211, 102, .17); border-color: rgba(37, 211, 102, .5); }

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

/* Inline arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--blue-300);
  transition: color var(--t) var(--ease-out), gap var(--t) var(--ease-out);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--t) var(--ease-out); }
.link-arrow:hover { color: var(--blue-200); gap: .75rem; }
.link-arrow:hover svg { transform: translateX(2px); }

/* --------------------------------------------------------------------------
   7. Surfaces & cards
   -------------------------------------------------------------------------- */
.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  padding: clamp(1.5rem, 2.2vw, 2.15rem);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--fill-2), var(--fill-1));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-slow) var(--ease-out),
              border-color var(--t) var(--ease-out),
              background var(--t) var(--ease-out);
}
/* Cursor-aware spotlight */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(69, 168, 247, .13), transparent 68%);
  opacity: 0;
  transition: opacity var(--t) var(--ease-out);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }

.card.is-quiet { background: var(--fill-1); }
.card.is-flush { padding: 0; }

/* Gradient hairline for the cards that need to feel “lit” */
.card-lit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(124, 196, 255, .55), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: .6;
}

.card-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(69, 168, 247, .2), rgba(17, 57, 174, .12));
  border: 1px solid rgba(124, 196, 255, .18);
  color: var(--blue-300);
  margin-bottom: 1.35rem;
}
.card-ico svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: .7rem; }
.card p { font-size: var(--fs-sm); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .8rem;
  border-radius: var(--r-pill);
  background: var(--fill-2);
  border: 1px solid var(--line);
  font-size: var(--fs-2xs);
  font-weight: 500;
  color: var(--txt-2);
  letter-spacing: .01em;
  white-space: nowrap;
}
.pill.is-blue {
  background: rgba(30, 123, 238, .12);
  border-color: rgba(69, 168, 247, .28);
  color: var(--blue-200);
}
.pill.is-mono { font-family: var(--font-mono); font-size: var(--fs-2xs); }

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* Capability list — the “what’s included” lists on service pages */
.caps { display: grid; gap: .1rem; }
.caps li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--txt-2);
}
.caps li:last-child { border-bottom: 0; }
.caps li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: .55em;
  border-radius: 2px;
  background: var(--wave);
  rotate: 45deg;
}
.caps.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
@media (max-width: 700px) { .caps.is-2col { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   8. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t) var(--ease-out),
              border-color var(--t) var(--ease-out),
              height var(--t) var(--ease-out),
              transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  height: 66px;
  background: rgba(7, 12, 22, .78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.header .shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--shell-wide);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: none;
  margin-right: auto;
}
.brand img {
  height: 46px;
  width: auto;
  transition: transform var(--t) var(--ease-out), height var(--t) var(--ease-out);
}
.header.is-stuck .brand img { height: 40px; }
@media (max-width: 700px) { .brand img { height: 38px; } }
.brand:hover img { transform: scale(1.03); }

.nav { display: flex; align-items: center; gap: .25rem; }

.nav-link {
  position: relative;
  padding: .55rem .85rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--txt-2);
  transition: color var(--t) var(--ease-out), background var(--t) var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--txt); background: var(--fill-2); }

/* Dropdown */
.nav-item { position: relative; }
.nav-item > .nav-link { display: inline-flex; align-items: center; gap: .35rem; }
.nav-item > .nav-link svg {
  width: 11px; height: 11px;
  transition: transform var(--t) var(--ease-out);
  opacity: .7;
}
.nav-item:hover > .nav-link svg, .nav-item.is-open > .nav-link svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  translate: -50% 0;
  width: 330px;
  padding: .55rem;
  border-radius: var(--r);
  background: rgba(13, 21, 38, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out), visibility var(--t);
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu,
.nav-item.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-menu a {
  display: block;
  padding: .7rem .85rem;
  border-radius: var(--r-xs);
  transition: background var(--t) var(--ease-out);
}
.nav-menu a:hover { background: var(--fill-2); }
.nav-menu strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--txt);
  margin-bottom: .1rem;
}
.nav-menu span { font-size: var(--fs-xs); color: var(--txt-3); line-height: 1.45; display: block; }

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

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  place-items: center;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease-out);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 890;
  padding: calc(var(--nav-h) + 1.5rem) var(--gut) 2.5rem;
  background: rgba(5, 9, 15, .97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease-out), visibility var(--t);
}
.drawer.is-open { opacity: 1; visibility: visible; }

.drawer-nav { display: grid; gap: .15rem; }
.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem .25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--txt);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out) var(--dd, 0ms), transform .5s var(--ease-out) var(--dd, 0ms);
}
.drawer.is-open .drawer-nav a { opacity: 1; transform: none; }
.drawer-nav a span { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--txt-4); }
.drawer-nav a.is-sub { padding-left: 1.1rem; font-size: 1.02rem; font-weight: 500; color: var(--txt-2); }

.drawer-foot { margin-top: 2.25rem; display: grid; gap: .75rem; }
.drawer-contact { display: grid; gap: .35rem; margin-top: 1.75rem; font-size: var(--fs-sm); }
.drawer-contact a { color: var(--txt-2); }

/* Six nav items plus the CTA need roughly 1045px at full size. Rather than
   collapse to a hamburger on real desktops — Windows scaling reports a 1600px
   screen as ~1067 CSS px, and a 1366px laptop at 125% as ~1093 — tighten the
   spacing through the middle range so the full nav survives down to 1000px. */
@media (max-width: 1200px) {
  .header .shell { gap: 1rem; }
  .nav { gap: .1rem; }
  .nav-link { padding: .5rem .55rem; font-size: .875rem; }
  .brand img { height: 40px; }
  .header.is-stuck .brand img { height: 36px; }
}

@media (max-width: 1000px) {
  .nav, .nav-cta .btn:not(.is-mobile-keep) { display: none; }
  .nav-toggle { display: grid; }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 4rem) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-canvas canvas { width: 100%; height: 100%; }
.hero::after {
  /* keeps text legible over the network, and blends the hero into the page */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink-900) 4%, rgba(7, 12, 22, .55) 42%, transparent 70%),
    linear-gradient(0deg, var(--ink-900) 1%, transparent 26%);
}
/* On narrow screens the text sits over the whole canvas, so dim vertically
   instead — otherwise the sideways scrim erases the network entirely. */
@media (max-width: 1100px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgba(7, 12, 22, .9) 0%, rgba(7, 12, 22, .62) 46%, transparent 74%),
      linear-gradient(0deg, var(--ink-900) 2%, transparent 30%);
  }
}

.hero .shell { position: relative; z-index: 2; }

.hero-inner { max-width: min(1120px, 58vw); }
/* matches the point where the stat grid needs the full width */
@media (max-width: 1100px) { .hero-inner { max-width: 100%; } }

.hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: -.038em;
  line-height: .99;
  margin-block: 1.5rem 1.75rem;
}
.hero .lead { max-width: 50ch; margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* Proof bar. Each figure sits on its own segment of rule with a short accent
   tick, so the row reads as a spec sheet and survives wrapping cleanly. */
.hero-note {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 1.9vw, 1.75rem) clamp(1.25rem, 2.2vw, 2.25rem);
  max-width: 46rem;
}
/* eight-figure variant — four across, two clean rows */
.hero-note.is-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 62rem;
  column-gap: clamp(1rem, 1.8vw, 1.85rem);
}
@media (max-width: 700px) {
  .hero-note.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero-note { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero-note div {
  position: relative;
  display: grid;
  gap: .5rem;
  align-content: start;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line-2);
}
.hero-note div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--wave);
}
.hero-note dt, .hero-note b {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.45vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--txt);
  background: linear-gradient(125deg, #FFFFFF 0%, #D2E7FF 52%, #6FB6F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-note dd, .hero-note small {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--txt-3);
  line-height: 1.45;
  margin: 0;
}

/* Sits on the right, clear of the left-hand content column. */
.scroll-cue {
  position: absolute;
  right: clamp(1.5rem, 3.5vw, 3.5rem);
  bottom: 2rem;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt-4);
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--line-3), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 14px;
  background: var(--blue-400);
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-16px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}
@media (max-height: 720px), (max-width: 700px) { .scroll-cue { display: none; } }

/* Inner page hero */
.page-hero {
  position: relative;
  padding-block: calc(var(--nav-h) + clamp(3.5rem, 9vw, 7rem)) clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.page-hero h1 { margin-block: 1.35rem 1.5rem; max-width: 20ch; }
.page-hero .lead { max-width: 56ch; }
.page-hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .85rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-4);
}
.breadcrumb a { color: var(--txt-3); transition: color var(--t) var(--ease-out); }
.breadcrumb a:hover { color: var(--blue-300); }
.breadcrumb li { display: flex; gap: .5rem; align-items: center; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--txt-4); }

/* --------------------------------------------------------------------------
   10. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: 1.4rem;
  border-block: 1px solid var(--line);
  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: 3.5rem;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  font-weight: 500;
  color: var(--txt-3);
  white-space: nowrap;
}
.marquee span::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-500);
  opacity: .8;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   11. Pipeline — “What we bring”
   -------------------------------------------------------------------------- */
.pipeline { position: relative; }
.pipeline-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.pipeline-sticky { position: sticky; top: calc(var(--nav-h) + clamp(2rem, 8vh, 5rem)); }

.pipe-steps {
  position: relative;
  display: grid;
  gap: clamp(.6rem, 1vw, 1rem);
  padding-left: clamp(18px, 2vw, 28px);
}

.pipe-step {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1.35rem;
  padding: clamp(1.1rem, 1.8vw, 1.6rem) clamp(1.1rem, 1.8vw, 1.7rem);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--fill-1);
  transition: background var(--t) var(--ease-out),
              border-color var(--t) var(--ease-out),
              transform var(--t) var(--ease-out);
}
.pipe-step.is-active {
  background: linear-gradient(100deg, rgba(30, 123, 238, .13), rgba(255, 255, 255, .02));
  border-color: rgba(69, 168, 247, .32);
  transform: translateX(6px);
}
.pipe-num {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .1em;
  color: var(--txt-4);
  padding-top: .35em;
  transition: color var(--t) var(--ease-out);
}
.pipe-step.is-active .pipe-num { color: var(--blue-300); }
.pipe-step h3 { font-size: 1.22rem; margin-bottom: .3rem; }
.pipe-step p { font-size: var(--fs-sm); color: var(--txt-3); }
.pipe-step.is-active p { color: var(--txt-2); }

/* Progress rail running down the outside of the step list */
.pipe-rail {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}
.pipe-rail i {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: var(--progress, 0%);
  background: linear-gradient(180deg, var(--blue-300), var(--blue-600));
  transition: height .5s var(--ease-out);
}

/* The visual that changes as steps activate */
.pipe-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(30, 123, 238, .16), transparent 62%),
    linear-gradient(180deg, var(--fill-2), transparent);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pipe-visual {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  opacity: 0;
  transform: scale(.96);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.pipe-visual.is-live { opacity: 1; transform: none; }

@media (max-width: 940px) {
  .pipeline-grid { grid-template-columns: 1fr; }
  .pipeline-sticky { position: static; order: -1; }
  .pipe-stage { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   12. Service cards
   -------------------------------------------------------------------------- */
.svc-grid { display: grid; gap: clamp(1rem, 1.4vw, 1.35rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; } }

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: clamp(1.6rem, 2.4vw, 2.4rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--fill-2), var(--fill-1));
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--t) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.svc::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(69, 168, 247, .16), transparent 65%);
  opacity: 0;
  transition: opacity var(--t) var(--ease-out);
}
.svc:hover { border-color: var(--line-2); transform: translateY(-4px); }
.svc:hover::before { opacity: 1; }

.svc-index {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .16em;
  color: var(--txt-4);
  margin-bottom: 1.9rem;
}
.svc h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); margin-bottom: .85rem; }
.svc p { font-size: var(--fs-sm); margin-bottom: 1.5rem; }
.svc .svc-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; margin-bottom: 1.5rem; }
.svc .link-arrow { margin-top: auto; }
.svc-art {
  position: absolute;
  right: -30px; bottom: -30px;
  width: 190px;
  opacity: .16;
  color: var(--blue-400);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  pointer-events: none;
}
.svc:hover .svc-art { opacity: .3; transform: scale(1.06) rotate(-3deg); }

/* --------------------------------------------------------------------------
   13. Automation before / after
   -------------------------------------------------------------------------- */
.flow-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: stretch;
}
@media (max-width: 900px) {
  .flow-wrap { grid-template-columns: 1fr; }
  .flow-divider { display: none; }
}

.flow-col {
  padding: clamp(1.4rem, 2.2vw, 2.1rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--fill-1);
}
.flow-col.is-after {
  border-color: rgba(69, 168, 247, .28);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(30, 123, 238, .14), transparent 60%),
    var(--fill-1);
}

.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.flow-head h3 { font-size: 1.18rem; }
.flow-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: var(--r-pill);
}
.is-before .flow-badge { background: rgba(242, 96, 106, .12); color: #FF9AA1; border: 1px solid rgba(242, 96, 106, .25); }
.is-after  .flow-badge { background: rgba(52, 211, 153, .12); color: #6EE7B7; border: 1px solid rgba(52, 211, 153, .25); }

.flow-steps { display: grid; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.flow-step {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  background: var(--fill-2);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--txt-2);
  opacity: .45;
  transform: translateX(-8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out),
              background .5s var(--ease-out), border-color .5s var(--ease-out);
}
.flow-step.is-lit { opacity: 1; transform: none; }
.is-after .flow-step.is-lit {
  background: linear-gradient(100deg, rgba(30, 123, 238, .16), var(--fill-2));
  border-color: rgba(69, 168, 247, .28);
}
.flow-step .flow-ico {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--fill-3);
  color: var(--txt-3);
}
.is-after .flow-step.is-lit .flow-ico { background: rgba(30, 123, 238, .22); color: var(--blue-200); }
.flow-step .flow-ico svg { width: 15px; height: 15px; }
.flow-step em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--txt-4);
  white-space: nowrap;
}
.is-before .flow-step.is-lit em { color: #FF9AA1; }
.is-after .flow-step.is-lit em { color: #6EE7B7; }

.flow-foot {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-sm);
}
.flow-foot b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.02em;
}
.is-before .flow-foot b { color: #FF9AA1; }
.is-after .flow-foot b { color: #6EE7B7; }

.flow-divider {
  display: grid;
  place-items: center;
  width: 62px;
  color: var(--blue-400);
}
.flow-divider i {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(69, 168, 247, .3);
  background: rgba(30, 123, 238, .1);
}
.flow-divider svg { width: 18px; height: 18px; }

.flow-replay {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-3);
  transition: color var(--t) var(--ease-out);
}
.flow-replay:hover { color: var(--blue-300); }
.flow-replay svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   14. Product mockups — “What we build”
   -------------------------------------------------------------------------- */
.build-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
.build-layout.is-form {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  align-items: start;
}
@media (max-width: 940px) {
  .build-layout,
  .build-layout.is-form { grid-template-columns: 1fr; }
}

.build-list { display: grid; gap: .2rem; list-style: none; padding: 0; margin: 0; }
.build-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: .85rem .5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  font-weight: 600;
  color: var(--txt-3);
  text-align: left;
  letter-spacing: -.015em;
  transition: color var(--t) var(--ease-out), padding-left var(--t) var(--ease-out);
}
.build-item:hover { color: var(--txt-2); padding-left: .9rem; }
.build-item[aria-selected="true"] { color: var(--txt); padding-left: .9rem; }
.build-item .build-mark {
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--txt-4);
  transition: background var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), scale var(--t) var(--ease-out);
}
.build-item[aria-selected="true"] .build-mark {
  background: var(--blue-400);
  scale: 1.4;
  box-shadow: 0 0 0 4px rgba(69, 168, 247, .18);
}
.build-item small {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 400;
  color: var(--txt-4);
  opacity: 0;
  transition: opacity var(--t) var(--ease-out);
}
.build-item[aria-selected="true"] small { opacity: 1; }

.build-stage {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-xl);
  padding: clamp(1.1rem, 2vw, 2rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 70% 15%, rgba(30, 123, 238, .18), transparent 60%),
    linear-gradient(165deg, var(--ink-800), var(--ink-1000));
  overflow: hidden;
}
.build-panel {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .5s var(--ease-out), transform .55s var(--ease-out);
  pointer-events: none;
}
.build-panel.is-live { opacity: 1; transform: none; pointer-events: auto; }
.build-panel .mock { width: 100%; }

/* Browser chrome */
.mock {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--ink-850);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  background: var(--fill-1);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--fill-3); flex: none; }
.mock-url {
  flex: 1;
  margin-left: .5rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: var(--ink-1000);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--txt-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-body { padding: clamp(.9rem, 1.6vw, 1.4rem); display: grid; gap: .9rem; }

.mock-row { display: flex; align-items: center; gap: .7rem; }
.mock-line { height: 8px; border-radius: 4px; background: var(--fill-3); }
.mock-line.is-accent { background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); }
.mock-block { border-radius: var(--r-xs); background: var(--fill-2); border: 1px solid var(--line); }

.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mock-kpi { padding: .7rem .8rem; border-radius: var(--r-xs); background: var(--fill-2); border: 1px solid var(--line); }
.mock-kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--txt);
  letter-spacing: -.02em;
}
.mock-kpi span { font-size: 9px; color: var(--txt-4); text-transform: uppercase; letter-spacing: .1em; }

.mock-chart { height: 120px; position: relative; padding-top: .4rem; }
.mock-chart svg { width: 100%; height: 100%; overflow: visible; }

.mock-bars { display: flex; align-items: flex-end; gap: .4rem; height: 92px; }
.mock-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--blue-400), rgba(17, 57, 174, .35));
  transform-origin: bottom;
  animation: bargrow .9s var(--ease-out) backwards;
}

@keyframes bargrow { from { transform: scaleY(.05); opacity: 0; } }

/* Chat / AI assistant */
.mock-chat { display: grid; gap: .55rem; }
.bubble {
  max-width: 82%;
  padding: .6rem .85rem;
  border-radius: 14px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  background: var(--fill-2);
  border: 1px solid var(--line);
  color: var(--txt-2);
}
.bubble.is-user { margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.is-ai {
  border-bottom-left-radius: 4px;
  background: linear-gradient(100deg, rgba(30, 123, 238, .2), rgba(30, 123, 238, .07));
  border-color: rgba(69, 168, 247, .25);
  color: var(--txt);
}
.bubble-typing { display: inline-flex; gap: 4px; align-items: center; }
.bubble-typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-300);
  animation: typing 1.25s var(--ease-io) infinite;
}
.bubble-typing i:nth-child(2) { animation-delay: .18s; }
.bubble-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Phone frame */
.mock-phone {
  width: min(260px, 60%);
  aspect-ratio: 9 / 18.5;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -28px rgba(0, 0, 0, .95);
}
.mock-phone-screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  background: var(--ink-1000);
  border: 1px solid var(--line);
  padding: 1.1rem .85rem;
  display: grid;
  gap: .6rem;
  align-content: start;
  overflow: hidden;
  position: relative;
}
.mock-phone-screen::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  translate: -50% 0;
  width: 52px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--fill-3);
}

/* Workflow node graph */
.mock-nodes { display: grid; gap: .55rem; }
.mock-node {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .75rem;
  border-radius: 11px;
  background: var(--fill-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--txt-2);
}
.mock-node .n-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mock-node code { color: var(--blue-300); font-size: 10px; margin-left: auto; }

/* --------------------------------------------------------------------------
   15. Work / case studies
   -------------------------------------------------------------------------- */
.work-grid { display: grid; gap: clamp(1rem, 1.6vw, 1.6rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--fill-1);
  overflow: hidden;
  transition: border-color var(--t) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.work-card:hover { border-color: var(--line-2); transform: translateY(-4px); }

.work-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-1000);
  border-bottom: 1px solid var(--line);
}
.work-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transition: transform 1.1s var(--ease-out), filter var(--t-slow) var(--ease-out);
  filter: saturate(.92);
}
.work-card:hover .work-shot img { transform: scale(1.045); filter: saturate(1.05); }

.work-body { padding: clamp(1.35rem, 2vw, 1.85rem); display: flex; flex-direction: column; flex: 1; gap: .8rem; }
.work-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-4);
}
.work-body h3 { font-size: 1.35rem; }
.work-body p { font-size: var(--fs-sm); }
.work-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.work-links { display: flex; flex-wrap: wrap; gap: 1.25rem; padding-top: .95rem; border-top: 1px solid var(--line); margin-top: .6rem; }

/* Alternating case-study blocks */
.study {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.study + .study { margin-top: clamp(3rem, 7vw, 6.5rem); }
.study:nth-of-type(even) .study-media { order: 2; }
.study-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-1000);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.study-media img { width: 100%; height: auto; }
.study h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-block: .75rem 1rem; }
.study .study-facts { display: grid; gap: 1.25rem; margin-block: 1.5rem; }
.study .study-facts h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: .4rem;
}
.study .study-facts p { font-size: var(--fs-sm); margin: 0; }
@media (max-width: 880px) {
  .study { grid-template-columns: 1fr; }
  .study:nth-of-type(even) .study-media { order: 0; }
}

/* Case study detail */
.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.case-facts div { background: var(--ink-900); padding: 1.2rem 1.3rem; }
.case-facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--txt-4);
  margin-bottom: .45rem;
}
.case-facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--txt); font-size: var(--fs-sm); }

.case-block { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .case-block { grid-template-columns: 1fr; } }
.case-block h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: .85rem;
}
.case-block p { font-size: var(--fs-sm); }

/* Honest empty state for things we don't have yet */
.placeholder {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-2);
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, .014) 0 12px,
    transparent 12px 24px
  );
  text-align: center;
}
.placeholder h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.placeholder p { font-size: var(--fs-sm); max-width: 52ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   16. Process
   -------------------------------------------------------------------------- */
.process { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.process-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.5rem, 2.6vw, 2.4rem) clamp(.25rem, 1vw, 1rem);
  background: var(--ink-900);
  transition: background var(--t) var(--ease-out);
}
.process-row:hover { background: var(--ink-850); }
.process-row .p-num {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .14em;
  color: var(--blue-400);
  padding-top: .4em;
}
.process-row h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
.process-row p { font-size: var(--fs-sm); }
@media (max-width: 820px) {
  .process-row { grid-template-columns: 56px minmax(0, 1fr); }
  .process-row p { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   17. Why / stats
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.why-cell {
  background: var(--ink-900);
  padding: clamp(1.5rem, 2.4vw, 2.15rem);
  transition: background var(--t) var(--ease-out);
}
.why-cell:hover { background: var(--ink-850); }
.why-cell .why-ico { color: var(--blue-400); margin-bottom: 1.2rem; }
.why-cell .why-ico svg { width: 22px; height: 22px; }
.why-cell h3 { font-size: 1.12rem; margin-bottom: .55rem; }
.why-cell p { font-size: var(--fs-sm); color: var(--txt-3); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--txt);
  margin-bottom: .55rem;
}
.stat b .u { font-size: .55em; color: var(--blue-400); margin-left: .06em; }
.stat span { font-size: var(--fs-sm); color: var(--txt-3); display: block; }
.stat .stat-note { font-size: var(--fs-2xs); color: var(--txt-4); margin-top: .35rem; }

/* --------------------------------------------------------------------------
   18. Accordion & tabs
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem .25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 600;
  color: var(--txt);
  letter-spacing: -.018em;
  transition: color var(--t) var(--ease-out);
}
.acc-btn:hover { color: var(--blue-200); }
.acc-btn .acc-sign {
  position: relative;
  flex: none;
  width: 20px; height: 20px;
}
.acc-btn .acc-sign::before,
.acc-btn .acc-sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: var(--blue-300);
  border-radius: 2px;
  transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease-out);
}
.acc-btn .acc-sign::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-sign::after { transform: rotate(0deg); opacity: 0; }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel .acc-inner { padding: 0 .25rem 1.6rem; max-width: 68ch; }
.acc-panel p { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   19. Solution finder
   -------------------------------------------------------------------------- */
.finder-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.finder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: clamp(1.35rem, 2vw, 1.85rem);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--fill-1);
  text-align: left;
  width: 100%;
  transition: border-color var(--t) var(--ease-out), background var(--t) var(--ease-out),
              transform var(--t) var(--ease-out);
}
.finder-card:hover, .finder-card[aria-expanded="true"] {
  border-color: rgba(69, 168, 247, .35);
  background: linear-gradient(140deg, rgba(30, 123, 238, .12), var(--fill-1));
  transform: translateY(-3px);
}
.finder-card .fc-q {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--txt);
  letter-spacing: -.015em;
  line-height: 1.3;
}
.finder-card .fc-hint { font-size: var(--fs-xs); color: var(--txt-3); }

.finder-answer {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  border: 1px solid rgba(69, 168, 247, .3);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(30, 123, 238, .16), transparent 55%),
    var(--fill-1);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.finder-answer[hidden] { display: none; }
.finder-answer h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); margin-bottom: .9rem; }
.fa-cols { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); margin-top: 1.75rem; }
@media (max-width: 780px) { .fa-cols { grid-template-columns: 1fr; } }
.fa-label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: .8rem;
}

/* --------------------------------------------------------------------------
   20. Forms & the project wizard
   -------------------------------------------------------------------------- */
.wizard {
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9);
}
.wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1.25rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--fill-1);
}
.wizard-step-label { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); }
.wizard-progress { flex: 1; max-width: 260px; height: 3px; border-radius: 2px; background: var(--fill-3); overflow: hidden; }
.wizard-progress i { display: block; height: 100%; width: 0%; background: var(--wave); transition: width .5s var(--ease-out); }

.wizard-body { padding: clamp(1.5rem, 3.5vw, 3rem); }
.wizard-pane { display: none; }
.wizard-pane.is-live { display: block; animation: paneIn .5s var(--ease-out); }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } }

.wizard-pane h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); margin-bottom: .7rem; }
.wizard-pane > p { font-size: var(--fs-sm); margin-bottom: 1.9rem; max-width: 56ch; }

.wizard-foot {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.25rem clamp(1.25rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--fill-1);
}
.wizard-foot .btn-back { margin-right: auto; }
.wizard-hint { font-size: var(--fs-2xs); color: var(--txt-4); }

.choice-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-face {
  display: flex;
  align-items: center;
  gap: .85rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--fill-1);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--txt-2);
  transition: border-color var(--t) var(--ease-out), background var(--t) var(--ease-out),
              color var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.choice-face:hover { border-color: var(--line-3); transform: translateY(-2px); }
.choice-face .ch-ico {
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--fill-2);
  color: var(--txt-3);
  transition: background var(--t) var(--ease-out), color var(--t) var(--ease-out);
}
.choice-face .ch-ico svg { width: 17px; height: 17px; }
.choice-face small { display: block; font-size: var(--fs-2xs); color: var(--txt-4); font-weight: 400; }
.choice input:checked + .choice-face {
  border-color: var(--blue-500);
  background: linear-gradient(120deg, rgba(30, 123, 238, .18), rgba(30, 123, 238, .06));
  color: var(--txt);
}
.choice input:checked + .choice-face .ch-ico { background: rgba(30, 123, 238, .3); color: var(--blue-200); }
.choice input:focus-visible + .choice-face { outline: 2px solid var(--blue-400); outline-offset: 3px; }

.field { display: grid; gap: .5rem; margin-bottom: 1.15rem; }
.field label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--txt-2);
  letter-spacing: .01em;
}
.field label .req { color: var(--blue-400); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .9rem 1.05rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--ink-1000);
  color: var(--txt);
  font-size: var(--fs-sm);
  transition: border-color var(--t) var(--ease-out), background var(--t) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--txt-4); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--ink-850);
  box-shadow: 0 0 0 3px rgba(30, 123, 238, .16);
}
.field.is-error input, .field.is-error textarea { border-color: var(--em-rose); }
.field .err { font-size: var(--fs-2xs); color: #FF9AA1; display: none; }
.field.is-error .err { display: block; }

.field-row { display: grid; gap: 0 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.review-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 1.9rem; }
.review-list div { background: var(--ink-850); padding: .9rem 1.1rem; display: flex; gap: 1rem; align-items: baseline; }
.review-list dt {
  flex: none;
  width: 40%;
  max-width: 190px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-4);
}
.review-list dd { margin: 0; font-size: var(--fs-sm); color: var(--txt); word-break: break-word; }

.send-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* --------------------------------------------------------------------------
   21. Contact rail
   -------------------------------------------------------------------------- */
.contact-rail { display: grid; gap: .75rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--fill-1);
  transition: border-color var(--t) var(--ease-out), background var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.contact-item:hover { border-color: var(--line-2); background: var(--fill-2); transform: translateX(4px); }
.contact-item .ci-ico {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--fill-2);
  color: var(--blue-300);
}
.contact-item .ci-ico svg { width: 18px; height: 18px; }
.contact-item small {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-4);
  margin-bottom: .15rem;
}
.contact-item b { font-family: var(--font-display); font-weight: 600; color: var(--txt); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   22. Big CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(ellipse 90% 130% at 82% 12%, rgba(30, 123, 238, .3), transparent 58%),
    radial-gradient(ellipse 70% 100% at 10% 100%, rgba(17, 57, 174, .28), transparent 62%),
    var(--ink-850);
  text-align: center;
}
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-bottom: 1.35rem; max-width: 18ch; margin-inline: auto; }
.cta .lead { margin-inline: auto; margin-bottom: 2.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.cta-wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  opacity: .28;
  color: var(--blue-400);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  background: var(--ink-1000);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, .75fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 980px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand img { height: 58px; width: auto; margin-bottom: 1.4rem; }
.footer-brand p { font-size: var(--fs-sm); max-width: 34ch; margin-bottom: 1.6rem; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-4);
  margin-bottom: 1.15rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .68rem; }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--txt-2);
  transition: color var(--t) var(--ease-out), padding-left var(--t) var(--ease-out);
}
.footer-col a:hover { color: var(--blue-300); padding-left: 4px; }

.socials { display: flex; gap: .55rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--txt-3);
  transition: color var(--t) var(--ease-out), border-color var(--t) var(--ease-out),
              background var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.socials a:hover { color: var(--blue-200); border-color: rgba(69, 168, 247, .35); background: rgba(30, 123, 238, .1); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

.footer-line {
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--txt-4);
}
.footer-line a { color: var(--txt-3); }
.footer-line a:hover { color: var(--blue-300); }

.footer-closer {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-closer p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--txt-2);
  max-width: 24ch;
  margin-inline: auto;
  line-height: 1.25;
}

/* Oversized wordmark washing out at the very bottom */
.footer-mark {
  overflow: hidden;
  line-height: 0;
  padding-bottom: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 88%);
}
.footer-mark img { width: 100%; margin-bottom: -14%; opacity: .5; }

/* --------------------------------------------------------------------------
   24. Floating WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.9rem);
  bottom: clamp(1rem, 2.5vw, 1.9rem);
  z-index: 880;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.15rem;
  border-radius: var(--r-pill);
  background: #1FA855;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 14px 40px -12px rgba(31, 168, 85, .7);
  opacity: 0;
  transform: translateY(20px) scale(.9);
  pointer-events: none;
  transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-spring), background var(--t) var(--ease-out);
}
.wa-float.is-in { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #23C063; }
.wa-float svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 620px) {
  .wa-float span { display: none; }
  .wa-float { padding: .95rem; }
}

/* --------------------------------------------------------------------------
   25. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.75rem;
  translate: -50% 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--ink-700);
  border: 1px solid var(--line-2);
  color: var(--txt);
  font-size: var(--fs-sm);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .9);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.toast.is-in { opacity: 1; transform: none; }
.toast svg { width: 16px; height: 16px; color: var(--em-green); flex: none; }
.toast .t-ok { display: block; }
.toast .t-warn { display: none; color: var(--em-amber); }
.toast.is-warn { border-color: rgba(245, 178, 61, .35); }
.toast.is-warn .t-ok { display: none; }
.toast.is-warn .t-warn { display: block; }

/* --------------------------------------------------------------------------
   26. Custom cursor (pointer-fine only)
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9990;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(124, 196, 255, .5);
  pointer-events: none;
  opacity: 0;
  translate: -50% -50%;
  transition: width .3s var(--ease-out), height .3s var(--ease-out),
              background .3s var(--ease-out), opacity .3s var(--ease-out),
              border-color .3s var(--ease-out);
}
.cursor.is-on { opacity: 1; }
.cursor.is-hot {
  width: 58px; height: 58px;
  background: rgba(69, 168, 247, .14);
  border-color: rgba(124, 196, 255, .75);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   27. Responsive refinements
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --fs-body: 1.02rem; }
}

@media (max-width: 700px) {
  :root {
    --nav-h: 68px;
    --fs-body: 1rem;
    --r-lg: 20px;
    --r-xl: 26px;
  }
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 3rem) 4rem; }
  .hero-note { gap: 1rem 1.1rem; }
  .hero-note div { padding-top: .85rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: 2.25rem; }
  .marquee-track { animation-duration: 30s; }
  .build-stage { aspect-ratio: 4 / 3.4; }
}

@media (max-width: 400px) {
  :root { --gut: 1.1rem; }
  .card, .svc { padding: 1.25rem; }
  .wizard-body { padding: 1.25rem; }
}

/* Large screens: let the layout breathe without going hollow */
@media (min-width: 1700px) {
  :root { --shell: 1400px; --shell-wide: 1640px; --fs-body: 1.115rem; }
}

/* --------------------------------------------------------------------------
   28. Reduced motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .kinetic .k-inner { transform: none !important; }
  .marquee-track { animation: none; }
  .flow-step { opacity: 1 !important; transform: none !important; }
  .draw path, .draw line, .draw circle { stroke-dashoffset: 0 !important; }
  .cursor { display: none; }
}

@media print {
  .header, .drawer, .wa-float, .cursor, .hero-canvas, .scroll-cue, .marquee { display: none !important; }
  body { background: #fff; color: #111; }
  * { color: #111 !important; }
}
