/*! The Code Vendor design system - generated by npm run css:build from
 *   resources/css/tcv-design-system.css
 *   resources/css/tcv-tokens.css
 *   resources/css/tcv-theme.css
 * Edit those files, not this one. Order matters: see build-css.mjs. */

/* ===== tcv-design-system.css ===== */
/* ============================================================
   TCV DESIGN SYSTEM
   Shared component vocabulary, extracted from the /ai-development
   landing page (the design benchmark) and generalized so every
   public page can use it. Scoped under `.tcv` (applied to <main>).
   Brand: green #28B888 + charcoal #303038, both sampled from the logo.

   NOTE: hand-authored, NOT PurgeCSS-processed — safe to edit directly.
   Page-unique bits (AI lead modal, sticky CTA, success banner) stay
   inline on ai_development.blade.php.
   ============================================================ */

.tcv { color:var(--tcv-ink); }

/* ---- Hero ---- */
.tcv .ai-hero { background:var(--tcv-surface); color:var(--tcv-ink); padding:80px 0 60px; margin-top:95px; border-bottom:1px solid var(--tcv-rule); }
.tcv .ai-hero h1 { font-size:46px; line-height:1.06; font-weight:400; letter-spacing:-0.5px; color:var(--tcv-ink); }
.tcv .ai-hero .ai-eyebrow { margin-bottom:18px; }
.tcv .ai-hero p.lead { font-size:1.12rem; line-height:1.65; color:var(--tcv-ink-2); margin:18px auto 28px; max-width:680px; }
.tcv .ai-hero .ai-trust-line { color:var(--tcv-ink-3); font-size:0.85rem; margin-top:22px; letter-spacing:0.4px; }
.tcv .ai-hero .ai-trust-line strong { color:var(--tcv-ink); }
.tcv .ai-hero .ai-btn-primary { background:var(--tcv-brand); color:var(--tcv-on-brand); border-color:var(--tcv-brand); }
.tcv .ai-hero .ai-btn-primary:hover { background:var(--tcv-panel-brand); border-color:var(--tcv-panel-brand); color:var(--tcv-on-brand); }
.tcv .ai-hero .ai-btn-outline-light { background:transparent; color:var(--tcv-ink); border:1px solid var(--tcv-rule-strong); }
.tcv .ai-hero .ai-btn-outline-light:hover { background:var(--tcv-sunken); color:var(--tcv-ink); border-color:var(--tcv-ink-3); }
.tcv .ai-hero-cta-row { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; margin-top:8px; }
@media(max-width:575px){ .tcv .ai-hero-cta-row { flex-direction:column; align-items:center; gap:10px; } }
@media(max-width:991px){ .tcv .ai-hero { padding:60px 0 50px; } .tcv .ai-hero h1 { font-size:36px; } }
@media(max-width:767px){ .tcv .ai-hero { padding:40px 0 36px; margin-top:78px; } .tcv .ai-hero h1 { font-size:26px; line-height:1.25; } .tcv .ai-hero p.lead { font-size:0.98rem; padding:0 4px; } .tcv .ai-hero .ai-eyebrow { font-size:0.66rem; letter-spacing:0.18em; } .tcv .ai-hero .ai-trust-line { font-size:0.78rem; line-height:1.5; } .tcv .ai-hero .ai-btn-primary, .tcv .ai-hero .ai-btn-outline-light { padding:11px 20px; font-size:0.92rem; width:100%; max-width:300px; } }

/* ---- Section rhythm ---- */
.tcv .ai-section { padding:70px 0; }
.tcv .ai-section-alt { background:var(--tcv-sunken); }
.tcv .ai-section h2 { font-size:36px; font-weight:400; line-height:1.25; margin-bottom:14px; }
.tcv .ai-section .ai-eyebrow { margin-bottom:12px; }
.tcv .ai-section .ai-lede { font-size:1.05rem; color:var(--tcv-ink-2); max-width:680px; margin:0 auto 50px; }
@media(max-width:991px){ .tcv .ai-section h2 { font-size:30px; } }
@media(max-width:767px){ .tcv .ai-section { padding:44px 0; } .tcv .ai-section h2 { font-size:22px; line-height:1.3; } .tcv .ai-section .ai-lede { font-size:0.95rem; margin-bottom:32px; } }

/* ---- Pain card ---- */
.tcv .ai-pain-card { background:var(--tcv-surface); border:1px solid var(--tcv-rule); border-radius:var(--tcv-radius-sm); padding:24px; height:100%; }
.tcv .ai-pain-card .ai-pain-icon { width:42px; height:42px; border-radius:50%; background:rgba(214,69,69,.08); color:#D96A6A; display:flex; align-items:center; justify-content:center; font-size:1.1rem; margin-bottom:14px; }
.tcv .ai-pain-card h4 { font-size:1.05rem; font-weight:400; margin-bottom:8px; }
.tcv .ai-pain-card p { font-size:0.95rem; color:var(--tcv-ink-2); margin-bottom:0; }

/* ---- Build / feature card ---- */
.tcv .ai-build-card { background:var(--tcv-surface); border-radius:var(--tcv-radius); padding:28px; height:100%; border:1px solid var(--tcv-rule); transition:border-color var(--tcv-dur) var(--tcv-ease), transform var(--tcv-dur) var(--tcv-ease); }
.tcv .ai-build-card:hover { transform:translateY(-2px); border-color:var(--tcv-brand); }
.tcv .ai-build-card .ai-build-keyword { color:var(--tcv-brand-ink); font-size:0.78rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:8px; }
.tcv .ai-build-card h3 { font-size:1.15rem; font-weight:400; margin-bottom:10px; line-height:1.3; }
.tcv .ai-build-card p { font-size:0.93rem; color:var(--tcv-ink-2); line-height:1.6; margin-bottom:14px; }
.tcv .ai-build-card .ai-build-example { background:var(--bg-light); border-left:3px solid var(--tcv-brand); padding:10px 12px; font-size:0.85rem; color:var(--tcv-ink-2); border-radius:var(--tcv-radius-sm); }
.tcv .ai-build-card .ai-build-example strong { color:var(--tcv-brand-ink); display:block; margin-bottom:2px; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.05em; }

/* ---- Stack pills (centered flow so partial last rows stay grouped) ---- */
.tcv .ai-stack-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; max-width:980px; margin:32px auto 0; }
.tcv .ai-stack-pill { flex:0 0 150px; background:var(--tcv-surface); border:1px solid var(--tcv-rule); border-radius:var(--tcv-radius-sm); padding:16px 14px; text-align:center; font-size:0.88rem; font-weight:500; color:var(--tcv-ink-2); display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:96px; }
@media(max-width:575px){ .tcv .ai-stack-pill { flex-basis:calc(50% - 7px); } }

/* ---- Process steps ---- */
.tcv .ai-process-step { display:flex; gap:20px; align-items:flex-start; margin-bottom:26px; }
.tcv .ai-process-step .ai-step-num { flex-shrink:0; width:48px; height:48px; border-radius:50%; background:var(--tcv-brand); color:var(--tcv-on-brand); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:1.15rem; }
.tcv .ai-process-step h4 { font-size:1.1rem; font-weight:400; margin-bottom:6px; }
.tcv .ai-process-step p { color:var(--tcv-ink-2); margin-bottom:0; font-size:0.95rem; line-height:1.6; }

/* ---- Why-us grid ---- */
.tcv .ai-why-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; max-width:1140px; margin:0 auto; }
@media(max-width:991px){ .tcv .ai-why-grid { grid-template-columns:repeat(2,1fr); max-width:680px; } }
@media(max-width:575px){ .tcv .ai-why-grid { grid-template-columns:1fr; } }
.tcv .ai-why-item { background:var(--tcv-surface); padding:22px; border-radius:var(--tcv-radius-sm); border:1px solid var(--tcv-rule); }
.tcv .ai-why-item .ai-why-icon { color:var(--tcv-brand-ink); font-size:1.4rem; margin-bottom:10px; }
.tcv .ai-why-item h4 { font-size:1rem; font-weight:400; margin-bottom:6px; }
.tcv .ai-why-item p { font-size:0.9rem; color:var(--tcv-ink-2); margin-bottom:0; line-height:1.55; }

