/* ==========================================================================
   Champaran Labs — design system
   Light theme only. Deep indigo ink + electric blue accent. No dark UI,
   no green or orange in the interface (the logo keeps its own colours).
   ========================================================================== */

:root {
  /* --- colour ------------------------------------------------------------ */
  --white: #ffffff;
  --paper: #f6f7fb;
  --paper-2: #eef1f9;
  --ink: #0a1230;
  --ink-2: #1c2547;
  --text: #454e6d;
  --muted: #666f8f;      /* WCAG AA (>=4.5:1) on both --white and --paper at body text sizes */
  --line: #e3e7f2;
  --line-2: #eef0f8;

  --blue: #0a5ac8;
  --blue-bright: #2e7bff;
  --blue-soft: #e8f0ff;
  --indigo: #2b2f8f;
  --sky: #35a9ff;

  /* --- type -------------------------------------------------------------- */
  /* Swap in a webfont here later: add @font-face and change --font-display. */
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Inter, Arial, sans-serif;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Inter, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  /* 1.25 modular scale, fluid */
  --t-hero: clamp(2.75rem, 1.4rem + 5.6vw, 6.25rem);
  --t-h1: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);
  --t-h2: clamp(1.85rem, 1.25rem + 2.2vw, 3rem);
  --t-h3: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  --t-h4: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  /* --- space (8pt grid) --------------------------------------------------- */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px;
  --s6: 64px; --s7: 96px; --s8: 128px; --s9: 176px;
  --pad-section: clamp(72px, 9vw, 144px);
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1240px;
  --maxw-text: 68ch;

  /* --- shape & depth ------------------------------------------------------ */
  --r1: 8px; --r2: 14px; --r3: 22px; --r4: 32px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(10, 18, 48, .05), 0 2px 8px rgba(10, 18, 48, .04);
  --sh-2: 0 2px 6px rgba(10, 18, 48, .06), 0 12px 32px rgba(10, 18, 48, .07);
  --sh-3: 0 4px 12px rgba(10, 18, 48, .07), 0 28px 64px rgba(10, 18, 48, .10);
  --sh-blue: 0 10px 30px rgba(10, 90, 200, .22);

  /* --- motion ------------------------------------------------------------- */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --d-micro: .2s;
  --d-ui: .32s;
  --d-reveal: .62s;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain — premium, costs 1 tiny inline svg */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -.015em; line-height: 1.2; }
h4 { font-size: var(--t-h4); letter-spacing: -.01em; line-height: 1.3; }
p  { margin: 0 0 var(--s3); max-width: var(--maxw-text); text-wrap: pretty; }
a  { color: var(--blue); text-decoration: none; }
ul, ol { margin: 0 0 var(--s3); padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong { color: var(--ink-2); font-weight: 650; }

::selection { background: var(--blue); color: #fff; }

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

/* ==========================================================================
   layout
   ========================================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.wrap-narrow { max-width: 900px; }
.section { padding-block: var(--pad-section); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section--paper { background: var(--paper); }
.section--edge { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--s4); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.stack-lg > * + * { margin-top: var(--s5); }

/* ==========================================================================
   type helpers
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s3);
  font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55;
}
.lead { font-size: clamp(1.08rem, 1rem + .55vw, 1.35rem); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }
.gradient-text {
  background: linear-gradient(104deg, var(--blue) 0%, var(--blue-bright) 42%, var(--indigo) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-inline: auto; }

/* ==========================================================================
   buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-sans);
  font-size: .975rem; font-weight: 600; letter-spacing: -.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: var(--r-pill);
  cursor: pointer; overflow: hidden;
  transition: transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease),
              background-color var(--d-ui) var(--ease), color var(--d-ui) var(--ease);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--blue) 0%, var(--blue-bright) 55%, var(--indigo) 100%);
  opacity: 0; transition: opacity var(--d-ui) var(--ease); z-index: -1;
}
.btn > * { position: relative; z-index: 1; }
/* inline icons carry no intrinsic size — pin them or flex stretches them */
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--lg svg { width: 20px; height: 20px; }
.btn span { white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-blue); }
.btn--primary { --btn-bg: var(--blue); }
.btn--primary::after { opacity: 1; }
.btn--primary:hover::after { opacity: .88; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line); backdrop-filter: blur(6px);
}
.btn--ghost:hover { --btn-fg: var(--blue); border-color: color-mix(in srgb, var(--blue) 35%, transparent); box-shadow: var(--sh-2); }
.btn--wa { --btn-bg: var(--ink-2); }
.btn--lg { padding: 18px 34px; font-size: 1.03rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btn-row { justify-content: center; }

.arrow { transition: transform var(--d-ui) var(--ease); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--blue); font-size: .95rem;
}
.link:hover { color: var(--blue-bright); }

