/* =========================================================
   The Business Research Lab — Global Styles
   Brand: Slate Blue #2F4A5A · Rust #B35230 · Ivory #F7F4EB
   Type:  Montserrat (headlines) · Inter (body/UI)
   ========================================================= */

:root {
  --slate: #2F4A5A;
  --slate-900: #1C2F3A;
  --slate-800: #243B49;
  --slate-600: #4A6676;
  --slate-200: #C9D4DA;
  --rust: #B35230;
  --rust-700: #96421F;
  --rust-100: #F3DED3;
  --ivory: #F7F4EB;
  --ivory-200: #EFEADC;
  --paper: #FCFAF5;
  --ink: #1E2A31;
  --ink-2: #4B5A63;
  --ink-3: #74828A;
  --line: rgba(47, 74, 90, .14);
  --good: #2E7D5B;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(28, 47, 58, .06), 0 8px 28px rgba(28, 47, 58, .08);
  --shadow-lg: 0 24px 60px rgba(28, 47, 58, .18);
  --wrap: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--slate); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--slate { background: var(--slate); color: var(--ivory); }
.section--slate h2, .section--slate h3 { color: var(--ivory); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 14px;
}
.section--slate .eyebrow { color: #E59A78; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.section--slate .lead { color: var(--slate-200); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--slate); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s, color .2s, border-color .2s, box-shadow .2s;
  text-decoration: none; line-height: 1.1; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--rust); color: #fff; box-shadow: 0 6px 18px rgba(179, 82, 48, .28); }
.btn--primary:hover { background: var(--rust-700); color: #fff; }
.btn--slate { background: var(--slate); color: #fff; }
.btn--slate:hover { background: var(--slate-900); color: #fff; }
.btn--ghost { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn--ghost:hover { background: var(--slate); color: #fff; }
.btn--ghost-light { border-color: rgba(247, 244, 235, .5); color: var(--ivory); }
.btn--ghost-light:hover { background: var(--ivory); color: var(--slate); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(247, 244, 235, .86); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(28, 47, 58, .06); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--slate); }
.brand img { width: 34px; height: auto; }
.brand-text { display: flex; flex-direction: column; border-left: 2px solid var(--slate); padding-left: 12px; line-height: 1; }
.brand-text small { font-family: var(--font-head); font-size: .58rem; letter-spacing: .28em; font-weight: 600; margin-bottom: 3px; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--slate); background: rgba(47, 74, 90, .08); }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--slate); position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--slate); color: var(--ivory);
  padding: clamp(72px, 10vw, 140px) 0 clamp(80px, 10vw, 150px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(1200px 600px at 85% 20%, rgba(74, 102, 118, .7), transparent 60%),
              radial-gradient(800px 500px at 10% 100%, rgba(28, 47, 58, .9), transparent 60%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--ivory); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #E59A78; }
.hero .lead { color: var(--slate-200); font-size: 1.2rem; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 36px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats div { border-left: 2px solid var(--rust); padding-left: 14px; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--ivory); line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: var(--slate-200); }

/* Live rates card in hero */
.rate-card {
  background: rgba(247, 244, 235, .97); color: var(--ink); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-lg); position: relative;
}
.rate-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.rate-card__head h3 { margin: 0; font-size: 1.05rem; }
.rate-card__rows { display: grid; gap: 12px; }
.rate-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.rate-row span { font-size: .88rem; color: var(--ink-2); }
.rate-row strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.rate-card__foot { margin-top: 16px; font-size: .78rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: var(--rust-100); color: var(--rust-700); letter-spacing: .02em; white-space: nowrap;
}
.chip--slate { background: rgba(47, 74, 90, .1); color: var(--slate); }
.chip--good { background: #DCEFE5; color: var(--good); }
.chip--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Pillars (Research / Analytics / Strategy / Innovation) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -64px; position: relative; z-index: 2; }
.pillar {
  border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow);
  background: var(--paper); transition: transform .25s;
}
.pillar:hover { transform: translateY(-4px); }
.pillar svg { width: 44px; height: 44px; margin: 0 auto 14px; }
.pillar h3 { margin: 0 0 4px; }
.pillar p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.pillar--rust { background: var(--rust); } .pillar--rust h3, .pillar--rust p { color: #fff; }
.pillar--slate { background: var(--slate-800); } .pillar--slate h3, .pillar--slate p { color: var(--ivory); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: rgba(179, 82, 48, .4); box-shadow: var(--shadow); transform: translateY(-3px); }
.service__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(47, 74, 90, .08); margin-bottom: 20px; }
.service__icon svg { width: 28px; height: 28px; }
.service p { color: var(--ink-2); font-size: .97rem; }
.service ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.service li { display: flex; gap: 10px; align-items: flex-start; }
.service li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--rust); margin-top: 9px; }
.service--feature { background: var(--slate); border-color: var(--slate); }
.service--feature h3 { color: var(--ivory); }
.service--feature p, .service--feature ul { color: var(--slate-200); }
.service--feature .service__icon { background: rgba(247, 244, 235, .1); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 28px 24px; border-radius: var(--radius); background: rgba(247, 244, 235, .06); border: 1px solid rgba(247, 244, 235, .14); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: #E59A78; display: block; margin-bottom: 10px;
}
.step p { color: var(--slate-200); font-size: .95rem; margin: 0; }

