/* ==========================================================================
   Well Works Enterprises — design system
   Brand: indigo #4C0EE9 / Poppins. Industrial-technical, high contrast.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  --brand-900: #1d0459;
  --brand-800: #2b0888;
  --brand-700: #3a0bb5;
  --brand-600: #4c0ee9;
  --brand-500: #6661fb;
  --brand-300: #a8a3ff;
  --brand-100: #e9e6ff;
  --brand-50:  #f6f4ff;

  --ink-900: #0b0a12;
  --ink-800: #16151f;
  --ink-700: #24222f;
  --ink-600: #3d3a4d;
  --ink-500: #5c5871;
  --ink-400: #837f96;
  --ink-300: #b4b1c2;
  --ink-200: #e0dee7;
  --ink-100: #efeef3;
  --ink-50:  #f7f7fa;
  --white:   #ffffff;

  --accent: #00b884;
  --warn:   #eb7112;

  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(11, 10, 18, .06), 0 1px 3px rgba(11, 10, 18, .04);
  --shadow-md: 0 4px 6px -2px rgba(11, 10, 18, .05), 0 12px 24px -6px rgba(11, 10, 18, .10);
  --shadow-lg: 0 8px 12px -4px rgba(11, 10, 18, .06), 0 24px 48px -12px rgba(11, 10, 18, .16);

  --step: clamp(3rem, 7vw, 6rem);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--ink-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 3.75rem); letter-spacing: -.033em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.0625rem; }
p  { margin: 0 0 1.15em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
strong { font-weight: 600; color: var(--ink-900); }
hr { border: 0; border-top: 1px solid var(--ink-200); margin: var(--step) 0; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 3px; }

/* --- Utilities ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--step); }
.section--tight { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.section--tint { background: var(--ink-50); }
.section--brand-tint { background: var(--brand-50); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--brand-600); color: #fff; padding: .7rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md); font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--brand-600); border-radius: 2px;
}
.eyebrow--on-dark { color: var(--brand-300); }
.eyebrow--on-dark::before { background: var(--brand-500); }

.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-600); line-height: 1.6; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: .9375rem; line-height: 1;
  padding: .875rem 1.5rem; border-radius: var(--r-md); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(76, 14, 233, .6); }
.btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: 0 10px 22px -8px rgba(76, 14, 233, .7); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-200); }
.btn--ghost:hover { background: var(--ink-50); border-color: var(--ink-300); color: var(--ink-900); }
.btn--on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--white { background: #fff; color: var(--brand-800); }
.btn--white:hover { background: var(--brand-50); color: var(--brand-800); }
.btn--sm { padding: .65rem 1.1rem; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--brand-700);
}
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-200);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { flex: none; width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: 1.0625rem; color: var(--ink-900); letter-spacing: -.02em; }
.brand__tag { font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a, .nav__toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  font: inherit; font-size: .9375rem; font-weight: 500; color: var(--ink-700);
  padding: .55rem .75rem; border-radius: var(--r-sm); text-decoration: none;
  background: none; border: 0; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.nav a:hover, .nav__toggle:hover { background: var(--ink-50); color: var(--ink-900); }
.nav a[aria-current="page"], .nav .is-active > a, .nav .is-active > .nav__toggle { color: var(--brand-700); font-weight: 600; }
.nav__toggle svg { width: 11px; height: 11px; transition: transform .2s ease; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .mega.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega__inner {
  display: grid; grid-template-columns: repeat(3, 1fr) .9fr; gap: 1.5rem 2rem;
  padding-block: 2rem;
}
.mega__col { min-width: 0; }
.mega__title { display: block; font-weight: 600; font-size: .9375rem; color: var(--ink-900); text-decoration: none; margin-bottom: .2rem; }
.mega__title:hover { color: var(--brand-700); }
.mega__desc { font-size: .8125rem; color: var(--ink-400); line-height: 1.5; margin: 0 0 .5rem; }
.mega__sub { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink-100); padding-left: .75rem; }
.mega__sub li { margin: 0; }
.mega__sub a { display: block; font-size: .8125rem; color: var(--ink-500); padding: .2rem 0; text-decoration: none; }
.mega__sub a:hover { color: var(--brand-700); }
.mega__aside {
  background: var(--brand-50); border-radius: var(--r-lg); padding: 1.5rem;
  border: 1px solid var(--brand-100);
}
.mega__aside h4 { font-size: .9375rem; margin-bottom: .4rem; }
.mega__aside p { font-size: .8125rem; color: var(--ink-500); margin-bottom: 1rem; }

.nav-cta { display: inline-flex; gap: .5rem; }
.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--ink-200); border-radius: var(--r-sm); cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink-800); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-800); border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 74px 0 0; background: #fff; display: none;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    padding: 1rem var(--gut) 3rem; border-top: 1px solid var(--ink-200);
  }
  .nav.is-open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav__toggle { width: 100%; justify-content: space-between; padding: .9rem .25rem; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--ink-100); }
  .mega {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; display: none; background: var(--ink-50);
  }
  .mega.is-open { display: block; }
  .has-mega:hover .mega:not(.is-open), .has-mega:focus-within .mega:not(.is-open) { display: none; }
  .mega__inner { grid-template-columns: 1fr; padding: 1rem; gap: 1.25rem; }
  .mega__aside { display: none; }
  .nav-cta { display: none; }
}
@media (max-width: 420px) {
  .brand__tag { display: none; }
}

/* --- Breadcrumbs --------------------------------------------------------- */
.crumbs { border-bottom: 1px solid var(--ink-100); background: var(--ink-50); }
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  list-style: none; margin: 0; padding: .8rem 0; font-size: .8125rem;
}
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-400); }
.crumbs li + li::before { content: "/"; color: var(--ink-300); }
.crumbs a { color: var(--ink-500); text-decoration: none; }
.crumbs a:hover { color: var(--brand-700); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-700); font-weight: 500; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 130% at 85% 0%, #3a0bb5 0%, #1d0459 45%, #0b0a12 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(90% 80% at 60% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 80% at 60% 20%, #000 20%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -190px;
  background: radial-gradient(circle, rgba(102, 97, 251, .5), transparent 62%);
  filter: blur(30px); pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: #fff; }