/* ==========================================================================
   header
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60;
  transition: background-color var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease),
              border-color var(--d-ui) var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.hdr__in {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  height: 78px;
  transition: height var(--d-ui) var(--ease);
}
.hdr.is-stuck .hdr__in { height: 66px; }
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; transition: height var(--d-ui) var(--ease); }
.hdr.is-stuck .brand img { height: 33px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 14px; border-radius: var(--r-pill);
  font-size: .93rem; font-weight: 550; color: var(--ink-2);
  transition: color var(--d-micro) var(--ease), background-color var(--d-micro) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.hdr__cta { display: flex; align-items: center; gap: 12px; }
.hdr__cta .btn { padding: 11px 22px; font-size: .9rem; }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: rgba(255,255,255,.7); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 17px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform var(--d-ui) var(--ease), opacity var(--d-micro) var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav, .hdr__cta .btn--ghost { display: none; }
  .burger { display: flex; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(20px);
  padding: 108px var(--gutter) var(--s5);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--d-ui) var(--ease), transform var(--d-ui) var(--ease), visibility var(--d-ui);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a:not(.btn) {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 650;
  color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line-2);
  letter-spacing: -.02em;
}
/* .btn already sets its own --btn-fg text colour (white on primary, ink on
   ghost) — without :not(.btn) above, this selector's extra specificity
   (class + element beats .btn's class-only rule) overrode it, leaving the
   "Get a quote" button in the mobile menu rendering ink-on-blue instead of
   white-on-blue. */
.mobile-nav .btn { margin-top: var(--s4); }

/* ==========================================================================
   hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
  padding-block: 140px clamp(64px, 8vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%,  rgba(46, 123, 255, .13) 0%, rgba(46, 123, 255, 0) 58%),
    radial-gradient(90% 70% at 12% 92%, rgba(43, 47, 143, .10) 0%, rgba(43, 47, 143, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}
.hero__canvas {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero__canvas.is-ready { opacity: 1; }
.hero__canvas canvas { width: 100%; height: 100%; display: block; }
.hero__in { position: relative; z-index: 2; width: 100%; }
.hero__col { max-width: 780px; }
.hero h1 {
  font-size: var(--t-hero);
  letter-spacing: -.035em;
  line-height: .98;
  font-weight: 700;
  margin-bottom: var(--s4);
}
.hero .lead { max-width: 56ch; margin-bottom: var(--s5); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: var(--s5);
  font-size: var(--t-small); color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; font-size: var(--t-micro); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-family: var(--font-mono);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue i {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--line), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--blue);
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* ==========================================================================
   marquee / logo-free trust strip
   ========================================================================== */
.strip {
  border-block: 1px solid var(--line);
  background: var(--white);
  padding-block: var(--s4);
  overflow: hidden;
}
.strip__track {
  display: flex; gap: var(--s6); width: max-content;
  animation: slide 42s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.strip__item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   cards
   ========================================================================== */
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease),
              border-color var(--d-ui) var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(46, 123, 255, .09), transparent 62%);
  opacity: 0; transition: opacity var(--d-ui) var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--blue) 22%, var(--line)); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: .98rem; margin-bottom: var(--s3); }
