/* ==========================================================================
   Vidya.ai — styles.css
   विद्या — knowledge, engineered for Indian business.
   See DESIGN.md for the governing idea, exclusions, and derivations.
   Mobile-first: base styles are single-column phone layout; min-width
   queries enhance UP to wider screens. The phone is the design.
   ========================================================================== */

/* -- Tokens --------------------------------------------------------------- */
:root {
  /* Type */
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-deva: "Noto Sans Devanagari", "Noto Sans", system-ui, sans-serif;

  /* Type scale, ratio 1.25, base 16 */
  --t-xs: 12px;
  --t-sm: 14px;
  --t-body: 16px;
  --t-md: 18px;
  --t-lg: 20px;
  --t-xl: 25px;
  --t-2xl: 31px;
  --t-3xl: 39px;
  --t-4xl: 49px;
  --t-display: clamp(34px, 8vw, 64px);
  --t-deva: clamp(56px, 14vw, 120px);

  /* Colour (OKLCH with hex fallbacks) */
  --paper: #fbf9f4;
  --paper: oklch(0.985 0.008 85);
  --paper-2: #f3efe6;
  --paper-2: oklch(0.96 0.010 85);
  --indigo: #1f2a78;
  --indigo: oklch(0.34 0.13 264);
  --indigo-2: #181f5c;
  --indigo-2: oklch(0.28 0.10 264);
  --indigo-3: #3b49b8;
  --indigo-3: oklch(0.50 0.14 264);
  --saffron: #f5920b;
  --saffron: oklch(0.74 0.155 62);
  --saffron-2: #d9740a;
  --saffron-2: oklch(0.62 0.15 55);
  --saffron-ink: #9a4d08;
  --saffron-ink: oklch(0.45 0.12 55);
  --ink: #1b1d2e;
  --ink: oklch(0.22 0.02 264);
  --ink-2: #4a4e63;
  --ink-2: oklch(0.46 0.02 264);
  --rule: #d6d4cc;
  --rule: oklch(0.86 0.012 264);
  --rule-dark: #3a3f7a;
  --rule-dark: oklch(0.45 0.04 264);

  /* Space, 8px base */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --gutter-num: 88px;
  --measure: 66ch;

  /* Radius — confident, escapes the 8px median */
  --r-pill: 999px;
  --r-card: 16px;
  --r-control: 8px;

  /* The one soft shadow — carries indigo ambient colour, never flat gray */
  --shadow-card: 0 1px 2px rgba(31,42,120,.04), 0 10px 28px -14px rgba(31,42,120,.20);
  --shadow-card-hover: 0 2px 4px rgba(31,42,120,.06), 0 18px 40px -16px rgba(31,42,120,.28);

  --head-h: 64px;
}

/* -- Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
figure { margin: 0; }
dt { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--indigo); color: var(--saffron); }

/* -- Focus ---------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: var(--r-control);
}
a:focus-visible, button:focus-visible { outline-offset: 3px; }

.skip {
  position: absolute; left: 10px; top: -52px; z-index: 100;
  background: var(--indigo); color: var(--paper);
  font-family: var(--font-mono); font-size: var(--t-xs);
  padding: 12px 16px; text-decoration: none; border-radius: var(--r-control);
  transition: top 160ms ease-out;
}
.skip:focus { top: 10px; }

/* -- Layout primitives ---------------------------------------------------- */
.wrap {
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  border-top: 1px solid var(--rule);
  padding-block: clamp(56px, 10vw, 112px);
}
.section-alt { background: var(--paper-2); }
.section-indigo {
  background: var(--indigo);
  color: var(--paper);
  border-top: 0;
}

/* Mobile-first: single column, §-number inline above heading.
   Desktop enhances to a left §-number gutter (min-width: 980px). */
.section-inner {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--s-2);
}
.section-num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--saffron-ink);
  font-weight: 700;
}
.section-num-light { color: var(--saffron); }
.section-content { max-width: 100%; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-xl);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
  text-wrap: balance;
}
.section-title-light { color: var(--paper); }
.section-intro {
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--measure);
  margin-bottom: var(--s-6);
}
.section-intro-light { color: oklch(0.82 0.02 264); }

