/* mishamanko.com design system.
   One type scale (Bringhurst 14/18/21/24/36/48/96). Archivo Black capitals only for display headings.
   Monospace only for machine output (logs, paths, code). Red is a plane or a bar, never a highlighted word.
   Small red text uses --red-ink (#b8261a, 5.4:1 on paper); brand red #d9301c is for large type and fills. */

:root {
  --ink: #111111; --paper: #f1ece4; --paper-deep: #e6dfd0;
  --red: #d9301c; --red-ink: #b8261a; --red-on-dark: #ef5b47;
  --yellow: #f2c13d; --blue: #1e4ba0; --mute: #5e5d58; --line-dark: #2f323b;
  --fs-display: 'Archivo Black', 'Helvetica Neue', Arial, sans-serif;
  --fs-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --fs-mono: 'JetBrains Mono', Menlo, monospace;
  --t-xs: 14px; --t-m: 18px; --t-lead: 21px; --t-l: 24px;
  --t-xl: clamp(28px, 2.6vw, 36px); --t-2xl: clamp(32px, 3.4vw, 48px); --t-3xl: clamp(44px, 6.9vw, 96px);
  --measure: 66ch;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--fs-sans); font-size: var(--t-m); line-height: 1.6; color: var(--ink); background: var(--paper); overflow-x: hidden; overflow-wrap: break-word; }
