/* Heuristicworks — editorial consultancy look (redesign 2026-11-24)
   Tokens: page #F7F5F1 · card #FFFFFF · ink #141414 · muted #5A5A5A · rule #E3DFD7 · accent #B4431C */

html { overflow-x: clip; scroll-behavior: smooth; }
body { background: #F7F5F1; color: #141414; font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(180, 67, 28, 0.18); }

h1, h2, h3, .serif { font-family: 'Arial Black', 'Archivo Black', Impact, sans-serif; font-weight: 900; letter-spacing: -0.02em; }

/* tiny section label: tracked uppercase, the only place uppercase is used */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B4431C;
  margin-bottom: 14px;
}

.rule { border-top: 1px solid #E3DFD7; }

/* buttons: square, no pills */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; line-height: 1;
  padding: 14px 22px; border-radius: 2px;
  border: 1px solid #B4431C; transition: background .15s, color .15s;
}
.btn-primary { background: #B4431C; color: #fff; }
.btn-primary:hover { background: #963715; border-color: #963715; }
.btn-secondary { background: transparent; color: #141414; border-color: #141414; }
.btn-secondary:hover { background: #141414; color: #fff; }

a.text-link { color: #B4431C; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.text-link:hover { color: #963715; }

/* nav */
.nav-link { font-size: 14px; color: #5A5A5A; transition: color .15s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #141414; }
.nav-drop { position: relative; }
.nav-drop > .menu {
  position: absolute; top: 100%; left: -16px; min-width: 300px; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-drop:hover > .menu, .nav-drop:focus-within > .menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop .menu-inner { background: #fff; border: 1px solid #E3DFD7; padding: 8px; box-shadow: 0 8px 24px rgba(20,20,20,.06); }
.nav-drop .menu a { display: block; padding: 10px 12px; font-size: 14px; color: #141414; }
.nav-drop .menu a small { display: block; font-size: 12px; color: #5A5A5A; margin-top: 2px; }
.nav-drop .menu a:hover { background: #F7F5F1; }

.nav-bar { background: rgba(247,245,241,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #E3DFD7; }

.mobile-menu { transform: translateX(100%); transition: transform .25s ease; }
.mobile-menu.open { transform: none; }

/* proposition cards: white, hairline border, square */
.prop-card { position: relative; background: #fff; border: 1px solid #E3DFD7; border-radius: 2px; padding: 22px 26px; display: flex; flex-direction: column; }
.prop-card h3 { font-size: 20px; line-height: 1.25; margin-bottom: 6px; padding-right: 36px; }
.prop-card ul { margin: 0; padding: 0; list-style: none; }
.prop-card li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.4; color: #3a3a3a; margin-bottom: 4px; }
.prop-card li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; border-top: 1px solid #B4431C; }
.prop-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid #E3DFD7; position: relative; }

.label-small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #5A5A5A; font-weight: 500; }

.stat { font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em; color: #141414; white-space: nowrap; }

.status { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5A5A5A; border: 1px solid #E3DFD7; padding: 3px 8px; border-radius: 2px; background: #fff; }

:focus-visible { outline: 2px solid #B4431C; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* hero: hairline grid, fading out toward the left and bottom so text stays clean */
.hero-bg { overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, #CCC9C2 1px, transparent 1px),
    linear-gradient(to bottom, #CCC9C2 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 75%);
          mask-image: linear-gradient(100deg, transparent 15%, #000 75%);
}
.hero-art { position: absolute; top: 0; right: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9;
  -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 70%);
          mask-image: linear-gradient(100deg, transparent 25%, #000 70%); }
@media (max-width: 1023px) { .hero-art { opacity: .35; } }

/* hero lead-in: bold, accent colour */
.eyebrow-hero { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #B4431C; }

/* compact proposition cards: number sits top-right, Details link shares the price line */
.card-num { position: absolute; top: 22px; right: 26px; font-size: 11px; letter-spacing: .14em; color: #5A5A5A; font-weight: 700; }
@media (min-width: 768px) { .prop-meta > a.text-link { position: absolute; right: 0; top: 12px; margin: 0; } }
.prop-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
.prop-meta .prop-links a.text-link { position: static; margin: 0; }

/* section lead-ins match the hero: bold */
.eyebrow-bold { font-size: 13px; font-weight: 800; letter-spacing: .14em; }

/* faint hairline grid on light sections, fading in from the right */
.grid-bg { position: relative; overflow: hidden; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, #E3DFD7 1px, transparent 1px),
    linear-gradient(to bottom, #E3DFD7 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 100%);
          mask-image: linear-gradient(100deg, transparent 45%, #000 100%);
}
.grid-bg > * { position: relative; }

.card-lead { color: #B4431C; font-weight: 700; }

/* how-we-work step lead-ins: same bold orange as the section labels */
.label-small.step-label { color: #B4431C; font-size: 13px; font-weight: 800; letter-spacing: .14em; }

/* case study template (work.html) */
.case { background: #fff; border: 1px solid #E3DFD7; border-top: 3px solid #141414; border-radius: 2px; scroll-margin-top: 96px; }
.case-head { padding: 28px 32px 24px; border-bottom: 1px solid #E3DFD7; }
.case-head h2 { max-width: 40ch; }
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 22px; }
@media (min-width: 768px) { .case-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.case-meta dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #5A5A5A; font-weight: 500; }
.case-meta dd { margin-top: 4px; font-size: 14px; color: #141414; }
.case-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .case-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } .case-col + .case-col { border-left: 1px solid #E3DFD7; } }
.case-col { padding: 26px 32px 30px; }
@media (max-width: 767px) { .case-col + .case-col { border-top: 1px solid #E3DFD7; } }
.case-list { margin: 16px 0 0; padding: 0; list-style: none; }
.case-list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; color: #3a3a3a; margin-bottom: 6px; }
.case-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; border-top: 1px solid #B4431C; }
.case-outcome { background: #F7F5F1; box-shadow: inset 0 3px 0 #B4431C; }
.case-stat { padding: 12px 0; border-top: 1px solid #E3DFD7; }
.stat-sm { font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-weight: 700; font-size: 2rem; line-height: 1.05; letter-spacing: -0.02em; color: #141414; margin-bottom: 4px; }
.case-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px; border-top: 1px solid #E3DFD7; }
.case-quote { font-size: 14px; color: #5A5A5A; font-style: italic; }

/* services catalog + manager */
[hidden] { display: none !important; }

.mc-banner { margin-top: 20px; padding: 12px 16px; border-left: 3px solid #B4431C; background: #fff; font-size: 14px; }
.mc-flash { margin-top: 12px; font-size: 14px; color: #141414; }
.mc-panel { background: #fff; border: 1px solid #E3DFD7; border-radius: 2px; padding: 20px 22px; }
.mc-panel .btn { justify-content: center; width: 100%; }
.mc-steps { margin: 18px 0 0; padding-left: 20px; font-size: 13.5px; color: #3a3a3a; line-height: 1.5; }
.mc-steps li { margin-bottom: 6px; }
.mc-steps code, .mc-panel code, aside code { font-size: 12px; background: #F7F5F1; padding: 1px 5px; border: 1px solid #E3DFD7; }
.mc-group { margin-bottom: 28px; }
.mc-group-title { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #B4431C; padding-bottom: 8px; border-bottom: 1px solid #141414; font-family: Inter, system-ui, sans-serif; }
.mc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #E3DFD7; }
.mc-name { font-size: 15px; font-weight: 600; color: #141414; }
.mc-sub { font-size: 12.5px; color: #5A5A5A; margin-top: 2px; }
.mc-actions { display: flex; gap: 6px; flex-shrink: 0; }
.mc-btn { font-size: 13px; padding: 6px 10px; border: 1px solid #E3DFD7; background: #fff; border-radius: 2px; cursor: pointer; min-width: 34px; }
.mc-btn:hover:not(:disabled) { border-color: #141414; }
.mc-btn:disabled { opacity: .35; cursor: default; }
.mc-editor { background: #fff; border: 1px solid #141414; border-radius: 2px; padding: 24px 26px; margin-bottom: 28px; }
.mc-label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #5A5A5A; font-weight: 600; margin: 14px 0 5px; }
.mc-input { width: 100%; font: inherit; font-size: 14.5px; padding: 9px 11px; border: 1px solid #CCC9C2; border-radius: 2px; background: #fff; color: #141414; }
.mc-input:focus { outline: 2px solid #B4431C; outline-offset: 1px; border-color: #B4431C; }

/* service catalog cards (generated by scripts/build-catalog.mjs) */
.svc-filterbar { position: sticky; top: 72px; z-index: 30; background: rgba(247,245,241,.96); backdrop-filter: blur(8px); border-top: 1px solid #E3DFD7; border-bottom: 1px solid #E3DFD7; padding: 14px 0 12px; }
.svc-filter-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.svc-filter-row > .label-small { width: 64px; flex-shrink: 0; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border: 1px solid #E3DFD7; background: #fff; color: #141414; border-radius: 2px; cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { border-color: #141414; }
.chip[aria-pressed="true"] { background: #141414; border-color: #141414; color: #fff; }
.svc-count { font-size: 12.5px; color: #5A5A5A; margin-top: 4px; }
@media (max-width: 767px) { .svc-filter-row { align-items: flex-start; flex-direction: column; gap: 6px; } .svc-filterbar { position: static; } }

.cat-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid #141414; }
.cat-for { font-size: 12px; letter-spacing: .04em; color: #B4431C; font-weight: 600; margin-bottom: 8px; }

.svc-card { background: #fff; border: 1px solid #E3DFD7; border-radius: 2px; padding: 22px 24px; display: flex; flex-direction: column; scroll-margin-top: 150px; transition: opacity .2s; }
.svc-card.svc-flagship { border-top: 3px solid #B4431C; padding: 26px 28px; }
.svc-card.is-dim { opacity: .28; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.svc-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.svc-num { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #B4431C; font-variant-numeric: tabular-nums; }
.svc-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #5A5A5A; font-weight: 500; }
.svc-card h3 { font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
.svc-flagship h3 { font-size: 22px; }
.svc-problem { font-style: italic; font-size: 14.5px; line-height: 1.45; color: #3a3a3a; margin-bottom: 12px; }
.svc-facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid #E3DFD7; border-bottom: 1px solid #E3DFD7; margin: 10px 0 14px; }
.svc-facts > div { padding: 10px 12px; border-left: 1px solid #E3DFD7; min-width: 0; }
.svc-facts > div:first-child { border-left: 0; padding-left: 0; }
.svc-facts dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #5A5A5A; font-weight: 500; }
.svc-facts dd { margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: #141414; font-weight: 600; }
.svc-note { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: #5A5A5A; }
.svc-card .case-list { margin-top: 0; }
.svc-continues { font-size: 13px; color: #3a3a3a; margin: 4px 0 14px; line-height: 1.5; }
.svc-continues em { color: #5A5A5A; }
.svc-cta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.svc-cta .btn { padding: 11px 16px; font-size: 13px; }
@media (max-width: 767px) { .svc-facts { grid-auto-flow: row; } .svc-facts > div { border-left: 0; padding-left: 0; border-top: 1px solid #E3DFD7; } .svc-facts > div:first-child { border-top: 0; } }

.mc-two { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 640px) { .mc-two { grid-template-columns: 1fr 1fr; } }
.mc-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mc-check { font-size: 13.5px; color: #141414; display: inline-flex; align-items: center; gap: 6px; }

/* nav dropdown divider + the two practices under the catalog */
.nav-drop .menu .menu-rule { border: 0; border-top: 1px solid #E3DFD7; margin: 6px 4px; }
.nav-drop > .menu { min-width: 340px; }
.cat-group { scroll-margin-top: 150px; }
.svc-more { display: block; background: #fff; border: 1px solid #E3DFD7; border-radius: 2px; padding: 26px 28px; transition: border-color .15s; }
.svc-more:hover { border-color: #141414; }
.svc-more h3 { font-size: 20px; line-height: 1.25; margin: 8px 0 10px; }
.svc-more p { font-size: 14.5px; color: #5A5A5A; line-height: 1.5; margin-bottom: 14px; }
.svc-more .text-link { color: #B4431C; text-decoration: underline; text-underline-offset: 3px; }

/* contact page */
.path-card { background: #fff; border: 1px solid #E3DFD7; border-radius: 2px; padding: 28px; display: flex; flex-direction: column; }
.path-card.path-primary { border-top: 3px solid #B4431C; }
.path-box { border-top: 1px solid #E3DFD7; padding: 16px 0 6px; margin-bottom: 18px; }
.path-box .case-list { margin-top: 0; }
.path-card .btn { width: 100%; justify-content: center; }
.contact-row { display: flex; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid #E3DFD7; }
.contact-row dt { width: 84px; flex-shrink: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #5A5A5A; font-weight: 500; }
.contact-row dd { font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* proof strip: a phrase instead of a number */
.stat-text { font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-weight: 700; font-size: clamp(0.9rem, 1.15vw, 1rem); line-height: 1.5; letter-spacing: 0; color: #141414; max-width: 34ch; margin-left: auto; margin-right: auto; }

/* due-diligence page */
.dd-stage { margin-bottom: 56px; }
.dd-stage:last-child { margin-bottom: 0; }
.dd-title { font-family: 'Arial Black', 'Archivo Black', Impact, sans-serif; font-weight: 900; font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; color: #141414; }
.dd-desc { font-size: 14.5px; line-height: 1.5; color: #5A5A5A; margin-bottom: 16px; }
.dd-deliv { margin-top: auto; padding-top: 14px; border-top: 1px solid #E3DFD7; font-size: 14px; line-height: 1.45; color: #141414; }
.dd-pill { font-size: 14px; font-weight: 600; padding: 9px 16px; border: 1px solid #141414; border-radius: 2px; background: #F7F5F1; }
.dd-apart { border-top: 1px solid #E3DFD7; padding-top: 16px; }
.dd-engage { padding: 0 24px; }
.dd-engage:first-child { padding-left: 0; }
.cov-bar { position: sticky; top: 72px; z-index: 30; margin-bottom: 28px; background: #fff; border: 1px solid #E3DFD7; border-left: 3px solid #B4431C; border-radius: 2px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cov-bar[hidden] { display: none; }
.svc-card.is-match { border-color: #B4431C; }
@media (max-width: 1023px) { .dd-engage { padding: 0; } }

/* local business tools page */
.tool-next { border: 1px dashed #CCC9C2; border-radius: 2px; padding: 26px 30px; background: transparent; }

/* classes carried over from the old segment/product pages */
.feature-card, .stage-card { transition: border-color .15s; }
.feature-card:hover, .stage-card:hover { border-color: #141414; }
.stage-active { background: #fff; border-color: #B4431C; }
.stat-number { font-family: 'Arial Black', 'Archivo Black', Impact, sans-serif; font-weight: 900; line-height: 1; letter-spacing: -0.02em; color: #141414; }
.urgency-pulse { animation: urgency-pulse 2.2s ease-in-out infinite; }
@keyframes urgency-pulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
.econ-row { border-bottom: 1px solid #E3DFD7; }
.econ-row:last-child { border-bottom: 0; }

/* trust page (carried over, restyled) */
.dot-amber, .dot-blue, .dot-green { background: #B4431C; }
.pill-amber, .pill-blue, .pill-green { background: #F7F5F1; color: #141414; border: 1px solid #CCC9C2; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.section-divider { border: none; border-top: 1px solid #E3DFD7; margin: 3.5rem 0; }
.status-pill { display: inline-flex; align-items: center; gap: .375rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 2px; }
.trust-card { background: #fff; border: 1px solid #E3DFD7; border-radius: 2px; padding: 1.75rem; }
.trust-card h3 { font-size: 1rem; margin-bottom: .9rem; }
.trust-card p, .trust-card li { color: #5A5A5A; font-size: .875rem; line-height: 1.75; }
.trust-card strong { color: #141414; font-weight: 600; }
.trust-card ul { padding-left: 1.25rem; }
.trust-card li { list-style: disc; margin-bottom: .2rem; }
.trust-card a { color: #B4431C; text-decoration: underline; text-underline-offset: 3px; }
.trust-card a:hover { color: #963715; }
