/* Intellovate.ai — shared design system
   Brand: white + red #e12128 · Archivo (display, wdth 122) + Instrument Sans */

:root {
  --red: #e12128;
  --red-dark: #b5161c;
  --coral: #e24c4a;      /* gradient warm stop — sampled from intellovate.ai hero */
  --blue: #386bb7;       /* gradient cool stop */
  --violet: #8d5a95;     /* midpoint */
  --ink: #141414;
  --deep: #12141c;       /* dark-section base */
  --deep-2: #1b1f2b;
  --paper: #fbfaf8;
  --card: #ffffff;
  --line: #e8e5e0;
  --muted: #6b6862;
  --wash: #f4f1ec;
  --grad: linear-gradient(262deg, var(--coral) 0%, var(--blue) 100%);
  --grad-r: linear-gradient(98deg, var(--blue) 0%, var(--coral) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Instrument Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.display {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 122;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
/* Signature gradient text — the brand's blue→red spectrum */
.r {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* on dark sections the gradient brightens so it stays legible */
.dark .r { background: linear-gradient(262deg, #ff7a6e 0%, #7ea9f0 100%); -webkit-background-clip: text; background-clip: text; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--red); flex: none; }
/* centered kickers get a matching rule on the right, so the label
   reads as centered between two equal red lines */
.sechead .kicker::after,
.hero .kicker::after,
.pagehero .kicker::after { content: ""; width: 22px; height: 2px; background: var(--red); flex: none; }

/* ---------- header ---------- */
header {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(251,250,248,.92);
  backdrop-filter: blur(8px); z-index: 50;
}
.logo img { height: 30px; width: auto; }
nav.main { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
nav.main a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink);
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: all .18s ease;
}
nav.main a:hover { color: var(--red); }
nav.main a.here { border-bottom-color: var(--red); font-weight: 600; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--red); color: #fff; font-family: inherit;
  font-weight: 600; font-size: 14.5px; border: 1.5px solid var(--red);
  border-radius: 100px; padding: 11px 24px; transition: all .2s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn.onred { background: #fff; color: var(--red); border-color: #fff; }
.btn.onred:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* header right-hand actions: Client Login + primary CTA */
.navactions { display: flex; align-items: center; gap: 10px; }
/* Client Login carries the brand gradient: gradient hairline border + gradient
   label, filling solid on hover. Keeps the red CTA next to it as the primary. */
.navlogin {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: 14px; font-weight: 600; border-radius: 100px; padding: 10px 18px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--grad-r) border-box;
  transition: all .2s ease; white-space: nowrap;
}
.navlogin span {
  background: var(--grad-r);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.navlogin svg { width: 14px; height: 14px; stroke: var(--violet); fill: none; stroke-width: 2; }
.navlogin:hover { background: var(--grad-r) padding-box, var(--grad-r) border-box; transform: translateY(-1px); }
.navlogin:hover span { -webkit-text-fill-color: #fff; color: #fff; }
.navlogin:hover svg { stroke: #fff; }
/* label stays visible at every width, including mobile */
@media (max-width: 620px) { .navlogin { padding: 9px 14px; font-size: 13px; } .navlogin svg { display: none; } }

/* Client Login inside the collapsed menu only; the header pill covers desktop */
nav.main a.navdrop { display: none; }

.navtoggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 16px; line-height: 1; }
@media (max-width: 880px) {
  .navtoggle { display: block; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 5vw, 64px) 16px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  nav.main a:last-of-type { border-bottom: none; }
  nav.main a.navdrop { display: block; }
  header .btn.navcta { display: none; }
}

/* ---------- hero ---------- */
/* ---------- atmosphere: soft brand-spectrum mesh behind the hero ---------- */
.atmos { position: relative; overflow: hidden; }
.atmos::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 780px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 40% at 18% 22%, rgba(56,107,183,.20) 0%, transparent 68%),
    radial-gradient(42% 38% at 82% 12%, rgba(226,76,74,.19) 0%, transparent 66%),
    radial-gradient(38% 34% at 55% 46%, rgba(141,90,149,.14) 0%, transparent 70%);
  filter: blur(8px);
}
.atmos > * { position: relative; z-index: 1; }

.hero { padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero .kicker { justify-content: center; }
.hero h1 { font-size: clamp(42px, 6.6vw, 88px); max-width: 17ch; margin-left: auto; margin-right: auto; }
.hero .sub { margin: 26px auto 0; font-size: clamp(16px, 1.6vw, 19.5px); line-height: 1.65; color: var(--muted); max-width: 58ch; }
.hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* page hero (interior pages) */
.pagehero { padding: clamp(56px, 8vw, 100px) 0 clamp(30px, 4vw, 48px); text-align: center; }
.pagehero .kicker { justify-content: center; }
.pagehero h1 { font-size: clamp(40px, 6vw, 76px); }
.pagehero .sub { margin: 22px auto 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); max-width: 62ch; }

/* ---------- stats band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px) 0;
}
.stat b { display: block; font-family: "Archivo", sans-serif; font-weight: 800; font-variation-settings: "wdth" 115; font-size: clamp(28px, 3.4vw, 44px); }
.stat b em { font-style: normal; color: var(--red); }
.stat span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
section.block { padding: clamp(56px, 8vw, 104px) 0; }
section.block.tight { padding-top: clamp(36px, 5vw, 64px); }
.sechead {
  max-width: 720px; margin-left: auto; margin-right: auto; text-align: center;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.sechead h2 { font-size: clamp(30px, 4vw, 52px); }
.sechead h2 br { display: none; }           /* let centered headlines wrap naturally */
.sechead p { margin-top: 16px; color: var(--muted); font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.65; margin-left: auto; margin-right: auto; }
.sechead .kicker { justify-content: center; }
.sechead.center { margin-left: auto; margin-right: auto; text-align: center; }
.sechead.center .kicker { justify-content: center; }

/* pain grid */
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain div {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; font-size: 15px; line-height: 1.55;
}
.pain div b { display: block; font-size: 16px; margin-bottom: 6px; }
.pain div::before { content: "✕"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #fdeaea; color: var(--red); font-weight: 700; font-size: 13px; margin-bottom: 14px; }
@media (max-width: 880px) { .pain { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pain { grid-template-columns: 1fr; } }

/* ---------- work cards (softformance color-block style) ---------- */
.workgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.workgrid.home { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .workgrid, .workgrid.home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .workgrid, .workgrid.home { grid-template-columns: 1fr; } }

.wcard { text-decoration: none; display: block; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.wcard:hover { transform: translateY(-6px); box-shadow: 0 22px 48px -20px rgba(20,20,20,.28); }
.wcard.hide { display: none; }
.panel { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; padding: clamp(18px, 3vw, 30px); }
.panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% -10%, rgba(255,255,255,.16), transparent 55%); pointer-events: none; }
.panel img {
  width: 88%; border-radius: 8px;
  box-shadow: 0 24px 44px -14px rgba(0,0,0,.5);
  transform: rotate(-2.5deg) translateY(4px);
  transition: transform .35s ease;
}
.wcard:hover .panel img { transform: rotate(0deg) translateY(0) scale(1.02); }
.wmeta { padding: 20px 22px 24px; }
.wmeta .tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); background: #fdeaea; border-radius: 100px; padding: 4px 12px; margin-bottom: 10px; }
.wmeta h3 { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 115; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.wmeta p { margin-top: 7px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.wmeta .url { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--red); padding-bottom: 1px; }

/* filter chips */
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: clamp(28px, 4vw, 44px); }
.chip {
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 100px; padding: 8px 18px; transition: all .18s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- service cards ---------- */
.svcgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 880px) { .svcgrid { grid-template-columns: 1fr; } }
.svc {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(20,20,20,.22); }
.svc .num { font-family: "Archivo", sans-serif; font-weight: 800; font-variation-settings: "wdth" 115; font-size: 15px; color: var(--red); }
.svc h3 { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 115; font-weight: 800; font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.01em; }
.svc p { font-size: 15px; line-height: 1.62; color: var(--muted); }
.svc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.svc ul li { font-size: 14.5px; padding-left: 24px; position: relative; }
.svc ul li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.proof { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.proof a { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--red); }
.proof a:hover { color: var(--red); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Archivo", sans-serif; font-weight: 800; font-variation-settings: "wdth" 122;
  font-size: 44px; color: transparent; -webkit-text-stroke: 1.5px var(--red);
  display: block; margin-bottom: 14px;
}
.step h3 { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 115; font-weight: 800; font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- tech ---------- */
.techstrip { display: flex; flex-wrap: wrap; gap: 10px; }
.techstrip i {
  font-style: normal; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px;
}
.techgroups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 880px) { .techgroups { grid-template-columns: 1fr; } }
.tg { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 34px); }
.tg h3 { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 115; font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.tg > p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.tg .row { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.tg .row .rlogo { flex: none; width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.tg .row .rlogo img { width: 21px; height: 21px; object-fit: contain; }
.tg .row .rlogo.mono { background: var(--red); border-color: var(--red); color: #fff; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 16px; }
.tg .row .rbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tg .row .rbody b { font-size: 14.5px; }
.tg .row .rbody span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.turl { font-size: 12px; color: var(--muted); text-decoration: none; letter-spacing: .01em; margin-top: 3px; align-self: flex-start; }
.turl:hover { color: var(--red); }

/* ---------- logo wall (home + tech) ---------- */
.logowall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 880px) { .logowall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .logowall { grid-template-columns: repeat(3, 1fr); } }
.logotile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.logotile:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 12px 26px -16px rgba(20,20,20,.2); }
.logotile img { width: 30px; height: 30px; object-fit: contain; }
.logotile .mono { width: 30px; height: 30px; border-radius: 7px; background: var(--red); color: #fff; display: grid; place-items: center; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 15px; }
.logotile span { font-size: 12.5px; color: var(--muted); font-weight: 500; text-align: center; }

/* ---------- home about strip ---------- */
/* "Who we are": centered heading block, then the industry chips beneath it */
.homeabout { max-width: 900px; margin: 0 auto; text-align: center; }
.homeabout .kicker { justify-content: center; }
.homeabout .kicker::after { content: ""; width: 22px; height: 2px; background: var(--red); flex: none; }
.homeabout p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 16px auto 0; max-width: 66ch; }
.homeabout .btn { margin-top: 24px; }

/* industries: an even grid of plain labels, two-up on phones */
.indwrap { margin-top: clamp(30px, 4vw, 44px); }
.indlabel {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.homeabout .indchips {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.homeabout .indchips span {
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 12px; color: var(--ink);
  transition: border-color .2s ease, transform .2s ease;
}
.homeabout .indchips span:hover { border-color: var(--violet); transform: translateY(-1px); }
@media (max-width: 720px) {
  .homeabout .indchips { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .homeabout .indchips span { font-size: 13px; padding: 12px 8px; }
}

/* ---------- case studies ---------- */
.cs {
  display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(24px, 4vw, 56px);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(26px, 4vw, 48px); margin-bottom: 26px;
}
@media (max-width: 880px) { .cs { grid-template-columns: 1fr; } }
/* full-width screenshot strip at the top of a case study (click = open demo) */
.cs-shot {
  grid-column: 1 / -1; display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--wash);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cs-shot img { width: 100%; display: block; aspect-ratio: 16 / 6.4; object-fit: cover; object-position: top left; }
.cs-shot:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(56,107,183,.4); }
@media (max-width: 880px) { .cs-shot img { aspect-ratio: 16 / 9; } }
.cs .tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); background: #fdeaea; border-radius: 100px; padding: 4px 12px; margin-bottom: 14px; }
.cs h3 { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 118; font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.015em; }
.cs .lede { margin-top: 14px; font-size: 15.5px; line-height: 1.68; color: var(--muted); }
.cs-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }
.cs-stats b { display: block; font-family: "Archivo", sans-serif; font-weight: 800; font-variation-settings: "wdth" 115; font-size: 26px; }
.cs-stats span { font-size: 12.5px; color: var(--muted); }
.cs-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.cs-stack i { font-style: normal; font-size: 12px; font-weight: 600; background: var(--wash); border-radius: 100px; padding: 5px 12px; }
.cs-link { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--red); }
.cs-link:hover { color: var(--red); }
.cs-cred { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- R&D / in-house lab cards ---------- */
.labgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .labgrid { grid-template-columns: 1fr; } }
.lab {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px; padding: clamp(26px, 3.4vw, 38px); backdrop-filter: blur(6px);
  position: relative; overflow: hidden;
}
.lab::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-r);
}
.labtag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9fb4dd; background: rgba(56,107,183,.16); border-radius: 100px; padding: 5px 13px; margin-bottom: 16px; }
.lab h3 { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; font-size: clamp(21px, 2.3vw, 27px); letter-spacing: -0.01em; margin-bottom: 12px; color: #fff; }
.lab > p { font-size: 15px; line-height: 1.68; color: #b6b3bd; }
.labstats { display: flex; gap: clamp(20px, 3vw, 34px); flex-wrap: wrap; margin: 22px 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.10); border-bottom: 1px solid rgba(255,255,255,.10); }
.labstats b { display: block; font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); color: #fff; line-height: 1.1; }
.labstats span { font-size: 12.5px; color: #a5a2ae; }
.labnote { font-size: 13.5px; line-height: 1.6; color: #a5a2ae; background: rgba(255,255,255,.04); border-left: 2px solid var(--blue); border-radius: 0 8px 8px 0; padding: 13px 16px; }
.labnote b { color: #dcdae2; }
.labwhy { margin-top: 18px; font-size: 14px; line-height: 1.6; color: #b6b3bd; }
.labwhy b { color: #fff; }
.labfoot { margin-top: 30px; font-size: 14px; color: #a5a2ae; text-align: center; }

/* optional preview thumbnail + "clone it" block inside a lab card */
.labshot { margin: 4px 0 20px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #142c52; }
.labshot img { width: 100%; height: auto; display: block; }
.labclone { margin-top: 18px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.10); border-radius: 10px; padding: 16px 18px; }
.labclone h4 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9fb4dd; margin-bottom: 10px; }
.labclone ol { margin: 0 0 12px 18px; display: flex; flex-direction: column; gap: 6px; }
.labclone li { font-size: 13.5px; line-height: 1.55; color: #b6b3bd; }
.labclone code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: rgba(255,255,255,.07); border-radius: 5px; padding: 2px 6px; color: #dcdae2; }
.labclone a.repo { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none; border-bottom: 1.5px solid var(--coral); padding-bottom: 1px; }
.labclone a.repo:hover { color: #ff9d94; }

/* demos callout above the case studies */
.demobar {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  background: var(--deep); color: #f2f1ef; border-radius: 18px;
  padding: clamp(22px, 3vw, 30px) clamp(24px, 3.5vw, 38px); margin-bottom: 34px;
  position: relative; overflow: hidden;
}
.demobar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 130% at 8% 0%, rgba(56,107,183,.34) 0%, transparent 62%),
    radial-gradient(50% 120% at 92% 100%, rgba(226,76,74,.28) 0%, transparent 60%);
}
.demobar > * { position: relative; z-index: 1; }
.demobar b { display: block; font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; font-size: clamp(17px, 2vw, 21px); }
.demobar span { display: block; margin-top: 7px; font-size: 14.5px; color: #b6b3bd; line-height: 1.55; }
.demobar .btn { flex: none; }
@media (max-width: 620px) { .demobar { flex-direction: column; align-items: flex-start; } }
.cs-mods h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cs-mods ul { list-style: none; }
.cs-mods li { padding: 10px 0 10px 24px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; position: relative; }
.cs-mods li::before { content: "→"; position: absolute; left: 0; color: var(--red); }
.cs-mods li small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 112; font-weight: 700; font-size: clamp(16px, 1.6vw, 19px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--red); font-weight: 400; transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; color: var(--muted); font-size: 15.5px; line-height: 1.68; max-width: 68ch; }

/* ---------- industry chips ---------- */
.indchips { display: flex; flex-wrap: wrap; gap: 10px; }
.indchips span { font-size: 14px; font-weight: 600; background: var(--card); border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px; }
.indchips span em { font-style: normal; color: var(--red); margin-right: 6px; }

/* ---------- CTA band ---------- */
.ctaband { background: var(--red); color: #fff; border-radius: 20px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; }
.ctaband h2 { font-size: clamp(30px, 4.2vw, 54px); }
.ctaband p { margin: 16px auto 28px; max-width: 56ch; font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.6; color: rgba(255,255,255,.88); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 100px); padding: clamp(40px, 5vw, 64px) 0 36px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } }
.fgrid .logo img { height: 26px; margin-bottom: 14px; }
.fgrid p { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 38ch; }
.fgrid h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.fgrid ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fgrid ul a { text-decoration: none; font-size: 14.5px; }
.fgrid ul a:hover { color: var(--red); }
.fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------- dark sections (rhythm + depth) ---------- */
.dark { background: var(--deep); color: #f2f1ef; position: relative; overflow: hidden; }
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 12% 0%, rgba(56,107,183,.28) 0%, transparent 65%),
    radial-gradient(46% 56% at 88% 100%, rgba(226,76,74,.22) 0%, transparent 62%);
}
.dark > * { position: relative; z-index: 1; }
.dark .kicker { color: #a5a2ae; }
.dark .kicker::before, .dark .sechead .kicker::after { background: var(--grad-r); }
.dark .sechead p, .dark p { color: #b6b3bd; }
.dark h2, .dark h3, .dark b { color: #fff; }
.dark .pain div {
  background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
}
.dark .pain div::before { background: rgba(226,76,74,.18); color: #ff8a80; }
.dark .stat b { color: #fff; }
.dark .stat span { color: #a5a2ae; }
.dark .logotile { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); }
.dark .logotile:hover { border-color: rgba(126,169,240,.6); box-shadow: 0 14px 34px -16px rgba(56,107,183,.5); }
.dark .logotile img { filter: brightness(0) invert(1); opacity: .92; }
.dark .logotile span { color: #b6b3bd; }
.dark .btn.ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.dark .btn.ghost:hover { background: #fff; color: var(--deep); border-color: #fff; }

/* ---------- gradient accents on cards ---------- */
.svc, .step, .wcard, .tg { position: relative; }
.svc::after, .step::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-r); border-radius: 16px 16px 0 0;
  opacity: 0; transition: opacity .28s ease;
}
.svc:hover::after, .step:hover::after { opacity: 1; }
.svc .num { background: var(--grad-r); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat b em { background: var(--grad-r); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wcard:hover { box-shadow: 0 24px 52px -22px rgba(56,107,183,.32), 0 10px 24px -14px rgba(226,76,74,.22); }
.logotile:hover { box-shadow: 0 14px 30px -18px rgba(56,107,183,.45); }

/* gradient CTA band replaces the flat red block */
.ctaband { background: var(--grad-r) !important; position: relative; overflow: hidden; }
.ctaband::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 80% 0%, rgba(255,255,255,.18) 0%, transparent 60%);
}
.ctaband > * { position: relative; z-index: 1; }

/* ---------- contact form ---------- */
.contactgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 880px) { .contactgrid { grid-template-columns: 1fr; } }
.formcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3.5vw, 40px); }
.frow { margin-bottom: 18px; }
.frow.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .frow.two { grid-template-columns: 1fr; } }
.formcard label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; }
.formcard input[type="text"], .formcard input[type="email"], .formcard input[type="tel"], .formcard textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .18s ease; width: 100%;
}
.formcard input:focus, .formcard textarea:focus { outline: none; border-color: var(--red); }
.formcard textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 12.5px !important; color: var(--muted); line-height: 1.55; margin: 4px 0 20px; }
.consent input { margin-top: 3px; accent-color: var(--red); }
.consent a { color: var(--ink); }
.factions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fnote { font-size: 13.5px; color: var(--red); font-weight: 600; }
.formdone b { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 115; font-weight: 800; font-size: 22px; display: block; margin-bottom: 10px; }
.formdone p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.formdone a { color: var(--ink); font-weight: 600; }
.contactside { background: var(--wash); border-radius: 18px; padding: clamp(24px, 3vw, 34px); }
.contactside h3 { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 115; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.contactside h3 + h3, .contactside ul + h3 { margin-top: 28px; }
.calllist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.calllist li { font-size: 14.5px; line-height: 1.5; padding-left: 24px; position: relative; }
.calllist li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.directlist { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.55; }
.directlist a { text-decoration: none; font-weight: 600; }
.directlist a:hover { color: var(--red); }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding-bottom: 40px; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; font-size: 21px; margin: 34px 0 12px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: #3c3a36; }
.legal ul { padding-left: 22px; margin: 10px 0; }

/* ---------- reveal animation ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
