/* =============================================================
   MI-SYSTEMS — Reconstruction
   Vanilla CSS · BEM · alternating dark / light sections
   Palette & type reconstructed from original screenshots (see TZ)
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Dark backgrounds */
  --c-dark: #060B07;            /* primary dark (About hero, principles, process) */
  --c-dark-neutral: #080906;    /* services, CTA, approach */
  --c-dark-2: #0A0A0A;
  --c-hero-a: #0A121A;          /* home hero gradient start */
  --c-hero-b: #0D1B29;          /* home hero gradient end */

  /* Light backgrounds */
  --c-white: #FFFFFF;
  --c-card-fill: #F2F2F2;

  /* Accent */
  --c-accent: #17AAF8;          /* fill / on-dark only */
  --c-accent-ink: #0C6FC4;      /* accessible accent text on white (AA) */
  --c-grad-a: #17AAF8;
  --c-grad-b: #3B7BF5;
  --c-logo-blue: #1878FF;
  --c-hud: #2FDFE6;

  /* Text */
  --t-on-dark: #FFFFFF;
  --t-on-dark-mut: #9AA6B2;     /* muted paragraph on dark */
  --t-on-dark-faint: #66727E;
  --t-on-light: #0B1220;
  --t-on-light-mut: #5A6572;

  /* Lines */
  --line-dark: rgba(255,255,255,.10);
  --line-light: rgba(11,18,32,.10);

  /* Type */
  --f-display: "Chakra Petch", "Space Grotesk", sans-serif; /* square techno grotesk (H1, logo) */
  --f-head: "Space Grotesk", "DM Sans", sans-serif;         /* geometric grotesk (H2) */
  --f-body: "DM Sans", "Inter", system-ui, sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(48px, 6vw, 90px);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--c-dark);
  color: var(--t-on-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--c-dark); color: var(--t-on-dark); }
.section--dark-neutral { background: var(--c-dark-neutral); color: var(--t-on-dark); }
.section--light { background: var(--c-white); color: var(--t-on-light); }