.hero p { color: rgba(255,255,255,.76); }

/* Home hero sits on a photograph; the gradient above it keeps the headline
   readable and holds the brand purple, darkest over the left text column. */
.hero--home {
  padding-block: clamp(4rem, 9vw, 8rem);
  background-image:
    linear-gradient(100deg, rgba(11,10,18,.94) 0%, rgba(29,4,89,.86) 42%, rgba(58,11,181,.55) 100%),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--home .hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero--home .lede { color: rgba(255,255,255,.78); max-width: 34rem; }
@media (max-width: 900px) { .hero--home .hero__grid { grid-template-columns: 1fr; } }

.hero--page { padding-block: clamp(3rem, 6.5vw, 5.5rem); }
.hero--page .wrap > * { max-width: 44rem; }
.hero--page .lede { color: rgba(255,255,255,.76); }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; margin-top: clamp(2.5rem, 5vw, 4rem);
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-lg); overflow: hidden;
}
.hero__stat { background: rgba(11,10,18,.34); padding: 1.4rem 1.25rem; }
.hero__stat dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .35rem; }
.hero__stat dd { margin: 0; font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }

/* Blueprint panel in home hero */
.blueprint {
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-xl);
  background: rgba(11,10,18,.36); padding: 1.5rem; backdrop-filter: blur(6px);
}
.blueprint__label {
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-300); margin-bottom: 1rem; display: flex; justify-content: space-between;
}
.blueprint__list { list-style: none; margin: 0; padding: 0; }
.blueprint__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px dashed rgba(255,255,255,.14);
  font-size: .875rem; color: rgba(255,255,255,.82); margin: 0;
}
.blueprint__list li:last-child { border-bottom: 0; }
.blueprint__list a { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 500; }
.blueprint__list a:hover { color: #fff; text-decoration: underline; }
.blueprint__list span { font-family: var(--font-mono); font-size: .75rem; color: var(--brand-300); }

/* --- Cards --------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-lg);
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: .5rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--brand-700); }
.card p { font-size: .9375rem; color: var(--ink-500); }
.card > :last-child { margin-bottom: 0; }
.card__icon {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1.1rem;
  border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.card__icon svg { width: 22px; height: 22px; }
.card__links { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--ink-100); position: relative; z-index: 1; }
.card__links li { margin: 0; }
.card__links a {
  display: flex; align-items: center; gap: .4rem; padding: .3rem 0;
  font-size: .875rem; color: var(--ink-600); text-decoration: none;
}
.card__links a::before { content: "›"; color: var(--brand-500); font-weight: 700; }
.card__links a:hover { color: var(--brand-700); }
.card__foot { margin-top: auto; padding-top: 1.1rem; }

.card--flat { background: var(--ink-50); border-color: transparent; }
.card--flat:hover { background: #fff; border-color: var(--ink-200); }

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding-top: 2.9rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; color: var(--brand-600);
  border: 1px solid var(--brand-100); background: var(--brand-50);
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%;
}
.step::after { content: ""; position: absolute; top: 1.05rem; left: 2.6rem; right: 0; height: 1px; background: var(--ink-200); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.0625rem; margin-bottom: .4rem; }
.step p { font-size: .9375rem; color: var(--ink-500); margin: 0; }
@media (max-width: 700px) { .step::after { display: none; } }

/* Checklist */
.checks { list-style: none; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li { position: relative; padding-left: 1.85rem; margin: 0; font-size: .9375rem; color: var(--ink-600); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--brand-50); border: 1px solid var(--brand-100);
}
.checks li::after {
  content: ""; position: absolute; left: .36rem; top: .68em; width: .42rem; height: .22rem;
  border-left: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: rotate(-45deg);
}

/* Spec / definition table */
.spec { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec th, .spec td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--ink-200); vertical-align: top; }
.spec thead th { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400); background: var(--ink-50); }
.spec tbody th { font-weight: 600; color: var(--ink-900); width: 34%; }
.spec td { color: var(--ink-500); }
.table-scroll { overflow-x: auto; border: 1px solid var(--ink-200); border-radius: var(--r-lg); }