/* ---- Pricing / tier card ---- */
.tcv .ai-tier-card { background:var(--tcv-surface); border:1px solid var(--tcv-rule); border-radius:var(--tcv-radius); padding:28px; height:100%; }
.tcv .ai-tier-card.ai-tier-popular { border:2px solid var(--tcv-brand); background:var(--tcv-surface); position:relative; }
.tcv .ai-tier-card .ai-tier-badge { position:absolute; top:-12px; right:18px; background:var(--tcv-brand); color:var(--tcv-on-brand); font-size:0.7rem; padding:4px 12px; border-radius:var(--tcv-radius-sm); font-weight:600; letter-spacing:0.06em; }
.tcv .ai-tier-card h3 { font-size:1.3rem; font-weight:400; margin-bottom:6px; }
.tcv .ai-tier-card .ai-tier-best { color:var(--tcv-ink-3); font-size:0.85rem; margin-bottom:14px; }
.tcv .ai-tier-card .ai-tier-price { font-size:1.05rem; font-weight:600; color:var(--tcv-brand-ink); margin-bottom:18px; padding:10px 0; border-top:1px solid var(--tcv-rule); border-bottom:1px solid var(--tcv-rule); }
.tcv .ai-tier-card ul { list-style:none; padding-left:0; margin-bottom:22px; }
.tcv .ai-tier-card ul li { padding:6px 0 6px 24px; position:relative; font-size:0.92rem; color:var(--tcv-ink-2); }
.tcv .ai-tier-card ul li::before {
    content:""; position:absolute; left:0; top:9px; width:14px; height:14px;
    /* Was a FontAwesome glyph. A mask takes currentColor, so the tick
       follows the theme and costs no webfont. */
    background-color:var(--tcv-brand-ink);
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- Testimonial card ---- */
.tcv .ai-testimonial { background:var(--tcv-surface); border-radius:var(--tcv-radius); padding:28px; height:100%; border:1px solid var(--tcv-rule); }
.tcv .ai-testimonial .ai-quote { font-size:1rem; line-height:1.7; color:var(--tcv-ink-2); margin-bottom:18px; font-style:italic; }
.tcv .ai-testimonial .ai-author { font-weight:600; color:var(--tcv-ink); }
.tcv .ai-testimonial .ai-author-meta { color:var(--tcv-ink-3); font-size:0.85rem; }

/* ---- FAQ (native <details>) ---- */
.tcv .ai-faq-item { background:var(--tcv-surface); border:1px solid var(--tcv-rule); border-radius:var(--tcv-radius-sm); margin-bottom:12px; overflow:hidden; }
.tcv .ai-faq-item summary { padding:18px 22px; font-weight:600; cursor:pointer; list-style:none; position:relative; padding-right:50px; }
.tcv .ai-faq-item summary::-webkit-details-marker { display:none; }
.tcv .ai-faq-item summary::after { content:"+"; position:absolute; right:22px; top:50%; transform:translateY(-50%); font-size:1.4rem; color:var(--tcv-brand-ink); font-weight:400; line-height:1; }
.tcv .ai-faq-item[open] summary::after { content:"\2212"; }
.tcv .ai-faq-item .ai-faq-body { padding:0 22px 22px; color:var(--tcv-ink-2); line-height:1.7; }

/* ---- Closing CTA band ---- */
.tcv .ai-cta-final { background:var(--tcv-panel); color:var(--tcv-panel-ink); padding:80px 0; text-align:center; }
.tcv .ai-cta-final h2 { color:var(--tcv-panel-ink); font-weight:400; font-size:36px; margin-bottom:14px; }
.tcv .ai-cta-final p { color:rgba(255,255,255,0.85); font-size:1.1rem; max-width:560px; margin:0 auto 28px; }
@media(max-width:767px){ .tcv .ai-cta-final { padding:50px 0; } .tcv .ai-cta-final h2 { font-size:24px; line-height:1.3; } .tcv .ai-cta-final p { font-size:0.95rem; padding:0 8px; } }
.tcv .ai-cta-subline { color:rgba(255,255,255,0.65); font-size:0.85rem; margin-top:14px; }

/* ---- Buttons (page-scope defaults; hero overrides above) ---- */
.tcv .ai-btn-primary { background:var(--tcv-brand); color:var(--tcv-on-brand); padding:14px 32px; border-radius:var(--tcv-radius); font-weight:600; font-size:1rem; display:inline-block; border:2px solid var(--tcv-brand); transition:all .2s; }
.tcv .ai-btn-primary:hover { background:var(--tcv-panel-brand); border-color:var(--tcv-panel-brand); color:var(--tcv-on-brand); }
.tcv .ai-btn-cta { background:var(--tcv-brand); color:var(--tcv-on-brand); padding:14px 32px; border-radius:var(--tcv-radius-sm); font-weight:600; font-size:1rem; display:inline-block; border:2px solid var(--tcv-brand); transition:all .2s; }
.tcv .ai-btn-cta:hover { background:var(--tcv-panel-brand); border-color:var(--tcv-panel-brand); color:var(--tcv-on-brand); }
.tcv .ai-btn-outline-light { background:transparent; color:var(--tcv-panel-ink); padding:14px 32px; border-radius:var(--tcv-radius); font-weight:600; font-size:1rem; display:inline-block; border:1px solid var(--tcv-panel-rule-2); transition:all .2s; }
.tcv .ai-btn-outline-light:hover { background:rgba(255,255,255,0.08); border-color:var(--tcv-panel-ink); color:var(--tcv-panel-ink); }

/* Long email/URL strings must wrap inside narrow cards (no horizontal overflow) */
.tcv .email, .tcv .ai-build-card a[href^="mailto:"], .tcv .ai-build-card a[href^="tel:"] { overflow-wrap:anywhere; word-break:break-word; }

/* ---- Icons chosen in the admin panel ----
   Icon values for content blocks live in the DATABASE (content_blocks.icon),
   so no CSS scanner can ever see them. That used to mean a block of glyph
   codepoints had to be hand-maintained here, and a newly picked icon
   rendered blank until someone remembered to add it.

   They are now resolved in PHP by tcv_icon() and drawn as inline SVG by the
   <x-icon> component, so there is nothing left for purge to strip and
   nothing to keep in sync. Unknown names render nothing rather than a box. */

/* ---- Blog cards and article body ----
   These rules were an inline <style> block duplicated verbatim in
   blogs.blade.php and blog_details.blade.php, so a change had to be made
   twice and the two copies had already drifted apart in formatting. They
   live here once.

   The category was a tinted pill. The system marks a label with a rule and
   letterspacing, not a rounded fill, so it takes the eyebrow treatment. */
.tcv .tcv-blog-card { transition:border-color var(--tcv-dur) var(--tcv-ease), transform var(--tcv-dur) var(--tcv-ease); }
.tcv .tcv-blog-card:hover { transform:translateY(-2px); border-color:var(--tcv-brand); }
.tcv .tcv-blog-card-img { transition:transform .3s var(--tcv-ease); }
.tcv .tcv-blog-card:hover .tcv-blog-card-img { transform:scale(1.03); }

.tcv .tcv-blog-title { min-height:2.6em; }
.tcv .tcv-blog-title-link { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tcv .tcv-blog-title-link:hover { color:var(--tcv-brand-ink); }

.tcv .tcv-blog-category {
    display:inline-flex; align-items:center; gap:10px; align-self:flex-start;
    padding:0; background:none; border-radius:0;
    font-family:var(--tcv-font-body); font-size:0.68rem; font-weight:600;
    letter-spacing:0.2em; text-transform:uppercase; color:var(--tcv-ink-3);
}
.tcv .tcv-blog-category::before { content:""; flex:none; width:22px; height:1px; background:var(--tcv-brand); }

.tcv .tcv-blog-read-more { font-size:0.82rem; font-weight:600; color:var(--tcv-brand-ink); text-decoration:none; white-space:nowrap; flex-shrink:0; }
.tcv .tcv-blog-read-more:hover { text-decoration:underline; }

.tcv .blog-details-content { color:var(--tcv-ink); line-height:1.8; font-size:1.02rem; }
.tcv .blog-details-content img { max-width:100%; height:auto; border-radius:var(--tcv-radius); margin:18px 0; }
.tcv .blog-details-content h2,
.tcv .blog-details-content h3,
.tcv .blog-details-content h4 { color:var(--tcv-ink); font-weight:400; margin:28px 0 12px; line-height:1.3; }
.tcv .blog-details-content p { margin-bottom:18px; }
.tcv .blog-details-content a { color:var(--tcv-brand-ink); }
.tcv .blog-details-content ul, .tcv .blog-details-content ol { margin:0 0 18px 1.2rem; }
.tcv .blog-details-content li { margin-bottom:8px; }

/* Blog bodies are admin-authored HTML, and pasting out of a word processor
   wraps every paragraph in inline cruft like
   `color:#000000;background-color:transparent;font-weight:400`. That black is
   editor noise rather than an authorial choice, and on the dark theme it
   measured 1.26:1 - the article was unreadable.
   An inline style beats any selector, so !important is the only way to reach
   it. Scoped to blog bodies, and only to elements that actually set a colour,
   so the text inherits the theme like everything else. */
.tcv .blog-details-content [style*="color"] { color:inherit !important; }
.tcv .blog-details-content [style*="background"] { background-color:transparent !important; }

/* ---- Legal pages (privacy / terms / cookies) ---- */
.tcv .legal-content { color:var(--tcv-ink-2); line-height:1.8; font-size:1rem; }
.tcv .legal-content h2 { font-size:1.4rem; font-weight:400; color:var(--tcv-ink); margin:36px 0 12px; line-height:1.3; }
.tcv .legal-content h3 { font-size:1.08rem; font-weight:400; color:var(--tcv-ink); margin:24px 0 8px; }
.tcv .legal-content p { margin-bottom:16px; }
.tcv .legal-content a { color:var(--tcv-brand-ink); }
.tcv .legal-content ul, .tcv .legal-content ol { margin:0 0 18px 1.2rem; }
.tcv .legal-content li { margin-bottom:8px; }
.tcv .legal-content strong { color:var(--tcv-ink); }
.tcv .legal-updated { color:var(--tcv-ink-3); font-size:0.88rem; margin-bottom:8px; }
.tcv .legal-toc { background:var(--tcv-sunken); border:1px solid var(--tcv-rule); border-radius:var(--tcv-radius-sm); padding:20px 24px; margin-bottom:32px; }
.tcv .legal-toc ol { margin:0 0 0 1.1rem; }
.tcv .legal-toc li { margin-bottom:6px; }
.tcv .legal-table { width:100%; border-collapse:collapse; margin:0 0 22px; font-size:0.92rem; }
.tcv .legal-table th, .tcv .legal-table td { border:1px solid var(--tcv-rule); padding:10px 12px; text-align:left; vertical-align:top; }
.tcv .legal-table th { background:var(--tcv-sunken); font-weight:600; color:var(--tcv-ink); }
.tcv .legal-table-wrap { overflow-x:auto; }

/* ---- Forms (contact / careers) ---- */
.tcv .form-input { margin-bottom:16px; }
.tcv .form-input label { display:block; font-size:0.85rem; font-weight:600; color:var(--tcv-ink-2); margin-bottom:6px; }
.tcv .form-input input, .tcv .form-input textarea, .tcv .form-input select { width:100%; border:1px solid var(--tcv-rule); border-radius:var(--tcv-radius-sm); padding:11px 13px; font-size:0.95rem; color:var(--tcv-ink-2); background:var(--tcv-surface); }
.tcv .form-input input:focus, .tcv .form-input textarea:focus, .tcv .form-input select:focus { border-color:var(--tcv-brand-ink); box-shadow:0 0 0 3px var(--tcv-focus-ring); outline:none; }
.tcv .form-input textarea { min-height:130px; resize:vertical; }

/* ---- Form confirmation ----
   Shown in the page after a successful submit, and the reason the toast is
   not load-bearing: it stays until the visitor navigates away, so someone
   who looked away still has their receipt. role="status" makes a screen
   reader announce it without stealing focus.

   It reads as a record, not a green success pill: a brand rule down the left
   edge, a hairline box, body ink. Bootstrap's .alert-success was doing this
   job before, in Bootstrap's own palette, with the text buried between the
   textarea and the submit button. */
.tcv .tcv-form-notice { display:flex; gap:12px; align-items:flex-start; background:var(--tcv-sunken); border:1px solid var(--tcv-rule); border-left:3px solid var(--tcv-brand); border-radius:var(--tcv-radius-sm); padding:14px 16px; margin-bottom:22px; }
.tcv .tcv-form-notice svg { flex:0 0 auto; color:var(--tcv-brand-ink); margin-top:1px; }
.tcv .tcv-form-notice p { margin:0; font-size:0.95rem; line-height:1.55; color:var(--tcv-ink-2); }
.tcv .tcv-form-notice strong { color:var(--tcv-ink); font-weight:600; }

/* ---- Toast ----
   NOT .tcv-scoped: Toastify appends to document.body, which is outside
   <main class="tcv">. Beating toastify.css's own gradient needs two classes,
   hence .toastify.tcv-toast.

   Charcoal in both themes. --tcv-panel is the one surface the token set
   holds steady across light and dark, which is what an overlay wants: it has
   to sit apart from the page rather than blend into it. */
.toastify.tcv-toast { display:flex; align-items:flex-start; gap:14px; background:var(--tcv-panel); color:var(--tcv-panel-ink); border:1px solid var(--tcv-panel-rule-2); border-radius:var(--tcv-radius-sm); box-shadow:0 10px 30px rgba(0,0,0,0.22); padding:14px 18px; font-size:0.95rem; line-height:1.5; font-weight:500; max-width:min(520px, calc(100vw - 32px)); text-align:left; }
/* toastify.css ships .toastify as inline-block with max-width:calc(50% - 20px),
   which on a phone leaves a sentence in a column a few words wide. */
.toastify.tcv-toast .toast-close { flex:0 0 auto; color:var(--tcv-panel-ink-2); opacity:1; padding:0; font-size:1rem; line-height:1.5; }
.toastify.tcv-toast .toast-close:hover { color:var(--tcv-panel-ink); }
.toastify.tcv-toast--success { border-left:3px solid var(--tcv-panel-brand); }
.toastify.tcv-toast--error { border-left:3px solid #FF8A8A; }

/* ---- Hero loop ----
   Built on .tcv-record, so it inherits the panel ink ramp declared there and
   needs no colour of its own.

   Everything that animates here is colour, opacity or a box-shadow. Nothing
   in this block changes size or position after paint, which is what keeps the
   hero out of CLS. The h1 stays the LCP element because the panel is
   server-rendered complete. */
.tcv .tcv-flo { padding-bottom:20px; }

.tcv .tcv-flo-badge { font-size:0.6rem; letter-spacing:0.18em; padding:3px 9px; border-radius:999px; border:1px solid var(--tcv-panel-rule-2); color:var(--tcv-panel-ink-2); white-space:nowrap; }

.tcv .tcv-flo-lede { margin:16px 0 0; font-size:0.84rem; line-height:1.6; color:var(--tcv-panel-ink-2); }

.tcv .tcv-flo-steps { list-style:none; margin:16px 0 0; padding:0; border-top:1px solid var(--tcv-panel-rule-2); }

/* Three columns: the rail, the module name, then what happened. The detail
   line runs under both text columns. The module column sizes itself to the
   longest name so the five read as a column rather than a ragged list. */
.tcv .tcv-flo-step { display:grid; grid-template-columns:9px auto 1fr; column-gap:13px; row-gap:3px; padding:11px 0; border-bottom:1px solid var(--tcv-panel-rule-2); }
.tcv .tcv-flo-step:last-child { border-bottom:0; }

/* The dot column stretches the whole row so the rail between dots can be
   drawn from inside it. Drawing it on the <li> is not available: the <li> is
   itself the grid container, so its pseudo-elements become grid items. */
.tcv .tcv-flo-dot { grid-area:1 / 1 / 3 / 2; position:relative; align-self:stretch; width:9px; }
.tcv .tcv-flo-dot::before { content:""; position:absolute; left:0; top:5px; width:9px; height:9px; border-radius:50%; background:var(--tcv-panel-brand); }
.tcv .tcv-flo-step:not(:last-child) .tcv-flo-dot::after { content:""; position:absolute; left:4px; top:17px; bottom:-28px; width:1px; background:var(--tcv-panel-rule-2); }

.tcv .tcv-flo-module { grid-area:1 / 2 / 2 / 3; font-family:var(--tcv-font-mono); font-size:0.78rem; color:var(--tcv-panel-brand); }
.tcv .tcv-flo-what { grid-area:1 / 3 / 2 / 4; font-size:0.84rem; line-height:1.45; color:var(--tcv-panel-ink); }
.tcv .tcv-flo-detail { grid-area:2 / 2 / 3 / 4; font-size:0.76rem; line-height:1.45; color:var(--tcv-panel-ink-2); }

.tcv .tcv-flo-foot { margin:16px 0 0; padding-top:14px; border-top:1px solid var(--tcv-panel-rule-2); font-size:0.78rem; line-height:1.5; color:var(--tcv-panel-ink-2); }

/* The resting state above is the finished loop, every step lit. The script
   adds .is-animated only once it is running, so no JavaScript, a blocked
   file or a thrown error leaves the panel readable rather than greyed out
   for good. */
.tcv .tcv-flo.is-animated .tcv-flo-step { opacity:0.3; transition:opacity .5s ease; }
.tcv .tcv-flo.is-animated .tcv-flo-step.is-on { opacity:1; }
.tcv .tcv-flo.is-animated .tcv-flo-dot::before { background:var(--tcv-panel-rule-2); transition:background .5s ease, box-shadow .5s ease; }
.tcv .tcv-flo.is-animated .tcv-flo-step.is-on .tcv-flo-dot::before { background:var(--tcv-panel-brand); box-shadow:0 0 0 4px rgba(47,200,149,0.16); }

@media(prefers-reduced-motion:reduce){
    /* Belt and braces: the script bows out on this too, but if it ever stops
       doing so the panel must not flicker at somebody who asked it not to. */
    .tcv .tcv-flo.is-animated .tcv-flo-step { opacity:1; transition:none; }
    .tcv .tcv-flo.is-animated .tcv-flo-dot::before { background:var(--tcv-panel-brand); transition:none; }
}

@media(max-width:575px){
    .tcv .tcv-flo { padding:20px 18px 18px; }
    .tcv .tcv-flo-step { column-gap:11px; }
}

/* ---- Engagement record band ----
   The record that used to sit in the hero's right column, re-laid as a row
   under it. Same facts, same wording; a row rather than a column because it
   now spans the page. On the page ground, not the panel, so it reads as a
   rule under the hero rather than a second block competing with it. */
.tcv .tcv-record-band { background:var(--tcv-sunken); border-top:1px solid var(--tcv-rule); border-bottom:1px solid var(--tcv-rule); padding:22px 0; }
.tcv .tcv-record-band-head { display:block; font-size:0.62rem; font-weight:600; letter-spacing:0.22em; text-transform:uppercase; color:var(--tcv-ink-3); margin-bottom:14px; }
.tcv .tcv-record-band-list { margin:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:18px 24px; }
.tcv .tcv-record-band-list dt { font-size:0.72rem; color:var(--tcv-ink-3); font-weight:400; margin:0 0 4px; }
.tcv .tcv-record-band-list dd { margin:0; font-family:var(--tcv-font-mono); font-size:0.84rem; color:var(--tcv-ink); font-variant-numeric:tabular-nums; }
.tcv .tcv-record-band-list dd.tcv-record-accent { color:var(--tcv-brand-ink); }

/* ---- Card mobile tightening ---- */
@media(max-width:767px){
    .tcv .ai-build-card, .tcv .ai-tier-card { padding:20px; }
    .tcv .ai-build-card h3 { font-size:1rem; }
    .tcv .ai-pain-card { padding:18px; }
    .tcv .ai-process-step { gap:14px; margin-bottom:22px; }
    .tcv .ai-process-step .ai-step-num { width:38px; height:38px; font-size:1rem; }
    .tcv .ai-stack-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
    .tcv .ai-stack-pill { padding:10px 8px; font-size:0.82rem; }
}

/* ============================================================
   Self-contained Bootstrap-4-compatible grid (scoped to .tcv)
   so redesigned pages never depend on PurgeCSS output.
   ============================================================ */
.tcv .row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px;}
.tcv .no-gutters{margin-right:0;margin-left:0;}
.tcv .no-gutters>[class*="col-"]{padding-right:0;padding-left:0;}
.tcv [class*="col-"]{position:relative;width:100%;padding-right:15px;padding-left:15px;}
.tcv .col{flex-basis:0;flex-grow:1;max-width:100%;}
.tcv .col-auto{flex:0 0 auto;width:auto;max-width:100%;}
.tcv .flex-row-reverse{flex-direction:row-reverse;}
.tcv .col-1{flex:0 0 8.333333%;max-width:8.333333%;}
.tcv .col-2{flex:0 0 16.666666%;max-width:16.666666%;}
.tcv .col-3{flex:0 0 24.999999%;max-width:24.999999%;}
.tcv .col-4{flex:0 0 33.333332%;max-width:33.333332%;}
.tcv .col-5{flex:0 0 41.666665%;max-width:41.666665%;}
.tcv .col-6{flex:0 0 49.999998%;max-width:49.999998%;}
.tcv .col-7{flex:0 0 58.333331%;max-width:58.333331%;}
.tcv .col-8{flex:0 0 66.666664%;max-width:66.666664%;}
.tcv .col-9{flex:0 0 74.999997%;max-width:74.999997%;}
.tcv .col-10{flex:0 0 83.33333%;max-width:83.33333%;}
.tcv .col-11{flex:0 0 91.666663%;max-width:91.666663%;}
.tcv .col-12{flex:0 0 100%;max-width:100%;}
@media(min-width:576px){.tcv .col-sm{flex-basis:0;flex-grow:1;max-width:100%;}.tcv .col-sm-auto{flex:0 0 auto;width:auto;max-width:100%;}.tcv .col-sm-1{flex:0 0 8.333333%;max-width:8.333333%;}.tcv .col-sm-2{flex:0 0 16.666666%;max-width:16.666666%;}.tcv .col-sm-3{flex:0 0 24.999999%;max-width:24.999999%;}.tcv .col-sm-4{flex:0 0 33.333332%;max-width:33.333332%;}.tcv .col-sm-5{flex:0 0 41.666665%;max-width:41.666665%;}.tcv .col-sm-6{flex:0 0 49.999998%;max-width:49.999998%;}.tcv .col-sm-7{flex:0 0 58.333331%;max-width:58.333331%;}.tcv .col-sm-8{flex:0 0 66.666664%;max-width:66.666664%;}.tcv .col-sm-9{flex:0 0 74.999997%;max-width:74.999997%;}.tcv .col-sm-10{flex:0 0 83.33333%;max-width:83.33333%;}.tcv .col-sm-11{flex:0 0 91.666663%;max-width:91.666663%;}.tcv .col-sm-12{flex:0 0 100%;max-width:100%;}.tcv .offset-sm-0{margin-left:0;}.tcv .offset-sm-1{margin-left:8.333333%;}.tcv .offset-sm-2{margin-left:16.666666%;}.tcv .offset-sm-3{margin-left:24.999999%;}.tcv .offset-sm-4{margin-left:33.333332%;}.tcv .offset-sm-5{margin-left:41.666665%;}.tcv .offset-sm-6{margin-left:49.999998%;}.tcv .offset-sm-7{margin-left:58.333331%;}.tcv .offset-sm-8{margin-left:66.666664%;}.tcv .offset-sm-9{margin-left:74.999997%;}.tcv .offset-sm-10{margin-left:83.33333%;}.tcv .offset-sm-11{margin-left:91.666663%;}}
@media(min-width:768px){.tcv .col-md{flex-basis:0;flex-grow:1;max-width:100%;}.tcv .col-md-auto{flex:0 0 auto;width:auto;max-width:100%;}.tcv .col-md-1{flex:0 0 8.333333%;max-width:8.333333%;}.tcv .col-md-2{flex:0 0 16.666666%;max-width:16.666666%;}.tcv .col-md-3{flex:0 0 24.999999%;max-width:24.999999%;}.tcv .col-md-4{flex:0 0 33.333332%;max-width:33.333332%;}.tcv .col-md-5{flex:0 0 41.666665%;max-width:41.666665%;}.tcv .col-md-6{flex:0 0 49.999998%;max-width:49.999998%;}.tcv .col-md-7{flex:0 0 58.333331%;max-width:58.333331%;}.tcv .col-md-8{flex:0 0 66.666664%;max-width:66.666664%;}.tcv .col-md-9{flex:0 0 74.999997%;max-width:74.999997%;}.tcv .col-md-10{flex:0 0 83.33333%;max-width:83.33333%;}.tcv .col-md-11{flex:0 0 91.666663%;max-width:91.666663%;}.tcv .col-md-12{flex:0 0 100%;max-width:100%;}.tcv .offset-md-0{margin-left:0;}.tcv .offset-md-1{margin-left:8.333333%;}.tcv .offset-md-2{margin-left:16.666666%;}.tcv .offset-md-3{margin-left:24.999999%;}.tcv .offset-md-4{margin-left:33.333332%;}.tcv .offset-md-5{margin-left:41.666665%;}.tcv .offset-md-6{margin-left:49.999998%;}.tcv .offset-md-7{margin-left:58.333331%;}.tcv .offset-md-8{margin-left:66.666664%;}.tcv .offset-md-9{margin-left:74.999997%;}.tcv .offset-md-10{margin-left:83.33333%;}.tcv .offset-md-11{margin-left:91.666663%;}}
@media(min-width:992px){.tcv .col-lg{flex-basis:0;flex-grow:1;max-width:100%;}.tcv .col-lg-auto{flex:0 0 auto;width:auto;max-width:100%;}.tcv .col-lg-1{flex:0 0 8.333333%;max-width:8.333333%;}.tcv .col-lg-2{flex:0 0 16.666666%;max-width:16.666666%;}.tcv .col-lg-3{flex:0 0 24.999999%;max-width:24.999999%;}.tcv .col-lg-4{flex:0 0 33.333332%;max-width:33.333332%;}.tcv .col-lg-5{flex:0 0 41.666665%;max-width:41.666665%;}.tcv .col-lg-6{flex:0 0 49.999998%;max-width:49.999998%;}.tcv .col-lg-7{flex:0 0 58.333331%;max-width:58.333331%;}.tcv .col-lg-8{flex:0 0 66.666664%;max-width:66.666664%;}.tcv .col-lg-9{flex:0 0 74.999997%;max-width:74.999997%;}.tcv .col-lg-10{flex:0 0 83.33333%;max-width:83.33333%;}.tcv .col-lg-11{flex:0 0 91.666663%;max-width:91.666663%;}.tcv .col-lg-12{flex:0 0 100%;max-width:100%;}.tcv .offset-lg-0{margin-left:0;}.tcv .offset-lg-1{margin-left:8.333333%;}.tcv .offset-lg-2{margin-left:16.666666%;}.tcv .offset-lg-3{margin-left:24.999999%;}.tcv .offset-lg-4{margin-left:33.333332%;}.tcv .offset-lg-5{margin-left:41.666665%;}.tcv .offset-lg-6{margin-left:49.999998%;}.tcv .offset-lg-7{margin-left:58.333331%;}.tcv .offset-lg-8{margin-left:66.666664%;}.tcv .offset-lg-9{margin-left:74.999997%;}.tcv .offset-lg-10{margin-left:83.33333%;}.tcv .offset-lg-11{margin-left:91.666663%;}}
@media(min-width:1200px){.tcv .col-xl{flex-basis:0;flex-grow:1;max-width:100%;}.tcv .col-xl-auto{flex:0 0 auto;width:auto;max-width:100%;}.tcv .col-xl-1{flex:0 0 8.333333%;max-width:8.333333%;}.tcv .col-xl-2{flex:0 0 16.666666%;max-width:16.666666%;}.tcv .col-xl-3{flex:0 0 24.999999%;max-width:24.999999%;}.tcv .col-xl-4{flex:0 0 33.333332%;max-width:33.333332%;}.tcv .col-xl-5{flex:0 0 41.666665%;max-width:41.666665%;}.tcv .col-xl-6{flex:0 0 49.999998%;max-width:49.999998%;}.tcv .col-xl-7{flex:0 0 58.333331%;max-width:58.333331%;}.tcv .col-xl-8{flex:0 0 66.666664%;max-width:66.666664%;}.tcv .col-xl-9{flex:0 0 74.999997%;max-width:74.999997%;}.tcv .col-xl-10{flex:0 0 83.33333%;max-width:83.33333%;}.tcv .col-xl-11{flex:0 0 91.666663%;max-width:91.666663%;}.tcv .col-xl-12{flex:0 0 100%;max-width:100%;}.tcv .offset-xl-0{margin-left:0;}.tcv .offset-xl-1{margin-left:8.333333%;}.tcv .offset-xl-2{margin-left:16.666666%;}.tcv .offset-xl-3{margin-left:24.999999%;}.tcv .offset-xl-4{margin-left:33.333332%;}.tcv .offset-xl-5{margin-left:41.666665%;}.tcv .offset-xl-6{margin-left:49.999998%;}.tcv .offset-xl-7{margin-left:58.333331%;}.tcv .offset-xl-8{margin-left:66.666664%;}.tcv .offset-xl-9{margin-left:74.999997%;}.tcv .offset-xl-10{margin-left:83.33333%;}.tcv .offset-xl-11{margin-left:91.666663%;}}


/* ===== tcv-tokens.css ===== */
/* ============================================================
   TCV DESIGN TOKENS  —  "The Ledger"
   ------------------------------------------------------------
   Every colour, radius, face and rhythm value the site uses.
   Nothing here is invented: the two brand colours were sampled
   from the logo artwork itself (storage/.../logo.webp), not from
   the old stylesheet, which had drifted off-brand.

       brand green     #28B888   (dominant pixel in the mark)
       brand charcoal  #303038   (the mark's dark half)

   The old CSS shipped #1a8a6e, which is both darker and duller
   than the actual logo green. That is corrected here.

   LOADED AFTER style-liberty.css and custom.css on purpose.
   Custom properties resolve at use time, not at definition time,
   so a :root block declared last still applies document-wide —
   and this way our values win over the purchased template's
   without anybody having to edit generated PurgeCSS output.

   NOT PurgeCSS-processed. Safe to edit by hand.
   ============================================================ */

:root {
    /* ---- surfaces ---- */
    --tcv-ground:        #F6F6F3;   /* the page */
    --tcv-surface:       #FFFFFF;   /* a raised card */
    --tcv-sunken:        #EDEDE8;   /* a recessed band */
    --tcv-panel:         #303038;   /* the mark's charcoal half, used as a block */
    --tcv-panel-deep:    #26262D;   /* one step under it, for a footer's lower band */

    /* ---- rules (depth comes from hairlines, never shadows) ---- */
    --tcv-rule:          #DEDED7;
    --tcv-rule-strong:   #C7C7BE;

    /* ---- text ---- */
    --tcv-ink:           #303038;   /* headings */
    --tcv-ink-2:         #55555F;   /* body */
    --tcv-ink-3:         #696974;   /* labels, meta — 5.0:1 on ground */

    /* ---- brand, rationed ---- */
    --tcv-brand:         #28B888;   /* fills, marks, rules */
    --tcv-brand-ink:     #0E7757;   /* brand as small text — 5.1:1 on ground */
    --tcv-on-brand:      #303038;   /* text ON a green fill — 5.2:1, the logo's own pairing */

    /* Focus ring. Was an rgba() literal of the pre-rebrand green, which the
       hex sweep could not see. Stated once, here, in both themes. */
    --tcv-focus-ring:    rgba(40, 184, 136, 0.28);

    /* Review stars. Not brand, not the ink ramp: the one place amber is allowed,
       because a green star does not read as a rating. Darkened from the stock
       #f5a623 to clear 3:1 against the ground as a non-text graphic. */
    --tcv-star:          #B07400;

    /* ---- on the charcoal panel (same in both themes) ---- */
    --tcv-panel-ink:     #F2F1ED;
    /* Secondary text on the charcoal panel. #8A8A96 measured 3.83:1 on
       --tcv-panel and failed AA for body text; this clears 4.8:1 there and
       5.5:1 on --tcv-panel-deep, so it is safe on both panel shades. */
    --tcv-panel-ink-2:   #9C9CA8;
    --tcv-panel-rule:    rgba(255, 255, 255, 0.10);
    --tcv-panel-rule-2:  rgba(255, 255, 255, 0.18);
    --tcv-panel-brand:   #2FC895;

    /* ---- geometry: ONE radius, from the squircle mark ---- */
    --tcv-radius:        12px;
    --tcv-radius-sm:     8px;

    /* ---- rhythm: two values for the whole site ---- */
    --tcv-space-section: clamp(56px, 6vw, 88px);
    --tcv-space-head:    clamp(32px, 4vw, 48px);

    /* ---- motion: one curve ---- */
    --tcv-ease:          cubic-bezier(.2, .7, .1, 1);
    --tcv-dur:           .2s;

    /* ---- type ---- */
    --tcv-font-display:  Newsreader, Georgia, "Times New Roman", serif;
    --tcv-font-body:     Archivo, "Helvetica Neue", Arial, sans-serif;
    --tcv-font-mono:     "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* ------------------------------------------------------------
       LEGACY REMAP
       The purchased template already styles ~52 rules through these
       variable names. Pointing them at the tokens above means the
       whole template follows the new palette, in both themes, with
       no edit to generated CSS.
       ------------------------------------------------------------ */
    --bg-color:          var(--tcv-ground);
    --bg-grey:           var(--tcv-sunken);
    --bg-light:          rgba(40, 184, 136, 0.04);
    --border-color:      var(--tcv-rule);
    --border-radius:     var(--tcv-radius);
    --card-bg:           var(--tcv-surface);
    --dropdown-color:    var(--tcv-surface);
    --font-color:        var(--tcv-ink-2);
    --heading-color:     var(--tcv-ink);
    --nav-color:         var(--tcv-ink);
    --primary-color:     var(--tcv-brand-ink);
    --theme-color:       var(--tcv-brand-ink);
    --secondary-color:   var(--tcv-ink);
    --iframe-filter:     grayscale(0%);

    /* Bootstrap ships its own :root in style-liberty.css, declared earlier
       in the cascade but never overridden here, so `a{color:var(--bs-link-color)}`
       kept painting links the pre-rebrand green. Remap, don't fight it. */
    --bs-primary:            var(--tcv-brand-ink);
    --bs-link-color:         var(--tcv-brand-ink);
    --bs-link-hover-color:   var(--tcv-ink);
    --bs-border-color:       var(--tcv-rule);
    --bs-body-color:         var(--tcv-ink-2);
    --bs-body-bg:            var(--tcv-ground);
    --bs-emphasis-color:     var(--tcv-ink);
    --bs-secondary-color:    var(--tcv-ink-3);
    --bs-dropdown-link-active-bg: var(--tcv-brand);
    --bs-nav-link-color:     var(--tcv-ink-2);
    --bs-nav-link-hover-color: var(--tcv-brand-ink);
}

/* ============================================================
   DARK
   Not an inversion. The ground goes below the mark's charcoal so
   that charcoal can serve as a raised panel, which keeps the
   logo's two-tone split working in both themes.
   ============================================================ */
[data-theme="dark"] {
    --tcv-ground:        #1C1E24;
    --tcv-surface:       #24262D;
    --tcv-sunken:        #191B20;
    --tcv-panel:         #303038;

    --tcv-rule:          rgba(255, 255, 255, 0.10);
    --tcv-rule-strong:   rgba(255, 255, 255, 0.18);

    --tcv-ink:           #F2F1ED;
    --tcv-ink-2:         #B6B6C2;
    --tcv-ink-3:         #94949F;   /* 5.0:1 on --tcv-surface, the lightest dark ground */

    --tcv-brand:         #2FC895;
    --tcv-brand-ink:     #2FC895;   /* 7.8:1 on ground */
    --tcv-on-brand:      #1C1E24;   /* 6.1:1 on the green fill */
    --tcv-star:          #E8A33D;   /* lifted for the dark ground */
    --tcv-focus-ring:    rgba(47, 200, 149, 0.34);

    --bg-light:          rgba(47, 200, 149, 0.06);
    --iframe-filter:     grayscale(100%);

    /* The template ships its own [data-theme="dark"] block defining
       --bg-color:#1e1b32 and friends — a purple left over from the
       stock theme that has nothing to do with this brand. That block
       has the same specificity as this one, so the legacy names have
       to be restated here (later source wins) or the footer and cards
       stay purple in dark mode. */
    --bg-color:          var(--tcv-ground);
    --bg-grey:           var(--tcv-sunken);
    --border-color:      var(--tcv-rule);
    --card-bg:           var(--tcv-surface);
    --dropdown-color:    var(--tcv-surface);
    --font-color:        var(--tcv-ink-2);
    --heading-color:     var(--tcv-ink);
    --nav-color:         var(--tcv-ink);
    --primary-color:     var(--tcv-brand-ink);
    --theme-color:       var(--tcv-brand-ink);
    --secondary-color:   var(--tcv-ink);

    /* Bootstrap's own :root again. Equal specificity to this block but
       declared earlier, so restating is what makes dark mode reach it. */
    --bs-primary:            var(--tcv-brand-ink);
    --bs-link-color:         var(--tcv-brand-ink);
    --bs-link-hover-color:   var(--tcv-ink);
    --bs-border-color:       var(--tcv-rule);
    --bs-body-color:         var(--tcv-ink-2);
    --bs-body-bg:            var(--tcv-ground);
    --bs-emphasis-color:     var(--tcv-ink);
    --bs-secondary-color:    var(--tcv-ink-3);
    --bs-dropdown-link-active-bg: var(--tcv-brand);
    --bs-nav-link-color:     var(--tcv-ink-2);
    --bs-nav-link-hover-color: var(--tcv-brand-ink);

    color-scheme: dark;
}


/* ===== tcv-theme.css ===== */
/* ============================================================
   TCV THEME  —  surface + typography layer
   ------------------------------------------------------------
   Loaded LAST, after the purchased template, custom.css and the
   design system.

   Why this file exists rather than edits in style-liberty.css:
   that file is PurgeCSS OUTPUT (style-liberty.original.css, 309KB,
   sits beside it as the source). Anything written into it is lost
   the next time the purge runs. So every repair to the template
   lands here instead, where it is hand-authored and permanent.

   Section 2 is the list of rules that hardcoded a light surface
   and therefore beat the theme variables. Those 15 rules are the
   entire reason the dark toggle in the navbar did nothing: the
   plumbing in js/theme-change.js was always correct.

   NOT PurgeCSS-processed. Safe to edit by hand.
   ============================================================ */


/* ============================================================
   1. TYPE
   Display face for headings, Archivo for everything else, mono
   reserved for figures. Headings sit at 400 with tight negative
   tracking: the weight-700 shout was the loudest "bought theme"
   signal on the page.
   ============================================================ */

body {
    font-family: var(--tcv-font-body);
    background-color: var(--tcv-ground);
    color: var(--tcv-ink-2);
}

/* The template names Spartan and Open Sans directly on these selectors.
   Neither font is loaded any more, so without this block they silently
   fell back to a system face while everything else used Archivo. */
body, html,
p, p.counter,
button, input, label, li, select, span,
.w3l-footer .copy-footer-28,
.w3l-footer .copy-footer-28 a,
.w3l-footer .footer-list-28 ul li a,
.w3l-footer .footer-list-28 ul li p {
    font-family: var(--tcv-font-body);
}

/* Bootstrap resolves strong/b to `bolder` and dt to 700. Archivo ships
   400/500/600 here, so all of those rendered as synthesised faux-bold. 600 is
   this system's bold and is a clear step from 400 body copy, so semantic bold
   maps onto the scale rather than adding a weight nothing else uses. */
strong, b, dt, .fw-bold, .fw-bolder {
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6,
.tcv h1, .tcv h2, .tcv h3, .tcv h4, .tcv h5, .tcv h6 {
    font-family: var(--tcv-font-display);
    font-weight: 400;
    color: var(--tcv-ink);
    letter-spacing: -0.014em;
    line-height: 1.08;
    text-wrap: balance;
}

.tcv h1 { letter-spacing: -0.016em; }
.tcv h4, .tcv h5, .tcv h6 { letter-spacing: -0.008em; line-height: 1.2; }

/* Figures line up in columns wherever they appear. */
.tcv .tcv-figure,
.tcv .counter-number,
.tcv table td:last-child {
    font-variant-numeric: tabular-nums;
}


/* ============================================================
   2. SURFACE REPAIRS
   Each selector below hardcoded #fff (or a near-white) in a file
   we must not edit, which meant it ignored the theme entirely.
   Listed by origin so the next person can find them.
   ============================================================ */

/* --- from style-liberty.css (PurgeCSS output, 11 rules) --- */
.img-thumbnail,
.form-control,
.form-control:focus,
.form-select,
.btn-white,
.lb-outerContainer,
.hire-developer-tabs .nav-link {
    background-color: var(--tcv-surface);
    color: var(--tcv-ink-2);
    border-color: var(--tcv-rule);
}

.form-check-input {
    background-color: var(--tcv-surface);
    border-color: var(--tcv-rule-strong);
}

/* Client and partner logos are supplied as artwork on white, so they
   keep a light plate in both themes rather than going muddy. */
.w3l-clients img,
.client-grids .icon {
    background-color: #FFFFFF;
    border-radius: var(--tcv-radius-sm);
}

.w3l-team-main .socials a:hover span {
    background-color: var(--tcv-surface);
    color: var(--tcv-brand-ink);
}

/* --- template colours that were never brand colours at all ---
   The bought theme shipped a purple-navy palette (#1e1c32 footer,
   #19172a footer base, #262d4e sticky header). None of it relates to
   this logo. Each selector below repeats the template's own specificity
   so that load order alone decides it.

   The footer deliberately becomes the charcoal half of the mark rather
   than the page colour: a dark footer under a light page IS the split,
   and it keeps working unchanged when the page itself goes dark. */
.w3l-footer footer.footer-28 {
    background: var(--tcv-panel);
    color: var(--tcv-panel-ink-2);
}

.w3l-footer .midd-footer-28 {
    background: var(--tcv-panel-deep);
}

.w3l-footer h3, .w3l-footer h4, .w3l-footer h5,
.w3l-footer .copy-footer-28 {
    color: var(--tcv-panel-ink);
}

.w3l-footer a,
.w3l-footer .footer-list-28 ul li a,
.w3l-footer .copy-footer-28 a {
    color: var(--tcv-panel-ink-2);
}

.w3l-footer a:hover,
.w3l-footer .footer-list-28 ul li a:hover,
.w3l-footer .copy-footer-28 a:hover {
    color: var(--tcv-panel-brand);
}

.w3l-header-4 header.nav-fixed {
    background: var(--tcv-ground);
    border-bottom: 1px solid var(--tcv-rule);
}

.w3l-servicesblock1 .feature-gd:hover .icon {
    background: var(--tcv-sunken);
}

/* Brand green had drifted to two different values in the template. */
.form-check-input:checked,
.form-check-input[type=checkbox]:indeterminate,
.portfolio-project-tabs .nav-item button.active {
    background-color: var(--tcv-brand);
    border-color: var(--tcv-brand);
    color: var(--tcv-on-brand);
}

#testimonial-slider .owl-nav button:hover {
    background: var(--tcv-brand) !important;
    color: var(--tcv-on-brand) !important;
}

.form-control:disabled,
.form-select:disabled,
.form-control::file-selector-button {
    background-color: var(--tcv-sunken);
    color: var(--tcv-ink-3);
}

/* Social icons keep each platform's own brand colour on hover. Those are
   other companies' colours and are correct as they are. */

/* --- from custom.css (4 rules) --- */
.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
#contactFormModal .form-control,
#contactFormModal .ftco-section {
    background-color: var(--tcv-surface);
    color: var(--tcv-ink-2);
}

#contactFormModal .modal-content .btn-primary {
    background-color: var(--tcv-brand);
    border-color: var(--tcv-brand);
    color: var(--tcv-on-brand);
}


