/* ============================================================
   Incendio Solutions — dark theme, sky-blue accents
   Inspired by encata.net structure, deeper mood
   ============================================================ */

:root {
  /* palette — deep navy base */
  --bg:            #04091C;
  --bg-soft:       #071232;
  --bg-mute:       #0A1A42;
  --surface:       #0D1E48;
  --surface-2:     #11265A;
  --border:        rgba(125, 211, 252, 0.10);
  --border-strong: rgba(125, 211, 252, 0.22);

  --text:          #E9F3FE;
  --text-body:     #AEC3DC;
  --text-mute:     #7B90AE;

  /* brand — sky blue family */
  --navy-1:        #0B2250;
  --navy-2:        #1E3A8A;
  --sky-1:         #7DD3FC;
  --sky-2:         #38BDF8;
  --sky-3:         #0EA5E9;
  --sky-4:         #0284C7;
  --sky-5:         #0369A1;

  --grad-sky:      linear-gradient(135deg, #38BDF8 0%, #0EA5E9 50%, #0284C7 100%);
  --grad-deep:     linear-gradient(135deg, #0EA5E9 0%, #0B2250 100%);

  /* type */
  --font-sans:     'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display:  'Space Grotesk', var(--font-sans);
  --font-mono:     'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* space */
  --container:     1200px;
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     22px;
  --radius-xl:     28px;

  /* motion */
  --ease:          cubic-bezier(.2, .7, .2, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);

  /* shadow system */
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow:        0 4px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg:     0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-sky:    0 20px 44px -18px rgba(14, 165, 233, 0.55);
}

/* ============================================================
   Reset + base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* deep atmospheric background — no grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(14, 165, 233, 0.22), transparent 65%),
    radial-gradient(700px 460px at -10% 20%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(1000px 600px at 50% 115%, rgba(2, 132, 199, 0.18), transparent 70%),
    linear-gradient(180deg, #04091C 0%, #071232 48%, #04091C 100%);
  z-index: -3;
  pointer-events: none;
}

/* decorative circuit backdrop canvas — full page, kept subtle so copy wins */
#bg-circuit {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 85% 80% at center, #000 25%, rgba(0,0,0,0.55) 65%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, #000 25%, rgba(0,0,0,0.55) 65%, transparent 95%);
}
html, body { max-width: 100%; }

img, svg { display: block; max-width: 100%; }

a { color: var(--sky-2); text-decoration: none; }
a:hover { color: var(--sky-1); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--sky-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(56, 189, 248, 0.45); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-1); color: #fff; padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mute); }

p { margin: 0 0 1em; color: var(--text-body); }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ============================================================
   Utility
   ============================================================ */

.grad {
  background: linear-gradient(135deg, #7DD3FC 0%, #38BDF8 50%, #0EA5E9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad--cool {
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sky-2);
  padding: 6px 12px;
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  margin-bottom: 18px;
}

.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sky-1);
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}
.btn--lg { padding: 15px 26px; font-size: 1rem; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  box-shadow: var(--shadow-sky), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #7DD3FC 0%, #0369A1 100%);
  box-shadow: 0 26px 56px -14px rgba(14, 165, 233, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  color: #fff;
}

.btn--ghost {
  color: var(--text);
  background: rgba(125, 211, 252, 0.05);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(125, 211, 252, 0.10);
  border-color: var(--sky-2);
  color: var(--text);
  transform: translateY(-1px);
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: padding .3s var(--ease), background .3s var(--ease),
              backdrop-filter .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 8px 0;
  background: rgba(4, 9, 28, 0.80);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: transform .3s var(--ease-out);
}
.nav__brand::before {
  content: "";
  position: absolute;
  inset: -8px -16px;
  background: radial-gradient(
    ellipse at center,
    rgba(56, 189, 248, 0.18) 0%,
    rgba(56, 189, 248, 0.06) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
  border-radius: 999px;
  z-index: -1;
}
.nav__brand:hover::before { opacity: 1; }
.nav__brand img {
  height: 84px;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 0 24px rgba(56, 189, 248, 0.28))
    drop-shadow(0 4px 12px rgba(14, 165, 233, 0.22));
  transition: height .35s var(--ease), filter .3s var(--ease), transform .3s var(--ease-out);
}
.nav__brand:hover { transform: translateY(-1px); }
.nav__brand:hover img {
  filter:
    drop-shadow(0 0 32px rgba(125, 211, 252, 0.55))
    drop-shadow(0 6px 18px rgba(56, 189, 248, 0.45));
  transform: scale(1.02);
}
.nav.is-scrolled .nav__brand img { height: 64px; }

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgba(125, 211, 252, 0.06); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__cta .btn--ghost {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.nav__toggle {
  display: none;
  background: rgba(125, 211, 252, 0.06);
  border: 1px solid var(--border-strong);
  width: 42px; height: 42px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  margin-left: auto;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta { margin-left: auto; }
  .nav__brand img { height: 64px; }
  .nav.is-scrolled .nav__brand img { height: 52px; }

  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(4, 9, 28, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__links a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav.is-open .nav__links a:last-child { border-bottom: 0; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 170px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.65;
  mask-image: radial-gradient(ellipse 90% 100% at 72% 50%, #000 20%, rgba(0,0,0,0.55) 55%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 72% 50%, #000 20%, rgba(0,0,0,0.55) 55%, transparent 95%);
}

.hero__glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 900px;
  background:
    radial-gradient(closest-side, rgba(56, 189, 248, 0.28), transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

.hero__inner {
  position: relative;
  text-align: left;
  max-width: 1000px;
  isolation: isolate;
}
/* soft dark vignette behind hero text so circuit visuals never compete with copy */
.hero__inner::before {
  content: "";
  position: absolute;
  inset: -48px -64px -48px -48px;
  background:
    radial-gradient(ellipse 70% 85% at 30% 50%,
      rgba(4, 9, 28, 0.82) 0%,
      rgba(4, 9, 28, 0.55) 35%,
      rgba(4, 9, 28, 0.2) 65%,
      transparent 90%);
  z-index: -1;
  pointer-events: none;
  filter: blur(4px);
  border-radius: 40px;
}
@media (max-width: 860px) {
  .hero__inner::before {
    inset: -32px -24px;
    background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(4, 9, 28, 0.78) 10%, rgba(4, 9, 28, 0.45) 60%, transparent 95%);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--sky-1);
  padding: 8px 16px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--sky-2);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
  animation: pulse 2.4s infinite var(--ease);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25); }
  50%      { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
}

.hero__title { margin: 0 0 24px; text-wrap: balance; }
.section__head h2 { text-wrap: balance; }

.hero__tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--sky-1);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  margin-bottom: 32px;
  padding-left: 18px;
  border-left: 3px solid var(--sky-2);
}

.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--text-body);
  max-width: 680px;
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 0;
  margin: 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
}
.hero__stats div {
  margin: 0;
  padding: 0 28px;
  border-left: 1px solid var(--border);
}
.hero__stats div:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 720px) {
  .hero__stats div { padding: 0 18px; }
  .hero__stats div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.hero__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #7DD3FC 0%, #38BDF8 50%, #0EA5E9 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

@media (max-width: 720px) {
  .hero { padding: 120px 0 60px; }
  .hero__cta { margin-bottom: 56px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .marquee { margin-top: 56px; }
}
@media (max-width: 420px) {
  .btn--lg { padding: 13px 20px; font-size: 0.95rem; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* marquee */
.marquee {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: rgba(7, 18, 50, 0.5);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 36px;
  padding: 18px 0;
  width: max-content;
  animation: marquee 55s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span:nth-child(even) { color: var(--sky-2); font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Section base
   ============================================================ */

.section {
  padding: 110px 0;
  position: relative;
  background: rgba(7, 18, 50, 0.42);
}
.section--alt { background: rgba(10, 24, 66, 0.68); }

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
}

.section__head { margin-bottom: 56px; max-width: 780px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__sub {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 640px;
}
.section__head--center .section__sub { margin-inline: auto; }

.section__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.section__body--lede { font-size: 1.06rem; color: var(--text-body); }
@media (max-width: 860px) { .section__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   Client logos strip
   ============================================================ */

.clients {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 18, 50, 0.4);
}
.clients__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: center;
  margin-bottom: 44px;
}
.clients__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
@media (max-width: 860px) { .clients__row { grid-template-columns: repeat(3, 1fr); row-gap: 32px; } }
@media (max-width: 520px) { .clients__row { grid-template-columns: repeat(2, 1fr); } }
.clients__row--logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 56px 72px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  /* override the grid rules from the base .clients__row */
  grid-template-columns: none;
}
@media (max-width: 860px) { .clients__row--logos { gap: 48px 56px; } }
@media (max-width: 520px) { .clients__row--logos { gap: 40px 36px; } }
.client--logo {
  height: 124px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: none;
  cursor: default;
  transition: transform .3s var(--ease-out);
}
.client--logo img {
  display: block;
  max-width: 248px;
  max-height: 124px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* solid bright white silhouette */
  filter: brightness(0) invert(1) brightness(1.4);
  transition: filter .3s var(--ease), transform .3s var(--ease-out);
}
.client--logo:hover img {
  transform: translateY(-3px);
}
@media (hover: hover) and (pointer: fine) {
  .client--logo:hover img {
    /* restore the original colors on hover so visitors can identify the brand */
    filter: none;
  }
}

.client {
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: color .25s var(--ease), opacity .25s var(--ease), transform .25s var(--ease-out);
  cursor: default;
}
.client:hover { color: var(--sky-1); opacity: 1; transform: translateY(-2px); }

/* ============================================================
   Services
   ============================================================ */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

.service {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.05), rgba(125, 211, 252, 0.01));
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.service:hover {
  transform: translateY(-4px);
  border-color: var(--sky-3);
  box-shadow: var(--shadow-lg);
}
.service:hover::before { transform: scaleX(1); }

.service__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(14, 165, 233, 0.08));
  color: var(--sky-1);
  margin-bottom: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service__icon svg { width: 26px; height: 26px; transition: transform .3s var(--ease-out); }
.service:hover .service__icon {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.28), rgba(14, 165, 233, 0.14));
  border-color: var(--sky-2);
  box-shadow: 0 0 24px -6px rgba(56, 189, 248, 0.5);
}
.service:hover .service__icon svg { transform: scale(1.08); }