/* ---------- Research cards ---------- */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.study {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.study:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.study__cover {
  aspect-ratio: 16 / 8; position: relative; padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--slate); color: var(--ivory); overflow: hidden;
}
.study__cover svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.study__cover .chip { position: relative; align-self: flex-start; }
.study__cover-cat { position: relative; font-family: var(--font-head); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--slate-200); }
.study--rust .study__cover { background: var(--rust); }
.study--rust .study__cover-cat { color: #F8D9CB; }
.study--ink .study__cover { background: var(--slate-900); }
.study__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.study__meta { font-size: .8rem; color: var(--ink-3); margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.study h3 { font-size: 1.12rem; margin-bottom: 10px; }
.study p { font-size: .93rem; color: var(--ink-2); }
.study__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-head); font-weight: 700; color: var(--slate); font-size: 1.15rem; }
.price small { font-family: var(--font-body); font-weight: 500; color: var(--ink-3); font-size: .78rem; }
.price--free { color: var(--good); }

/* Library toolbar */
.toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 30px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  font: 500 .9rem var(--font-body); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); transition: all .2s;
}
.filter-btn:hover { border-color: var(--slate); color: var(--slate); }
.filter-btn[aria-pressed="true"] { background: var(--slate); color: #fff; border-color: var(--slate); }
.search { position: relative; flex: 0 1 320px; }
.search input { width: 100%; padding: 11px 16px 11px 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: .95rem; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); grid-column: 1 / -1; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px;
  display: flex; flex-direction: column; position: relative;
}
.plan--featured { background: var(--slate); border-color: var(--slate); color: var(--ivory); transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.plan--featured h3, .plan--featured .plan__price { color: var(--ivory); }
.plan--featured .plan__desc, .plan--featured li { color: var(--slate-200); }
.plan__badge { position: absolute; top: -13px; left: 30px; background: var(--rust); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.plan__price { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--slate); line-height: 1; margin: 10px 0 6px; }
.plan__price small { font-size: .95rem; font-weight: 500; font-family: var(--font-body); opacity: .75; }
.plan__desc { color: var(--ink-2); font-size: .95rem; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 28px; display: grid; gap: 12px; font-size: .94rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--rust); }
.plan--featured li svg { color: #E59A78; }
.plan .btn { margin-top: auto; }

/* ---------- Markets ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.kpi__label { font-size: .82rem; color: var(--ink-2); font-weight: 500; }
.kpi__value { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--slate); line-height: 1.15; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: .8rem; color: var(--ink-3); }
.delta-up { color: var(--rust-700); } .delta-down { color: var(--good); }

.chart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel__head h3 { margin: 0; font-size: 1.08rem; }
.panel__head p { margin: 2px 0 0; font-size: .84rem; color: var(--ink-3); }
.chart { position: relative; width: 100%; height: 280px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font-size: 11px; font-family: var(--font-body); }
.chart .tip {
  position: absolute; pointer-events: none; background: var(--slate-900); color: #fff; font-size: .8rem;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px));
  opacity: 0; transition: opacity .12s; box-shadow: var(--shadow);
}
.chart .tip strong { font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--ivory-200); border-radius: 999px; padding: 3px; }
.seg button { font: 500 .8rem var(--font-body); border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--slate); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.converter { display: grid; gap: 14px; }
.converter label { font-size: .82rem; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 6px; }
.converter .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.converter input, .converter select { width: 100%; }
.converter__out { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--slate); font-variant-numeric: tabular-nums; }

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }

.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius);
  background: var(--rust-100); color: var(--rust-700); font-size: .9rem; margin-bottom: 26px;
}
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; border-radius: var(--radius-lg); background: var(--slate); aspect-ratio: 5 / 4; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-visual .float-card {
  position: absolute; left: 24px; bottom: 24px; right: 24px; background: rgba(247, 244, 235, .96); border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 16px; align-items: center;
}
.float-card strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--rust); }
.float-card span { font-size: .88rem; color: var(--ink-2); line-height: 1.4; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--rust); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--rust); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #FBE5DA; max-width: 56ch; }
.cta-band .btn--slate { position: relative; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 20px; margin-top: 28px; }
.contact-info div { display: flex; gap: 14px; align-items: flex-start; }
.contact-info svg { flex: none; width: 22px; height: 22px; color: #E59A78; margin-top: 3px; }
.contact-info a, .contact-info span { color: var(--ivory); }
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
  font: inherit; font-size: .97rem; color: var(--ink); width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(47, 74, 90, .25); background: #fff; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(47, 74, 90, .15); }
textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .8rem; color: var(--ink-3); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 500; display: none; }
.form-status.is-ok { display: block; color: var(--good); }
.form-status.is-err { display: block; color: var(--rust-700); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(28, 47, 58, .6); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; background: var(--paper); border-radius: var(--radius-lg); max-width: 520px; width: 100%; padding: 34px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ivory-200); cursor: pointer; font-size: 1.4rem; color: var(--slate); line-height: 1; }
.modal h3 { padding-right: 40px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--slate); color: var(--ivory); padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { color: var(--ivory); font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero .lead { color: var(--slate-200); }
.page-hero svg.lines { position: absolute; right: -5%; top: 0; height: 100%; width: 60%; z-index: -1; opacity: .5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: var(--slate-200); padding: 72px 0 32px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { color: var(--ivory); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--slate-200); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: var(--ivory); margin-bottom: 16px; }
.site-footer .brand-text { border-color: var(--ivory); }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 11px 16px; }
.newsletter input::placeholder { color: var(--ink-3); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid, .research-grid { grid-template-columns: repeat(2, 1fr); }
  .process, .kpis { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ivory); flex-direction: column; align-items: stretch;
    padding: 16px 20px 28px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(28,47,58,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav .btn { margin: 10px 0 0; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan--featured { transform: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .services-grid, .research-grid, .process, .footer-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 16px; } .kpi__value { font-size: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pillar { padding: 22px 14px; }
  .pillar p { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { flex: 1 1 auto; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-btn { flex: none; }
  .chart { height: 230px; }
  .brand-text strong { font-size: .92rem; }
  .newsletter { flex-direction: column; }
}