/* ============================================================
   3. TEMPLATE CHROME
   Navbar, footer and dropdowns live outside <main class="tcv">,
   so the design system's scoped rules never reach them.
   ============================================================ */

.navbar,
.header-hero,
footer,
.footer-content {
    background-color: var(--tcv-ground);
    color: var(--tcv-ink-2);
}

.dropdown-menu {
    background-color: var(--tcv-surface);
    border: 1px solid var(--tcv-rule);
    border-radius: var(--tcv-radius);
}

.dropdown-item {
    color: var(--tcv-ink-2);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--tcv-sunken);
    color: var(--tcv-brand-ink);
}

/* The template hardcodes #999 on the nav links, which measures 2.63:1 on
   the ground and fails AA outright. It lives in the purged stylesheet, so
   it has to be answered here rather than edited at source. */
.w3l-header-4 .navbar-expand-lg .navbar-nav .nav-link {
    color: var(--tcv-ink-2);
}

.w3l-header-4 .navbar-expand-lg .navbar-nav .nav-link:hover,
.w3l-header-4 .navbar-expand-lg .navbar-nav .nav-link:focus,
.w3l-header-4 .navbar-expand-lg .navbar-nav .active > .nav-link {
    color: var(--tcv-brand-ink);
}

/* The search popup filled its button with --primary-color, which maps to
   --tcv-brand-ink. That token is tuned for small TEXT, so as a fill in dark
   mode it became bright green under near-white type: 2.02:1. A fill takes
   --tcv-brand, and text on a fill always takes --tcv-on-brand. */