.service h3 { margin-bottom: 10px; color: var(--text); }
.service p { font-size: 0.96rem; color: var(--text-body); }
.service__tags {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.service__tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.06);
  border: 1px solid var(--border);
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

/* ============================================================
   Process
   ============================================================ */

.process {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

.process__step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.05), rgba(125, 211, 252, 0.01));
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.process__step:hover { box-shadow: var(--shadow); border-color: var(--sky-3); }
.process__step::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.process__step:hover::after { transform: scaleX(1); }
.process__step.is-active { border-color: var(--sky-3); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25); }
.process__step.is-active::after { transform: scaleX(1); }
.process__step.is-active .process__num { color: var(--sky-1); }

.process__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sky-2);
  margin-bottom: 18px;
  letter-spacing: 0.14em;
}
.process__step h3 { margin-bottom: 8px; color: var(--text); }
.process__step p { font-size: 0.94rem; }

/* ============================================================
   Bento (work grid)
   ============================================================ */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}
.bento__card {
  position: relative;
  grid-column: span 2;
  grid-row: span 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), border-color .3s var(--ease);
}
.bento__card:hover { color: inherit; }
.bento__card:hover {
  transform: translateY(-4px);
  border-color: var(--sky-3);
  box-shadow: var(--shadow-lg);
}
.bento__card--lg    { grid-column: span 4; grid-row: span 2; }
.bento__card--wide  { grid-column: span 4; grid-row: span 1; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .bento__card, .bento__card--lg, .bento__card--wide { grid-column: span 2; grid-row: span 1; }
  .bento__card--lg { grid-row: span 1; }
}

