/* Controlled readability pass: keep the existing VIT composition and palette. */
:root {
  --muted: #a2afba;
  --muted-2: #8293a1;
  --flow-frame: 1280px;
  --flow-gutter: clamp(24px, 5vw, 72px);
}

/* Shared navigation, labels and secondary text. */
.desktop-nav a { color: #c0cbd4; font-size: 14px; }
.mobile-menu a { color: #e0e7ec; font-size: 16px; line-height: 1.5; }
.eyebrow, .service-tag, .service-no, .system-readout span, .system-readout small,
.story-kicker span, .story-kicker small { color: #a4b2bd; }
.logo-placeholder { color: #a2afba; }

/* Home page: preserve the existing alternating layouts and supplied imagery. */
.opening-depth .hero-lead,
.opening-depth .who-statement p,
.opening-depth .service-intro > p,
.opening-depth .handover-copy p,
.opening-depth .company-main p,
.opening-depth .contact-bottom p { color: #c0cbd4; }
.opening-depth .benefit-tabs button { color: #bdc9d2; font-size: 13px; }
.opening-depth .benefit-tabs button span { color: #a5b3be; }
.opening-depth .benefit-panels h3 { color: #adbdc9; }
.opening-depth .benefit-rail small,
.opening-depth .principle-lines p,
.opening-depth .founder-copy > span,
.opening-depth .founder-copy p { color: #b2bec8; }
.opening-depth .service-tag,
.opening-depth .service-no,
.opening-depth .process-node b,
.opening-depth .handover-spec span { color: #a4b2bd; }
.opening-depth .service-panel p,
.opening-depth .process-node p { color: #c0cbd4; font-size: 16px; line-height: 1.7; }
.opening-depth .service-go { color: #c0cbd4; font-size: 12px; letter-spacing: .08em; }
.opening-depth .process-node h3 { margin-bottom: 12px; }
.opening-depth .principle-lines h3 { color: #edf2f5; }
.opening-depth .founder-copy .text-link,
.opening-depth .text-link { color: #e0e8ee; font-size: 12px; }
.opening-depth .workflow-track { color: #c0cbd4; font-size: 12px; }
.opening-depth .site-footer .footer-grid h2 { color: #cad4dc; }
.opening-depth .site-footer .footer-grid a,
.opening-depth .site-footer .footer-grid p,
.opening-depth .site-footer .footer-bottom { color: #aebbc5; }

/* Launch contrast repair: retain the vault photograph and its framing. */
@media (min-width: 821px) {
  .opening-depth .site-footer::after { opacity: .30; }
}

/* Internal pages: slightly broader reading canvas, clear text hierarchy and calmer gaps. */
.service-detail {
  --service-frame: 1480px;
  --service-component: 18px;
  --service-group: 30px;
  --service-content: 48px;
  --service-feature: 72px;
  --service-section: 104px;
}
.service-detail .internal-hero .eyebrow { color: #c0cbd4; font-size: 13px; }
.service-detail .internal-hero h1 { max-width: 1280px; }
.service-detail .internal-hero p:not(.eyebrow) { color: #c0cbd4; max-width: 620px; }
.service-detail .content-section { gap: clamp(40px, 6vw, 88px); }
.service-detail .content-section h2 { color: #f2f5f7; }
.service-detail .content-section p,
.service-detail .content-section li { color: #c0cbd4; font-size: 18px; line-height: 1.75; }
.service-detail .content-section:first-child p:first-child { color: #edf2f5; }
.service-detail .content-section ul { gap: 16px 40px; }
.service-detail .content-cta { padding-block: 40px; }
.service-detail .content-cta h2 { line-height: 1.18; }
.service-detail .simple-form label { color: #c0cbd4; font-size: 13px; }
.service-detail .form-status { color: #b2bec8; font-size: 13px; }
.service-detail .site-footer .footer-grid h2 { color: #cad4dc; }
.service-detail .site-footer .footer-grid a,
.service-detail .site-footer .footer-grid p,
.service-detail .site-footer .footer-bottom { color: #aebbc5; }

@media (max-width: 1100px) {
  .service-detail .content-section { gap: 40px; }
  .service-detail .internal-hero h1 { font-size: clamp(48px, 7vw, 76px); }
}

@media (max-width: 820px) {
  .service-detail { --service-feature: 56px; --service-section: 72px; }
  .service-detail .internal-hero h1 { font-size: clamp(42px, 9vw, 68px); line-height: 1.04; }
  .service-detail .content-section p,
  .service-detail .content-section li { font-size: 17px; }
  .service-detail .content-section { padding-block: 56px; }
  .service-detail .content-section:first-child { padding-top: 0; }
}

@media (max-width: 480px) {
  .service-detail { --service-gutter: 22px; --service-component: 16px; --service-group: 24px; }
  .service-detail .internal-hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .service-detail .content-section h2 { line-height: 1.12; }
  .service-detail .content-section p,
  .service-detail .content-section li { font-size: 16px; line-height: 1.72; }
  .service-detail .content-section ul { padding-left: 20px; }
  .service-detail .content-cta { gap: 24px; }
}


/* 28 October final corrections: targeted text and return navigation only. */
.opening-depth .story-services .service-panel p { color:#d6e0e8; }
.opening-depth .story-services .service-go { color:#edf2f5; font-size:13px; }
.opening-depth .sheet-front .package-label,
.opening-depth .sheet-front .package-footer { color:#c0cbd4; font-size:11px; }
.opening-depth .site-footer .footer-grid a,
.opening-depth .site-footer .footer-grid p,
.opening-depth .site-footer .footer-bottom,
.service-detail .site-footer.vit-footer-shared .footer-grid a,
.service-detail .site-footer.vit-footer-shared .footer-grid p,
.service-detail .site-footer.vit-footer-shared .footer-bottom { color:#cbd5de; }
.opening-depth .site-footer .footer-service-years span { color:#c0cbd4; }

/* Contextual return links retain their existing placement. */
.page-return { display:flex; flex-wrap:wrap; align-items:center; gap:8px 24px; margin:0 0 20px; }
.service-detail main .page-return a,
.service-detail main a.tool-directory-return {
  display:inline-flex; align-items:center; min-height:44px; max-width:100%;
  color:#d6e0e8; font-size:14px; line-height:1.5; letter-spacing:0;
  text-decoration:underline; text-underline-offset:4px; overflow-wrap:anywhere;
}
.service-detail main .page-return a:hover,
.service-detail main a.tool-directory-return:hover { color:#fff; }
.service-detail main .page-return a:focus-visible,
.service-detail main a.tool-directory-return:focus-visible { outline:2px solid #d6e0e8; outline-offset:4px; }
.service-detail main a.tool-directory-return { margin:0 24px 12px 0; }
.contact-flow .contact-details .contact-route-note { color:#cbd5de; font-size:14px; line-height:1.6; }

/* The Why VIT statement must also remain readable when scripting is unavailable. */
html:not(.js) .opening-depth #why .reveal { opacity:1; transform:none; }

/* One floating return control on every long page; no duplicate footer links. */
.opening-depth .back-to-top,
.service-detail .back-to-top {
  position:fixed; right:max(24px,env(safe-area-inset-right));
  bottom:max(24px,env(safe-area-inset-bottom)); z-index:40;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  width:76px; min-width:0; height:44px; min-height:44px; margin:0; padding:0 10px;
  border:1px solid #8293a1; border-radius:4px; background:#071827; color:#edf2f5;
  font-size:12px; line-height:1; letter-spacing:.04em; text-decoration:none;
  box-shadow:0 2px 10px #0006;
}
.opening-depth .back-to-top > span:first-child,
.service-detail .back-to-top > span:first-child { font-size:22px; }
.opening-depth .back-to-top > .back-to-top-label,
.service-detail .back-to-top > .back-to-top-label { font-size:11px; }
.opening-depth .back-to-top:hover,
.service-detail .back-to-top:hover { color:#fff; border-color:#edf2f5; }
.opening-depth .back-to-top:focus-visible,
.service-detail .back-to-top:focus-visible { outline:2px solid #edf2f5; outline-offset:4px; }
.opening-depth .back-to-top[hidden],
.service-detail .back-to-top[hidden] { display:none; }
body:has(dialog[open]) .back-to-top { visibility:hidden; }
@media (max-width:820px) {
  .opening-depth .back-to-top,
  .service-detail .back-to-top {
    right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom));
    width:48px; height:48px; min-height:48px; border-radius:50%; padding:0;
  }
  .opening-depth .back-to-top .back-to-top-label,
  .service-detail .back-to-top .back-to-top-label { display:none; }
}