.w3l-header-4 .popup form button {
    background: var(--tcv-brand);
    color: var(--tcv-on-brand);
}

.w3l-header-4 .popup form button:hover,
.w3l-header-4 .popup form button:focus {
    background: var(--tcv-panel-brand);
    color: var(--tcv-on-brand);
}

.w3l-header-4 .popup form input[type="search"],
.w3l-header-4 .popup form input[type="text"] {
    background: var(--tcv-surface);
    color: var(--tcv-ink);
    border: 1px solid var(--tcv-rule);
}

/* Bootstrap declares its tab colours on .nav-tabs itself, not on :root, so
   remapping the global --bs-* tokens never reached them: the active tab kept
   Bootstrap's literal #495057 on #fff, which in dark mode is 1.15:1 — the
   selected tab was effectively invisible. Set them on the component. */
.nav-tabs {
    --bs-nav-tabs-border-color:            var(--tcv-rule);
    --bs-nav-tabs-link-hover-border-color: var(--tcv-rule-strong);
    --bs-nav-tabs-link-active-color:       var(--tcv-ink);
    --bs-nav-tabs-link-active-bg:          var(--tcv-surface);
    --bs-nav-tabs-link-active-border-color: var(--tcv-rule);
}

/* The hire-page tab cards hardcode a white fill and an #e5e5e5 border, the
   border with !important, so both have to be answered at this weight. */
