/* =========================================================================
   Incremento Business Advisors — Shared Design System
   Edit the CSS variables below to re-theme the entire site from one place.
   ========================================================================= */

/* ---- Self-hosted typefaces (Latin subset; the rupee glyph loads only where used) ---- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-rupee.woff2") format("woff2"); unicode-range: U+20B9; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-rupee.woff2") format("woff2"); unicode-range: U+20B9; }

:root {
  /* Brand — clean, bright growth-green.
     WCAG note: #2FA84A is 3.08:1 on white — it FAILS AA for normal-size text and for
     white-on-green button fills. It is therefore reserved for LARGE display type,
     decorative fills and icon strokes only. --color-primary-text (5.39:1 on white)
     is the token to use for any green text or button background. */
  --color-primary: #2FA84A;
  --color-primary-dark: #1E7A37;
  --color-primary-text: #1E7A37;   /* 5.39:1 on white — AA pass for normal text */
  --color-primary-deep: #175E2B;   /* 7.4:1 — hover/active state on buttons */
  --color-primary-light: #E7F7EB;
  --color-primary-lighter: #F3FBF4;

  /* Exact brand mark green — reserved for the logo itself and small accents only */
  --color-brand-bright: #66E434;

  /* Soothing secondary neutral — replaces any decorative gold/accent color */
  --color-slate: #4A5B6B;
  --color-slate-dark: #33404C;
  --color-slate-light: #EBEFF2;

  /* Soothing neutrals */
  --color-ink: #172018;
  --color-ink-soft: #4B554D;
  --color-ink-faint: #68736A;   /* darkened from #7C877E for AA at small sizes */
  --color-bg: #FBFAF6;
  --color-bg-alt: #F3F6F1;
  --color-surface: #FFFFFF;
  --color-border: #E3E8DF;
  --color-border-strong: #C9D2C3;

  /* Status */
  --color-success-bg: #E7F5EC;
  --color-warn-bg: #FBF3DF;
  --color-warn-ink: #7A5A0B;

  /* Type — professional sans-serif pairing (matches the firm's real brand type) */
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 32, 24, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 32, 24, 0.08);
  --shadow-lg: 0 20px 48px rgba(23, 32, 24, 0.12);
  --header-height: 76px;
}

/* ---------------------------------------------------------------------- *
 * Reset
 * ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.02rem; color: var(--color-ink); }
p { margin: 0 0 1em; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.4em 0.8em;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--color-brand-bright);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------- *
 * Layout helpers
 * ---------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }
.section--alt { background: var(--color-bg-alt); }
.section--brand {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
}
.section--brand h1, .section--brand h2, .section--brand h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 0 2.5rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-slate);
  background: var(--color-slate-light);
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; color: var(--color-ink-soft); }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.25rem; }
.stack { display: flex; flex-direction: column; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------------------------------------------------------------------- *
 * Buttons
 * ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary-text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-deep); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-primary-dark);
}
.btn-outline:hover { background: var(--color-primary-light); }
.section--brand .btn-outline { color: #fff; }
.section--brand .btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-secondary {
  background: var(--color-slate);
  color: #fff;
}
.btn-secondary:hover { background: var(--color-slate-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.85rem; }

/* ---------------------------------------------------------------------- *
 * Header / Navigation
 * ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 250, 246, 0.97);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand--footer { display: inline-flex; margin-bottom: 1.1rem; }
.main-nav a { white-space: nowrap; }
.main-nav .btn-primary, .main-nav .btn-primary:hover { color: #fff; border-bottom: 0; padding-bottom: .55em; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: 0.2s;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--color-ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-primary-text); text-decoration: none; }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--color-primary); padding-bottom: 4px; }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height));
    background: var(--color-surface);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* ---------------------------------------------------------------------- *
 * Hero
 * ---------------------------------------------------------------------- */