.bento__art {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}
.bento__art--photo { background: rgba(4, 9, 28, 1); }
.bento__art--photo::before, .bento__art--photo::after { content: none; }
.bento__art--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.bento__card:hover .bento__art--photo img { transform: scale(1.04); }
.bento__art::before,
.bento__art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* art variants — sky blue on deep navy */
.bento__art[data-art="robot"] {
  background:
    radial-gradient(500px 300px at 20% 100%, rgba(14, 165, 233, 0.45), transparent 60%),
    radial-gradient(400px 260px at 100% 0%, rgba(125, 211, 252, 0.28), transparent 60%),
    linear-gradient(160deg, #0A1A42, #0D1E48);
}
.bento__art[data-art="robot"]::before {
  background-image:
    linear-gradient(transparent 95%, rgba(56, 189, 248, 0.25) 95%),
    linear-gradient(90deg, transparent 95%, rgba(56, 189, 248, 0.25) 95%);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 30% 70%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 70%, #000 30%, transparent 75%);
}
.bento__art[data-art="robot"]::after {
  background:
    radial-gradient(circle at 30% 60%, rgba(125, 211, 252, 1) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 40%, rgba(56, 189, 248, 1) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 80%, rgba(14, 165, 233, 1) 0 3px, transparent 4px);
}

.bento__art[data-art="grid"] {
  background:
    radial-gradient(400px 220px at 50% 0%, rgba(14, 165, 233, 0.5), transparent 70%),
    linear-gradient(160deg, #0A1A42, #07142E);
}
.bento__art[data-art="grid"]::before {
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.25) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 80%, transparent);
}