.card .link { margin-top: auto; }
.card__num {
  font-family: var(--font-mono); font-size: var(--t-micro); color: var(--blue);
  letter-spacing: .14em; margin-bottom: var(--s3);
}

.icon {
  width: 52px; height: 52px; border-radius: var(--r2);
  display: grid; place-items: center; margin-bottom: var(--s3);
  background: linear-gradient(140deg, var(--blue-soft), #fff);
  border: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line));
  color: var(--blue); flex: none;
}
.icon svg { width: 24px; height: 24px; }

.card--feature { grid-column: span 2; }
@media (max-width: 900px) { .card--feature { grid-column: span 2; } }
@media (max-width: 620px) { .card--feature { grid-column: span 1; } }

/* tag list */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s3); padding: 0; list-style: none; }
.tags li {
  margin: 0; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-2); font-weight: 550;
}

/* check list */
.checks { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.checks li {
  position: relative; padding-left: 32px; margin-bottom: 14px;
  font-size: .98rem; color: var(--text);
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a5ac8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ==========================================================================
   stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--white); padding: clamp(24px, 3vw, 38px); }
.stat__n {
  font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--ink);
  display: flex; align-items: baseline; gap: 3px;
}
.stat__n small { font-size: 1em; color: var(--blue); }
.stat__l { margin-top: 12px; font-size: .875rem; color: var(--muted); line-height: 1.45; }

/* ==========================================================================
   glass panel (used for case study / quote / callouts)
   ========================================================================== */
.panel {
  position: relative;
  border-radius: var(--r4);
  padding: clamp(30px, 4.2vw, 68px);
  background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.panel--tint {
  background:
    radial-gradient(90% 120% at 88% -10%, rgba(46,123,255,.16), transparent 60%),
    radial-gradient(70% 90% at 0% 110%, rgba(43,47,143,.12), transparent 62%),
    linear-gradient(150deg, #fff, var(--paper));
}
.panel--ink {
  background: linear-gradient(140deg, #101a3d 0%, #0a1230 55%, #16205c 100%);
  border-color: transparent; color: rgba(255,255,255,.78);
}
.panel--ink h2, .panel--ink h3, .panel--ink .stat__n { color: #fff; }
.panel--ink .lead { color: rgba(255,255,255,.82); }
.panel--ink .eyebrow { color: var(--sky); }

/* ==========================================================================
   preview frames (Lab / work)
   ========================================================================== */
.frame {
  position: relative; border-radius: var(--r3); overflow: hidden;
  border: 1px solid var(--line); background: var(--white); box-shadow: var(--sh-2);
}
.frame__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: var(--paper);
}
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.frame__bar span {
  margin-left: 10px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame__body { padding: 0; }

/* mini UI used inside preview frames — pure CSS, no screenshots */
/* every miniature occupies the same box, so preview cards line up in a grid */
.mini { padding: 20px; display: grid; gap: 14px; height: 264px;
        align-content: center; overflow: hidden; }
.mini__row { display: flex; gap: 10px; align-items: center; }
.mini__bar { height: 9px; border-radius: 5px; background: var(--paper-2); }
.mini__bar--blue { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.mini__box { border: 1px solid var(--line); border-radius: var(--r2); padding: 14px; background: var(--white); }
.mini__chart { display: flex; align-items: flex-end; gap: 7px; height: 92px; }
.mini__chart i {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  opacity: .85; transform-origin: bottom; animation: growbar .9s var(--ease) both;
}

@keyframes growbar { from { transform: scaleY(.05); opacity: 0; } to { transform: scaleY(1); opacity: .85; } }

/* ==========================================================================
   process / steps
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.step { background: var(--white); padding: clamp(24px, 3vw, 38px); display: grid;
  grid-template-columns: 62px 1fr; gap: var(--s3); align-items: start; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 12px; } }
.step__n {
  counter-increment: step; font-family: var(--font-mono); font-size: .8rem;
  color: var(--blue); letter-spacing: .1em; padding-top: 6px;
}
.step__n::before { content: "0" counter(step); }
.step h3 { font-size: 1.22rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: .97rem; }

/* ==========================================================================
   accordion (faq / add-ons)
   ========================================================================== */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--font-display); font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  font-weight: 620; color: var(--ink); letter-spacing: -.012em;
  transition: color var(--d-micro) var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--blue); }
.acc summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px;
  margin-top: -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1230' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--d-ui) var(--ease);
}
.acc details[open] summary::after { transform: rotate(135deg); }
.acc__body { padding: 0 44px 26px 0; }
.acc__body p:last-child, .acc__body ul:last-child { margin-bottom: 0; }

/* ==========================================================================
   forms
   ========================================================================== */
.field { margin-bottom: var(--s3); }
.field label { display: block; font-size: .86rem; font-weight: 620; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r2);
  transition: border-color var(--d-micro) var(--ease), box-shadow var(--d-micro) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent);
}
.field__hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   footer
   ========================================================================== */