.hero {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(47,168,74,0.10), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(74,91,107,0.08), transparent 45%),
    var(--color-bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-visual {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

/* ---------------------------------------------------------------------- *
 * Lender & investor logo marquee (home page)
 * Two rows scrolling in opposite directions; each track holds the list
 * twice so a -50% translate loops seamlessly. Pauses on hover/focus.
 * ---------------------------------------------------------------------- */
.logo-marquee { display: grid; gap: 1rem; }
.logo-row { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: 1.25rem; }
.logo-row-label {
  font-family: var(--font-heading); font-weight: 700; font-size: .78rem; line-height: 1.35;
  letter-spacing: .08em; text-transform: uppercase; color: var(--color-slate);
}
.logo-strip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.logo-track { display: flex; gap: 0; width: max-content; margin: 0; padding: .35rem 0; list-style: none;
  animation: scroll-left var(--marquee-duration, 70s) linear infinite; }
.logo-row--reverse .logo-track { animation-direction: reverse; }
.logo-strip:hover .logo-track, .logo-strip:focus-within .logo-track { animation-play-state: paused; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-tile {
  flex: 0 0 auto; width: 168px; height: 84px; margin-right: 1rem; /* margin, not gap, so -50% loops seamlessly */
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.logo-tile img { display: block; max-width: 136px; max-height: 56px; width: auto; height: auto; }
.logo-note { margin: 1.4rem 0 0; font-size: .78rem; color: var(--color-ink-faint); text-align: center; }
@media (max-width: 700px) {
  .logo-row { grid-template-columns: 1fr; gap: .5rem; }
  .logo-row-label { text-align: center; }
  .logo-tile { width: 140px; height: 72px; }
  .logo-tile img { max-width: 112px; max-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; }
  .logo-track [aria-hidden="true"] { display: none; }
}

/* ---------------------------------------------------------------------- *
 * Pan-India reach + team credentials
 * ---------------------------------------------------------------------- */
.route-line {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 780px;
  margin: 2.5rem auto 3rem;
}
.route-node { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.route-node .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-primary-light);
}
.route-node .city { font-weight: 700; font-size: 0.92rem; color: var(--color-ink); white-space: nowrap; }
.route-connector { flex: 1 1 auto; height: 2px; background: var(--color-border-strong); margin-top: 5px; min-width: 24px; }
@media (max-width: 700px) {
  .route-line { flex-direction: column; align-items: center; gap: 1.25rem; }
  .route-connector { width: 2px; height: 28px; min-width: 0; margin-top: 0; }
}

.qualification-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.qualification-pill {
  border: 1.5px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 0.5em 1.3em;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  background: var(--color-surface);
}

/* ---------------------------------------------------------------------- *
 * Stats
 * ---------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .stats--3 { grid-template-columns: 1fr; } }
.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat .stat-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}
.stat .stat-label { color: var(--color-ink-soft); font-size: 0.92rem; }

/* ---------------------------------------------------------------------- *
 * Cards
 * ---------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon--slate { background: var(--color-slate-light); color: var(--color-slate-dark); }

/* ---------------------------------------------------------------------- *
 * Minimal icon strip (home page services teaser)
 * ---------------------------------------------------------------------- */
.icon-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
.icon-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  width: 140px;
}
.icon-strip-item:hover { text-decoration: none; color: var(--color-primary-dark); }
.icon-strip-item .card-icon { margin-bottom: 0; }

/* ---------------------------------------------------------------------- *
 * Decorative line-chart graphic (used in place of stock photography)
 * ---------------------------------------------------------------------- */
.deco-chart { width: 100%; height: auto; color: var(--color-primary); opacity: 0.9; }
.deco-chart--light { color: rgba(255,255,255,0.6); }

/* ---------------------------------------------------------------------- *
 * Scroll-reveal animation
 * ---------------------------------------------------------------------- */
/* .reveal is visible by default (progressive enhancement) — JS adds .js-armed
   only once it has successfully set up the scroll observer, so content never
   depends on JS running to be seen. */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.js-armed { opacity: 0; transform: translateY(16px); }
.reveal.js-armed.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal.js-armed { opacity: 1; transform: none; transition: none; }
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-weight: 600; font-size: 0.9rem; display: inline-block; margin-top: 0.75rem; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.tag--slate { background: var(--color-slate-light); color: var(--color-slate-dark); }

/* ---------------------------------------------------------------------- *
 * Partners
 * ---------------------------------------------------------------------- */
.partner-card { text-align: center; }
.partner-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.partner-role { color: var(--color-slate); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }

/* ---------------------------------------------------------------------- *
 * Accordion (Services / FAQ)
 * ---------------------------------------------------------------------- */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  font-family: var(--font-heading);
  color: var(--color-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}
.accordion-trigger .icon { transition: transform 0.2s ease; color: var(--color-primary-text); flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion-panel {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-ink-soft);
}
.accordion-panel[hidden] { display: none; }
.accordion-panel ul { margin: 0.5rem 0 0; }
.accordion-panel li { margin-bottom: 0.4rem; }

/* ---------------------------------------------------------------------- *
 * Tables (compliance calendar etc.)
 * ---------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.data-table { min-width: 640px; }
.data-table th, .data-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.data-table th {
  background: var(--color-primary-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  position: sticky;
  top: 0;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-primary-lighter); }
.data-table tr.is-due-soon td { background: var(--color-warn-bg); }
.due-badge { font-size: 0.72rem; font-weight: 700; color: var(--color-warn-ink); }

/* ---------------------------------------------------------------------- *
 * Forms
 * ---------------------------------------------------------------------- */
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-field .hint { font-size: 0.8rem; color: var(--color-ink-faint); margin-top: 0.3rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--color-surface);
  color: var(--color-ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.form-field input.is-invalid, .form-field select.is-invalid, .form-field textarea.is-invalid {
  border-color: #B3261E;
}
.form-error { color: #B3261E; font-size: 0.82rem; margin-top: 0.3rem; min-height: 1.2em; visibility: hidden; }
.form-error.is-visible { visibility: visible; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--color-success-bg); color: var(--color-primary-dark); }

/* ---------------------------------------------------------------------- *
 * Tool widgets
 * ---------------------------------------------------------------------- */
.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.tool-result {
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.25rem;
}
.tool-result .big-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.tool-result dl { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; margin: 0.75rem 0 0; }
.tool-result dt { color: var(--color-ink-soft); }
.tool-result dd { margin: 0; font-weight: 700; text-align: right; }
.disclaimer {
  font-size: 0.8rem;
  color: var(--color-ink-faint);
  border-left: 3px solid var(--color-slate);
  padding-left: 0.85rem;
  margin-top: 1rem;
}
.tool-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.tool-nav a {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.5em 1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.tool-nav a:hover { border-color: var(--color-primary); color: var(--color-primary-dark); text-decoration: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-ink-soft);
}
.filter-btn.is-active, .filter-btn:hover { background: var(--color-primary-text); color: #fff; border-color: var(--color-primary-text); }

/* ---------------------------------------------------------------------- *
 * Transactions
 * ---------------------------------------------------------------------- */
.deal-card { display: flex; flex-direction: column; gap: 0.6rem; }
.deal-amount { font-family: var(--font-heading); font-size: 1.55rem; color: var(--color-primary-text); font-weight: 700; }
.deal-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------------- *
 * Breadcrumbs
 * ---------------------------------------------------------------------- */
.breadcrumbs { font-size: 0.85rem; color: var(--color-ink-faint); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--color-ink-faint); }
.breadcrumbs .sep { margin: 0 0.4em; }

/* ---------------------------------------------------------------------- *
 * Footer
 * ---------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: #D9E0D6;
  padding: 4rem 0 2rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.02em; }
.site-footer a { color: #D9E0D6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #9CA89A;
}
.footer-brand { font-family: var(--font-heading); font-size: 1.1rem; color: #fff; margin-bottom: 0.75rem; display: block; }
.footer-tagline { max-width: 320px; font-size: 0.9rem; color: #ABB6A8; }

/* ---------------------------------------------------------------------- *
 * CTA band
 * ---------------------------------------------------------------------- */
.cta-band {
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: #C9D2C4; margin: 0; }

/* ---------------------------------------------------------------------- *
 * Article / blog
 * ---------------------------------------------------------------------- */
.article-body { max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.article-body h2 { margin-top: 1.8em; }
.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1.5em 0;
  padding: 0.2em 1.2em;
  color: var(--color-ink-soft);
  font-style: italic;
}
.article-meta { color: var(--color-ink-faint); font-size: 0.9rem; margin-bottom: 2rem; }
.article-header { max-width: 720px; margin: 0 auto 2rem; }

/* Print styles (used by compliance calendar's browser fallback) */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
}

/* =========================================================================
   ADDITIONS — accessibility, new components, calculator & calendar upgrades
   ========================================================================= */

/* Visible keyboard focus everywhere (previously relied on UA default) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--color-primary-text);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Respect reduced-motion for the reveal animation and the marquee */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal.js-armed { opacity: 1 !important; transform: none !important; }
  .logo-track { animation: none !important; }
}

/* Lock page scroll while the mobile nav is open */
body.nav-open { overflow: hidden; }

/* ---- Partner portraits ---------------------------------------------- */
.partner-photo {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; display: block; margin: 0 0 1.1rem;
  background: var(--color-primary-light);
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.partner-links { margin-top: 0.75rem; font-size: 0.9rem; }
.partner-links a { color: var(--color-primary-text); font-weight: 600; }

/* ---- Process / engagement timeline (a genuine sequence, so numbered) - */
.process-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-list li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1.1rem;
  padding: 1.35rem 0; border-top: 1px solid var(--color-border);
}
.process-list li:last-child { border-bottom: 1px solid var(--color-border); }
.process-list li::before {
  content: counter(step);
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-light); color: var(--color-primary-deep);
}
.process-list h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.process-list p { margin: 0; color: var(--color-ink-soft); }
.process-list .step-when { display: block; font-size: 0.82rem; color: var(--color-ink-faint); margin-top: 0.35rem; }

/* ---- Testimonials ---------------------------------------------------- */
.quote-card { border-left: 4px solid var(--color-primary); padding-left: 1.4rem; }
.quote-card blockquote { margin: 0 0 0.9rem; font-size: 1.05rem; line-height: 1.7; color: var(--color-ink); }
.quote-card cite { font-style: normal; font-size: 0.88rem; color: var(--color-ink-faint); }

/* ---- Calculator result upgrades -------------------------------------- */
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.result-cell { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.8rem 0.9rem; }
.result-cell .k { display: block; font-size: 0.78rem; color: var(--color-ink-faint); margin-bottom: 0.2rem; }
.result-cell .v { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--color-ink); }
.verdict { display: inline-block; font-weight: 700; font-size: 0.85rem; padding: 0.3em 0.75em; border-radius: 999px; margin-top: 0.15rem; }
.verdict--ok   { background: var(--color-success-bg); color: #14532D; }
.verdict--warn { background: var(--color-warn-bg);    color: var(--color-warn-ink); }
.verdict--bad  { background: #FBE9E7;                 color: #8A2C1B; }

/* Amortisation / schedule tables inside tools */
.schedule-wrap { max-height: 340px; overflow: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-top: 1rem; }
.schedule-wrap table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.schedule-wrap th, .schedule-wrap td { padding: 0.5rem 0.7rem; text-align: right; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.schedule-wrap th:first-child, .schedule-wrap td:first-child { text-align: left; }
.schedule-wrap thead th { position: sticky; top: 0; background: var(--color-bg-alt); z-index: 1; font-weight: 600; }
.schedule-wrap tbody tr.is-year-end { background: var(--color-primary-lighter); font-weight: 600; }

/* Methodology disclosure under each calculator */
.method-note { margin-top: 1.1rem; border-top: 1px dashed var(--color-border-strong); padding-top: 0.9rem; }
.method-note summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--color-primary-text); }
.method-note[open] summary { margin-bottom: 0.6rem; }
.method-note p, .method-note li { font-size: 0.87rem; color: var(--color-ink-soft); line-height: 1.65; }
.method-note ul { padding-left: 1.1rem; }

/* ---- Compliance calendar upgrades ------------------------------------ */
.calendar-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1.2rem; }
.calendar-controls .form-field { margin: 0; min-width: 190px; }
.as-on { font-size: 0.85rem; color: var(--color-ink-faint); }
tr.is-due-soon { background: var(--color-warn-bg); }
tr.is-overdue  { background: #FBE9E7; }
.due-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15em 0.5em; border-radius: 4px; background: var(--color-warn-ink); color: #fff; margin-top: 0.25rem; }
.due-badge--today { background: #8A2C1B; }

/* ---- Consent / legal ------------------------------------------------- */
.consent-field { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.7rem; align-items: start; margin: 1.1rem 0 0.4rem; }
.consent-field input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--color-primary-text); }
.consent-field label { font-size: 0.86rem; line-height: 1.6; color: var(--color-ink-soft); font-weight: 400; }
.consent-field a { color: var(--color-primary-text); }

