/* ==========================================================================
   Beyond Manual — beyondmanual.in
   Stylesheet: tokens, layout, components, diagrams, motion, responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour — institutional navy, gold used only as a graphic accent.
     Gold fails text contrast on white (3.04:1), so links are navy-3. */
  --navy:       #0A1F3C;
  --navy-2:     #16325C;
  --navy-3:     #245494;
  --gold:       #C08A2E;
  --gold-dk:    #A8761F;
  --gold-lt:    #E0B25C;

  --ink:        #0A1F3C;
  --body:       #4A5568;
  --muted:      #64707F;
  --on-dark:    #FFFFFF;
  --on-dark-mut:#AEBED2;

  --line:       #DDE3EA;
  --line-2:     #C3CDD9;
  --bg:         #FFFFFF;
  --bg-soft:    #F5F7FA;
  --bg-deep:    #0A1F3C;
  --paper:      #FFFFFF;

  /* Chart series — validated (lightness, chroma, CVD ΔE 24.2, contrast ≥3:1) */
  --series-1:   #245494;
  --series-2:   #A8761F;

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Space & shape */
  --maxw:      1180px;
  --maxw-text: 700px;
  --radius:    2px;
  --radius-sm: 2px;
  --radius-lg: 3px;
  --btn-radius: 2px;

  --shadow-md: 0 8px 28px rgba(10, 31, 60, .10);

  /* Motion */
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

a, button, summary {
  -webkit-tap-highlight-color: rgba(36, 84, 148, .14);
  touch-action: manipulation;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); letter-spacing: -.02em; font-weight: 600; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); }
h4 { font-size: 1rem; }

p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy-3);
  text-decoration: none;
  transition: color .18s var(--ease);
}
a:hover { color: var(--navy); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .5em; }

strong { color: var(--ink); font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(56px, 4vw + 34px, 104px) 0; }
.section--tight { padding: clamp(40px, 3vw + 24px, 72px) 0; }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--bg-deep); color: var(--on-dark-mut); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-head p { color: var(--on-dark-mut); }
.section--dark .eyebrow { color: var(--on-dark-mut); }
.section--dark .eyebrow::before { color: var(--gold-lt); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Grid items default to min-width:auto, so a wide child (a scrollable
   diagram) stretches its track instead of scrolling inside it. */
.grid > *, .hero-grid > *, .split > * { min-width: 0; }

.measure { max-width: var(--maxw-text); }
.center  { text-align: center; }
.center.measure { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Typographic utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.eyebrow::before { content: "\2014\a0"; color: var(--gold-dk); }
.eyebrow--accent { color: var(--muted); }

.lede {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--body);
  line-height: 1.6;
}

.section-head { max-width: var(--maxw-text); margin-bottom: clamp(32px, 3vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); }

.small { font-size: .9rem; }
.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--navy-3); border-color: var(--navy-3); }

.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-2); border-color: var(--navy-2); }

.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--navy); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }

.btn-sm { padding: 11px 20px; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.btn-row.center { justify-content: center; }

.arrow-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .45em;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.arrow-link:hover { color: var(--navy-3); border-color: var(--navy-3); }
.arrow-link::after { content: "\2192"; transition: transform .22s var(--ease-out); }
.arrow-link:hover::after { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 14px rgba(10, 31, 60, .05);
}
.nav { transition: min-height .3s var(--ease); }
.site-header.is-stuck .nav { min-height: 64px; }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand-name span { color: var(--gold-dk); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  display: block;
  position: relative;
  padding: 9px 14px;
  font-size: .93rem;
  font-weight: 550;
  color: var(--body);
  transition: color .18s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--ink); }
.nav-mobile-cta { display: none; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: background-color .16s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: transform .25s var(--ease-out), top .25s var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(48px, 4vw + 24px, 88px) 0 clamp(48px, 4vw + 24px, 84px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: .5em; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--navy-3); }
.hero .lede { max-width: 34em; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}
.hero-meta span {
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--line);
}
.hero-meta span:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.hero-meta b { color: var(--ink); font-weight: 650; }

/* --------------------------------------------------------------------------
   8. Figures & diagrams
   -------------------------------------------------------------------------- */
.figure { margin: 0; }
.figure svg { width: 100%; height: auto; overflow: visible; }
.figure figcaption {
  margin-top: 14px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}
.figure--framed {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.5vw, 28px);
}