/* Star field overlay for dark-neutral sections */
.section--stars::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 20% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.6px 1.6px at 85% 60%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 55% 85%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 32% 52%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.4px 1.4px at 62% 44%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 15% 15%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 78% 82%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 48% 12%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.2px 1.2px at 95% 22%, rgba(255,255,255,.45), transparent);
  opacity: .85; pointer-events: none;
}
.section > .container { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.section--light .eyebrow { color: var(--c-accent-ink); }

.h1 {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.04;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}
.h2 {
  font-family: var(--f-head);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.1;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}
.h3 {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
}
.lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--t-on-dark-mut);
  max-width: 62ch;
}
.section--light .lead { color: var(--t-on-light-mut); }
.text-accent { color: var(--c-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--grad {
  background: linear-gradient(90deg, var(--c-grad-a), var(--c-grad-b));
  color: #fff;
  box-shadow: 0 10px 30px rgba(23,170,248,.28);
}
.btn--grad:hover { box-shadow: 0 16px 40px rgba(23,170,248,.42); }
.btn--dark { background: #111418; color: #fff; }
.btn--dark:hover { background: #1b1f24; }
.btn--light { background: #F2F2F2; color: var(--t-on-light); }
.btn--light:hover { background: #e6e6e6; }
.btn--ghost { border: 1px solid var(--line-dark); color: #fff; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 18px;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(6,11,7,.96);
  border-bottom-color: var(--line-dark);
  padding-block: 12px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 14px; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__word {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.28;
  letter-spacing: .16em;
}
.logo__word span { display: block; }
.logo__word .is-blue { color: var(--c-logo-blue); }

/* Nav */
.nav { display: flex; align-items: center; gap: 8px; }
.nav__item { position: relative; }
.nav__item--contact { display: none; }  /* desktop uses the header button; shown only in mobile menu */
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-weight: 500; font-size: .95rem;
  color: #cdd5dd;
  border-radius: 10px;
  transition: color .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--c-accent); }
.nav__caret { width: 12px; transition: transform .3s var(--ease); }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: rgba(10,13,16,.99);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
/* invisible bridge over the gap so hover isn't lost moving from link to menu */
.dropdown::before {
  content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px;
}
.nav__item:hover .dropdown, .nav__item.is-open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown__link {
  display: block; padding: 12px 14px; border-radius: 10px;
  transition: background .25s var(--ease);
}
.dropdown__link:hover { background: rgba(255,255,255,.05); }
.dropdown__title { font-weight: 600; font-size: .95rem; color: #fff; }
.dropdown__desc { font-size: .8rem; color: var(--t-on-dark-faint); margin-top: 2px; }

.header__actions { display: flex; align-items: center; gap: 12px; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: radial-gradient(120% 90% at 50% 40%, var(--c-hero-b) 0%, var(--c-hero-a) 55%, #05090D 100%);
  overflow: hidden;
  text-align: center;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(6,11,7,.35), rgba(6,11,7,.72) 75%),
    linear-gradient(180deg, rgba(6,11,7,.45), rgba(6,11,7,.35) 40%, rgba(6,11,7,.7));
}
.hero__wire {
  position: absolute; inset: 0; margin: auto;
  width: min(920px, 85vw); height: auto;
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}
.hero__scan {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(23,170,248,.025) 0 2px, transparent 2px 5px);
}
.hero__content { position: relative; z-index: 2; max-width: 1000px; margin-inline: auto; }
.hero .h1 { margin-inline: auto; }
.hero__sub { margin: 28px auto 34px; max-width: 60ch; color: #b8c2cc; }

/* ============================================================
   PROCESS (home) — tilted 3D card stack
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.stack { position: relative; min-height: 460px; perspective: 1400px; }

/* ---- Pinned process sequence (one card at a time) ---- */
.process { position: relative; }
/* pinned process: content vertically centered so top & bottom breathe evenly */
.split--pin { min-height: 100vh; align-items: center; }
.process__intro { align-self: center; }
.process { padding-block: 0; }
.process__progress { display: flex; gap: 10px; margin-top: 40px; }
.process__dot { width: 30px; height: 4px; border-radius: 4px; background: rgba(11,18,32,.15); transition: background .4s var(--ease); }
.process__dot.is-active { background: var(--c-accent-ink); }

.stack--seq { position: relative; min-height: min(64vh, 460px); overflow: visible; }
.stack--seq .seq-card {
  position: absolute; top: 50%; left: 0; right: 0;
  width: 90%; margin-inline: auto; margin-top: -155px;
  min-height: 310px; display: flex; flex-direction: column; justify-content: center;
  padding: 38px 42px;
  background: linear-gradient(150deg, #0d1420 0%, #161a24 60%, #1b1420 100%);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  will-change: transform, opacity;
}
.seq-card__num {
  font-family: var(--f-display); font-weight: 600; font-size: .85rem; letter-spacing: .2em;
  color: var(--c-accent); margin-bottom: 20px;
}
.seq-card--pending .stack__text { color: rgba(255,255,255,.55); font-style: italic; }
.stack__card {
  position: absolute; width: 82%;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 80px rgba(0,0,0,.45);
}
.stack__card--1 { top: 0; right: 0; transform: rotate(6deg); background: linear-gradient(150deg,#0d1420,#161a24); z-index: 3; }
.stack__card--2 { top: 150px; left: 0; transform: rotate(-4deg); background: linear-gradient(150deg,#1a0f1e,#241226); z-index: 2; }
.stack__card--3 { top: 250px; left: 4%; transform: rotate(-3deg); background: linear-gradient(150deg,#0c1a16,#122420); z-index: 1; height: 120px; }
.stack__card--4 { top: 290px; left: 8%; transform: rotate(-2deg); background: linear-gradient(150deg,#141414,#1c1c1c); z-index: 0; height: 120px; }
.stack__icon { width: 34px; height: 34px; margin-bottom: 16px; color: #fff; }
.stack__title { font-family: var(--f-head); font-weight: 500; font-size: 1.5rem; margin-bottom: 12px; color: #fff; }
.stack__text { font-size: .92rem; color: #c9cfd6; }
.stack__card--placeholder { display: flex; align-items: center; justify-content: center; }
.stack__pending { font-size: .78rem; color: rgba(255,255,255,.5); font-style: italic; }

/* ============================================================
   SERVICES grid 2x2
   ============================================================ */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 34px); margin-top: 56px; }
.service-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: rgba(255,255,255,.015);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(23,170,248,.35); background: rgba(23,170,248,.03); }
.service-card__media {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9;
  background: #0b0d10; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark);
}
.service-card__media svg { width: 100%; height: 100%; }
.service-card__media img { width: 100%; height: 100%; object-fit: contain; }
.service-card__title { font-family: var(--f-head); font-weight: 500; font-size: 1.6rem; margin: 24px 0 12px; }
.service-card__text { color: var(--t-on-dark-mut); font-size: .95rem; margin-bottom: 22px; }
.service-card__pending {
  color: rgba(255,255,255,.45); font-size: .85rem; font-style: italic;
  border: 1px dashed rgba(255,255,255,.15); border-radius: 10px; padding: 8px 12px; display: inline-block; margin-bottom: 18px;
}

/* ============================================================
   TESTIMONIAL + logos
   ============================================================ */
.testimonial {
  background: var(--c-card-fill);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
  margin-top: 48px;
}
.stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 26px; color: var(--c-accent); }
.stars svg { width: 24px; height: 24px; }
.testimonial__quote {
  font-family: var(--f-head); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.4; color: #2a3340;
  max-width: 46ch; margin: 0 auto 30px;
}
.testimonial__avatar {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #dfe4ea, #c7ced6);
  color: #46505c; font-family: var(--f-head); font-weight: 600; font-size: 1rem; letter-spacing: .04em;
  object-fit: cover; overflow: hidden;
}
.testimonial__name { font-weight: 700; color: var(--t-on-light); }
.testimonial__role { font-size: .9rem; color: var(--t-on-light-mut); }

.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; align-items: center; }
.logos__cell {
  display: flex; align-items: center; justify-content: center;
  padding: 22px 20px; border-radius: var(--radius);
  min-height: 96px;
}
.logos__cell svg, .logos__cell img { max-height: 44px; width: auto; object-fit: contain; }
/* Dent Reality mark is taller (stacked) — nudge its size to match visual weight */
.logos__cell:nth-child(3) img { max-height: 92px; }

/* ============================================================
   CTA (home "Next")
   ============================================================ */
.cta-x { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.cta-x__art { display: flex; align-items: center; justify-content: center; }
.cta-x__img { width: 100%; max-width: 340px; margin-inline: auto; display: block; mix-blend-mode: screen; }
.cta-x__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 32px 0; }
.cta-col__title { font-weight: 600; font-size: 1.1rem; margin-bottom: 12px; }
.cta-col__text { color: var(--t-on-dark-mut); font-size: .92rem; }

/* ============================================================
   INSIGHTS cards
   ============================================================ */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,3vw,36px); margin-top: 56px; align-items: stretch; }
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/11; margin-bottom: 20px; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.chip {
  background: var(--c-card-fill); color: #2a3340;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600;
}
.article-card__read { font-size: .85rem; color: var(--t-on-light-mut); }
.article-card__title { font-family: var(--f-head); font-weight: 500; font-size: 1.5rem; line-height: 1.15; margin-bottom: 14px; }
.article-card__lead { color: var(--t-on-light-mut); font-size: .95rem; margin-bottom: 20px; }
.article-card__link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--t-on-light);
  margin-top: auto; align-self: flex-start;
}
.article-card__link svg { width: 16px; transition: transform .3s var(--ease); }
.article-card__link:hover svg { transform: translateX(4px); }

/* ============================================================
   PRINCIPLES (About) — HUD center + 2x2
   ============================================================ */
.principles { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px,4vw,60px); align-items: center; }
.principle { text-align: center; }
.principle + .principle { margin-top: 60px; }
.principle__icon { width: 34px; height: 34px; margin: 0 auto 18px; color: #fff; }
.principle__title { font-family: var(--f-head); font-weight: 500; font-size: 1.5rem; margin-bottom: 12px; }
.principle__text { color: var(--t-on-dark-mut); font-size: .92rem; max-width: 34ch; margin-inline: auto; }
.principles__hud { width: min(420px, 40vw); }
.principles__hud svg { width: 100%; height: auto; }

/* ============================================================
   TIMELINE (About process) — 5 nodes
   ============================================================ */
.timeline { position: relative; margin-top: 90px; }
.timeline__track { position: relative; height: 2px; background: rgba(255,255,255,.14); }
.timeline__nodes { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.tl-node { position: relative; padding-top: 40px; }
.tl-node__dot {
  position: absolute; top: -6px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px var(--c-dark);
}
.tl-node__text { font-size: .9rem; color: var(--t-on-dark-mut); max-width: 26ch; }
.tl-node--up .tl-node__text { position: absolute; bottom: 40px; }
.tl-node__col { display: grid; }

/* Grid variant to place text above/below the single track */
.timeline-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: clamp(90px, 14vw, 200px); counter-reset: tl; }
.tl-cell { position: relative; min-height: 380px; counter-increment: tl; }
/* numbered glowing node */
.tl-cell__dot {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 40% 35%, #eaf6ff 0%, #4db4ff 40%, #0d5aa8 100%);
  box-shadow: 0 0 0 6px var(--c-dark), 0 0 22px rgba(23,170,248,.55);
  display: flex; align-items: center; justify-content: center;
}
.tl-cell__dot::before {
  content: "0" counter(tl);
  font-family: var(--f-display); font-weight: 600; font-size: .72rem; letter-spacing: .04em;
  color: #04121f;
}
.tl-cell__dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(23,170,248,.35);
}
/* glowing gradient track */
.tl-cell__line { position: absolute; top: 50%; left: 20px; right: 0; height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(23,170,248,.9), rgba(23,170,248,.25)); }
.tl-cell:last-child .tl-cell__line { background: linear-gradient(90deg, rgba(23,170,248,.6), transparent); }
/* text card */
.tl-cell__text {
  position: absolute; left: 0; width: 88%; font-size: .9rem; color: var(--t-on-dark-mut); line-height: 1.6;
  padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(23,170,248,.06), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
}
.tl-cell--above .tl-cell__text { bottom: calc(50% + 46px); }
.tl-cell--below .tl-cell__text { top: calc(50% + 46px); }
/* connector stem from card to node */
.tl-cell__text::after { content: ""; position: absolute; left: 22px; width: 1px; background: rgba(23,170,248,.3); }
.tl-cell--above .tl-cell__text::after { top: 100%; height: 26px; }
.tl-cell--below .tl-cell__text::after { bottom: 100%; height: 26px; }
.tl-cell__stage {
  display: block; color: var(--c-accent); font-weight: 700; margin-bottom: 10px;
  font-family: var(--f-body); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
}

/* ============================================================
   ABOUT hero image grid
   ============================================================ */
.hero-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 56px; }
.hero-grid__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.hero-grid__item img { width: 100%; height: 100%; object-fit: cover; }

/* Media placeholder (photos to be supplied by client) */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    linear-gradient(135deg, #0e1620, #131a24),
    radial-gradient(60% 60% at 30% 20%, rgba(23,170,248,.18), transparent);
  background-blend-mode: screen;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 12px;
}
.ph--light { background: linear-gradient(135deg,#e9edf2,#dde3ea); color: rgba(11,18,32,.4); }

/* ============================================================
   TABS (service page)
   ============================================================ */
.tabs__nav { display: flex; gap: 30px; justify-content: center; border-bottom: 1px solid var(--line-light); margin-bottom: 50px; }
.section--dark .tabs__nav, .section--dark-neutral .tabs__nav { border-color: var(--line-dark); }
.tab-btn {
  padding: 0 2px 16px; font-size: 1rem; font-weight: 500; color: var(--t-on-light-mut);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .3s var(--ease), border-color .3s var(--ease);
}
.tab-btn.is-active { color: var(--t-on-light); border-color: var(--t-on-light); }
.tab-panel { display: none; }
.tab-panel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px);} to { opacity:1; transform:none; } }
.tab-panel__art { display:flex; align-items:center; justify-content:center; }
.tab-panel__art img { max-width: 82%; height: auto; display: block; }

/* Approach 3 cards */
.approach-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,40px); margin-top: 56px; text-align: center; }
.approach-card__media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; }
.approach-card__media img { width: 100%; height: auto; object-fit: contain; display: block; }
.approach-card__title { font-family: var(--f-head); font-weight: 500; font-size: 1.5rem; line-height: 1.15; margin-bottom: 16px; }
.approach-card__text { color: var(--t-on-dark-mut); font-size: .92rem; max-width: 32ch; margin-inline: auto; }

/* Related services */
.related { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.related__card {
  display: flex; flex-direction: column; min-height: 260px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.related__card:hover { border-color: rgba(23,170,248,.45); transform: translateY(-6px); background: linear-gradient(160deg, rgba(23,170,248,.06), rgba(23,170,248,0)); }
.related__top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.related__icon { width: 30px; height: 30px; color: var(--c-accent); flex: none; }
.related__eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); font-weight: 700; margin: 0; }
.related__title { font-family: var(--f-head); font-weight: 500; font-size: 1.3rem; line-height: 1.2; margin-bottom: 12px; }
.related__desc { color: var(--t-on-dark-mut); font-size: .92rem; margin-bottom: 22px; }
.related__arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  color: var(--c-accent); font-weight: 600; font-size: .9rem;
}
.related__arrow svg { width: 16px; transition: transform .3s var(--ease); }
.related__card:hover .related__arrow svg { transform: translateX(5px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px,6vw,90px); align-items: start; }
.contact-grid .h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.04; }
/* form sticks and travels down to the end of the section while the info column scrolls */
.contact-form-col { position: sticky; top: 100px; align-self: start; }
@media (max-width: 960px) { .contact-form-col { position: static; } }
.contact-steps { margin-top: 40px; display: grid; gap: 18px; }
.contact-step { display: flex; gap: 16px; align-items: flex-start; }
.contact-step__num { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(23,170,248,.4); color: var(--c-accent); display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 600; font-size: .9rem; }
.contact-step__t { font-weight: 600; color: #fff; margin-bottom: 4px; }
.contact-step__d { font-size: .9rem; color: var(--t-on-dark-mut); }
.contact-info__item { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.contact-info__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent); margin-bottom: 8px; }
.contact-info__value { font-size: 1.1rem; }
.contact-info__pending { color: rgba(255,255,255,.4); font-style: italic; }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: .85rem; color: #c9cfd6; }
.field__input, .field__area {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-dark); color: #fff;
  font: inherit; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field__input:focus, .field__area:focus { outline: none; border-color: var(--c-accent); background: rgba(23,170,248,.04); }