.bento__art[data-art="wave"] {
  background: linear-gradient(160deg, #0E1E48, #0A1536);
}
.bento__art[data-art="wave"]::before {
  background:
    radial-gradient(circle at 25% 50%, rgba(14, 165, 233, 0.55), transparent 35%),
    radial-gradient(circle at 75% 50%, rgba(125, 211, 252, 0.45), transparent 35%);
  filter: blur(20px);
}
.bento__art[data-art="wave"]::after {
  background-image:
    repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.18) 0 1px, transparent 1px 16px);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}

.bento__art[data-art="orbit"] {
  background:
    radial-gradient(700px 400px at 100% 100%, rgba(56, 189, 248, 0.38), transparent 60%),
    linear-gradient(160deg, #0A1A42, #0D1E48);
}
.bento__art[data-art="orbit"]::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 68px, rgba(125, 211, 252, 0.25) 69px, transparent 71px),
    radial-gradient(circle at 50% 50%, transparent 120px, rgba(125, 211, 252, 0.18) 121px, transparent 123px),
    radial-gradient(circle at 50% 50%, transparent 180px, rgba(125, 211, 252, 0.12) 181px, transparent 183px);
}
.bento__art[data-art="orbit"]::after {
  background:
    radial-gradient(circle at 50% 50%, var(--sky-1) 0 5px, transparent 6px);
}

.bento__art[data-art="dots"] {
  background:
    radial-gradient(400px 300px at 50% 50%, rgba(14, 165, 233, 0.4), transparent 70%),
    linear-gradient(160deg, #0A1A42, #07142E);
}
.bento__art[data-art="dots"]::before {
  background-image: radial-gradient(rgba(125, 211, 252, 0.4) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.bento__body {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--border);
  background: rgba(4, 9, 28, 0.6);
}
.bento__body h3 { margin-bottom: 6px; font-size: 1.12rem; color: var(--text); }
.bento__body p  { font-size: 0.92rem; }

/* ============================================================
   Industries
   ============================================================ */

.industries {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(7, 18, 50, 0.5);
}
@media (max-width: 860px) { .industries { grid-template-columns: repeat(2, 1fr); } }

.industries li {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--text);
  transition: background .25s var(--ease), color .25s var(--ease);
  position: relative;
}
.industries li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--sky-2);
  border-radius: 999px;
  margin-right: 12px;
  vertical-align: middle;
  transition: transform .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.industries li:hover { background: rgba(14, 165, 233, 0.08); color: var(--sky-1); }
.industries li:hover::before { transform: scale(1.4); background: var(--sky-1); }
.industries li a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  padding-left: 16px;
  margin-left: -16px;
}
.industries li a small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  font-weight: 400;
}
.industries li:hover a small { color: var(--sky-2); }

.industries li:nth-child(4n) { border-right: 0; }
.industries li:nth-last-child(-n+4) { border-bottom: 0; }
@media (max-width: 860px) {
  .industries li { border-right: 0; }
  .industries li:nth-child(2n-1) { border-right: 1px solid var(--border); }
  .industries li:nth-last-child(-n+2) { border-bottom: 0; }
  .industries li:nth-last-child(-n+4) { border-bottom: 1px solid var(--border); }
}

/* ============================================================
   Testimonials
   ============================================================ */

.testimonial-section { padding: 90px 0; }

.testi-marquee {
  margin-top: 48px;
  overflow: hidden;
  position: relative;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.testi-marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: testi-scroll 70s linear infinite;
  will-change: transform;
}
.testi-marquee:hover .testi-marquee__track,
.testi-marquee:focus-within .testi-marquee__track {
  animation-play-state: paused;
}
@keyframes testi-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .testi-marquee__track { animation: none; }
}