::selection { background: var(--yellow); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2 { font-family: var(--fs-display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.95; text-wrap: balance; }
h3, h4 { font-family: var(--fs-sans); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em, h4 em { font-style: normal; color: inherit; }
code { font-family: var(--fs-mono); font-size: 0.85em; background: var(--paper-deep); padding: 1px 6px; overflow-wrap: anywhere; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap, .wrap-narrow { padding: 0 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Links and buttons ---------- */
.ui-link, .body p a, .cs-prose a, .ui-prose a, .ui-section p a:not([class]), .ui-hero p a:not([class]), .ui-page-hero p a:not([class]), .ui-terms a:not([class]) { font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ui-link:hover, .body p a:hover, .cs-prose a:hover, .ui-prose a:hover, .ui-section p a:not([class]):hover, .ui-hero p a:not([class]):hover, .ui-page-hero p a:not([class]):hover, .ui-terms a:not([class]):hover { color: var(--red-ink); }
.ui-btn { display: inline-block; background: var(--ink); color: var(--paper); font-family: var(--fs-sans); font-weight: 700; font-size: var(--t-m); line-height: 1.2; padding: 18px 30px; border: 2px solid var(--ink); text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.ui-btn:hover { background: var(--red-ink); border-color: var(--red-ink); }
.ui-btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ui-btn-light:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--paper); padding: 16px 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.nav-brand { font-family: var(--fs-display); font-size: 18px; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; text-decoration: none; justify-self: start; }
.nav-brand::after { content: "."; color: var(--red); }
.nav-links { display: flex; gap: 28px; justify-content: center; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; transition: border-color 0.15s; }
.nav-links a:hover { border-bottom-color: var(--ink); }
.nav-links a.active { border-bottom-color: var(--red); }
.nav-cta { justify-self: end; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 700; padding: 11px 18px; text-decoration: none; transition: background 0.15s; }
.nav-cta:hover { background: var(--red-ink); }
.nav-toggle { display: none; background: transparent; border: 2px solid var(--ink); width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; justify-self: end; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s, top 0.2s; }
.nav-toggle span:nth-child(1) { top: 13px; } .nav-toggle span:nth-child(2) { top: 20px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 76px; left: 0; right: 0; z-index: 99; background: var(--paper); border-bottom: 6px solid var(--ink); padding: 12px 20px 28px; max-height: calc(100vh - 76px); overflow-y: auto; transform: translateY(-120%); transition: transform 0.25s ease-out; }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu li + li { border-top: 2px solid var(--paper-deep); }
.mobile-menu a { display: block; padding: 16px 0; font-size: var(--t-l); font-weight: 700; text-decoration: none; }
.mobile-menu .arrow { display: none; }
.mobile-menu-cta { margin-top: 16px; background: var(--ink); color: var(--paper) !important; text-align: center; padding: 18px !important; font-size: var(--t-m) !important; }
.mobile-menu-cta:hover, .mobile-menu-cta:focus { background: var(--red-ink); }
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; padding: 16px 20px; gap: 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { display: block; }
}

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #c9c6bf; padding: 72px 0 36px; }
main:has(> .ui-plane-ink:last-child) + footer { border-top: 2px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { font-family: var(--fs-display); font-size: 22px; text-transform: uppercase; color: var(--paper); margin-bottom: 12px; }
.footer-brand::after { content: "."; color: var(--red); }
.footer-tag { font-size: 15px; line-height: 1.55; max-width: 34ch; }
.footer-h { font-size: var(--t-xs); font-weight: 700; color: var(--paper); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { font-size: 15px; text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--red-on-dark); }
.footer-youtube .yt-card { display: block; border-top: 6px solid var(--red); padding-top: 12px; text-decoration: none; }
.footer-youtube .yt-card-label { font-size: var(--t-xs); color: #a9a7a0; }
.footer-youtube .yt-card-handle { font-size: var(--t-m); font-weight: 700; color: var(--paper); margin: 2px 0; }
.footer-youtube .yt-card-meta { font-size: var(--t-xs); color: #a9a7a0; }
.footer-youtube .arrow { display: none; }
.footer-note { font-size: var(--t-xs); line-height: 1.55; color: #8a8984; max-width: 80ch; margin-bottom: 20px; }
.footer-bottom { border-top: 2px solid var(--line-dark); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: var(--t-xs); color: #8a8984; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page structure ---------- */
.ui-section { padding: 120px 0; }
.ui-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.ui-h1 { font-size: var(--t-3xl); line-height: 0.92; letter-spacing: -0.035em; max-width: 20ch; }
.ui-h2 { font-size: var(--t-2xl); line-height: 0.98; letter-spacing: -0.025em; max-width: 18ch; margin-bottom: 32px; }
.ui-h3 { font-size: var(--t-l); margin-bottom: 10px; }
.ui-prose p, .ui-section p, .ui-plane p { max-width: var(--measure); }
.ui-prose p + p, .ui-section p + p, .ui-plane p + p { margin-top: 16px; }
.ui-lead { font-size: var(--t-lead); line-height: 1.5; max-width: 34em; }
.ui-note { margin-top: 32px; font-size: var(--t-xs); color: var(--mute); }
.ui-plane { padding: 120px 0; }
.ui-plane-blue { background: var(--blue); color: var(--paper); }
.ui-plane-red { background: var(--red); color: var(--paper); }
.ui-plane-ink { background: var(--ink); color: var(--paper); }
.ui-plane-deep { background: var(--paper-deep); }
.ui-plane-blue a:not([class]), .ui-plane-ink a:not([class]) { color: var(--paper); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ui-plane-blue a:not([class]):hover, .ui-plane-ink a:not([class]):hover { color: var(--yellow); }
.ui-plane-blue .ui-link, .ui-plane-ink .ui-link { color: var(--paper); text-decoration-color: var(--yellow); }
.ui-plane-blue .ui-link:hover, .ui-plane-ink .ui-link:hover { color: var(--yellow); }
.ui-hero + .ui-section { padding-top: 96px; }
.ui-page-hero + .ui-section-flush { padding-top: 0; }
.ui-prose h2 { font-size: var(--t-xl); line-height: 1; margin: 64px 0 22px; max-width: 24ch; }
.ui-prose h2:first-child { margin-top: 0; }
.ui-prose .pull { max-width: 22ch; }

/* Hero types: landing (offer + signature element) and section (title + intro). Same top offset everywhere. */
.ui-hero { padding: 136px 0 104px; }
.ui-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; margin-top: 44px; }
.ui-page-hero { padding: 136px 0 88px; }
.ui-page-hero .ui-lead { margin-top: 32px; }
.ui-terms { display: grid; grid-template-columns: auto auto 1fr; gap: 24px; margin-top: 36px; padding-top: 18px; border-top: 6px solid var(--ink); }
.ui-terms dt { font-size: var(--t-xs); color: var(--mute); font-weight: 600; margin-bottom: 4px; }
.ui-terms dd { font-weight: 600; line-height: 1.35; }
.ui-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.ui-terms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.ui-email { font-family: var(--fs-display); font-size: var(--t-xl); line-height: 1.1; letter-spacing: -0.02em; color: var(--paper); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.ui-email:hover { color: var(--yellow); }

/* The access log: the site's signature element and its only load animation */
.ui-log { background: var(--ink); color: var(--paper); border-top: 10px solid var(--red); font-family: var(--fs-mono); font-size: var(--t-xs); }
.ui-log-head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; color: #a9a7a0; border-bottom: 1px solid var(--line-dark); }
.ui-log-body { list-style: none; padding: 14px 0; }
.ui-log-body li { display: grid; grid-template-columns: 76px 124px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 7px 22px; line-height: 1.5; }
.ui-log-body time { color: #8a8c94; }
.ui-log-body b { font-weight: 600; }
.ui-log-body code { background: none; padding: 0; font-size: inherit; color: #c9c6bf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-log-body s { text-decoration: none; text-align: right; color: #a9a7a0; }
.ui-log-body s.bad { color: var(--red-on-dark); font-weight: 700; }
.ui-log-body .ui-log-finding { background: var(--yellow); color: var(--ink); margin-top: 10px; padding: 14px 22px; font-weight: 700; }
.ui-log-body .ui-log-finding time, .ui-log-body .ui-log-finding code, .ui-log-body .ui-log-finding s { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .ui-log-body li { animation: ui-row 0.35s ease-out both; }
  .ui-log-body li:nth-child(1) { animation-delay: 0.25s; } .ui-log-body li:nth-child(2) { animation-delay: 0.55s; }
  .ui-log-body li:nth-child(3) { animation-delay: 0.85s; } .ui-log-body li:nth-child(4) { animation-delay: 1.15s; }
  .ui-log-body li:nth-child(5) { animation-delay: 1.45s; } .ui-log-body li:nth-child(6) { animation-delay: 1.75s; }
  .ui-log-body li:nth-child(7) { animation-delay: 2.3s; }
}
@keyframes ui-row { from { opacity: 0; } to { opacity: 1; } }

/* Colour-barred items: results, projects, related reading */
.ui-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ui-bar-item { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 10px solid var(--red); text-decoration: none; color: inherit; }
.ui-bar-item:nth-child(3n+2) { border-top-color: var(--blue); }
.ui-bar-item:nth-child(3n+3) { border-top-color: var(--yellow); }
.ui-bar-num { font-family: var(--fs-display); font-size: var(--t-xl); line-height: 1; letter-spacing: -0.02em; }
.ui-bar-kicker { font-size: var(--t-xs); font-weight: 700; color: var(--mute); }
.ui-bar-title { font-size: var(--t-l); font-weight: 700; line-height: 1.25; }
.ui-bar-text { line-height: 1.55; }
.ui-bar-link { margin-top: auto; font-size: var(--t-xs); font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a.ui-bar-item:hover .ui-bar-link, a.ui-bar-item:hover .ui-bar-title { color: var(--red-ink); }
.ui-feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 64px; padding-top: 28px; border-top: 10px solid var(--red); text-decoration: none; color: inherit; }
.ui-feature-title { font-family: var(--fs-display); text-transform: uppercase; font-size: var(--t-2xl); line-height: 0.98; letter-spacing: -0.025em; text-wrap: balance; }
.ui-feature-body { display: flex; flex-direction: column; gap: 12px; max-width: var(--measure); }
.ui-feature:hover .ui-bar-link { color: var(--red-ink); }
.ui-tool { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 72px; padding-top: 28px; border-top: 10px solid var(--red); }
.ui-tool + .ui-tool { margin-top: 96px; border-top-color: var(--blue); }
.ui-tool .ui-bar-kicker { margin-bottom: 12px; }
.ui-tool .ui-h2 { font-size: var(--t-xl); max-width: 20ch; margin-bottom: 24px; }
.ui-tool .ui-facts { margin-top: 0; }

.ui-points { display: grid; gap: 44px; padding-top: 6px; }
.ui-linklist { list-style: none; margin-top: 36px; border-top: 6px solid var(--ink); }
.ui-linklist a { display: block; padding: 14px 0; border-bottom: 2px solid var(--ink); font-size: var(--t-l); font-weight: 700; text-decoration: none; }
.ui-linklist a:hover { color: var(--red-ink); }
.ui-table { width: 100%; border-collapse: collapse; }
.ui-table caption { text-align: left; font-size: var(--t-xs); padding-bottom: 14px; opacity: 0.85; }
.ui-table th, .ui-table td { padding: 20px 0; border-bottom: 2px solid currentColor; text-align: left; vertical-align: baseline; }
.ui-plane .ui-table th, .ui-plane .ui-table td { border-bottom-color: rgba(241, 236, 228, 0.35); }
.ui-table th { font-weight: 600; }
.ui-table td { font-family: var(--fs-display); font-size: var(--t-2xl); text-align: right; letter-spacing: -0.03em; line-height: 1; }
.ui-table .ui-zero { color: var(--yellow); }

.ui-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.ui-steps li { counter-increment: step; }
.ui-steps li::before { content: counter(step); display: block; font-family: var(--fs-display); font-size: var(--t-2xl); line-height: 1; color: var(--red); margin-bottom: 18px; }

.ui-page { background: var(--paper); border: 2px solid var(--ink); padding: 40px; }
.ui-page-kicker { font-weight: 700; font-size: var(--t-xs); color: var(--red-ink); margin-bottom: 12px; }
.ui-page-score { display: flex; align-items: center; gap: 24px; margin: 28px 0; padding: 20px 0; border-top: 6px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ui-page-score span { font-family: var(--fs-display); font-size: var(--t-2xl); line-height: 1; white-space: nowrap; }
.ui-page-score small { font-size: 0.4em; color: var(--mute); }
.ui-page-score p { font-size: var(--t-xs); color: var(--mute); }
.ui-page-fixes { padding-left: 22px; display: grid; gap: 10px; }
.ui-page-fixes li::marker { font-weight: 700; color: var(--red-ink); }

.ui-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.ui-quotes figcaption { margin-top: 18px; padding-top: 14px; border-top: 6px solid var(--ink); font-size: var(--t-xs); color: var(--mute); line-height: 1.5; }

.ui-price { font-family: var(--fs-display); font-size: var(--t-3xl); line-height: 0.9; letter-spacing: -0.04em; display: block; margin-bottom: 10px; }
.ui-plane-red .ui-split > div:first-child p { font-size: var(--t-l); line-height: 1.45; }
.ui-card { background: var(--paper); color: var(--ink); padding: 40px; }
.ui-card .ui-squares { margin: 8px 0 28px; }
.ui-card .ui-callout { margin-bottom: 28px; }
.ui-squares { list-style: none; display: grid; gap: 12px; }
.ui-squares li { padding-left: 26px; position: relative; line-height: 1.45; }
.ui-squares li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; background: var(--red); }
.ui-plane-blue .ui-squares li::before { background: var(--yellow); }
.ui-plane-blue .ui-squares li { font-size: var(--t-l); line-height: 1.35; }
.ui-callout { padding: 18px 20px; background: var(--paper-deep); }
.ui-callout strong { color: var(--red-ink); }

.ui-person { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.ui-person img, .ui-portrait { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(100%); }
.ui-facts { margin-top: 36px; border-top: 6px solid var(--ink); }
.ui-facts > div { padding: 12px 0; border-bottom: 1px solid rgba(17, 17, 17, 0.18); }
.ui-facts dt { font-size: var(--t-xs); font-weight: 600; color: var(--mute); }
.ui-facts dd { font-weight: 600; line-height: 1.35; }
.ui-timeline { list-style: none; }
.ui-timeline > li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px; padding: 28px 0; border-top: 2px solid var(--ink); }
.ui-timeline > li:last-child { border-bottom: 2px solid var(--ink); }
.ui-timeline time { font-family: var(--fs-display); font-size: var(--t-l); line-height: 1.1; letter-spacing: -0.02em; }

.ui-faq details { border-top: 2px solid var(--ink); }
.ui-faq details:last-child { border-bottom: 2px solid var(--ink); }
.ui-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-weight: 700; }
.ui-faq summary::-webkit-details-marker { display: none; }
.ui-faq summary::after { content: "+"; font-family: var(--fs-display); font-size: var(--t-l); line-height: 1; }
.ui-faq details[open] summary::after { content: "\2212"; }
.ui-faq details p { padding-bottom: 24px; max-width: var(--measure); }

/* Form */
.ui-form { background: var(--paper); color: var(--ink); }
.enquiry { padding: 32px; display: grid; gap: 18px; }
.enquiry label { display: grid; gap: 6px; font-size: var(--t-xs); font-weight: 700; }
.enquiry .opt { font-weight: 400; color: var(--mute); }
.enquiry input, .enquiry textarea { font: 400 16px/1.4 var(--fs-sans); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; padding: 11px 12px; width: 100%; -webkit-appearance: none; appearance: none; }
.enquiry textarea { resize: vertical; min-height: 84px; }
.enquiry input:focus, .enquiry textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.enquiry button { cursor: pointer; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: 700 var(--t-m) var(--fs-sans); padding: 18px 20px; transition: background 0.15s; }
.enquiry button:hover { background: var(--red-ink); border-color: var(--red-ink); }
.enquiry button[disabled] { opacity: 0.6; cursor: wait; }
.enq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enq-status:empty { display: none; }
.enq-status { font-size: 15px; line-height: 1.5; padding: 12px 14px; border: 2px solid var(--ink); background: var(--paper-deep); }
.enq-status.err { border-color: var(--red-ink); }
.enq-status a { color: var(--red-ink); font-weight: 700; }
.enquiry.sent > :not(.enq-status) { display: none; }
.ui-form-alt { margin-top: 16px; font-size: var(--t-xs); color: #c9c6bf; }
.ui-form-alt a { color: var(--paper); }
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; background: var(--ink); color: var(--paper); text-align: center; padding: 16px 20px; font-weight: 700; text-decoration: none; transform: translateY(140%); transition: transform 0.2s ease-out; }
  .sticky-cta.show { transform: translateY(0); }
}
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 95; }

/* ---------- Private pages (/foundation, /retainer, /thank-you) ---------- */
.nav-private { justify-self: center; font-size: 15px; color: var(--mute); text-align: center; }
.nav-private strong { color: var(--ink); font-weight: 700; }
.mobile-menu-note { font-size: var(--t-xs); color: var(--mute); padding: 4px 0 14px; border-bottom: 2px solid var(--paper-deep); }
.mobile-menu-note strong { color: var(--ink); }
.ui-intro { margin-bottom: 48px; }
.ui-bar-kicker + .ui-h3 { margin-top: 6px; }
.ui-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ui-tiers .ui-page { padding: 32px; }
.ui-tier-pick { border-top: 10px solid var(--red); }
.ui-tier-price { font-family: var(--fs-display); font-size: var(--t-2xl); line-height: 1; letter-spacing: -0.03em; margin-top: 20px; }
.ui-tier-price small { font-family: var(--fs-sans); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0; color: var(--mute); }
.ui-section .ui-tier-sub { margin-top: 8px; font-size: var(--t-xs); font-weight: 600; color: var(--mute); }
.ui-tiers h4 { margin: 28px 0 12px; font-size: var(--t-xs); color: var(--mute); }
@media (max-width: 1000px) { .ui-tiers { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .nav-private { display: none; } }

/* ---------- Articles, case studies, research ---------- */
.crumb { padding: 128px 0 20px; }
.crumb nav { font-size: var(--t-xs); color: var(--mute); display: flex; flex-wrap: wrap; gap: 8px; }
.crumb nav a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.crumb nav a:hover { color: var(--ink); }
.crumb .sep { color: var(--mute); }
.article-hero { padding: 8px 0 56px; }
.article-hero.hub-hero, .article-hero.page-hero { padding-top: 136px; }
.article-meta-top { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 20px; font-size: var(--t-xs); color: var(--mute); }
.article-meta-top .tag { color: var(--red-ink); font-weight: 700; }
.article-meta-top .sep { display: none; }
.article-hero h1 { font-size: var(--t-2xl); line-height: 0.98; margin-bottom: 28px; }
.article-hero.hub-hero h1, .article-hero.page-hero h1 { font-size: var(--t-3xl); line-height: 0.92; }
.article-hero .deck { font-size: var(--t-lead); line-height: 1.5; max-width: var(--measure); }
.article-hero .deck strong { font-weight: 700; }
.byline { margin-top: 28px; padding-top: 14px; border-top: 6px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--t-xs); color: var(--mute); }
.byline .author strong { color: var(--ink); }
.byline .share a { color: var(--ink); }

.stats-strip { padding: 0 0 8px; }
.stats-strip .wrap { max-width: 780px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 20px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.stat-cell .k { font-size: var(--t-xs); color: var(--mute); font-weight: 600; margin-bottom: 4px; line-height: 1.35; }
.stat-cell .v { font-family: var(--fs-display); font-size: var(--t-l); line-height: 1.1; letter-spacing: -0.02em; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

article.body { padding: 56px 0 96px; }
.body p, .cs-prose p { max-width: var(--measure); margin-bottom: 22px; line-height: 1.7; }
.body p strong, .cs-prose p strong { font-weight: 700; }
.body p em, .cs-prose p em, .finding p em { font-style: italic; color: inherit; }
.body ul, .body ol, .cs-list { margin: 0 0 26px 22px; max-width: var(--measure); }
.body li, .cs-list li { margin-bottom: 10px; line-height: 1.65; }
.body li::marker { color: var(--red-ink); }
.body h2, .cs-h2, .body h2.intro-head { font-size: var(--t-xl); line-height: 1; margin: 64px 0 22px; max-width: 28ch; }
.body h2:first-child, .body h2.intro-head:first-child { margin-top: 0; }
.body h3:not(.finding h3) { font-size: var(--t-l); margin: 40px 0 14px; }

.finding { margin: 72px 0 56px; padding-top: 22px; border-top: 10px solid var(--ink); }
.finding-num { font-size: var(--t-xs); font-weight: 700; color: var(--mute); margin-bottom: 6px; }
.finding-num .n { color: var(--ink); }
.finding-tag { font-size: var(--t-xs); font-weight: 700; color: var(--red-ink); margin-bottom: 12px; }
.finding h3 { font-family: var(--fs-display); font-weight: 400; text-transform: uppercase; font-size: var(--t-l); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 26ch; }
.finding p { max-width: var(--measure); margin-bottom: 16px; line-height: 1.65; }
.finding ul { margin: 0 0 16px 22px; } .finding li { margin-bottom: 10px; line-height: 1.6; }
.finding .pct { font-family: var(--fs-display); font-size: var(--t-2xl); line-height: 1; letter-spacing: -0.03em; margin: 8px 0 20px; display: inline-block; max-width: 100%; }
.finding .pct .unit { font-size: 0.5em; color: var(--mute); }
.finding .scoreband { display: grid; grid-template-columns: 110px 1fr; gap: 12px 18px; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 15px; line-height: 1.55; }
.finding .scoreband .b { font-weight: 700; color: var(--red-ink); }
@media (max-width: 640px) { .finding .scoreband { grid-template-columns: 1fr; gap: 2px; } }

.pull { font-family: var(--fs-display); text-transform: uppercase; font-size: var(--t-xl); line-height: 1.05; letter-spacing: -0.02em; margin: 56px 0; padding: 4px 0 4px 28px; border-left: 10px solid var(--red); text-wrap: balance; }
.pull em { font-style: normal; color: inherit; }

.chart { margin: 28px 0 36px; }
.chart-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 56px; gap: 16px; align-items: center; padding: 6px 0; }
.chart-row .ct-label { font-size: 15px; font-weight: 600; }
.chart-row .ct-bar-wrap { background: var(--paper-deep); height: 24px; position: relative; }
.chart-row .ct-bar { position: absolute; inset: 0 auto 0 0; background: var(--red); }
.chart-row.tone-yellow .ct-bar, .chart-row.second .ct-bar { background: var(--yellow); }
.chart-row.tone-blue .ct-bar, .chart-row.third .ct-bar { background: var(--blue); }
.chart-row.tone-other .ct-bar, .chart-row.other .ct-bar { background: var(--ink); opacity: 0.7; }
.chart-row .ct-pct { font-weight: 700; text-align: right; font-size: 15px; }
@media (max-width: 640px) { .chart-row { grid-template-columns: 1fr; gap: 4px; } .chart-row .ct-pct { text-align: left; } }

.bots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 28px 0 36px; }
.bot-cell { padding-top: 14px; border-top: 6px solid var(--ink); }
.bot-cell .nm { font-weight: 700; font-size: var(--t-m); margin-bottom: 6px; }
.bot-cell .nm em { font-style: normal; }
.bot-cell .trait { font-size: 15px; line-height: 1.55; }
.bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.band-cell { padding-top: 14px; border-top: 6px solid var(--ink); }
.band-cell .b-num { font-family: var(--fs-display); font-size: var(--t-l); color: var(--red); margin-bottom: 4px; }
.band-cell .b-name { font-weight: 700; margin-bottom: 6px; }
.band-cell .b-desc { font-size: 15px; line-height: 1.5; color: var(--mute); }
@media (max-width: 720px) { .bots-grid { grid-template-columns: 1fr; } .bands { grid-template-columns: 1fr 1fr; } }

.cs-graphic { margin: 36px 0 40px; }
.cs-graphic figcaption { font-size: var(--t-xs); color: var(--mute); margin-top: 12px; }
.csbar-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 10px; }
.csbar-label { font-size: 15px; font-weight: 600; }
.csbar-track { background: var(--paper-deep); }
.csbar-fill { height: 32px; display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; min-width: 44px; }
.csbar-fill span { font-size: var(--t-xs); font-weight: 700; }
.csba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; }
.csba-cell { padding: 18px 20px; border-top: 10px solid var(--ink); background: var(--paper-deep); }
.csba-cell:last-child { border-top-color: var(--red); }
.csba-label { font-size: var(--t-xs); font-weight: 700; color: var(--mute); margin-bottom: 6px; }
.csba-val { font-family: var(--fs-display); font-size: var(--t-l); line-height: 1.1; }
.csba-arrow { display: none; }
.cs-prose mark { background: var(--yellow); padding: 0 3px; }
.cs-code { font-family: var(--fs-mono); font-size: var(--t-xs); line-height: 1.6; background: var(--ink); color: var(--paper); padding: 20px 24px; overflow-x: auto; margin: 0 0 26px; max-width: 100%; }
.cs-table-wrap { overflow-x: auto; margin: 0 0 26px; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.cs-table th { text-align: left; font-size: var(--t-xs); font-weight: 700; padding: 10px 12px 10px 0; border-bottom: 6px solid var(--ink); }
.cs-table td { padding: 10px 12px 10px 0; border-bottom: 2px solid var(--paper-deep); vertical-align: top; }
@media (max-width: 640px) { .csbar-row { grid-template-columns: 1fr; gap: 4px; } .csba { grid-template-columns: 1fr; } }

.author-box-section { padding: 0 0 96px; }
.author-box { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; padding-top: 22px; border-top: 10px solid var(--ink); align-items: start; }
.author-box img { width: 120px; height: 120px; object-fit: cover; filter: grayscale(100%); }
.ab-label { font-size: var(--t-xs); font-weight: 700; color: var(--mute); }
.author-box h3 { font-size: var(--t-l); margin: 2px 0 4px; }
.ab-role { font-size: 15px; color: var(--mute); }
.ab-bio { font-size: 16px; line-height: 1.6; margin-top: 12px; max-width: var(--measure); }
.ab-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.ab-links a { font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; } }

.article-cta { background: var(--ink); color: var(--paper); padding: 96px 0; }
.article-cta .label { display: block; font-size: var(--t-xs); font-weight: 700; color: #a9a7a0; }
.article-cta h2 { font-size: var(--t-2xl); color: var(--paper); margin-top: 10px !important; max-width: 18ch; }
.article-cta p { color: #d8d5cd; max-width: var(--measure); margin-top: 18px; }
.cta-options { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.cta-options a { display: block; padding-top: 16px; border-top: 6px solid var(--red); text-decoration: none; }
.cta-options a + a { border-top-color: var(--paper); }
.cta-options .k { font-size: var(--t-xs); color: #a9a7a0; font-weight: 700; margin-bottom: 6px; }
.cta-options .v { font-size: var(--t-l); font-weight: 700; line-height: 1.2; color: var(--paper); }
.cta-options .note { font-size: 15px; color: #c9c6bf; margin-top: 8px; line-height: 1.5; }
.cta-options a:hover .v { text-decoration: underline; text-decoration-color: var(--red-on-dark); text-underline-offset: 4px; }
@media (max-width: 640px) { .cta-options { grid-template-columns: 1fr; } }

.related { padding: 96px 0; background: var(--paper-deep); }
.related .section-label { display: block; font-size: var(--t-xs); font-weight: 700; color: var(--mute); margin-bottom: 8px; }
.related h2 { font-size: var(--t-xl); margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; margin-bottom: 36px; }
.related-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 6px solid var(--ink); text-decoration: none; }
.related-card .rc-num { font-size: var(--t-xs); font-weight: 700; color: var(--mute); }
.related-card h3 { font-size: var(--t-m); line-height: 1.35; margin-top: 4px; }
.related-card .rc-meta { font-size: var(--t-xs); color: var(--mute); }
.related-card .rc-arrow { display: none; }
.related-card:hover h3 { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }
.related a.back { font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* Case studies hub */
.cs-group { padding: 72px 0 0; }
.cs-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.cs-group-head h2 { font-size: var(--t-xl); }
.cs-group-head .count { font-size: var(--t-xs); font-weight: 700; color: var(--mute); white-space: nowrap; }
.cs-group-intro { color: var(--mute); max-width: var(--measure); margin: 10px 0 20px; }
.cs-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 20px 0; border-top: 2px solid var(--ink); }
.cs-row:last-child { border-bottom: 2px solid var(--ink); }
.cs-row .n { font-size: var(--t-xs); font-weight: 700; color: var(--mute); }
.cs-row h3 { font-size: var(--t-l); line-height: 1.25; }
.cs-row h3 a { text-decoration: none; }
.cs-row h3 a:hover { color: var(--red-ink); text-decoration: underline; text-underline-offset: 4px; }
.cs-row .hook { font-size: 16px; color: var(--mute); margin-top: 6px; line-height: 1.5; max-width: var(--measure); }
.cs-row .read-meta { font-size: var(--t-xs); color: var(--mute); text-align: right; white-space: nowrap; }
@media (max-width: 640px) { .cs-row { grid-template-columns: 1fr; gap: 4px; } .cs-row .read-meta { text-align: left; } }

@media (max-width: 480px) {
  :root { --t-3xl: clamp(32px, 10.6vw, 44px); }
  .body h2, .finding h3, .article-hero h1, .ui-h1, .ui-h2 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ui-hero-grid, .ui-split, .ui-person, .ui-feature, .ui-tool { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ui-feature { gap: 16px; }
  .ui-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-bars, .ui-quotes { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ui-person img { max-width: 360px; }
}
@media (max-width: 640px) {
  .ui-section, .ui-plane { padding: 80px 0; }
  .ui-hero { padding: 100px 0 64px; }
  .ui-hero + .ui-section { padding-top: 56px; }
  .ui-page-hero { padding: 100px 0 56px; }
  .ui-hero-grid { margin-top: 26px; }
  .ui-lead { font-size: var(--t-m); }
  .ui-terms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 22px; margin-top: 24px; padding-top: 14px; }
  .ui-terms > div:last-child { grid-column: 1 / -1; }
  .ui-terms-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ui-actions { margin-top: 26px; gap: 20px; }
  .ui-steps { grid-template-columns: minmax(0, 1fr); }
  .ui-timeline > li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ui-log { font-size: 13px; }
  .ui-log-body li { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 12px; padding: 7px 16px; }
  .ui-log-body .ui-log-finding { padding: 14px 16px; }
  .ui-log-body .ui-log-finding s { grid-column: 2 / -1; grid-row: 3; text-align: left; }
  .ui-log-head { padding: 14px 16px; }
  .ui-log-body time { grid-row: 1; }
  .ui-log-body code { grid-column: 2 / -1; grid-row: 2; }
  .ui-log-head span:last-child { display: none; }
  .ui-page, .ui-card, .enquiry { padding: 24px; }
  .crumb { padding-top: 100px; }
  .article-hero.hub-hero, .article-hero.page-hero { padding-top: 100px; }
}