.field__area { resize: vertical; min-height: 130px; }
.field__error { font-size: .8rem; color: #ff6b6b; display: none; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .field__input, .field.is-invalid .field__area { border-color: #ff6b6b; }
.form__status { font-size: .9rem; padding: 14px; border-radius: 10px; display: none; }
.form__status.is-ok { display: block; background: rgba(23,170,248,.1); color: var(--c-accent); }

/* Page hero (subpages) */
.page-hero { padding-top: calc(var(--section-y) + 40px); }

/* ============================================================
   ARTICLE (blog detail)
   ============================================================ */
.article-hero { max-width: none; margin-inline: 0; text-align: center; }
.article-hero__meta { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; }
.article-hero__cat { background: rgba(23,170,248,.14); color: var(--c-accent); padding: 6px 14px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; }
.article-hero__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--t-on-dark-faint); }
.article-hero__info { font-size: .88rem; color: var(--t-on-dark-mut); }
.article-hero .h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.article-hero__lead { margin: 26px auto 0; color: var(--t-on-dark-mut); font-size: clamp(1.05rem,1.5vw,1.3rem); max-width: 62ch; }
.article-hero__author { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }
.article-hero__avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(150deg,#17324a,#0e2233); display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 600; font-size: .85rem; color: #9fdcff; }
.article-hero__by { text-align: left; font-size: .85rem; }
.article-hero__by b { display: block; color: #fff; font-weight: 600; }
.article-hero__by span { color: var(--t-on-dark-faint); }

.article-cover { max-width: none; margin: 48px 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark); }
.article-cover img { width: 100%; display: block; aspect-ratio: 16/7; object-fit: cover; }

/* prose IS a .container, so it keeps the 1240px cap + header gutter — do not override its width */
.prose { margin-inline: auto; }
.prose > * + * { margin-top: 22px; }
.prose p { color: #3a4654; font-size: 1.08rem; line-height: 1.75; }
.section--dark .prose p, .section--dark-neutral .prose p { color: #b9c3cd; }
.prose h2 { font-family: var(--f-head); font-weight: 500; font-size: clamp(1.5rem,2.4vw,2rem); line-height: 1.2; margin-top: 48px; color: var(--t-on-light); }
.prose h3 { font-family: var(--f-head); font-weight: 500; font-size: 1.25rem; margin-top: 32px; color: var(--t-on-light); }
.prose ul { display: grid; gap: 12px; padding-left: 0; }
.prose li { position: relative; padding-left: 30px; color: #3a4654; font-size: 1.05rem; line-height: 1.6; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--c-accent); transform: rotate(45deg); }
.prose blockquote { margin: 40px 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--c-accent); font-family: var(--f-head); font-size: clamp(1.3rem,2vw,1.6rem); line-height: 1.4; color: var(--t-on-light); font-style: italic; }
.prose strong { color: var(--t-on-light); font-weight: 700; }
.prose a { color: var(--c-accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.article-nav { max-width: none; margin: 64px 0 0; padding-top: 28px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.article-nav a { font-weight: 600; color: var(--t-on-light); display: inline-flex; align-items: center; gap: 8px; }
.article-nav a:hover { color: var(--c-accent-ink); }

/* About hero: balanced two-column split — smaller H1, wider text column */
.page-hero .split { grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); }
.page-hero .split .h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; }
.page-hero .split .lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #04070A; border-top: 1px solid var(--line-dark); padding-block: 72px 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__tagline { color: var(--t-on-dark-mut); font-size: .92rem; margin-top: 20px; max-width: 34ch; }
.footer__col-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--t-on-dark-faint); margin-bottom: 18px; }
.footer__link { display: block; padding: 6px 0; color: #c9cfd6; font-size: .92rem; transition: color .3s var(--ease); }
.footer__link:hover { color: var(--c-accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); color: var(--t-on-dark-faint); font-size: .82rem; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-stagger] > * { opacity: 0; transform: translateY(24px); }
[data-stagger].is-in > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}
/* mobile / no-ScrollTrigger: reveal everything up front */
.reveal-instant .reveal,
.reveal-instant [data-stagger] > * { opacity: 1 !important; transform: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: block; }
  .split, .cta-x, .contact-grid, .principles, .tab-panel.is-active,
  .page-hero .split { grid-template-columns: 1fr; }
  .services-grid, .insights-grid, .approach-grid, .related { grid-template-columns: 1fr; }
  .principles__hud { order: -1; width: min(360px, 70vw); margin-inline: auto; }
  .cta-x__cols { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
  .tl-cell { min-height: auto; padding-left: 62px; padding-bottom: 22px; }
  .tl-cell__line { top: 0; bottom: 0; left: 19px; right: auto; width: 2px; height: auto; transform: none;
    background: linear-gradient(180deg, rgba(23,170,248,.9), rgba(23,170,248,.25)); }
  .tl-cell__dot { top: 4px; left: 0; transform: none; }
  .tl-cell__text { position: static !important; width: 100%; }
  .tl-cell__text::after { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }

  /* Process sequence: no pin on mobile — plain block so the slider can't overflow the grid track */
  .split--pin { min-height: 0; display: block; }
  .process { padding-block: var(--section-y); }  /* restore spacing (desktop pin sets it to 0) */
  /* perf: drop expensive paint layers + heavy video on mobile */
  .section--stars::before { display: none; }
  .hero__scan { display: none; }
  .hero__bg { display: none; }  /* mobile keeps the light SVG fallback, saves data */
  .stack--seq { min-height: 0; display: grid; gap: 18px; }
  .stack--seq .seq-card {
    position: relative; top: auto; left: auto; right: auto;
    transform: none; min-height: 0; opacity: 1; scale: 1;
    width: 100%; margin: 0; box-shadow: none;
    border-color: rgba(255,255,255,.12);
  }
  .process { overflow: visible; }
  .process__progress { display: none; }

  /* Mobile menu panel */
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: fixed; inset: 72px 0 auto 0;
    background: #060B07;
    padding: 20px var(--gutter) 30px; border-bottom: 1px solid var(--line-dark);
  }
  /* mobile: dropdown collapsed by default, opens on tap */
  .nav.is-open .dropdown {
    position: static; transform: none; min-width: 0; background: none; border: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    max-height: 0; overflow: hidden; padding: 0 0 0 16px;
    transition: max-height .35s var(--ease), opacity .3s var(--ease), padding .3s var(--ease);
  }
  .nav.is-open .nav__item.is-open .dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    max-height: 520px; padding: 4px 0 10px 16px;
  }
  .nav.is-open .nav__link { padding: 14px 0; font-size: 1.05rem; }
  .nav.is-open .nav__item--contact { display: block; margin-top: 20px; }
  .nav.is-open .nav__item--contact .btn { width: 100%; justify-content: center; padding: 15px 24px; }
}
@media (max-width: 560px) {
  .cta-x__cols, .logos, .hero-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .stack { min-height: 520px; }
  .tabs__nav { gap: 18px; }
}