.testi-card {
  flex: 0 0 380px;
  margin: 0;
  padding: 28px 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.05), rgba(125, 211, 252, 0.01));
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease-out);
}
.testi-card:hover {
  border-color: var(--sky-3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.testi-card__mark {
  width: 36px; height: 36px;
  color: var(--sky-3);
  opacity: 0.65;
}
.testi-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}
.testi-card blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-mute);
  margin: 0;
  flex: 1;
}
.testi-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-mute);
  font-size: 0.86rem;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.testi-card figcaption strong { color: var(--text); font-weight: 600; font-size: 0.95rem; }

@media (max-width: 520px) {
  .testi-card { flex: 0 0 300px; padding: 22px 22px 20px; }
}

/* ============================================================
   Team
   ============================================================ */

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

.member {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.05), rgba(125, 211, 252, 0.01));
  transition: border-color .3s var(--ease), transform .3s var(--ease-out), box-shadow .3s var(--ease);
}
.member:hover { border-color: var(--sky-3); transform: translateY(-3px); box-shadow: var(--shadow); }

.member__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grad-sky);
  display: grid; place-items: center;
  color: #04091C;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 22px;
  position: relative;
  box-shadow: var(--shadow-sky);
}
.member__avatar::after {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  letter-spacing: 0.02em;
}
.member h3 { margin-bottom: 4px; color: var(--text); }
.member__role {
  color: var(--sky-2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.member__bio { font-size: 0.94rem; }

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.05), rgba(125, 211, 252, 0.01));
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq__item:hover { border-color: var(--border-strong); }
.faq__item[open] { border-color: var(--sky-3); box-shadow: var(--shadow); }

.faq__q {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  width: 22px; height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid var(--border-strong);
  background-image:
    linear-gradient(currentColor 0 0), linear-gradient(currentColor 0 0);
  background-size: 10px 2px, 2px 10px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
  color: var(--sky-2);
}
.faq__item[open] .faq__q::after {
  background-size: 10px 2px, 0 0;
  background-color: var(--sky-3);
  color: #fff;
}
.faq__a {
  padding: 0 24px 22px;
  color: var(--text-body);
  font-size: 0.98rem;
}

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0EA5E9 0%, #0369A1 45%, #0B2250 100%);
  z-index: -2;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(125, 211, 252, 0.35), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(4, 9, 28, 0.4), transparent 60%);
  z-index: -1;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 720px) { .cta-band__inner { grid-template-columns: 1fr; gap: 28px; } }

.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p  { color: rgba(255, 255, 255, 0.88); margin: 0; font-size: 1.05rem; }
.cta-band .btn--primary {
  background: #fff;
  color: var(--navy-1);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.6);
}
.cta-band .btn--primary:hover {
  background: var(--navy-1);
  color: #fff;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  padding: 110px 0 130px;
  position: relative;
  background: rgba(7, 18, 50, 0.42);
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; gap: 40px; } }

.contact__intro p { font-size: 1.05rem; max-width: 460px; }