.legal-body { max-width: 72ch; }
.legal-body h2 { margin-top: 2.4rem; font-size: 1.25rem; }
.legal-body h3 { margin-top: 1.6rem; font-size: 1.02rem; }
.legal-body p, .legal-body li { color: var(--color-ink-soft); line-height: 1.75; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.9rem; }
.legal-body th, .legal-body td { border: 1px solid var(--color-border); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.legal-body thead th { background: var(--color-bg-alt); }

/* ---- 404 ------------------------------------------------------------- */
.error-page { text-align: center; padding: 5rem 0; }
.error-code { font-family: var(--font-heading); font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 800; color: var(--color-primary); line-height: 1; }

/* ---- Footer legal row ------------------------------------------------ */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-top: 0.8rem; font-size: 0.83rem; }
.footer-legal a { color: inherit; opacity: 0.85; }
.footer-legal a:hover { opacity: 1; }

/* =========================================================================
   v4 — tombstones, uniform service cards, graphics, motion
   ========================================================================= */


/* ---- Service cards: one pattern for every service ------------------- */
.service-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.service-card .svc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--color-primary-light); color: var(--color-primary-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.02rem; margin: 0 0 .4rem; }
.service-card p  { margin: 0; font-size: .92rem; color: var(--color-ink-soft); line-height: 1.6; }