.hire-developer-tabs .nav-link {
    background: var(--tcv-surface);
    color: var(--tcv-ink-2);
    border: 1px solid var(--tcv-rule) !important;
    border-radius: var(--tcv-radius);
}

.hire-developer-tabs .nav-link.active {
    background: var(--tcv-surface);
    color: var(--tcv-ink);
    border-color: var(--tcv-brand) !important;
}

.hire-developer-tabs .nav-link:hover {
    color: var(--tcv-ink);
    border-color: var(--tcv-rule-strong) !important;
}


/* ============================================================
   4. GEOMETRY
   Nine border-radius values were in use across the live pages
   (2, 3, 4, 6, 8, 10, 12, 14 and 45px). One, from the squircle
   in the mark. Pills keep their pill shape where they are
   genuinely pills.
   ============================================================ */

.tcv .ai-build-card,
.tcv .ai-pain-card,
.tcv .ai-why-item,
.tcv .ai-tier-card,
.tcv .ai-testimonial,
.tcv .ai-faq-item,
.tcv .ai-stack-pill,
.tcv .legal-toc,
.card,
.modal-content {
    border-radius: var(--tcv-radius);
}

.tcv .form-input input,
.tcv .form-input textarea,
.tcv .form-input select,
.form-control,
.form-select {
    border-radius: var(--tcv-radius-sm);
}