.contact__meta {
  list-style: none;
  padding: 0; margin: 32px 0 0;
  display: grid;
  gap: 18px;
}
.contact__meta li {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: baseline;
}
.contact__meta li a + a { display: block; margin-top: 4px; }
.contact__phones { display: flex; flex-direction: column; gap: 4px; }
.contact__meta a { color: var(--text); font-weight: 500; }
.contact__meta a:hover { color: var(--sky-1); }
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.06), rgba(125, 211, 252, 0.01));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
@media (max-width: 560px) { .contact__form { grid-template-columns: 1fr; padding: 24px; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(4, 9, 28, 0.6);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font: inherit;
  font-family: var(--font-sans);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field select option { background: var(--bg-mute); color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--sky-2);
  background: rgba(4, 9, 28, 0.85);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }

.contact__submit {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact__note {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 80px 0 36px;
  border-top: 1px solid var(--border);
  background: rgba(4, 9, 28, 0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

.footer__brand img {
  margin-bottom: 22px;
  max-height: 132px;
  width: auto;
  filter:
    drop-shadow(0 0 28px rgba(56, 189, 248, 0.28))
    drop-shadow(0 6px 16px rgba(14, 165, 233, 0.22));
  transition: filter .35s var(--ease), transform .35s var(--ease-out);
}
.footer__brand:hover img,
.footer__brand img:hover {
  filter:
    drop-shadow(0 0 36px rgba(125, 211, 252, 0.5))
    drop-shadow(0 8px 22px rgba(56, 189, 248, 0.4));
  transform: scale(1.02);
}
.footer__brand p { max-width: 380px; font-size: 0.95rem; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h4 { margin-bottom: 16px; color: var(--text); }
.footer__cols ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.footer__cols a {
  color: var(--text-body);
  font-size: 0.95rem;
  transition: color .2s var(--ease);
}
.footer__cols a:hover { color: var(--sky-1); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 0.86rem;
}

/* ============================================================
   Reveal animation
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 60;
  background: linear-gradient(90deg, #7DD3FC 0%, #38BDF8 35%, #0EA5E9 70%, #0369A1 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  pointer-events: none;
}

/* ============================================================
   Active nav link (scrollspy)
   ============================================================ */
.nav__links a.is-active {
  color: var(--sky-1);
  background: rgba(14, 165, 233, 0.14);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.4);
}

/* ============================================================
   Tilt (service + work cards)
   ============================================================ */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-out);
}
[data-tilt].is-tilting {
  transition: transform .08s linear;
}
[data-tilt] > * {
  transform: translateZ(0);
}

/* let children pop slightly on hover */
.service[data-tilt] .service__icon,
.bento__card[data-tilt] .bento__body { transform: translateZ(20px); }

/* parent needs perspective */
.services, .bento { perspective: 1200px; }

/* ============================================================
   Portfolio filters
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(125, 211, 252, 0.04);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease-out);
}
.filter:hover {
  color: var(--text);
  border-color: var(--sky-3);
  background: rgba(14, 165, 233, 0.10);
}
.filter.is-active {
  color: #04091C;
  background: var(--grad-sky);
  border-color: transparent;
  box-shadow: 0 10px 22px -10px rgba(14, 165, 233, 0.55);
}

/* card filter states */
.bento__card.is-hidden {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  filter: grayscale(0.5);
}
.bento {
  transition: none;
}
.bento__card {
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease),
              border-color .3s var(--ease), opacity .35s var(--ease), filter .35s var(--ease);
}

/* ============================================================
   Process timeline progress line
   ============================================================ */
.process {
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--border);
  z-index: 0;
  border-radius: 2px;
}
.process::after {
  content: "";
  position: absolute;
  top: 38px;
  left: 24px;
  width: calc((100% - 48px) * var(--process-progress, 0));
  max-width: calc(100% - 48px);
  height: 2px;
  background: linear-gradient(90deg, #7DD3FC, #0EA5E9);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  z-index: 1;
  border-radius: 2px;
  transition: width .6s var(--ease-out);
}
.process__step { position: relative; z-index: 2; }
@media (max-width: 860px) {
  .process::before, .process::after { display: none; }
}

/* ============================================================
   Back to top button
   ============================================================ */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-sky);
  color: #04091C;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease-out), box-shadow .3s var(--ease);
  box-shadow: var(--shadow-sky);
  z-index: 40;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.to-top:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 24px 50px -12px rgba(14, 165, 233, 0.7); }

/* ============================================================
   Form validation states
   ============================================================ */
.field {
  position: relative;
}
.field.is-valid input,
.field.is-valid textarea {
  border-color: rgba(56, 189, 248, 0.55);
}
.field.is-invalid input,
.field.is-invalid textarea {
  border-color: rgba(244, 114, 182, 0.6);
}
.field__hint {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 2px;
}
.field .char-count { text-align: right; }

/* hero tilt wrapper */
.hero__glow { transition: transform .18s ease-out; }

/* ============================================================
   DETAIL / HUB PAGES (generated pages: project, industry, service)
   ============================================================ */

.page-detail .section { padding: 80px 0; }

/* Hub hero (services.html, industries.html, portfolio.html, detail hero) */
.hub-hero, .detail-hero {
  padding: 170px 0 60px;
  position: relative;
  isolation: isolate;
}
.hub-hero h1, .detail-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 20px;
  text-wrap: balance;
  letter-spacing: -0.035em;
}
.hub-hero__lede, .detail-hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--text-body);
  max-width: 760px;
  margin-bottom: 0;
}
.detail-hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sky-1);
  margin-bottom: 40px;
  padding-left: 18px;
  border-left: 3px solid var(--sky-3);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-mute);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}
.breadcrumb a { color: var(--text-mute); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--sky-1); }
.breadcrumb [aria-current="page"] { color: var(--sky-2); }