/* ============================================================
   MOBILE CARD SLIDERS (Swiper) — one card per view, no peek
   ============================================================ */
.mi-swiper {
  display: block !important;
  overflow: hidden;
  width: 100%; max-width: 100%; min-width: 0; min-height: 0 !important;
  margin-top: 40px;
}
.mi-swiper .swiper-wrapper { display: flex; align-items: stretch; }
.mi-swiper .swiper-slide {
  width: 100%; height: auto; box-sizing: border-box;
  display: flex; flex-direction: column;
}
.mi-swiper .swiper-slide > * { width: 100%; }

/* controls row BELOW the slider (never overlaps a card) */
.mi-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 14px; width: 100%; }

/* pagination dots — centered */
.mi-controls .swiper-pagination {
  position: static !important; width: 100% !important;
  display: flex !important; justify-content: center; align-items: center; gap: 8px;
  left: auto; right: auto; transform: none;
}
.mi-controls .swiper-pagination-bullet {
  width: 8px; height: 8px; margin: 0 !important; background: #8a97a5; opacity: .5;
  transition: width .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.mi-controls .swiper-pagination-bullet-active {
  background: var(--c-accent); opacity: 1; width: 26px; border-radius: 5px;
}

/* arrow nav */
.mi-nav__btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(23,170,248,.5); color: var(--c-accent);
  background: rgba(23,170,248,.06);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.mi-nav__btn:active { transform: scale(.92); }
.mi-nav__btn svg { width: 22px; height: 22px; }
.mi-nav__btn.swiper-button-disabled { opacity: .35; }
/* on light sections controls read darker */
.section--light .mi-nav__btn { border-color: rgba(12,111,196,.5); color: var(--c-accent-ink); background: rgba(12,111,196,.06); }
.section--light .mi-controls .swiper-pagination-bullet-active { background: var(--c-accent-ink); }

/* ============================================================
   MOBILE TEXT & SPACING POLISH
   ============================================================ */
@media (max-width: 640px) {
  :root { --gutter: 20px; --section-y: clamp(44px, 11vw, 62px); }
  .page-hero { padding-bottom: 40px; }  /* breathing room so buttons don't hug the block edge */
  .hero-grid__item { aspect-ratio: 4/3; }  /* shorter image cards on phones */
  .h1 { font-size: clamp(2rem, 8.5vw, 2.9rem); line-height: 1.08; }
  .h2 { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
  .lead { font-size: 1rem; }
  .hero { min-height: 92vh; }
  .hero__sub { margin: 22px auto 28px; }
  .page-hero { padding-top: calc(var(--section-y) + 26px); }
  .section--light .container > .h2, .container > .h2 { }
  .testimonial { padding: 30px 22px; }
  .testimonial__quote { font-size: 1.15rem; }
  .stack__title, .seq-card .stack__title { font-size: 1.3rem; }
  .service-card__title, .article-card__title, .approach-card__title { font-size: 1.35rem; }
  .footer__top { gap: 30px; }
  .btn { padding: 13px 24px; }
  /* eyebrows a touch smaller */
  .eyebrow { font-size: .74rem; }
  /* article prose comfortable on phones */
  .prose p, .prose li { font-size: 1.02rem; }
  /* tighten oversized gaps between a block's heading/text and its content */
  .testimonial { margin-top: 26px; }
  .logos { margin-top: 18px; }
  .mi-swiper { margin-top: 26px; }
  .services-grid, .insights-grid, .approach-grid, .related, .hero-grid { margin-top: 26px; }
  .article-cover { margin-top: 28px; }
  .timeline-grid { margin-top: clamp(48px, 12vw, 90px); }
  /* tighten the text→button gap inside blocks (leads carry a 32px inline bottom margin) */
  .lead[style*="32px"] { margin-bottom: 18px !important; }
  .process__intro .btn, .cta-x .btn { margin-top: 4px; }
  /* desktop-only forced line breaks in headings collapse on mobile */
  .br-desktop { display: none; }
  /* subpage hero: enough clearance under the fixed header, no cramped top */
  .page-hero { padding-top: calc(var(--section-y) + 46px); }
  /* service tabs: drop the long divider line, pull tabs up closer to the intro text */
  .tabs__nav { border-bottom: none; margin-bottom: 20px; gap: 22px; }
  .section:has(> .container[data-tabs]) { margin-top: -34px; }
  /* article footer nav: keep both links on one row (left / right), pulled up closer */
  .article-nav { flex-wrap: nowrap; gap: 14px; align-items: center; margin-top: 32px; padding-top: 20px; }
  .article-nav a { font-size: .82rem; min-width: 0; }
  .article-nav a:last-child { text-align: right; justify-content: flex-end; }
}