/* A diagram scaled to fit a phone would render 4px labels. Below the width
   where the type stays legible, the figure scrolls sideways instead and the
   drawing keeps its designed proportions. */
.figure--wide { overflow-x: auto; }
.figure--wide svg { min-width: 720px; }

@media (max-width: 700px) {
  .figure--framed { overflow-x: auto; }
  .figure--framed svg { min-width: 400px; }
}

/* Diagram primitives, driven by tokens so a palette change follows through */
.dg-surface  { fill: var(--paper); }
.dg-panel    { fill: var(--bg-soft); }
.dg-node     { fill: var(--paper); stroke: var(--line-2); stroke-width: 1; }
.dg-node--on { fill: var(--navy); stroke: var(--navy); }
.dg-link     { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; }
.dg-link--messy { stroke: #B9C4D2; }
.dg-spine    { fill: none; stroke: var(--navy-3); stroke-width: 2; stroke-linecap: round; }
.dg-accent   { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.dg-rule     { stroke: var(--line); stroke-width: 1; }
.dg-dot      { fill: var(--gold); }
.dg-dot--mut { fill: #B9C4D2; }

/* Diagram type is sized in viewBox units, so a narrow viewBox in a narrow
   column renders smaller than a wide one. --dg-scale compensates per figure
   so every diagram's labels land at a similar optical size on screen. */
.figure { --dg-scale: 1; }

.dg-t {
  font-family: var(--font-body);
  font-size: calc(11px * var(--dg-scale));
  font-weight: 550;
  fill: var(--body);
}
.dg-t--sm  { font-size: calc(10px * var(--dg-scale)); fill: var(--muted); }
.dg-t--lab { font-size: calc(10px * var(--dg-scale)); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; fill: var(--muted); }
.dg-t--on  { fill: #fff; }
.dg-t--num { font-family: var(--font-display); font-size: calc(15px * var(--dg-scale)); font-weight: 600; fill: var(--gold-dk); }
.dg-t--head { font-family: var(--font-display); font-size: calc(14px * var(--dg-scale)); font-weight: 600; fill: var(--ink); }

/* Chart legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 18px;
  font-size: .84rem;
  color: var(--body);
}
.legend span { display: inline-flex; align-items: center; gap: .5em; }
.legend i {
  width: 14px; height: 2px;
  border-radius: 1px;
  flex: none;
}
.legend .k1 { background: var(--series-1); }
.legend .k2 { background: var(--series-2); }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s var(--ease), transform .35s var(--ease-out);
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card--hover:hover { border-color: var(--navy-3); transform: translateY(-3px); }

.card-icon {
  width: auto;
  height: auto;
  background: none;
  color: var(--navy-3);
  margin-bottom: 16px;
  flex: none;
  display: inline-flex;
}
.card-icon svg { width: 25px; height: 25px; stroke-width: 1.4; }
.card-icon--accent { color: var(--gold-dk); }

.card-list {
  list-style: none;
  padding: 16px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}
.card-list li {
  position: relative;
  padding-left: 16px;
  font-size: .92rem;
  margin-bottom: .45em;
  color: var(--body);
}
.card-list li::before { content: "\2014"; position: absolute; left: 0; color: var(--gold-dk); }

/* Stat blocks */
.stat {
  padding: 26px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.stat::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out) var(--d, 0s);
}
.js .stat.is-visible::before,
html:not(.js) .stat::before { transform: scaleX(1); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: .3em;
}
.stat span { font-size: .9rem; color: var(--muted); }

/* Numbered process steps */
.steps { counter-reset: step; }
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px 28px 28px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-dk);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: .45em; }
.step .step-out {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--muted);
}
.step .step-out b { color: var(--ink); font-weight: 650; }

/* Split feature rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.split--reverse .split-media { order: -1; }

.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
}
.panel--white { background: var(--paper); border-color: var(--line-2); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 24px; margin-bottom: 1em; }
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 10px; height: 1px;
  background: var(--gold-dk);
}

/* Industry list */
.chips { display: flex; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.chips li { margin: 0; }
.chips span, .chips a {
  display: inline-block;
  padding: 8px 18px 8px 0;
  margin-right: 18px;
  border-right: 1px solid var(--line);
  font-size: .93rem;
  color: var(--body);
}
.chips li:last-child span, .chips li:last-child a { border-right: 0; margin-right: 0; padding-right: 0; }

/* Credibility strip */
.cred-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; }
.cred-strip .label {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.cred-strip .names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-weight: 650;
  font-size: .97rem;
  color: var(--ink);
}