/* -- Eyebrows, labels ----------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-5);
}
.eyebrow-light { color: oklch(0.78 0.04 264); }
.deva-sm { font-family: var(--font-deva); letter-spacing: 0; text-transform: none; font-weight: 600; }

.case-label, .contact-label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron-ink);
  margin-bottom: var(--s-2);
  margin-top: var(--s-4);
  font-weight: 700;
}
.contact-label { margin-top: 0; color: var(--saffron); }

/* -- Links & buttons ------------------------------------------------------ */
a {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 180ms ease-out, text-decoration-color 180ms ease-out;
}
a:hover { color: var(--saffron-ink); text-decoration-color: var(--saffron); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--r-control);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
  min-height: 48px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-saffron { background: var(--saffron); color: var(--indigo-2); border-color: var(--saffron); font-weight: 700; }
.btn-saffron:hover { background: var(--saffron-2); color: var(--indigo-2); border-color: var(--saffron-2); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: oklch(0.6 0.06 264); }
.btn-ghost-light:hover { border-color: var(--saffron); color: var(--saffron); background: oklch(0.25 0.08 264); }

.wa { flex: none; }

/* -- Header / nav --------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,244,0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head-inner {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: var(--head-h);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--indigo);
  margin-right: auto;
}
.wordmark:hover { color: var(--indigo); text-decoration: none; }
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--indigo);
}
.wordmark-text .dot-ai { color: var(--saffron-ink); }
.mark { flex: none; border-radius: 7px; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-2);
  display: inline-flex; gap: 6px; align-items: baseline;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--indigo); text-decoration: none; }
.site-nav .num { color: var(--saffron-ink); font-weight: 700; }

.nav-cta {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  background: var(--indigo);
  padding: 11px 18px;
  border-radius: var(--r-control);
  white-space: nowrap;
  transition: background 180ms ease-out, color 180ms ease-out;
}
.nav-cta:hover { background: var(--saffron); color: var(--indigo-2); text-decoration: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--rule);
  border-radius: var(--r-control); cursor: pointer;
  margin-left: auto;
}
.nav-toggle .toggle-bars,
.nav-toggle .toggle-bars::before,
.nav-toggle .toggle-bars::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--indigo); position: relative; transition: transform 180ms ease-out, opacity 120ms ease-out;
  border-radius: 2px;
}
.nav-toggle .toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle .toggle-bars::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: var(--s-3) var(--gutter) var(--s-5);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 0; max-width: var(--container); margin-inline: auto; }
.mobile-menu a {
  display: flex; gap: var(--s-3); align-items: baseline;
  font-family: var(--font-mono); font-size: var(--t-sm);
  text-decoration: none; color: var(--indigo);
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  min-height: 48px;
}
.mobile-menu a:hover { color: var(--saffron-ink); text-decoration: none; }
.mobile-menu .num { color: var(--saffron-ink); font-size: var(--t-xs); font-weight: 700; }
.mobile-menu .nav-cta {
  display: inline-flex; background: var(--indigo); color: var(--paper);
  padding: 14px 18px; margin-top: var(--s-4); align-self: flex-start;
  border-bottom: 0; border-radius: var(--r-control);
}

/* -- Hero (indigo) -------------------------------------------------------- */
.hero {
  background: var(--indigo);
  color: var(--paper);
  padding-block: clamp(40px, 7vw, 80px) clamp(48px, 8vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--s-6);
}
.hero-lede { min-width: 0; }

.deva-anchor {
  font-family: var(--font-deva);
  font-weight: 700;
  font-size: var(--t-deva);
  line-height: 0.9;
  color: var(--saffron);
  margin-bottom: var(--s-2);
  letter-spacing: 0;
  /* Overshoot: a large Devanagari glyph reads smaller than its box; nudge up weight already set.
     Anchor sits as a foreground type element, not a watermark. */
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.lead {
  font-size: var(--t-md);
  line-height: 1.55;
  color: oklch(0.84 0.03 264);
  max-width: 52ch;
  margin-bottom: var(--s-6);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--s-3); }