/* Detail meta grid */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 24px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
.detail-meta > div { margin: 0; }
.detail-meta .detail-meta__full { grid-column: 1 / -1; }
.detail-meta dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.detail-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 860px) { .detail-meta { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .detail-meta { grid-template-columns: 1fr; } }

.chip-sm {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--sky-1);
}
.chip-sm--mono { font-family: var(--font-mono); font-size: 0.72rem; }

/* Visual placeholder (filler while real images are pending) */
.detail-visual { padding: 40px 0 20px; }
.visual-placeholder {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-strong);
  background:
    radial-gradient(600px 300px at 20% 100%, rgba(14, 165, 233, 0.15), transparent 60%),
    radial-gradient(400px 260px at 100% 0%, rgba(125, 211, 252, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(14, 30, 72, 0.6), rgba(7, 18, 50, 0.8));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.visual-placeholder__grid {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  opacity: 0.35;
  pointer-events: none;
}
.vp-chip {
  background: rgba(125, 211, 252, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  aspect-ratio: 1;
  position: relative;
}
.vp-chip::before, .vp-chip::after {
  content: "";
  position: absolute;
  background: rgba(56, 189, 248, 0.35);
}
.vp-chip::before { top: 30%; left: -6px; width: 6px; height: 2px; }
.vp-chip::after { bottom: 30%; right: -6px; width: 6px; height: 2px; }
.vp-trace {
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  grid-column: span 2;
}
.visual-placeholder__caption {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(4, 9, 28, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

/* Detail figures (real diagrams/dashboards rendered from source docs) */
.detail-figures { padding: 40px 0 20px; }
.detail-figures__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .detail-figures__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .detail-figures__grid { grid-template-columns: repeat(3, 1fr); }
}
.detail-figure {
  margin: 0;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(14, 30, 72, 0.5), rgba(7, 18, 50, 0.7));
  box-shadow: 0 8px 28px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.detail-figure:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 36px -18px rgba(56, 189, 248, 0.35);
}
.detail-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: rgba(4, 9, 28, 1);
  cursor: zoom-in;
}
.detail-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(4, 9, 28, 0.6);
  line-height: 1.4;
}

/* Lightbox overlay */
.figure-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(2, 6, 22, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.figure-lightbox.is-open {
  display: flex;
  opacity: 1;
}
.figure-lightbox__panel {
  position: relative;
  max-width: min(1400px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  cursor: default;
}
.figure-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  background: rgba(4, 9, 28, 1);
}
.figure-lightbox__caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-mute);
  padding: 14px 20px;
  background: rgba(4, 9, 28, 0.95);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
}
.figure-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(4, 9, 28, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.figure-lightbox__close:hover {
  border-color: rgba(56, 189, 248, 0.6);
  color: var(--sky-1, #0EA5E9);
}

/* Detail body grid (article + side card) */
.detail-body { background: rgba(7, 18, 50, 0.4); padding: 80px 0; }
.detail-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
.detail-body__main section { margin-bottom: 40px; }
.detail-body__main h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 12px;
}
.detail-body__main p {
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 72ch;
}
.detail-body__side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 100px;
}
@media (max-width: 900px) {
  .detail-body__grid { grid-template-columns: 1fr; }
  .detail-body__side { position: static; }
}

.side-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.06), rgba(125, 211, 252, 0.01));
}
.side-card h4 { margin-bottom: 14px; }
.side-metrics { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.side-metrics li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.side-metrics li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-metrics__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #7DD3FC 0%, #38BDF8 50%, #0EA5E9 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.side-metrics__label {
  font-size: 0.86rem;
  color: var(--text-body);
}

/* Related projects grid (3-up on project page, up to 6-up on service page) */
.related-section { padding: 80px 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s var(--ease), transform .3s var(--ease-out), box-shadow .3s var(--ease);
}
.related-card:hover {
  border-color: var(--sky-3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.related-card__art {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(400px 200px at 30% 100%, rgba(14, 165, 233, 0.35), transparent 60%),
    radial-gradient(300px 200px at 100% 0%, rgba(125, 211, 252, 0.25), transparent 60%),
    linear-gradient(160deg, #0A1A42, #0D1E48);
  position: relative;
}
.related-card__art::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(125, 211, 252, 0.2);
  border-radius: 8px;
}
.related-card__art--photo { padding: 0; overflow: hidden; }
.related-card__art--photo::before { content: none; }
.related-card__art--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}
.related-card:hover .related-card__art--photo img { transform: scale(1.04); }
.related-card__body { padding: 20px 22px 22px; border-top: 1px solid var(--border); }
.related-card__body h3 { margin: 6px 0 6px; font-size: 1.08rem; }
.related-card__body p { font-size: 0.92rem; }

/* Industry page grid (project cards) */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industry-grid { grid-template-columns: 1fr; } }

