/* ===========================================================
   InsightSciences.ai — homepage design system
   Derived from the product UI: warm paper, transitional serif
   display, neutral grotesque body, mono technical tags,
   four "segment" accent colors, hairline rules, near-black CTAs.
   =========================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=Spectral:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* warm paper light theme */
  --paper:      #F6F4EF;   /* primary background */
  --paper-2:    #FBFAF6;   /* lighter alternating band */
  --card:       #FFFFFF;
  --ink:        #1E1D1A;   /* near-black warm */
  --ink-soft:   #3A3833;   /* body copy */
  --muted:      #6F6B62;   /* secondary text */
  --faint:      #9A958B;   /* eyebrow / captions */
  --line:       #E7E3DA;   /* hairline border */
  --line-soft:  #EFEBE2;
  --btn:        #1B1B1F;   /* near-black button */
  --btn-hover:  #34333A;
  --on-dark:    #F3F1EC;   /* text on dark sections */
  --on-dark-mut:#A8A49B;

  /* segment accents (from product study dots) */
  --seg-blue:   #2E63B4;
  --seg-coral:  #D0584E;
  --seg-amber:  #DC9430;
  --seg-green:  #4F8C56;

  --accent:     var(--seg-blue);   /* tweakable primary accent */

  /* type */
  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* spacing rhythm */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 140px);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-card: 0 1px 2px rgba(30,29,26,.04), 0 8px 24px -16px rgba(30,29,26,.16);
  --shadow-pop:  0 2px 6px rgba(30,29,26,.06), 0 24px 60px -28px rgba(30,29,26,.30);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: color-mix(in oklch, var(--accent) 26%, transparent); }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--paper2 { background: var(--paper-2); }