/* ============================================================
   5. BRAND, RATIONED
   One accent, used for marks, figures and the primary action.
   The old page had the nav CTA, the eyebrow label and every body
   link in the same green, so nothing had priority. The primary
   button is now a green fill with charcoal text, which is the
   logo's own pairing and passes at 5.2:1. White on green would
   have failed at 2.5:1.
   ============================================================ */

/* Bootstrap 5 drives .btn through its own --bs-btn-* variables, so setting
   those is what actually reaches the navbar button. Declaring background
   alone left white text on the green: 2.5:1, a contrast failure that was
   live on every page. */
.btn-primary,
.btn.btn-primary,
.btn.btn-primary.btn-style {
    --bs-btn-color:              var(--tcv-on-brand);
    --bs-btn-bg:                 var(--tcv-brand);
    --bs-btn-border-color:       var(--tcv-brand);
    --bs-btn-hover-color:        var(--tcv-on-brand);
    --bs-btn-hover-bg:           var(--tcv-panel-brand);
    --bs-btn-hover-border-color: var(--tcv-panel-brand);
    --bs-btn-active-color:       var(--tcv-on-brand);
    --bs-btn-active-bg:          var(--tcv-panel-brand);
    --bs-btn-active-border-color:var(--tcv-panel-brand);
    color: var(--tcv-on-brand);
}