/* ---- Tombstones ------------------------------------------------------ */
.tombstone-grid {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.tombstone {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-top: 3px solid var(--color-primary-text);
  border-radius: 2px;
  padding: 1.9rem 1.4rem 1.5rem;
  text-align: center;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tombstone:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tombstone .ts-mark { margin: 0 auto .9rem; color: var(--color-primary-text); opacity: .85; }
.tombstone .ts-amount {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.85rem; line-height: 1.1; color: var(--color-ink);
  letter-spacing: -0.01em;
}
.tombstone .ts-facility {
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--color-primary-deep); margin-top: .35rem;
}
.tombstone .ts-rule { border: 0; border-top: 1px solid var(--color-border); margin: 1.05rem 2.2rem; }
.tombstone .ts-client { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--color-ink); }
.tombstone .ts-desc { font-size: .87rem; color: var(--color-ink-soft); line-height: 1.55; margin-top: .3rem; }
.tombstone .ts-foot {
  margin-top: auto; padding-top: 1.1rem;
  display: flex; justify-content: center; gap: .55rem; flex-wrap: wrap;
  font-size: .76rem; color: var(--color-ink-faint);
}
.tombstone .ts-foot span { background: var(--color-bg-alt); border-radius: 3px; padding: .2em .6em; }

/* Staggered entrance for tombstones and service cards */
.stagger > * { opacity: 0; transform: translateY(14px); }
.stagger.is-visible > * { animation: fadeUp .5s ease forwards; }
.stagger.is-visible > *:nth-child(1) { animation-delay: .00s; }
.stagger.is-visible > *:nth-child(2) { animation-delay: .06s; }
.stagger.is-visible > *:nth-child(3) { animation-delay: .12s; }
.stagger.is-visible > *:nth-child(4) { animation-delay: .18s; }
.stagger.is-visible > *:nth-child(5) { animation-delay: .24s; }
.stagger.is-visible > *:nth-child(6) { animation-delay: .30s; }
.stagger.is-visible > *:nth-child(7) { animation-delay: .36s; }
.stagger.is-visible > *:nth-child(n+8) { animation-delay: .42s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---- Sector mark used on tombstones and stat blocks ------------------ */
.sector-mark { width: 34px; height: 34px; }

/* ---- Stat band ------------------------------------------------------- */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 1.6rem; }
.stat-band .stat-number { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.stat-band .stat-label { font-size: .85rem; line-height: 1.5; }

/* ---- Motion off ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .stagger > *         { opacity: 1; transform: none; animation: none !important; }
  .service-card:hover, .tombstone:hover { transform: none; }
}

/* =========================================================================
   v5 — services text measure, Insights page, case studies, tools guidance
   ========================================================================= */

/* ---- Services page (moved from an inline <style> block) ------------- */
.measure { max-width: 92ch; }
.measure--center { max-width: 72ch; margin-left: auto; margin-right: auto; }
.svc-lead { font-weight: 600; margin-bottom: .4rem; }
.svc-note {
  margin-top: 2.2rem; padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--color-primary-text);
  background: rgba(30,122,55,0.06); border-radius: 6px;
}
.svc-note h3 { margin: 0 0 .5rem; }
.svc-note p { margin-bottom: 0; max-width: 92ch; }
.svc-note .btn { margin-top: 1.1rem; }
.hero-ctas { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---- In-page section switcher (Insights, Tools) ---------------------- */
.subnav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2.6rem; }
.subnav a {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6em 1.15em; border-radius: 999px;
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  font-weight: 600; font-size: .92rem; color: var(--color-ink-soft);
}
.subnav a:hover { border-color: var(--color-primary-text); color: var(--color-primary-text); text-decoration: none; }
.subnav-count {
  font-size: .75rem; font-weight: 700; min-width: 1.5rem; padding: .1em .45em; border-radius: 999px;
  background: var(--color-primary-light); color: var(--color-primary-deep); text-align: center;
}
.anchor-offset, [id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* ---- Case studies ---------------------------------------------------- */
.case-list { display: grid; gap: 1.6rem; }
.case-study {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary-text); border-radius: var(--radius-md);
  padding: 2rem 2rem 1.6rem; box-shadow: var(--shadow-sm);
}
.case-head { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; margin-bottom: 1rem; }
.case-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-light); color: var(--color-primary-deep);
}
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .55rem; }
.case-num { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-ink-faint); margin-right: .25rem; }
.case-study h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin: 0; }
.case-client { color: var(--color-ink-soft); margin-bottom: 1.3rem; }
.case-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.case-body h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary-text); margin-bottom: .45rem; }
.case-body p { font-size: .95rem; color: var(--color-ink-soft); margin: 0; }
.case-results {
  list-style: none; margin: 1.6rem 0 0; padding: 1.2rem 0 0; border-top: 1px dashed var(--color-border-strong);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.case-results li { display: flex; flex-direction: column; gap: .15rem; }
.cr-num { font-family: var(--font-heading); font-weight: 800; font-size: 1.7rem; line-height: 1.1; color: var(--color-primary-text); }
.cr-label { font-size: .85rem; color: var(--color-ink-soft); line-height: 1.45; }
.case-teaser .cr-num { display: block; margin-bottom: .6rem; }
@media (max-width: 860px) {
  .case-body, .case-results { grid-template-columns: 1fr; gap: 1.1rem; }
  .case-study { padding: 1.5rem 1.3rem 1.3rem; }
  .case-head { grid-template-columns: 1fr; }
}

/* ---- Tools page: plain-language layer ------------------------------- */
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.howto-step { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; }
.howto-n { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-text); color: #fff; font-family: var(--font-heading); font-weight: 700; }
.howto-title { font-family: var(--font-heading); font-weight: 700; color: var(--color-ink); margin: .15rem 0 .25rem; }
.howto-step p:last-child { margin: 0; font-size: .9rem; color: var(--color-ink-soft); }
.tool-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.tool-pick { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; border-radius: var(--radius-md);
  background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease; }
.tool-pick:hover { border-color: var(--color-primary-text); box-shadow: var(--shadow-sm); text-decoration: none; }
.tool-pick-q { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.tool-pick-name { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-primary-text); }
@media (max-width: 960px) { .tool-picker { grid-template-columns: repeat(2, 1fr); } .howto { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tool-picker { grid-template-columns: 1fr; } }
.tool-card { margin-bottom: 2rem; }
.tool-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-slate); margin: 0 0 .35rem; }
.tool-plain { background: var(--color-primary-lighter); border-left: 3px solid var(--color-primary); border-radius: 6px; padding: .85rem 1rem; }
.tool-pro-intro { font-size: .92rem; color: var(--color-ink-soft); }
.result-headline { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: .4rem; }
.plain-summary { font-size: 1rem; line-height: 1.65; color: var(--color-ink); background: var(--color-surface); border-radius: 6px; padding: .8rem 1rem; margin: .4rem 0 .9rem; }
.plain-summary:empty { display: none; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem !important; line-height: 1.7;
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 6px; padding: .75rem .9rem; color: var(--color-ink) !important; }
.note-box { font-size: .88rem; background: var(--color-warn-bg); color: var(--color-warn-ink); border-radius: 6px; padding: .75rem 1rem; }
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .2rem 2rem; margin: 1rem 0 0; }
.glossary div { padding: .7rem 0; border-top: 1px solid var(--color-border); }
.glossary dt { font-weight: 700; color: var(--color-ink); }
.glossary dd { margin: .15rem 0 0; font-size: .9rem; color: var(--color-ink-soft); }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }
.due-badge--ext { background: var(--color-primary-text); }