.industry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.05), rgba(125, 211, 252, 0.01));
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .3s var(--ease-out), box-shadow .35s var(--ease);
}
.industry-card:hover {
  border-color: var(--sky-3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}
.industry-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.industry-card:hover::before { transform: scaleX(1); }
.industry-card--has-cover { padding: 0; gap: 0; }
.industry-card--has-cover > :not(.industry-card__cover) { padding-left: 26px; padding-right: 26px; }
.industry-card--has-cover .industry-card__num { padding-top: 20px; }
.industry-card--has-cover .industry-card__cta { padding-bottom: 24px; }
.industry-card__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -1px -1px 16px;  /* extend over the border */
  position: relative;
}
.industry-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.industry-card:hover .industry-card__cover img { transform: scale(1.05); }
.industry-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--sky-2);
  margin-bottom: 4px;
}
.industry-card h3 { margin: 0 0 4px; font-size: 1.12rem; }
.industry-card p { font-size: 0.94rem; color: var(--text-body); margin: 0 0 12px; }
.industry-card__meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.industry-card__metrics {
  display: flex;
  gap: 20px;
  margin: 12px 0 14px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
}
.industry-card__metrics div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.industry-card__metrics strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sky-1);
  font-size: 1rem;
}
.industry-card__metrics small { color: var(--text-mute); font-size: 0.74rem; line-height: 1.3; }
.industry-card__cta {
  margin-top: auto;
  color: var(--sky-2);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Industries hub grid (8 industry tiles) */
.industries-hub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) { .industries-hub { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .industries-hub { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .industries-hub { grid-template-columns: 1fr; } }

.industry-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.05), rgba(125, 211, 252, 0.01));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 220px;
  transition: border-color .3s var(--ease), transform .3s var(--ease-out), box-shadow .35s var(--ease);
}
.industry-hub-card:hover {
  border-color: var(--sky-3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}
.industry-hub-card__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-2);
  margin-bottom: 8px;
}
.industry-hub-card h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.3; }
.industry-hub-card p { margin: 0; font-size: 0.92rem; color: var(--text-body); }
.industry-hub-card__cta {
  margin-top: auto;
  padding-top: 14px;
  color: var(--sky-2);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Portfolio grid (65-project catalogue) */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.portfolio-card {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .25s var(--ease), transform .25s var(--ease-out), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.portfolio-card:hover {
  border-color: var(--sky-3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}
.portfolio-card.is-hidden { display: none; }
.portfolio-card--has-cover { padding: 0; gap: 0; }
.portfolio-card--has-cover > :not(.portfolio-card__cover) { padding-left: 22px; padding-right: 22px; }
.portfolio-card--has-cover .portfolio-card__num { padding-top: 16px; margin-bottom: 4px; }
.portfolio-card--has-cover .portfolio-card__industry { padding-bottom: 16px; }
.portfolio-card__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1px -1px 14px;
}
.portfolio-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.portfolio-card:hover .portfolio-card__cover img { transform: scale(1.05); }
.portfolio-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--sky-2);
  letter-spacing: 0.12em;
}
.portfolio-card h3 { margin: 4px 0 4px; font-size: 1rem; line-height: 1.35; }
.portfolio-card p { margin: 0 0 10px; font-size: 0.88rem; color: var(--text-body); }
.portfolio-card__industry {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

/* Services hub variant */
.services--hub { margin-top: 16px; }
.service--link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service--link:hover { color: inherit; }
.service__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.service__arrow { color: var(--sky-2); font-size: 1.2rem; transition: transform .25s var(--ease-out); }
.service--link:hover .service__arrow { transform: translateX(4px); }

/* Service detail page grid */
.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) { .service-detail__grid { grid-template-columns: 1fr; gap: 40px; } }
.service-capabilities, .service-stack {
  list-style: none;
  padding: 0; margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.service-capabilities li, .service-stack li {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(125, 211, 252, 0.04);
  color: var(--text);
  font-size: 0.96rem;
  position: relative;
  padding-left: 36px;
}
.service-capabilities li::before, .service-stack li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--sky-2);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.service-stack li { font-family: var(--font-mono); font-size: 0.88rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