.tcv .ai-btn-cta,
.btn-primary {
    background-color: var(--tcv-brand);
    border-color: var(--tcv-brand);
    color: var(--tcv-on-brand);
    border-radius: var(--tcv-radius);
    font-weight: 600;
    transition: background-color var(--tcv-dur) var(--tcv-ease),
                border-color var(--tcv-dur) var(--tcv-ease);
}

.tcv .ai-btn-cta:hover,
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--tcv-panel-brand);
    border-color: var(--tcv-panel-brand);
    color: var(--tcv-on-brand);
}

/* Secondary action is a hairline, never a second green. */
.tcv .ai-btn-outline-light {
    background: transparent;
    border: 1px solid var(--tcv-rule-strong);
    color: var(--tcv-ink);
    border-radius: var(--tcv-radius);
}

.tcv .ai-btn-outline-light:hover {
    background: var(--tcv-sunken);
    border-color: var(--tcv-ink-3);
    color: var(--tcv-ink);
}

/* Inside the charcoal closing band the same button needs the panel's ink,
   not the page's. This file loads after the design system, so without this
   rule the generic override above would put charcoal text on charcoal. */
.tcv .ai-cta-final .ai-btn-outline-light {
    border: 1px solid var(--tcv-panel-rule-2);
    color: var(--tcv-panel-ink);
    background: transparent;
}

.tcv .ai-cta-final .ai-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--tcv-panel-ink);
    color: var(--tcv-panel-ink);
}

/* Keyboard focus must stay visible against both grounds. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--tcv-brand);
    outline-offset: 2px;
}


/* ============================================================
   6. LEDGER COMPONENTS
   The two devices the whole system is built from, both taken
   from the logo rather than from anybody else's site.
   ============================================================ */

/* --- 6a. The section marker ---
   The logo wordmark sets VENDOR between two rules. That lockup
   becomes every section label on the site, replacing the rounded
   green pill the template used. */
.tcv .ai-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-family: var(--tcv-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tcv-ink-3);
}

.tcv .ai-eyebrow::before {
    content: "";
    flex: none;
    width: 34px;
    height: 1px;
    background: var(--tcv-brand);
}

/* Centred section labels get the rule on both sides, exactly as the
   wordmark does. Left-aligned ones take it on the leading edge only. */
.tcv .text-center .ai-eyebrow::after {
    content: "";
    flex: none;
    width: 34px;
    height: 1px;
    background: var(--tcv-brand);
}

/* --- Charcoal surfaces re-point the ink ramp ---
   The panel is charcoal in BOTH themes, so in light mode any descendant
   still reading --tcv-ink-* painted dark text on dark charcoal: the section
   label in the closing CTA measured 2.77:1, and --tcv-ink-2 body copy 2.04:1.
   Chasing each element would mean a rule per element and a new bug every time
   a block moves onto the panel. Redefining the ramp on the surface itself is
   one declaration block, and because custom properties resolve at use time
   every descendant rule follows with no further edit, in both themes. */
.tcv .ai-cta-final,
.tcv .tcv-record,
.w3l-footer footer.footer-28 {
    --tcv-ink:        var(--tcv-panel-ink);
    --tcv-ink-2:      var(--tcv-panel-ink-2);
    --tcv-ink-3:      var(--tcv-panel-ink-2);
    --tcv-brand-ink:  var(--tcv-panel-brand);
    --tcv-rule:       var(--tcv-panel-rule);
    --tcv-rule-strong: var(--tcv-panel-rule-2);
    --heading-color:  var(--tcv-panel-ink);
    --font-color:     var(--tcv-panel-ink-2);
    --primary-color:  var(--tcv-panel-brand);
    --bs-link-color:  var(--tcv-panel-brand);
    --bs-body-color:  var(--tcv-panel-ink-2);
}

/* --- 6b. The record ---
   The charcoal half of the mark, used as a block on the page. Label
   left, value right, hairline between: a line item. Figures are mono
   with tabular numerals so they line up down the column. */
.tcv .tcv-record {
    background: var(--tcv-panel);
    border-radius: var(--tcv-radius);
    padding: 26px 26px 10px;
}

.tcv .tcv-record-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tcv-panel-rule-2);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tcv-panel-ink-2);
}

.tcv .tcv-record-mark { color: var(--tcv-panel-brand); }

.tcv .tcv-record-list {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 0;
}

.tcv .tcv-record-list dt,
.tcv .tcv-record-list dd {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--tcv-panel-rule);
    font-size: 0.82rem;
    line-height: 1.4;
}

.tcv .tcv-record-list dt {
    color: var(--tcv-panel-ink-2);
    font-weight: 400;
}

.tcv .tcv-record-list dd {
    font-family: var(--tcv-font-mono);
    font-size: 0.78rem;
    color: var(--tcv-panel-ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.tcv .tcv-record-list dd.tcv-record-accent { color: var(--tcv-panel-brand); }

/* Marks the row that carries the figure. The accent above sets the VALUE in
   brand, which suits a short one like "2 weeks"; a two-sentence outcome in
   green is a wall of colour, so for those the label is marked instead and
   the sentence stays in the panel's reading ink. */
.tcv .tcv-record-list dt.tcv-record-key { color: var(--tcv-panel-brand); }

/* Last pair carries no rule. */
.tcv .tcv-record-list dt:nth-last-of-type(1),
.tcv .tcv-record-list dd:nth-last-of-type(1) { border-bottom: 0; }

@media (max-width: 575px) {
    .tcv .tcv-record { padding: 20px 20px 6px; }
    .tcv .tcv-record-list dt,
    .tcv .tcv-record-list dd { padding: 12px 0; }
}

/* --- 6c. The ledger ---
   Rows separated by hairlines, not cards floating on a tint. Index in
   mono, name in the display face, stack in mono, chevron on the right.
   The chevron is the carved bracket from the mark, which is why it is
   a chevron and not a generic arrow. */
.tcv .tcv-ledger {
    max-width: 980px;
    margin-inline: auto;
}

.tcv .tcv-ledger-head,
.tcv .tcv-ledger-rows a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1.5fr) minmax(0, 1.2fr) 28px;
    gap: 24px;
    align-items: baseline;
}

.tcv .tcv-ledger-head {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tcv-rule-strong);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tcv-ink-3);
}

.tcv .tcv-ledger-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.tcv .tcv-ledger-rows li { border-bottom: 1px solid var(--tcv-rule); }

.tcv .tcv-ledger-rows a {
    padding: 20px 0;
    color: var(--tcv-ink);
    text-decoration: none;
    transition: background-color var(--tcv-dur) var(--tcv-ease);
}

.tcv .tcv-ledger-rows a:hover { background: var(--tcv-sunken); }

.tcv .tcv-ledger-no {
    font-family: var(--tcv-font-mono);
    font-size: 0.72rem;
    color: var(--tcv-brand-ink);
}