/* ---- Compliance calendar table: readable, left-aligned, wrapping ------ */
#compliance-table { min-width: 920px; font-size: .86rem; }
#compliance-table th, #compliance-table td { text-align: left; white-space: normal; vertical-align: top; line-height: 1.5; }
#compliance-table th:nth-child(1), #compliance-table td:nth-child(1) { width: 12%; color: var(--color-ink-soft); }
#compliance-table th:nth-child(2), #compliance-table td:nth-child(2) { width: 26%; font-weight: 600; color: var(--color-ink); }
#compliance-table th:nth-child(3), #compliance-table td:nth-child(3) { width: 17%; }
#compliance-table th:nth-child(4), #compliance-table td:nth-child(4) { width: 10%; }
#compliance-table th:nth-child(5), #compliance-table td:nth-child(5) { width: 22%; }
#compliance-table th:nth-child(6), #compliance-table td:nth-child(6) { width: 13%; white-space: nowrap; }

/* =========================================================================
   v6 — footer labels, legal pages, compact form, hero visual, transactions
   ========================================================================= */
.footer-label { display: inline-block; font-weight: 600; color: #fff; }
.footer-label--gap { display: block; margin-top: .9rem; }
.footer-bottom { justify-content: flex-start; }

/* ---- Home hero: growth card (illustrative, carries no data series) ---- */
.hero-visual-wrap { display: flex; justify-content: center; }
.growth-card {
  margin: 0; width: 100%; max-width: 480px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.25rem 1.25rem 1rem;
}
.growth-card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .4rem; }
.growth-card-title { font-family: var(--font-heading); font-weight: 700; font-size: .95rem; color: var(--color-ink); }
.growth-chip { font-size: .78rem; font-weight: 700; color: var(--color-primary-deep); background: var(--color-primary-light); border-radius: 999px; padding: .3em .8em; white-space: nowrap; }
.growth-svg { width: 100%; height: auto; display: block; }
.g-grid line { stroke: var(--color-border); stroke-width: 1; stroke-dasharray: 3 5; }
.g-area { opacity: 0; animation: gFade .9s ease .9s forwards; }
.g-line { fill: none; stroke: var(--color-primary-text); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: gDraw 1.6s cubic-bezier(.65,0,.35,1) .2s forwards; }
.g-m circle { fill: #fff; stroke: var(--color-primary-text); stroke-width: 3; }
.g-m rect { fill: var(--color-ink); }
.g-m text { fill: #fff; font: 600 11px var(--font-body); text-anchor: middle; }
.g-m, .g-end { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: gPop .45s ease forwards; }
.g-m1 { animation-delay: .7s; } .g-m2 { animation-delay: 1.05s; } .g-m3 { animation-delay: 1.4s; } .g-end { animation-delay: 1.75s; }
.g-end circle { fill: #66E434; }
.g-end path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.growth-card-foot { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .5rem; font-size: .8rem; color: var(--color-ink-soft); }
.growth-card-foot .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.dot--1 { background: var(--color-primary-text); } .dot--2 { background: #66E434; } .dot--3 { background: var(--color-slate); }
@keyframes gDraw { to { stroke-dashoffset: 0; } }
@keyframes gFade { to { opacity: 1; } }
@keyframes gPop { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .g-area, .g-m, .g-end { opacity: 1; animation: none; }
  .g-line { stroke-dashoffset: 0; animation: none; }
}
.stat-band .stat-number--text { font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.25; padding: .2em 0; }
.stat { display: flex; flex-direction: column; justify-content: center; }
.logo-row { grid-template-columns: 1fr; }

/* ---- Enquiry form: tighter vertical rhythm; error text takes space only when shown ---- */
#contact-form .form-field { margin-bottom: .8rem; }
#contact-form .form-row { gap: .5rem 1.25rem; }
#contact-form .form-field label { margin-bottom: .3rem; }
#contact-form .form-error { display: none; min-height: 0; margin-top: .25rem; }
#contact-form .form-error.is-visible { display: block; }
#contact-form button[type="submit"] { margin-top: .6rem !important; }

/* ---- Legal pages: short, centred ------------------------------------- */
.legal-page { max-width: 760px; margin: 0 auto; text-align: center; }
.legal-page .breadcrumbs { margin-bottom: 1rem; }
.legal-page h1 { margin-bottom: .3rem; }
.legal-page h2 { font-size: 1.15rem; margin: 2.1rem 0 .55rem; }
.legal-page p { color: var(--color-ink-soft); line-height: 1.75; }

/* ---- Transactions: client tombstones -------------------------------- */
.deals-title { font-size: 1.35rem; }
.deal-group { margin-top: 2.2rem; }
.deal-group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; font-size: 1.15rem; color: var(--color-ink);
  padding-bottom: .6rem; border-bottom: 1px solid var(--color-border); margin-bottom: 1.3rem; }
.deal-group-title span { font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--color-ink-faint); }
.tombstone--deal { padding-top: 1.4rem; }
.ts-logo { height: 76px; display: flex; align-items: center; justify-content: center; margin: .4rem 0 .9rem; }
.ts-logo img { max-height: 72px; max-width: 170px; width: auto; height: auto; }
.ts-logo-ph { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-slate-light); color: var(--color-slate); }
.tombstone--deal .ts-client { font-size: .98rem; line-height: 1.35; }
.tombstone--deal .ts-desc { min-height: 2.7em; }
.tombstone--deal .ts-rule { margin: .9rem 2.2rem; }
.ts-amount--text { font-size: 1.15rem !important; color: var(--color-slate-dark) !important; }
.ts-badge { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .2em .6em; border-radius: 4px; background: var(--color-slate-light); color: var(--color-slate-dark); }
.ts-badge--start { background: var(--color-primary-light); color: var(--color-primary-deep); }
.ts-ongoing { background: var(--color-warn-bg) !important; color: var(--color-warn-ink); font-weight: 700; }
[data-deal-group][hidden] { display: none; }
.partner-tile { text-align: left; }
.partner-tile .partner-role { margin-bottom: .6rem; }
.partner-tile p:not(.partner-role):not(.hint):not(.partner-links) { font-size: .92rem; color: var(--color-ink-soft); }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover, .main-nav a.btn-primary[aria-current="page"] { color: #fff; border-bottom: 0; padding-bottom: .55em; }
.main-nav a.btn-primary[aria-current="page"] { background: var(--color-primary-deep); }
.stat-band .stat-number { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.stat-band .stat-number--text { font-size: clamp(1.4rem, 2.5vw, 2.1rem); }

/* ---- v7: tombstone text aligned across each row (CSS subgrid) -------- */
.tombstone--deal { padding-top: 2.1rem; }
.tombstone--deal .ts-client { min-height: 2.7em; display: flex; align-items: flex-start; justify-content: center; }
.tombstone--deal .ts-desc { min-height: 4.65em; }
@supports (grid-template-rows: subgrid) {
  .tombstone-grid { align-items: stretch; }
  .tombstone--deal { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .tombstone--deal .ts-client, .tombstone--deal .ts-desc { min-height: 0; }
  .tombstone--deal .ts-foot { align-self: end; }
}
.ts-badge { position: absolute; top: .65rem; right: .65rem; z-index: 1; }
.tombstone--deal .ts-amount, .tombstone--deal .ts-facility, .tombstone--deal .ts-client, .tombstone--deal .ts-desc { margin-top: 0; }
.tool-picker { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---- Services: debt categories with products ------------------------ */
.debt-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 860px) { .debt-cat-grid { grid-template-columns: 1fr; } }
.debt-cat h3 { font-size: 1.15rem; }
.product-list { list-style: none; margin: .9rem 0 0; padding: 0; }
.product-list li { padding: .75rem 0; border-top: 1px solid var(--color-border); }
.product-list li:first-child { border-top: 0; padding-top: .2rem; }
.product-list strong { display: block; font-size: .95rem; color: var(--color-ink); margin-bottom: .2rem; }
.product-list span { display: block; font-size: .9rem; line-height: 1.6; color: var(--color-ink-soft); }

@media (min-width: 1025px) and (max-width: 1200px) {
  .main-nav { gap: 1.3rem; }
  .main-nav ul { gap: 1.25rem; }
}

/* ---- Insights: featured articles ------------------------------------ */
.feature-list { display: grid; gap: 1.4rem; }
.feature-card { display: grid; grid-template-columns: 200px 1fr; gap: 1.6rem; align-items: start;
  background: var(--color-surface); border: 1px solid var(--color-border); border-top: 3px solid var(--color-primary-text);
  border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.feature-thumb { display: block; border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden; background: #fff; }
.feature-thumb img { width: 100%; height: 180px; object-fit: cover; object-position: top; display: block; }
.feature-body h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 0 0 .3rem; }
.feature-outlet { font-size: .85rem; color: var(--color-ink-faint); }
.feature-byline { font-size: .9rem; font-weight: 600; color: var(--color-slate); margin-bottom: .6rem; }
.feature-body p { color: var(--color-ink-soft); }
.feature-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .9rem 0 0; }
.feature-actions svg { display: inline-block; vertical-align: -3px; }
@media (max-width: 700px) { .feature-card { grid-template-columns: 1fr; } .feature-thumb img { height: 200px; } }
.legal-page p:not(.breadcrumbs):not(.article-meta) { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* =========================================================================
   v10 — transaction cards: lightened backdrop, logo top-left, compact body
   ========================================================================= */
.deal-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.deal {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.deal:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.deal-media { position: relative; height: 112px; overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-lighter) 0%, #fff 55%, var(--color-slate-light) 130%); }
.deal-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.deal-bg--photo { background-size: cover; background-position: center; }
.deal-bg--photo::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.74); }
.deal-logo {
  position: absolute; top: .75rem; left: .75rem; z-index: 1; display: flex; align-items: center;
  max-width: calc(100% - 5.2rem); height: 58px; padding: .4rem .6rem; background: #fff;
  border-radius: 8px; box-shadow: 0 1px 3px rgba(23,32,24,.12);
}
.deal-logo img { max-height: 46px; max-width: 132px; width: auto; height: auto; object-fit: contain; }
.deal-logo--text { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-slate); }
.deal-media .ts-badge { position: absolute; top: .75rem; right: .75rem; z-index: 1; }
.deal-body { padding: .95rem 1.15rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.deal-type, .deal-sector { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-ink-soft); }
.deal-amount { margin: .35rem 0 0; font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--color-ink); }
.deal-rule { border: 0; border-top: 1px solid var(--color-border); margin: .7rem 0; }
.deal-year { margin: auto 0 0; padding-top: .7rem; font-size: .85rem; color: var(--color-ink-soft); }
.deal-ongoing { display: inline-block; font-size: .74rem; font-weight: 700; padding: .12em .55em; border-radius: 4px; background: var(--color-warn-bg); color: var(--color-warn-ink); }
.nowrap { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .deal:hover { transform: none; } }

/* ---- Home: sector experience ---------------------------------------- */
.sector-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem 1.6rem; grid-template-columns: repeat(5, 1fr); }
.sector-item { display: flex; align-items: center; gap: .8rem; font-weight: 600; font-size: .98rem; color: var(--color-ink);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: .9rem 1rem; }
.sector-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-light); color: var(--color-primary-deep); }
@media (max-width: 1100px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .sector-grid { grid-template-columns: 1fr; } }