/* --- Article body -------------------------------------------------------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.25em; }
.prose h3 { margin-top: 1.9em; }
.prose > :first-child { margin-top: 0; }
.prose ul li::marker { color: var(--brand-500); }
.prose blockquote {
  margin: 2rem 0; padding: .35rem 0 .35rem 1.5rem; border-left: 3px solid var(--brand-500);
  font-size: 1.0625rem; color: var(--ink-600); font-style: italic;
}

/* Split content + sticky sidebar */
.layout-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 940px) { .layout-split { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 98px; display: grid; gap: 1.25rem; }
@media (max-width: 940px) { .sidebar { position: static; } }
.side-box { border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 1.4rem; background: #fff; }
.side-box h3 { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin-bottom: .9rem; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { margin: 0; border-bottom: 1px solid var(--ink-100); }
.side-box li:last-child { border-bottom: 0; }
.side-box li a { display: block; padding: .55rem 0; font-size: .9375rem; color: var(--ink-600); text-decoration: none; }
.side-box li a:hover { color: var(--brand-700); }
.side-box li a[aria-current="page"] { color: var(--brand-700); font-weight: 600; }
.side-box--cta { background: var(--brand-900); border-color: var(--brand-800); color: #fff; }
.side-box--cta h3 { color: var(--brand-300); }
.side-box--cta p { color: rgba(255,255,255,.72); font-size: .875rem; }

/* Table of contents */
.toc { border: 1px solid var(--ink-200); border-left: 3px solid var(--brand-500); border-radius: var(--r-md); padding: 1.25rem 1.4rem; background: var(--ink-50); margin-bottom: 2rem; }
.toc p { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.15em; font-size: .9375rem; }
.toc li { margin-bottom: .3em; }
.toc a { color: var(--ink-600); text-decoration: none; }
.toc a:hover { color: var(--brand-700); text-decoration: underline; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--ink-200); }
.faq details { border-bottom: 1px solid var(--ink-200); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 600; color: var(--ink-900); font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.55rem; width: .6rem; height: .6rem;
  border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.8rem; }
.faq details > div { padding: 0 2.5rem 1.4rem 0; color: var(--ink-500); }
.faq details > div > :last-child { margin-bottom: 0; }

/* --- Related links mesh -------------------------------------------------- */
.linkmesh { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.linkmesh h3 { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin-bottom: .8rem; }
.linkmesh ul { list-style: none; padding: 0; margin: 0; }
.linkmesh li { margin-bottom: .1rem; }
.linkmesh a { display: block; padding: .35rem 0; font-size: .9375rem; color: var(--ink-600); text-decoration: none; }
.linkmesh a:hover { color: var(--brand-700); text-decoration: underline; }

.pill-links { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.pill-links li { margin: 0; }
.pill-links a {
  display: inline-block; padding: .45rem .9rem; border: 1px solid var(--ink-200); border-radius: 100px;
  font-size: .875rem; color: var(--ink-600); text-decoration: none; background: #fff;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.pill-links a:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(115deg, #2b0888 0%, #4c0ee9 58%, #6661fb 100%);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(80% 100% at 20% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 100% at 20% 50%, #000, transparent 75%);
}
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-band h2 { color: #fff; margin-bottom: .35rem; max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 46ch; }

/* --- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink-800); }
.field .req { color: var(--brand-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .9375rem; padding: .8rem .9rem; color: var(--ink-800);
  border: 1px solid var(--ink-200); border-radius: var(--r-md); background: #fff; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .8125rem; color: var(--ink-400); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; margin: 0; align-items: start; }
.contact-list .ic {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md);
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700);
}
.contact-list .ic svg { width: 19px; height: 19px; }
.contact-list dt, .contact-list strong { display: block; font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; margin-bottom: .15rem; }
.contact-list a { color: var(--ink-800); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--brand-700); text-decoration: underline; }

/* --- Insights ------------------------------------------------------------ */
.post-card { display: flex; flex-direction: column; }
.post-card .meta { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-400); margin-bottom: .6rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; font-size: .875rem; color: var(--ink-400); margin-bottom: 1.5rem; }
.post-meta .tag { display: inline-block; padding: .2rem .6rem; border-radius: 100px; background: var(--brand-50); color: var(--brand-700); font-weight: 600; font-size: .75rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.66); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .9375rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px)  { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px)  { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { max-width: 30ch; }
@media (max-width: 1000px) { .footer-brand { grid-column: 1 / -1; max-width: 46ch; } }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .875rem; margin-top: 1rem; }
.footer-col h3 { font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .1rem; }
.footer-col a { display: block; padding: .28rem 0; color: rgba(255,255,255,.6); text-decoration: none; font-size: .875rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.75rem; font-size: .8125rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* --- 404 ----------------------------------------------------------------- */
.err-code { font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--brand-100); line-height: 1; letter-spacing: -.04em; }

/* --- Print --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .crumbs, .sidebar { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