/* Quote */
.quote {
  border-left: 2px solid var(--gold);
  padding-left: clamp(20px, 3vw, 32px);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding: clamp(48px, 4vw + 26px, 84px) 0 clamp(36px, 3vw + 20px, 60px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .35em; }
.page-head .lede { max-width: 46em; }

.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy-3); }
.crumbs span { margin: 0 .5em; opacity: .55; }

/* --------------------------------------------------------------------------
   11. FAQ / accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  transition: color .18s var(--ease);
}
.faq summary:hover { color: var(--navy-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 17px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--gold-dk);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 8px 22px 0; color: var(--body); }

/* --------------------------------------------------------------------------
   12. Contact methods
   -------------------------------------------------------------------------- */
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px;
  transition: border-color .25s var(--ease), transform .35s var(--ease-out);
}
.contact-card:hover { border-color: var(--navy-3); transform: translateY(-3px); }
.contact-card .card-icon { margin-bottom: 0; margin-top: 2px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .25em; }
.contact-card .val {
  display: block;
  margin-top: .2em;
  font-weight: 650;
  color: var(--navy-3);
  word-break: break-word;
}
.contact-card p { font-size: .92rem; color: var(--muted); margin-bottom: .4em; }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, .8);
  border-top: 2px solid var(--gold);
  padding: clamp(38px, 4vw, 64px);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: var(--on-dark-mut); max-width: 44em; margin-inline: auto; }
.cta-band .btn-row { margin-top: 28px; }
.cta-band .fineprint { margin-top: 22px; font-size: .87rem; color: rgba(255,255,255,.55); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-deep);
  color: var(--on-dark-mut);
  padding: clamp(48px, 4vw, 72px) 0 32px;
  font-size: .93rem;
}
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-name span { color: var(--gold-lt); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-grid h4 {
  color: #fff;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4em; }
.footer-grid a { display: inline-block; padding: 4px 0; color: var(--on-dark-mut); }
.footer-grid a:hover { color: #fff; }
.footer-about p { margin-top: 16px; max-width: 34ch; color: var(--on-dark-mut); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: .87rem;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom a { color: rgba(255, 255, 255, .68); }
.footer-bottom a:hover { color: #fff; }

.social { display: flex; gap: 10px; }
.social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  color: #fff;
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .25s var(--ease-out);
}
.social a:hover { border-color: var(--gold-lt); color: var(--gold-lt); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out) var(--d, 0s),
              transform .7s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* SVG line draw-on. JS measures each path and sets --len. */
.js .draw {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
}
.js .draw.is-drawn {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.15s var(--ease-out) var(--d, 0s);
}

/* Fade-in for diagram nodes and labels */
.js .dg-fade { opacity: 0; transition: opacity .6s var(--ease) var(--d, 0s); }
.js .dg-fade.is-drawn { opacity: 1; }

/* A short dash travelling a path — data moving through the pipeline */
@keyframes bm-comet {
  from { stroke-dashoffset: var(--len, 600); }
  to   { stroke-dashoffset: 0; }
}
.js .comet {
  stroke-dasharray: 22 calc(var(--len, 600) - 22);
  animation: bm-comet 3.4s linear infinite;
  animation-delay: var(--d, 0s);
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }

  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  /* Keep the menu usable on short screens / landscape phones */
  .nav-links.is-open { max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-links.is-open { max-height: calc(100dvh - 76px); }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-mobile-cta { display: block; margin-top: 10px; }
  .nav-mobile-cta .btn { width: 100%; }

  .footer-grid li { margin-bottom: .3em; }
  .footer-grid a { padding: 8px 0; }
  .footer-bottom a { display: inline-block; padding: 6px 0; }
  .arrow-link { padding: 6px 0; }
  .crumbs a { display: inline-block; padding: 4px 0; }
  .hero-meta span { border-right: 0; margin-right: 0; padding-right: 0; width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card, .step, .contact-card { padding: 24px 22px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .nav-links { left: -20px; right: -20px; }
  .contact-card { flex-direction: column; gap: 14px; }
  .cred-strip { gap: 10px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw { stroke-dashoffset: 0; }
  .js .dg-fade { opacity: 1; }
  .js .comet { display: none; }
  .stat::before { transform: scaleX(1); }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .js .reveal, .js .dg-fade { opacity: 1 !important; transform: none !important; }
  .js .draw { stroke-dashoffset: 0 !important; }
}