/* =========================================================================
   v10 — minimal brand vector art
   The outline of the Incremento arrow is used as a quiet watermark; a fine
   dot grid adds texture to the home hero. Pure CSS/SVG, no image requests.
   ========================================================================= */
.section--brand { position: relative; overflow: hidden; }
.section--brand::after {
  content: ""; position: absolute; top: -18%; right: max(2%, calc(50% - 640px)); width: 240px; height: 136%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -40 1380 2290'%3E%3Cg fill='none' stroke='%23fff' stroke-width='16' stroke-linejoin='round'%3E%3Ccircle cx='658' cy='259' r='250'/%3E%3Cpath d='M0 1166 650 516 1300 1166H975V1559L325 2209V1166Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; opacity: .14; pointer-events: none;
}
.section--brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 30%, rgba(255,255,255,.12), transparent 42%);
}
.section--brand > .container { position: relative; z-index: 1; }
@media (max-width: 700px) { .section--brand::after { width: 150px; right: -30px; opacity: .1; } }

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(30,122,55,.16) 1px, transparent 1.3px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 78% 45%, #000 0%, transparent 70%);
}
.hero > .container { position: relative; z-index: 1; }

.site-footer { position: relative; overflow: hidden; }
.site-footer::after {
  content: ""; position: absolute; right: max(1%, calc(50% - 660px)); bottom: -60px; width: 190px; height: 330px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -40 1380 2290'%3E%3Cg fill='none' stroke='%23fff' stroke-width='16' stroke-linejoin='round'%3E%3Ccircle cx='658' cy='259' r='250'/%3E%3Cpath d='M0 1166 650 516 1300 1166H975V1559L325 2209V1166Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; opacity: .05; pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }

/* section headings: short brand-green rule under the eyebrow chip */
.section-head h2::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--color-brand-bright); margin-top: .7rem; }
.section-head.text-center h2::after { margin-left: auto; margin-right: auto; }
.section--brand h2::after, .legal-page h2::after { display: none; }
.deal-media { height: 124px; }
.deal-logo { height: 74px; padding: .45rem .65rem; max-width: calc(100% - 1.5rem); }
.deal-media .ts-badge + .deal-logo, .deal-logo { }
.deal-logo img { max-height: 60px; max-width: 150px; }
.deal-media .ts-badge { top: auto; bottom: .65rem; right: .65rem; }
@media (max-width: 520px) {
  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .deal-media { height: 96px; }
  .deal-logo { top: .5rem; left: .5rem; height: 58px; max-width: calc(100% - 1rem); padding: .35rem .45rem; }
  .deal-logo img { max-height: 46px; max-width: 120px; }
  .deal-logo--text { font-size: .62rem; }
  .deal-media .ts-badge { bottom: .45rem; right: .45rem; font-size: .6rem; }
  .deal-body { padding: .75rem .8rem .85rem; }
  .deal-type, .deal-sector { font-size: .6rem; letter-spacing: .06em; }
  .deal-amount { font-size: 1.15rem; }
  .deal-rule { margin: .5rem 0; }
  .deal-year { font-size: .78rem; padding-top: .5rem; }
}
.deal-group { margin-top: 2.4rem; }
.deal-group-title { font-size: 1.45rem; padding-bottom: .7rem; margin-bottom: 1.4rem; }
.deal-group-title span { font-size: 1rem; }
.filter-bar[data-filter-group] { margin-bottom: .4rem; }
.deal-bg--photo::after { background: rgba(255,255,255,.52); }
.sector-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .sector-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   v13 — tombstone hover, home page section dividers, equal sector cards
   ========================================================================= */
/* tombstone photo: wash lifts and the photo brightens on hover/focus */
.deal-bg--photo { transition: filter .35s ease; }
.deal-bg--photo::after { transition: background-color .35s ease; }
.deal:hover .deal-bg--photo, .deal:focus-within .deal-bg--photo { filter: brightness(1.08) saturate(1.1); }
.deal:hover .deal-bg--photo::after, .deal:focus-within .deal-bg--photo::after { background-color: rgba(255,255,255,.14); }

/* home: equal sector cards */
.sector-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.sector-item { height: 100%; min-height: 76px; min-width: 0; }
@media (max-width: 1100px) { .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .sector-grid { grid-template-columns: minmax(0, 1fr); } .sector-item { min-height: 64px; } }

/* home: divider between sections — a fading hairline with the Incremento mark */
.sec-divider { position: relative; height: 0; z-index: 2; }
.sec-divider::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(1180px, calc(100% - 2.5rem)); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--color-border-strong) 22%, var(--color-border-strong) calc(50% - 36px),
    transparent calc(50% - 36px), transparent calc(50% + 36px), var(--color-border-strong) calc(50% + 36px), var(--color-border-strong) 78%, transparent);
}
.sec-divider span {
  position: absolute; left: 50%; top: 0; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--color-surface); border: 1px solid var(--color-border-strong);
  box-shadow: 0 2px 8px rgba(23,32,24,.06);
  display: flex; align-items: center; justify-content: center;
}
.sec-divider svg { width: 13px; height: 22px; display: block; }