.hero-actions .btn { flex: 0 0 auto; }

/* -- Datasheet ------------------------------------------------------------ */
.datasheet {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s-5);
  font-family: var(--font-mono);
}
.datasheet-light {
  background: oklch(0.30 0.10 264);
  border-color: var(--rule-dark);
  color: var(--paper);
}
.datasheet-title {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-3);
  font-weight: 700;
}
.datasheet-light .datasheet-title { color: var(--saffron); border-color: var(--rule-dark); }
.spec { display: flex; flex-direction: column; }
.spec > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-xs);
  line-height: 1.5;
}
.datasheet-light .spec > div { border-color: var(--rule-dark); }
.spec > div:last-of-type { border-bottom: 0; }
.spec dt { color: var(--ink-2); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.datasheet-light .spec dt { color: oklch(0.72 0.04 264); }
.spec dd { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.datasheet-light .spec dd { color: var(--paper); }
.spec-mini > div { padding: 8px 0; }
.datasheet-note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.datasheet-light .datasheet-note { color: oklch(0.72 0.04 264); border-color: var(--rule-dark); }

/* -- Sectors -------------------------------------------------------------- */
.sector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.sector-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s-5);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}
.sector-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--indigo-3); }
.sector-head {
  display: flex; align-items: baseline; gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-4);
}
.sector-num {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--saffron-ink);
  letter-spacing: 0.04em;
}
.sector-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-lg);
  letter-spacing: -0.01em;
  color: var(--indigo);
}
.sector-pitch {
  font-family: var(--font-display);
  font-size: var(--t-md);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.sector-list { display: flex; flex-direction: column; gap: var(--s-2); }
.sector-list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink-2);
}
.sector-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--saffron);
  transform: rotate(45deg);
}

/* -- Capabilities --------------------------------------------------------- */
.cap-list { display: flex; flex-direction: column; }
.cap-list li {
  display: grid;
  grid-template-columns: 3ch 1fr;
  column-gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
}
.cap-list li:first-child { border-top: 1px solid var(--indigo-3); }
.cap-list li:last-child { border-bottom: 1px solid var(--indigo-3); }
.cap-num {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--saffron-ink);
  font-weight: 700;
  padding-top: 0.3em;
}
.cap-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-lg);
  line-height: 1.2;
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
  color: var(--indigo);
}
.cap-body p { max-width: 62ch; color: var(--ink-2); }
.cap-body .tech {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px dashed var(--rule);
  font-weight: 700;
}