.ftr { background: var(--ink); color: rgba(255,255,255,.68); padding-block: clamp(56px, 6vw, 92px) 0; position: relative; z-index: 1; }
.ftr a { color: rgba(255,255,255,.72); }
.ftr a:hover { color: #fff; }
.ftr__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s5); padding-bottom: var(--s6); }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__top { grid-template-columns: 1fr; } }
.ftr h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-mono); font-weight: 600; margin-bottom: var(--s3); }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 12px; font-size: .93rem; }
.ftr__mark { height: 44px; width: auto; margin-bottom: var(--s3); filter: brightness(0) invert(1); opacity: .96; }
.ftr__blurb { font-size: .93rem; max-width: 34ch; color: rgba(255,255,255,.6); }
.ftr__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  /* extra clearance at the foot: the floating assistant button is fixed to
     the bottom-right and would otherwise sit directly on top of the
     right-hand line, since this row is justified space-between */
  padding-block: var(--s4) calc(var(--s4) + 56px);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.5);
}

/* floating whatsapp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px; border-radius: var(--r-pill);
  /* Blue rather than --ink: this is the no-JS fallback, so nothing can swap
     its colour over the footer — which is --ink and would swallow it. */
  background: linear-gradient(104deg, var(--blue), var(--blue-bright));
  color: #fff; font-size: .9rem; font-weight: 600;
  box-shadow: var(--sh-3);
  transition: transform var(--d-ui) var(--ease), background-color var(--d-ui) var(--ease);
}
.wa-float:hover { transform: translateY(-3px); background: var(--blue); color: #fff; }
.wa-float svg { width: 20px; height: 20px; }
@media (max-width: 620px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* ==========================================================================
   scroll reveal
   ========================================================================== */
.rv { opacity: 0; transform: translateY(26px); }
.rv.in {
  opacity: 1; transform: none;
  transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease);
  transition-delay: var(--rvd, 0ms);
}
.no-js .rv { opacity: 1; transform: none; }

/* progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 80;
  width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright), var(--indigo));
}

/* ==========================================================================
   page hero (inner pages)
   ========================================================================== */
.phero {
  padding-block: clamp(130px, 15vw, 190px) clamp(48px, 6vw, 82px);
  background:
    radial-gradient(90% 120% at 82% -20%, rgba(46,123,255,.14), transparent 58%),
    linear-gradient(180deg, #fff, var(--paper));
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
/* Per-category accent so the four service pages read as distinct places
   rather than the same template recoloured — still inside the blue / indigo
   / sky family the design system already allows, nothing new introduced. */
.phero--indigo {
  background:
    radial-gradient(90% 120% at 82% -20%, rgba(43,47,143,.16), transparent 58%),
    radial-gradient(60% 80% at 6% 110%, rgba(53,169,255,.08), transparent 60%),
    linear-gradient(180deg, #fff, var(--paper));
}
.phero--sky {
  background:
    radial-gradient(90% 120% at 82% -20%, rgba(53,169,255,.18), transparent 58%),
    linear-gradient(180deg, #fff, var(--paper));
}
.phero--dual {
  background:
    radial-gradient(70% 100% at 88% -10%, rgba(46,123,255,.15), transparent 55%),
    radial-gradient(70% 90% at 4% 105%, rgba(43,47,143,.13), transparent 58%),
    linear-gradient(180deg, #fff, var(--paper));
}
.phero h1 { max-width: 20ch; }
.phero .lead { max-width: 60ch; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: var(--s3); font-family: var(--font-mono); letter-spacing: .06em; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

/* legal / prose pages */
.prose h2 { font-size: var(--t-h3); margin-top: var(--s6); }
.prose h3 { font-size: var(--t-h4); margin-top: var(--s5); }
.prose ul { max-width: var(--maxw-text); }

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

@media print {
  .hdr, .wa-float, .hero__canvas, .scroll-cue, .progress { display: none !important; }
  body { color: #000; }
}

/* ==========================================================================
   Champaran Labs — assistant widget.
   Concatenated after site.css by build.mjs, so it inherits every token.
   Light theme only, same indigo/electric-blue system as the rest of the site.
   ========================================================================== */

/* The no-JS WhatsApp float stays in the markup and is only hidden once the
   assistant has actually booted — if the script fails, the link still works. */
.has-bot .wa-float { display: none; }

/* ------------------------------------------------------------------ launcher */
.cbot-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px; border: 0; border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font: 600 .9rem/1 var(--font-sans); cursor: pointer;
  box-shadow: var(--sh-3);
  transition: transform var(--d-ui) var(--ease), background-color var(--d-ui) var(--ease),
              color var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease);
}
.cbot-launch:hover { transform: translateY(-3px); background: var(--blue); }

/* Over the footer or the ink panel the default fill is the same colour as the
   background — 1:1 contrast, the pill disappears. bot.js hit-tests what is
   behind the button and adds this class; white on navy is 17.2:1. */
.cbot-launch.is-on-dark {
  background: #fff; color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .30), 0 22px 48px rgba(0, 0, 0, .34);
}
.cbot-launch.is-on-dark:hover { background: var(--blue-soft); color: var(--blue); }
.cbot-launch:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.cbot-launch svg { width: 20px; height: 20px; flex: none; }
.cbot-launch span { white-space: nowrap; }
@media (max-width: 620px) {
  .cbot-launch span { display: none; }
  .cbot-launch { padding: 15px; }
}
/* Once the panel is up the launcher would only overlap it. */
.cbot-open .cbot-launch { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------------- panel */
.cbot {
  position: fixed; right: 20px; bottom: 20px; z-index: 75;
  width: min(392px, calc(100vw - 40px)); height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r3); box-shadow: var(--sh-3);
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity var(--d-ui) var(--ease), transform var(--d-ui) var(--ease);
}
.cbot.is-open { opacity: 1; transform: none; }
/* display:flex above beats the UA rule for [hidden], which would otherwise
   leave a fully transparent panel sitting over the launcher and eating the
   click that is meant to open it. */
.cbot[hidden] { display: none; }

@media (max-width: 720px) {
  .cbot {
    right: 0; bottom: 0; width: 100vw;
    height: 100dvh; height: 100svh;
    border: 0; border-radius: 0;
  }
}

/* ------------------------------------------------------------------- header */
.cbot__hd {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 14px 14px 14px 18px;
  background: linear-gradient(112deg, var(--ink), var(--indigo));
  color: #fff;
}
.cbot__id { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
/* the global `strong` rule paints ink-2, which is invisible on the navy
   header — this has to be explicit */
.cbot__id strong { display: block; font-size: .95rem; font-weight: 650;
  line-height: 1.2; color: #fff; }
.cbot__id small { display: block; font-size: .74rem; color: rgba(255, 255, 255, .62); }
.cbot__dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--sky); box-shadow: 0 0 0 4px rgba(53, 169, 255, .22);
}
.cbot__wa, .cbot__x {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  border: 0; cursor: pointer; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .14); border-radius: var(--r-pill);
  transition: background-color var(--d-micro) var(--ease);
}
.cbot__wa { padding: 8px 14px 8px 11px; font: 600 .8rem/1 var(--font-sans); }
.cbot__x { padding: 9px; border-radius: 50%; }
.cbot__wa:hover, .cbot__x:hover { background: rgba(255, 255, 255, .26); }
.cbot__wa:focus-visible, .cbot__x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cbot__wa svg { width: 16px; height: 16px; }
.cbot__x svg { width: 15px; height: 15px; display: block; }
@media (max-width: 380px) { .cbot__wa span { display: none; } .cbot__wa { padding: 9px; } }

/* --------------------------------------------------------------- transcript */
.cbot__log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 16px 6px; background: var(--paper);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  scrollbar-width: thin;
}
.cbot__msg { max-width: 88%; }
.cbot__msg p {
  margin: 0; padding: 11px 14px; font-size: .92rem; line-height: 1.55;
  overflow-wrap: anywhere;
  border-radius: 16px 16px 16px 5px;
  background: var(--white); border: 1px solid var(--line); color: var(--text);
  box-shadow: var(--sh-1);
}
.cbot__msg--u { align-self: flex-end; max-width: 82%; }
.cbot__msg--u p {
  border-radius: 16px 16px 5px 16px; border-color: transparent; color: #fff;
  background: linear-gradient(104deg, var(--blue), var(--blue-bright));
  box-shadow: var(--sh-blue);
}

/* in-answer link through to the page that carries the detail */
.cbot__link {
  align-self: flex-start; font: 650 .84rem/1 var(--font-sans);
  color: var(--blue); text-decoration: none; padding: 2px 0 4px;
  border-bottom: 1px solid rgba(10, 90, 200, .3);
}
.cbot__link::after { content: " \2192"; }
.cbot__link:hover { border-bottom-color: var(--blue); }

/* --------------------------------------------------------------------- chips */
.cbot__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 0 4px; }
.cbot__chips-l {
  width: 100%; font: 600 .68rem/1 var(--font-mono); letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.cbot__chip {
  font: 550 .82rem/1.35 var(--font-sans); text-align: left; cursor: pointer;
  padding: 8px 13px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line); color: var(--blue);
  transition: border-color var(--d-micro) var(--ease),
              background-color var(--d-micro) var(--ease);
}
.cbot__chip:hover { border-color: var(--blue-bright); background: var(--blue-soft); }
.cbot__chip:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

.cbot__person {
  align-self: stretch; text-align: center; text-decoration: none;
  font: 650 .86rem/1 var(--font-sans); color: #fff;
  padding: 12px 16px; border-radius: var(--r-pill);
  background: linear-gradient(104deg, var(--blue), var(--blue-bright));
  box-shadow: var(--sh-blue);
}

/* --------------------------------------------------------------------- input */
.cbot__in {
  flex: none; display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--line); background: var(--white);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.cbot__in input {
  flex: 1; min-width: 0; font: 400 .92rem/1.4 var(--font-sans); color: var(--ink);
  padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper); transition: border-color var(--d-micro) var(--ease);
}
.cbot__in input::placeholder { color: var(--muted); }
.cbot__in input:focus { outline: 0; border-color: var(--blue-bright); background: var(--white); }
.cbot__in button {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(104deg, var(--blue), var(--blue-bright));
  transition: transform var(--d-micro) var(--ease);
}
.cbot__in button:hover { transform: translateY(-2px); }
.cbot__in button:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
.cbot__in svg { width: 19px; height: 19px; }

@media (prefers-reduced-motion: reduce) {
  .cbot, .cbot-launch, .cbot__chip, .cbot__in button { transition: none; }
  .cbot { transform: none; }
}

@media print { .cbot, .cbot-launch { display: none !important; } }