/* home: quiet texture in a few sections */
.deco { position: relative; overflow: hidden; }
.deco > .container { position: relative; z-index: 1; }
.deco--dots::before {
  content: ""; position: absolute; top: 0; right: 0; width: 46%; height: 70%; pointer-events: none;
  background-image: radial-gradient(rgba(30,122,55,.17) 1px, transparent 1.3px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 68%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 68%);
}
.deco--dots-left::before { right: auto; left: 0; top: auto; bottom: 0;
  -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000 0%, transparent 68%);
  mask-image: radial-gradient(ellipse at 0% 100%, #000 0%, transparent 68%); }
.deco--arrow::after {
  content: ""; position: absolute; right: max(1%, calc(50% - 680px)); bottom: -70px; width: 170px; height: 290px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -40 1380 2290'%3E%3Cg fill='none' stroke='%2366E434' stroke-width='18' stroke-linejoin='round'%3E%3Ccircle cx='658' cy='259' r='250'/%3E%3Cpath d='M0 1166 650 516 1300 1166H975V1559L325 2209V1166Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .22;
}
.deco--rings::after {
  content: ""; position: absolute; left: -90px; top: -90px; width: 300px; height: 300px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' fill='none' stroke='%231E7A37' stroke-width='1.2'%3E%3Ccircle cx='150' cy='150' r='60'/%3E%3Ccircle cx='150' cy='150' r='95'/%3E%3Ccircle cx='150' cy='150' r='130'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .12;
}
@media (max-width: 760px) {
  .deco--dots::before { width: 70%; height: 40%; }
  .deco--arrow::after { width: 110px; height: 190px; right: -24px; bottom: -50px; opacity: .06; }
  .deco--rings::after { width: 200px; height: 200px; left: -80px; top: -80px; }
  .sec-divider span { width: 38px; height: 38px; }
}

/* services: link from each debt category to its detailed page */
.debt-cat { display: flex; flex-direction: column; }
.svc-more { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .92rem; color: var(--color-primary-text); text-decoration: none; }
.svc-more:hover { text-decoration: underline; }

/* v15: headings and intro text use the same wide measure on every page */
.section-head { max-width: 92ch; }

/* About: partner cards line up row by row (photo, name, role, bio, focus, link) */
.partner-grid .partner-tile { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-content: start; }
.partner-grid .partner-tile > * { margin-top: 0; }
.partner-grid .partner-tile .partner-avatar, .partner-grid .partner-tile .partner-photo { margin: 0 0 1.1rem !important; }
.partner-grid .partner-tile h3 { margin-bottom: .25rem; }
.partner-grid .partner-tile .partner-role { margin-bottom: .8rem; }
.partner-grid .partner-tile .hint { margin: .9rem 0 1rem !important; align-self: start; }
.partner-grid .partner-tile .partner-links { align-self: end; margin: 1rem 0 0; }
.partner-links a.partner-li { display: inline-flex; align-items: center; gap: .5rem; color: #0A66C2; font-weight: 600; text-decoration: none; }
.partner-links a.partner-li:hover { text-decoration: underline; }
.partner-li svg { flex: 0 0 auto; }

/* Insights guide cards: tag, title, summary and date line up across each row */
.grid-3[data-render="resources"] > .card { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: .7rem; align-content: start; }
.grid-3[data-render="resources"] > .card > * { margin: 0; }
.grid-3[data-render="resources"] > .card .tag { justify-self: start; }
.grid-3[data-render="resources"] > .card .article-meta { align-self: end; }
/* guide pages: heading block and text share one column */
.article-body.legal-body { max-width: 720px; }

/* partner LinkedIn: icon only */
.partner-links a.partner-li { padding: 0; border-radius: 4px; }
.partner-links a.partner-li svg { width: 26px; height: 26px; }

/* footer: LinkedIn icon at the far right of the legal row */
.footer-legal { align-items: center; }
.footer-legal a.footer-li { margin-left: auto; opacity: .9; display: inline-flex; line-height: 0; }
.footer-legal a.footer-li:hover { opacity: 1; color: #fff; }

/* About: partner photos, same size and frame */
.partner-grid .partner-photo { width: 112px; height: 112px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--color-border-strong); }

/* v19: home hero illustration (replaces the growth card) */
.hero-art { width: 100%; max-width: 600px; height: auto; overflow: visible; }
.ha-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: haDraw 1.6s ease .2s forwards; }
.ha-arrow { opacity: 0; animation: haFade .3s ease 1.7s forwards; }
.ha-m { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: haPop .45s ease forwards; }
.ha-m1 { animation-delay: .35s; } .ha-m2 { animation-delay: .6s; } .ha-m3 { animation-delay: .85s; }
.ha-m4 { animation-delay: 1.1s; } .ha-m5 { animation-delay: 1.35s; } .ha-m6 { animation-delay: 1.6s; }
@keyframes haDraw { to { stroke-dashoffset: 0; } }
@keyframes haFade { to { opacity: 1; } }
@keyframes haPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ha-line { stroke-dashoffset: 0; animation: none; } .ha-arrow, .ha-m { opacity: 1; animation: none; }
}
@media (max-width: 900px) { .hero-art { max-width: 520px; margin: 0 auto; } }

/* v20: transaction photos clearer; card glows and photo zooms slightly on hover */
.deal-bg--photo::after { background: rgba(255,255,255,.22); }
.deal-media { overflow: hidden; }
.deal-bg--photo { transition: filter .35s ease, transform .5s ease; }
.deal { transition: transform .25s ease, box-shadow .25s ease; }
.deal:hover, .deal:focus-within { box-shadow: 0 0 0 1px rgba(47,168,74,.45), 0 10px 28px rgba(47,168,74,.25); }
.deal:hover .deal-bg--photo, .deal:focus-within .deal-bg--photo { transform: scale(1.05); filter: brightness(1.06) saturate(1.12); }
.deal:hover .deal-bg--photo::after, .deal:focus-within .deal-bg--photo::after { background-color: rgba(255,255,255,0); }
@media (prefers-reduced-motion: reduce) { .deal-bg--photo, .deal { transition: none; } .deal:hover .deal-bg--photo { transform: none; } }

/* v20: sector cards wrap with the last row centred (13 sectors) */
.sector-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.6rem; }
.sector-grid > .sector-item { flex: 0 0 calc((100% - 3 * 1.6rem) / 4); height: auto; }
@media (max-width: 1100px) { .sector-grid > .sector-item { flex-basis: calc((100% - 2 * 1.6rem) / 3); } }
@media (max-width: 760px)  { .sector-grid > .sector-item { flex-basis: calc((100% - 1.6rem) / 2); } }
@media (max-width: 420px)  { .sector-grid > .sector-item { flex-basis: 100%; } }
.sector-grid > .sector-item { min-height: 84px; }
@media (max-width: 1100px) { .sector-grid > .sector-item { min-height: 108px; } }
@media (max-width: 760px)  { .sector-grid > .sector-item { min-height: 96px; } }
@media (max-width: 420px)  { .sector-grid > .sector-item { min-height: 64px; } }