/* -- Products (on indigo) ------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.product {
  background: oklch(0.30 0.10 264);
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-card);
  padding: var(--s-5);
  display: flex; flex-direction: column;
  transition: transform 200ms ease-out, border-color 200ms ease-out;
}
.product:hover { transform: translateY(-3px); border-color: var(--saffron); }
.product-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-3); flex-wrap: wrap;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule-dark);
  margin-bottom: var(--s-4);
}
.product-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-2xl);
  letter-spacing: -0.02em;
  color: var(--paper);
}
.product-tag {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saffron);
  white-space: nowrap;
  font-weight: 700;
}
.product-pitch {
  font-family: var(--font-display);
  font-size: var(--t-md);
  line-height: 1.4;
  color: var(--paper);
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.product p { font-size: var(--t-sm); color: oklch(0.82 0.02 264); line-height: 1.55; }
.spec-mini { margin-top: var(--s-4); margin-bottom: var(--s-4); }
.product .spec > div { border-color: var(--rule-dark); }
.product .spec dt { color: oklch(0.7 0.04 264); }
.product .spec dd { color: var(--paper); }
.status {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--saffron);
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule-dark);
  font-weight: 700;
}

/* -- Work / cases --------------------------------------------------------- */
.case-stack { display: flex; flex-direction: column; gap: var(--s-6); }
.case {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s-5);
  box-shadow: var(--shadow-card);
  transition: box-shadow 200ms ease-out, border-color 200ms ease-out;
}
.case:hover { box-shadow: var(--shadow-card-hover); border-color: var(--indigo-3); }
.case-head { margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); }
.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  background: oklch(0.92 0.04 264);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-3);
  font-weight: 700;
}
.case-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-lg);
  letter-spacing: -0.01em;
  color: var(--indigo);
  margin-bottom: var(--s-2);
  line-height: 1.2;
}
.case-meta {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
  color: var(--ink-2);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.case-body {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--s-5);
}
.case-prose p { margin-bottom: var(--s-2); color: var(--ink-2); }
.case-prose p:last-child { margin-bottom: 0; }
.case-prose .case-label:first-child { margin-top: 0; }
.case-metrics {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  overflow: hidden;
}
.case-metrics > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.case-metrics > div:last-child { border-bottom: 0; }
.case-metrics dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.4;
}
.case-metrics dd { text-align: right; }
.metric {
  font-family: var(--font-mono);
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* -- Method --------------------------------------------------------------- */
.method-list { display: flex; flex-direction: column; }
.method-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: var(--s-3);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.method-list li:first-child { border-top: 1px solid var(--indigo-3); }
.method-list li:last-child { border-bottom: 1px solid var(--indigo-3); }
.method-num {
  font-family: var(--font-mono);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--saffron-ink);
  letter-spacing: -0.01em;
}
.method-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-lg);
  line-height: 1.2;
  margin-bottom: var(--s-2);
  display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap;
  color: var(--indigo);
  letter-spacing: -0.01em;
}
.method-dur {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.method-body p { max-width: 62ch; color: var(--ink-2); }
.deliver {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px dashed var(--rule);
  font-weight: 700;
}

/* -- Testimonials --------------------------------------------------------- */
.pullquote {
  position: relative;
  border-top: 2px solid var(--indigo);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-6) 0 var(--s-5);
  margin-bottom: var(--s-6);
}
.quote-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 80px;
  line-height: 0.5;
  color: var(--saffron);
  display: block;
  margin-bottom: var(--s-2);
}
.pullquote blockquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 4.5vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--indigo);
  max-width: 24ch;
  text-wrap: balance;
  margin-bottom: var(--s-5);
  hanging-punctuation: first;
}
.pullquote figcaption { display: flex; flex-direction: column; gap: 2px; }
.attrib-name { font-family: var(--font-body); font-weight: 700; font-size: var(--t-sm); color: var(--ink); }
.attrib-meta { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-2); letter-spacing: 0.02em; }

.quote-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
.miniquote {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s-5);
  box-shadow: var(--shadow-card);
}
.miniquote blockquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-md);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--s-4);
  letter-spacing: -0.005em;
}
.miniquote figcaption { display: flex; flex-direction: column; gap: 2px; }

/* -- Principals ----------------------------------------------------------- */
.princ-list { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
.princ-list li {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s-4) var(--s-5);
}
.princ-list h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-md); letter-spacing: -0.01em; color: var(--indigo); margin-bottom: 4px;
}
.princ-list .role { font-size: var(--t-sm); color: var(--ink); margin-bottom: 6px; font-weight: 500; }
.princ-list .prior { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); line-height: 1.5; letter-spacing: 0.02em; font-weight: 700; }