.tcv .tcv-ledger-name {
    font-family: var(--tcv-font-display);
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.008em;
    color: var(--tcv-ink);
}

.tcv .tcv-ledger-stack {
    font-family: var(--tcv-font-mono);
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--tcv-ink-3);
    overflow-wrap: anywhere;
}

.tcv .tcv-ledger-go {
    justify-self: end;
    align-self: center;
    color: var(--tcv-ink-3);
    display: flex;
}

.tcv .tcv-ledger-rows a:hover .tcv-ledger-go { color: var(--tcv-brand-ink); }

/* On a phone the stack drops under the name rather than squeezing into
   a column too narrow to read. */
@media (max-width: 767px) {
    .tcv .tcv-ledger-head { display: none; }

    .tcv .tcv-ledger-rows a {
        grid-template-columns: 30px minmax(0, 1fr) 20px;
        gap: 4px 14px;
        padding: 16px 0;
        align-items: center;
    }

    .tcv .tcv-ledger-name { grid-column: 2; font-size: 1.15rem; }
    .tcv .tcv-ledger-no { grid-row: 1; align-self: center; }
    .tcv .tcv-ledger-go { grid-row: 1; }
    .tcv .tcv-ledger-stack { grid-column: 2; grid-row: 2; }
}

/* The hero sits on the page colour, not on a raised card. */
.tcv .ai-hero { background: var(--tcv-ground); }


/* --- 6d. Case records ---
   A case study is the same line item as the hero record, opened out: an
   index number, the engagement, what was wrong, and the figure it moved.
   The outcome is the only reason anyone reads this page, so it is the one
   element given the panel treatment rather than another rounded callout.
   ============================================================ */

/* Filter chips. These were inline styles that the filter script rewrote
   property by property on every click; a class toggle keeps the colours in
   the stylesheet, where the theme can reach them. */
.tcv .tcv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.tcv .tcv-chip {
    padding: 7px 16px;
    border: 1px solid var(--tcv-rule-strong);
    border-radius: 100px;
    background: transparent;
    color: var(--tcv-ink-2);
    font-family: var(--tcv-font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--tcv-dur) var(--tcv-ease),
                border-color var(--tcv-dur) var(--tcv-ease),
                background-color var(--tcv-dur) var(--tcv-ease);
}

.tcv .tcv-chip:hover {
    color: var(--tcv-ink);
    border-color: var(--tcv-ink-3);
}

.tcv .tcv-chip.is-active {
    background: var(--tcv-brand);
    border-color: var(--tcv-brand);
    color: var(--tcv-on-brand);
    font-weight: 600;
}

.tcv .tcv-chip:focus-visible,
.tcv .tcv-search:focus-visible {
    outline: 2px solid var(--tcv-brand-ink);
    outline-offset: 2px;
}

.tcv .tcv-search {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--tcv-rule-strong);
    border-radius: var(--tcv-radius-sm);
    background: var(--tcv-surface);
    color: var(--tcv-ink);
    font-family: var(--tcv-font-body);
    font-size: 0.92rem;
}

.tcv .tcv-search::placeholder { color: var(--tcv-ink-3); }

/* The record itself. A hairline frame, not a drop shadow: the system draws
   separation with rules, and a shadow over the dark ground reads as haze. */
.tcv .tcv-case {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--tcv-rule);
    border-radius: var(--tcv-radius);
    background: var(--tcv-surface);
    overflow: hidden;
    transition: border-color var(--tcv-dur) var(--tcv-ease);
}

.tcv a:hover .tcv-case,
.tcv a:focus-visible .tcv-case { border-color: var(--tcv-brand); }

.tcv .tcv-case-shot {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--tcv-rule);
}

.tcv .tcv-case-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    padding: 24px;
}

/* Index and sector on one line, in the eyebrow's register. The number is
   mono so a column of them lines up, as in the ledger. */
.tcv .tcv-case-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tcv-ink-3);
}

.tcv .tcv-case-no {
    font-family: var(--tcv-font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    color: var(--tcv-brand-ink);
}

.tcv .tcv-case-meta::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--tcv-rule);
}

.tcv .tcv-case h3 {
    margin: 0;
    font-family: var(--tcv-font-display);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--tcv-ink);
    text-wrap: balance;
}

.tcv .tcv-case-problem {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--tcv-ink-2);
}

/* The figure. Charcoal panel, label above, value below: the hero record's
   line item standing on its own. */
.tcv .tcv-case-outcome {
    margin-top: auto;
    padding: 14px 16px;
    border-radius: var(--tcv-radius-sm);
    background: var(--tcv-panel);
    --tcv-ink:       var(--tcv-panel-ink);
    --tcv-ink-2:     var(--tcv-panel-ink-2);
    --tcv-ink-3:     var(--tcv-panel-ink-2);
    --tcv-brand-ink: var(--tcv-panel-brand);
}

.tcv .tcv-case-outcome dt {
    margin-bottom: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tcv-panel-brand);
}

.tcv .tcv-case-outcome dd {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
    color: var(--tcv-panel-ink);
}

.tcv .tcv-case-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--tcv-brand-ink);
}

.tcv .tcv-case-go::after {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: width var(--tcv-dur) var(--tcv-ease);
}

.tcv a:hover .tcv-case-go::after,
.tcv a:focus-visible .tcv-case-go::after { width: 28px; }

.tcv .tcv-empty {
    padding: 48px 0;
    text-align: center;
    color: var(--tcv-ink-3);
}

.tcv .tcv-case-controls { row-gap: 0.75rem; }


/* --- 6e. The case study page ---
   Same record at the top, then the prose as numbered parts. The numbers do
   the work the old stack of bare h2s could not: they tell the reader how
   much is left and in what order it runs. */
.tcv .tcv-case-article { padding-top: 24px; }

.tcv .tcv-case-hero-shot {
    width: 100%;
    border-radius: var(--tcv-radius);
    border: 1px solid var(--tcv-rule);
    margin-bottom: 28px;
}

.tcv .tcv-case-lede {
    margin: 0 0 28px;
    max-width: none;
}

.tcv .tcv-case-brief { margin-bottom: 40px; }

.tcv .tcv-case-part {
    padding-top: 28px;
    border-top: 1px solid var(--tcv-rule);
    margin-bottom: 28px;
}

.tcv .tcv-case-part:first-child {
    padding-top: 0;
    border-top: 0;
}

.tcv .tcv-case-part h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.tcv .tcv-case-part-no {
    flex: none;
    font-family: var(--tcv-font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    color: var(--tcv-brand-ink);
    /* Sits on the heading's first baseline, not its box, so the number reads
       as a margin note rather than part of the title. */
    transform: translateY(-0.35em);
}

.tcv .tcv-case-part p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--tcv-ink-2);
}

.tcv .tcv-case-part p:last-child { margin-bottom: 0; }

.tcv .tcv-case-next {
    padding-top: 28px;
    border-top: 1px solid var(--tcv-rule);
    line-height: 1.8;
    color: var(--tcv-ink-2);
}

@media (max-width: 575px) {
    .tcv .tcv-case-part h2 { gap: 10px; }
}

/* Bootstrap's .row children carry their own layout, so make the [hidden]
   the filter script sets actually stick. */
.tcv .cs-item[hidden],
.tcv .tcv-empty[hidden] { display: none !important; }

@media (max-width: 575px) {
    .tcv .tcv-case-body { padding: 20px; gap: 10px; }
    .tcv .tcv-case-shot { height: 160px; }
    .tcv .tcv-chips { justify-content: flex-start; }
}


/* --- 6g. Figures ---
   Stat blocks were a 2.4rem sans at weight 700, in brand green. Two problems:
   Archivo ships 400/500/600 here, so 700 was synthesised faux-bold, and a
   system whose whole identity is records and figures should not set its
   figures in the same face as its body copy.

   Figures are mono with tabular numerals, so a row of them aligns on the
   digit and reads as data. The label below carries the weight instead, which
   is also where the eye goes second. */
.tcv .tcv-figure {
    display: block;
    /* The old template stylesheet still ships p.counter{margin:30px 0}, and
       two of these figures carry .counter for the count-up script. Without an
       explicit top margin here those two sat 30px below their neighbours and
       the row of figures read as broken. */
    margin-top: 0;
    margin-bottom: 4px;
    font-family: var(--tcv-font-mono);
    font-size: clamp(1.8rem, 3.4vw, 2.3rem);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--tcv-brand-ink);
}

.tcv .tcv-figure-sm { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }

.tcv .tcv-figure-label {
    display: block;
    margin: 0;
    font-family: var(--tcv-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tcv-ink-2);
}

/* A figure sitting on the charcoal panel takes the panel's brand, which the
   surface rule above already re-points, so nothing extra is needed here. */


/* --- 6f. Inline icons ---
   A webfont glyph sat on the text baseline for free; an inline SVG is a
   replaced element and sits on the bottom edge, so it needs the nudge. */
.tcv-icon {
    display: inline-block;
    vertical-align: -0.145em;
    flex: none;
}

/* Inside a flex row the nudge is wrong and shrinking is worse. */
.tcv .tcv-ledger-rows .tcv-icon,
.tcv .tcv-case-go .tcv-icon,
.d-flex > .tcv-icon { vertical-align: 0; }


/* ============================================================
   7. MOTION
   One curve, short durations, and nothing at all for anyone who
   has asked the OS to stop animating things.
   ============================================================ */

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