.section--line-top { border-top: 1px solid var(--line); }
.wrap > * { min-width: 0; }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); flex: none; }
.eyebrow--accent { color: var(--accent); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--ink); line-height: 1.06; letter-spacing: -.01em; margin: 0; }
.h-display { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.02em; font-weight: 500; }
.h-section { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; }
.h-card    { font-size: clamp(21px, 2vw, 25px); line-height: 1.18; font-weight: 500; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.measure { max-width: 64ch; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--ink); }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: background .18s ease, color .18s, border-color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn--primary { background: var(--btn); color: #fff; }
.btn--primary:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(30,29,26,.03); }
.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn--on-dark.btn--primary { background: var(--on-dark); color: var(--ink); }
.btn--on-dark.btn--primary:hover { background: #fff; }
.btn--on-dark.btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.24); }
.btn--on-dark.btn--ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .18s, gap .18s; }
.link-arrow:hover { border-color: var(--ink); gap: 11px; }
.link-arrow .arrow { transition: transform .2s; }
.link-arrow:hover .arrow { transform: translateX(2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklch, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(30,29,26,.02); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav__logo { display: flex; align-items: center; height: 100%; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s; position: relative; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__cta { padding: 11px 18px; font-size: 14px; }
.nav .nav__menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: var(--section-y); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero__headline { margin-bottom: 26px; }
.hero__sub { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.6; color: var(--muted); max-width: 54ch; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__cred { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--muted); max-width: 50ch; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__cred .tick { color: var(--seg-green); flex: none; margin-top: 2px; }

/* ---------- Research-asset motif card (hero) ---------- */
.asset-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); padding: 26px; position: relative;
}
.asset-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.asset-card__tag { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--seg-blue); display: inline-flex; align-items: center; gap: 7px; }
.asset-card__title { font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--ink); line-height: 1.15; margin: 16px 0 6px; }
.asset-card__meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.asset-card__meta .mono { font-size: 12px; color: var(--faint); }
.seg-row { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.seg-item { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 11px; }
.seg-item .label { font-size: 13.5px; color: var(--ink-soft); }
.seg-item .bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.seg-item .bar > i { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.seg-item .val { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fidelity { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.fidelity__ring { width: 44px; height: 44px; flex: none; }
.fidelity__txt b { font-family: var(--display); font-size: 17px; color: var(--ink); font-weight: 600; }
.fidelity__txt span { display: block; font-size: 12.5px; color: var(--muted); }
.asset-card__float { position: absolute; right: -14px; bottom: 26px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 9px 14px; border-radius: 999px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-card); }

/* ---------- Mission lines ---------- */
.mission-lines { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.mission-lines li { font-family: var(--display); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; color: var(--ink); padding: 16px 0; border-top: 1px solid var(--line); }
.mission-lines li:first-child { border-top: none; padding-top: 0; }

/* ---------- Capability list ---------- */
.cap-label { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 20px; }
.checklist--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.checklist--2col li { font-size: 15.5px; }

/* ---------- Pull note ---------- */
.pull-note { border-left: 2px solid var(--accent); padding: 6px 0 6px 26px; }
.pull-note p { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.28; color: var(--muted); margin: 0; }
.pull-note__em { color: var(--ink) !important; margin-top: 8px !important; }

/* ---------- Engagement list ---------- */
.eng-list { border-top: 1px solid var(--line); }
.eng { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 80px); padding-block: clamp(34px, 4vw, 52px); border-bottom: 1px solid var(--line); align-items: start; }
.eng__num { font-size: 12px; color: var(--faint); letter-spacing: .08em; }
.eng__title { font-family: var(--display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; color: var(--ink); line-height: 1.1; margin: 14px 0 0; letter-spacing: -.01em; }
.eng__aud { font-size: 15px; color: var(--muted); margin: 14px 0 0; max-width: 30ch; }
.eng__body > p { color: var(--ink-soft); margin: 0 0 14px; max-width: 58ch; }
.eng__body > p:last-child { margin-bottom: 0; }
.eng__ex-label { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 22px 0 12px !important; }
.eng__examples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.eng__examples li { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--ink); padding-left: 18px; border-left: 2px solid var(--line); line-height: 1.4; }

/* ---------- Approach steps ---------- */
.approach { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-row { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.step-row:first-child { padding-top: 0; border-top: none; }
.step-row__n { font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--accent); line-height: 1; width: 38px; text-align: left; }
.step-row__t { font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--ink); margin: 0 0 5px; }
.step-row p { color: var(--muted); font-size: 15.5px; margin: 0; max-width: 48ch; }

/* ---------- Team ---------- */
.team-grid { display: flex; flex-wrap: wrap; gap: clamp(20px, 2.4vw, 32px); }
.team-card { display: flex; flex-direction: column; width: 140px; }
.team-card__photo { width: 140px; height: 175px; flex-shrink: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; object-fit: cover; object-position: center top; display: block; }
.team-card__name { font-family: var(--display); font-size: 16px; font-weight: 500; color: var(--ink); margin: 0 0 4px; line-height: 1.15; }
.team-card__name:empty::before { content: "Add name"; color: var(--faint); }
.team-card__name[contenteditable]:focus { outline: none; box-shadow: 0 1px 0 var(--accent); }
.team-card__role { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.team-card__bio { font-size: 14.5px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ---------- Generic section header ---------- */
.sec-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .h-section { margin-bottom: 22px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }

/* ---------- Two-column feature ---------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.cols-2--top { align-items: start; }

/* ---------- Bullet list ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: 16.5px; color: var(--ink-soft); line-height: 1.5; }
.checklist .mk { width: 22px; height: 22px; border-radius: 999px; flex: none; display: grid; place-items: center; margin-top: 2px; border: 1px solid var(--line); background: var(--card); color: var(--accent); }
.checklist li strong { color: var(--ink); }

/* ---------- Card grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: #ddd8cd; }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 18px; letter-spacing: .04em; }
.card__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); }
.card .h-card { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0; }

/* numbered service cards with top segment color tick */
.card--tick { position: relative; overflow: hidden; }
.card--tick::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--tickc, var(--accent)); opacity: .9; }

/* ---------- Dark feature section (validation / weather / final) ---------- */
.dark { background: #16161A; color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark .eyebrow { color: var(--on-dark-mut); }
.dark .lead, .dark p { color: var(--on-dark-mut); }
.dark .hairline { border-color: rgba(255,255,255,.12); }

.theme-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.theme-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark); line-height: 1.4; }
.theme-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.theme-list .qn { font-family: var(--mono); font-size: 13px; color: var(--on-dark-mut); padding-top: 5px; }

/* fidelity distribution motif (validation) */
.dist { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 26px; max-width: 100%; overflow: hidden; }
.dist__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dist__head .t { font-family: var(--display); font-size: 19px; color: var(--on-dark); }
.dist__legend { display: flex; gap: 16px; font-size: 12px; color: var(--on-dark-mut); }
.dist__legend span { display: inline-flex; align-items: center; gap: 7px; }
.dist__legend i { width: 10px; height: 10px; border-radius: 3px; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; }
.bar-group { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 100%; }
.bar-group .b { width: 26px; border-radius: 5px 5px 0 0; height: 0; transition: height 1s cubic-bezier(.2,.7,.2,1); }
.bar-group .b.modeled { background: var(--seg-blue); }
.bar-group .b.actual  { background: rgba(255,255,255,.32); }
.dist__axis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; font-size: 11.5px; color: var(--on-dark-mut); }
.dist__axis span { min-width: 0; overflow-wrap: anywhere; }
.dist__axis span:nth-child(2) { text-align: center; }
.dist__axis span:nth-child(3) { text-align: right; }
.dist__metric { display: flex; gap: 26px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.dist__metric .m b { font-family: var(--mono); font-size: 22px; color: var(--on-dark); font-weight: 500; display: block; }
.dist__metric .m span { font-size: 12px; color: var(--on-dark-mut); }

/* ---------- Use cases ---------- */
.usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.uc {
  padding: 32px clamp(28px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.uc:hover { background: var(--paper-2); }
.uc__n { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.uc__n .mono { font-size: 12px; color: var(--faint); }
.uc h3 { font-size: 22px; margin-bottom: 9px; }
.uc p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Weather band ---------- */
.weather { position: relative; overflow: hidden; }
.signal { width: 100%; height: 150px; }
.signal path { fill: none; }

/* ---------- Engage cards ---------- */
.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.engage .card { padding: 30px; }
.engage .tier { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.engage .h-card { margin-bottom: 10px; }
.engage .card p { margin-bottom: 22px; }
.engage .card .ftr { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
.engage .card--feature { background: #16161A; border-color: #16161A; }
.engage .card--feature .tier { color: var(--on-dark-mut); }
.engage .card--feature .h-card, .engage .card--feature p { color: var(--on-dark); }
.engage .card--feature p { color: var(--on-dark-mut); }
.engage .card--feature .ftr { color: var(--on-dark-mut); border-color: rgba(255,255,255,.14); }

/* ---------- Contact section ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.field .opt { color: var(--faint); font-weight: 500; letter-spacing: 0; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 16%, transparent); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.invalid input, .field.invalid textarea { border-color: var(--seg-coral); }
.field .err { font-size: 12.5px; color: var(--seg-coral); display: none; }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-note--error { color: var(--seg-coral) !important; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.form-success { display: none; }
.form-success.show { display: block; }
.form-success { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; text-align: center; box-shadow: var(--shadow-card); }
.form-success .ok { width: 52px; height: 52px; border-radius: 999px; background: color-mix(in oklch, var(--seg-green) 14%, white); color: var(--seg-green); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .h-card { color: var(--ink); margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); }

.contact-aside { }
.contact-aside .quiet-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-card); margin-bottom: 18px; }
.contact-aside .quiet-card h4 { font-family: var(--display); font-size: 19px; font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.contact-aside .quiet-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.contact-aside .quiet-card a.email { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.contact-aside .quiet-card a.email:hover { border-color: var(--ink); }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 13px; font-size: 14.5px; color: var(--muted); }
.steps .si { width: 24px; height: 24px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--ink); flex: none; }

/* ---------- Footer ---------- */
.footer { background: #131316; color: var(--on-dark); padding-block: 64px 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { height: 26px; width: auto; filter: invert(1) brightness(2); margin-bottom: 18px; }
.footer__brand p { color: var(--on-dark-mut); font-size: 14px; max-width: 34ch; }
.footer__col h5 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mut); margin: 0 0 16px; }
.footer__col a { display: block; color: var(--on-dark); font-size: 14.5px; padding: 5px 0; opacity: .82; transition: opacity .15s; }
.footer__col a:hover { opacity: 1; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 13px; color: var(--on-dark-mut); }
.footer__bottom .mono { font-size: 12px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer { position: fixed; inset: 0; z-index: 70; background: var(--paper); display: none; flex-direction: column; padding: 24px var(--gutter); }
.mobile-drawer.open { display: flex; }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 28px; }
.mobile-drawer__head img { height: 24px; }
.mobile-drawer a.m-link { font-family: var(--display); font-size: 30px; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-drawer .btn { margin-top: 28px; }
.icon-btn { background: none; border: none; padding: 8px; color: var(--ink); display: grid; place-items: center; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn:not(.nav__menu-btn) { display: none; }
  .nav .nav__menu-btn { display: grid; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__motif { max-width: 480px; }
  .cols-2 { grid-template-columns: 1fr; gap: 40px; }
  .engage { grid-template-columns: 1fr; }
  .eng { grid-template-columns: 1fr; gap: 22px; }
  .eng__aud { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .checklist--2col { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: 1fr; }
  .uc { border-right: none; }
  .field--row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .dist { padding: 18px; border-radius: var(--radius); }
  .dist__legend { flex-wrap: wrap; gap: 8px 14px; }
  .bars { gap: 8px; height: 150px; }
  .bar-group { gap: 4px; min-width: 0; }
  .bar-group .b { width: clamp(12px, 4.6vw, 20px); }
  .dist__axis { font-size: 10.5px; line-height: 1.25; }
  .dist__metric { flex-wrap: wrap; gap: 18px 26px; }
}

/* ---------- Dark theme (tweak) ---------- */
body.theme-dark {
  --paper: #16161A;
  --paper-2: #1C1C21;
  --card: #1F1F25;
  --ink: #F3F1EC;
  --ink-soft: #D9D6CE;
  --muted: #A09C92;
  --faint: #807C73;
  --line: #2C2C33;
  --line-soft: #26262C;
  --btn: #F3F1EC;
  --btn-hover: #fff;
}
body.theme-dark .btn--primary { color: #16161A; }
body.theme-dark .nav__logo img,
body.theme-dark .mobile-drawer__head img { filter: invert(1) brightness(2); }
body.theme-dark .section--paper2 { background: var(--paper-2); }
body.theme-dark .card__icon { background: var(--paper-2); }

/* labels inside dark sections (e.g. contact) */
.dark .field label { color: var(--on-dark); }
.dark .field .opt { color: var(--on-dark-mut); }