/* -- Contact (on indigo) -------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.contact-block {
  background: oklch(0.30 0.10 264);
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
.contact-block p { margin-bottom: var(--s-2); color: var(--paper); }
.contact-block a { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--paper); }
.contact-block a:hover { color: var(--saffron); }
.wa-card {
  display: flex; flex-direction: column; gap: var(--s-2);
  background: var(--saffron);
  border-color: var(--saffron);
  text-decoration: none;
  padding: var(--s-5);
  border-radius: var(--r-card);
  border: 1.5px solid var(--saffron);
  transition: transform 180ms ease-out;
}
.wa-card:hover { transform: translateY(-3px); text-decoration: none; }
.wa-card .wa { color: var(--indigo-2); }
.wa-card .contact-label { color: var(--indigo-2); margin: 0; }
.wa-card .contact-value { color: var(--indigo-2); font-family: var(--font-body); font-size: var(--t-sm); font-weight: 500; }
.wa-lg { color: var(--saffron); }

/* -- Colophon / footer ---------------------------------------------------- */
.colophon { border-top: 2px solid var(--indigo); background: var(--paper); padding-block: var(--s-6) var(--s-5); }
.colophon-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.colophon-mark { display: inline-flex; align-items: center; gap: 10px; }
.colophon-mark .wordmark-text { font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); color: var(--indigo); }
.colophon-mark .dot-ai { color: var(--saffron-ink); }
.doc-control { font-family: var(--font-mono); font-size: 11px; line-height: 1.8; color: var(--ink-2); font-weight: 700; }
.doc-control p { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.dc-k { color: var(--saffron-ink); min-width: 12ch; letter-spacing: 0.04em; text-transform: uppercase; }
.dc-k.deva { font-family: var(--font-deva); text-transform: none; letter-spacing: 0; font-weight: 700; }
.dc-v { color: var(--ink); }
.back-top { font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 700; }
.back-top a { text-decoration: none; color: var(--indigo); }
.back-top a:hover { color: var(--saffron-ink); }

/* -- WhatsApp FAB --------------------------------------------------------- */
.wa-fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--saffron);
  color: var(--indigo-2);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 20px -6px rgba(31,42,120,.45), 0 2px 6px rgba(0,0,0,.12);
  text-decoration: none;
  transition: transform 180ms ease-out, opacity 300ms ease-out;
  opacity: 0;
  pointer-events: none;
}
.wa-fab.is-shown { opacity: 1; pointer-events: auto; }
.wa-fab:hover { transform: scale(1.06); text-decoration: none; color: var(--indigo-2); }

/* -- Reveal --------------------------------------------------------------- */
/* Hidden only when JS is active (no-JS stays visible); never hidden under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 560ms ease-out, transform 560ms ease-out; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ========================================================================
   Enhancements UP — min-width queries. Phone is the design; these add
   columns and the §-number gutter for wider screens.
   ======================================================================== */

@media (min-width: 720px) {
  .section-title { font-size: var(--t-2xl); }
  .hero-grid { grid-template-columns: 1.5fr 1fr; column-gap: clamp(32px, 5vw, 64px); align-items: start; row-gap: 0; }
  .hero-actions { flex-wrap: nowrap; }
  .datasheet { align-self: start; }
  .sector-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .case-body { grid-template-columns: 1.5fr 1fr; column-gap: clamp(24px, 4vw, 48px); row-gap: 0; align-items: start; }
  .case-metrics > div { grid-template-columns: 1fr auto; }
  .quote-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .princ-list { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .colophon-inner { grid-template-columns: auto 1fr auto; align-items: start; }
  .back-top { justify-self: end; }
}

@media (min-width: 980px) {
  /* Desktop §-number gutter — the intentional document structure */
  .section-inner {
    grid-template-columns: var(--gutter-num) 1fr;
    column-gap: var(--s-5);
    row-gap: 0;
  }
  .section-num { padding-top: 0.42em; }
  .section-content { max-width: 920px; }
  .section-title { font-size: var(--t-3xl); }
  .site-nav { display: block; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .case-body { grid-template-columns: 1.4fr 1fr; }
  .princ-list { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 1fr 1fr 1fr; }
  .wa-fab { right: 28px; bottom: 28px; }
}

@media (max-width: 360px) {
  .display { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .deva-anchor { font-size: 52px; }
  .case-metrics > div { grid-template-columns: 1fr; gap: 4px; }
  .case-metrics dd { text-align: left; }
  .metric { font-size: var(--t-sm); white-space: normal; }
}
