/* Remaining supporting pages share the approved VIT frame and atmosphere. */
:is(.directory-flow,.story-flow,.contact-flow) { --service-frame:1080px; --service-gutter:clamp(24px,5vw,64px); background:#000912; }
:is(.directory-flow,.story-flow,.contact-flow) main { position:relative; isolation:isolate; overflow:clip; max-width:1560px; margin-inline:auto; background:radial-gradient(ellipse at 76% 18%,#064d783d,transparent 34%),radial-gradient(ellipse at 35% 65%,#07305235,transparent 36%),#000d19; }
:is(.directory-flow,.story-flow,.contact-flow) main::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(90deg,#000912,transparent 12%,transparent 88%,#000912); }
:is(.directory-flow,.story-flow,.contact-flow) .internal-hero { border:0; background:none; overflow:visible; }
:is(.directory-flow,.story-flow,.contact-flow) .internal-hero::after { display:none; }
:is(.directory-flow,.story-flow,.contact-flow) .internal-hero > .shell { position:relative; display:block; }
:is(.directory-flow,.story-flow,.contact-flow) .eyebrow { margin-bottom:32px; font-size:11px; letter-spacing:.18em; color:#aebbc5; }
:is(.directory-flow,.story-flow,.contact-flow) .eyebrow::before { content:""; display:inline-block; width:24px; height:1px; background:#67b7ec; vertical-align:middle; margin-right:12px; }
:is(.directory-flow,.story-flow,.contact-flow) .internal-hero h1 { margin:0; line-height:1.08; letter-spacing:-.045em; font-weight:510; }
:is(.directory-flow,.story-flow,.contact-flow) .internal-hero h1 span { color:#b6d4e9; }
:is(.directory-flow,.story-flow,.contact-flow) .internal-body { padding:0 0 104px; }
:is(.directory-flow,.story-flow,.contact-flow) .section-index { display:block; margin-bottom:24px; color:#a2afba; font-size:11px; letter-spacing:.14em; }
:is(.directory-flow,.story-flow,.contact-flow) h2 { margin:0; font-weight:510; letter-spacing:-.03em; line-height:1.2; }
:is(.directory-flow,.story-flow,.contact-flow) main p { font-size:17px; line-height:1.85; color:#c0cbd4; }
:is(.directory-flow,.story-flow,.contact-flow) main .button-primary { min-height:52px; padding-inline:24px; background:linear-gradient(#071827,#071827) padding-box,var(--spectrum) border-box; border:1px solid transparent; color:#f5f7fa; white-space:nowrap; }
:is(.directory-flow,.story-flow,.contact-flow) main .button-primary:hover { background:linear-gradient(#102a3d,#102a3d) padding-box,var(--spectrum) border-box; }
:is(.directory-flow,.story-flow,.contact-flow) main a:focus-visible { outline:2px solid #b6d4e9; outline-offset:6px; }

/* Internal-page footer uses the approved homepage content and blue vault treatment. */
.service-detail .site-footer.vit-footer-shared { position:relative; isolation:isolate; padding:64px 0 0; background:#000d19; min-height:0; border-top:1px solid #b5d8f026; }
.service-detail .site-footer.vit-footer-shared::before { display:block; opacity:.35; }
.service-detail .site-footer.vit-footer-shared::after { content:""; position:absolute; left:0; right:0; bottom:0; height:180px; z-index:-1; pointer-events:none; background:url('../assets/footer-catalog-vault.png?v=approved-20261026-1952') center bottom / cover no-repeat; filter:grayscale(1) sepia(1) hue-rotate(140deg) saturate(1.4) brightness(.75); opacity:.3; mask-image:linear-gradient(180deg,transparent,black 30%,black 80%,transparent); }
.service-detail .vit-footer-shared .frame { width:min(calc(100% - 2 * clamp(24px,5vw,64px)),1280px); }
.service-detail:is(.story-flow, .contact-flow, .vit-tools-directory, .error-page) .vit-footer-shared .frame {
 width: min(1080px, calc(100% - 2 * clamp(24px, 5vw, 64px)));
}
.service-detail .vit-footer-shared .footer-grid { display:grid; grid-template-columns:1fr .7fr 1.25fr 1.15fr; gap:36px; align-items:start; padding-bottom:40px; }
.service-detail .vit-footer-shared .footer-brand img { width:190px; max-width:100%; height:auto; }
.service-detail .vit-footer-shared .footer-brand p { margin-top:24px; font-size:15px; line-height:1.8; color:#c0cbd4; }
.service-detail .vit-footer-shared .footer-grid h2 { margin:0 0 16px; font-size:12px; line-height:1.7; letter-spacing:.12em; color:#e0e8ee; }
.service-detail .vit-footer-shared .footer-grid a,.service-detail .vit-footer-shared .footer-grid p { color:#c0cbd4; font-size:14px; line-height:1.8; }
.service-detail .vit-footer-shared .footer-grid a { display:block; min-height:32px; margin:0; padding-block:4px; text-decoration:none; overflow-wrap:anywhere; }
.service-detail .vit-footer-shared .footer-grid a:hover { color:#fff; text-decoration:underline; text-underline-offset:5px; }
.service-detail .vit-footer-shared .footer-grid p { margin:0 0 4px; }
.service-detail .vit-footer-shared .footer-social { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.service-detail .vit-footer-shared .footer-social .social-icon { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-height:44px; margin:0; padding:0; color:#e0e8ee; border:1px solid #415563; border-radius:4px; background:#071827; }
.service-detail .vit-footer-shared .social-icon svg { width:24px; height:24px; }
.service-detail .vit-footer-shared .footer-social .social-icon:hover,.service-detail .vit-footer-shared .footer-social .social-icon:focus-visible { background:#102a3d; border-color:#c0cbd4; color:#f2f6fa; }
.service-detail .vit-footer-shared .footer-bottom { flex-direction:row; flex-wrap:wrap; align-items:center; gap:16px 32px; margin-bottom:100px; padding:24px 0; color:#c0cbd4; font-size:13px; border-top:1px solid #b5d8f026; }
.service-detail .vit-footer-shared .footer-bottom a { display:inline-flex; align-items:center; min-height:32px; }
.service-detail .vit-footer-shared a:focus-visible { outline:2px solid #e0e8ee; outline-offset:4px; }

/* Section 07: atmosphere only; existing dimensions, copy and motion stay intact. */
.opening-depth #contact > .contact-route-art { position:absolute; width:660px; height:auto; right:0; top:50%; transform:translateY(-50%); opacity:.38; pointer-events:none; mask-image:linear-gradient(90deg,transparent,black 35%,black 85%,transparent); }
@media(max-width:1100px) {
 .service-detail .vit-footer-shared .footer-grid { grid-template-columns:1fr 1fr; gap:40px 56px; }
}
@media(max-width:820px) {
 :is(.directory-flow,.story-flow,.contact-flow) .internal-body { padding-bottom:72px; }
 .opening-depth #contact > .contact-route-art { width:550px; right:-140px; opacity:.25; }
}
@media(max-width:540px) {
 :is(.directory-flow,.story-flow,.contact-flow) { --service-gutter:24px; }
 :is(.directory-flow,.story-flow,.contact-flow) main p { font-size:16px; line-height:1.8; }
 .service-detail .site-footer.vit-footer-shared { padding-top:48px; }
 .service-detail .vit-footer-shared .footer-grid { grid-template-columns:1fr; gap:32px; }
 .service-detail .vit-footer-shared .footer-grid a { min-height:36px; }
 .service-detail .vit-footer-shared .footer-brand p { margin-top:16px; }
 .service-detail .vit-footer-shared .footer-bottom { flex-direction:column; align-items:flex-start; margin-bottom:90px; }
 .service-detail .site-footer.vit-footer-shared::after { height:260px; background-size:auto 260px; background-position:45% bottom; opacity:.25; }
 .opening-depth #contact > .contact-route-art { width:430px; right:-200px; opacity:.2; }
}

/* Shared footer artwork now belongs to Technical handover. */
.service-detail .site-footer.vit-footer-shared::after { content:none; background-image:none; }

/* Let long headings and control labels reflow at narrow widths and enlarged text sizes. */
@media screen and (max-width: 540px) {
 .service-detail main :is(h1, h2, h3, summary) {
  min-width: 0;
  overflow-wrap: anywhere;
 }
 .workflow-flow main .workflow-group {
  grid-template-columns: minmax(0, 1fr);
 }
 .workflow-flow main .workflow-options summary {
  max-width: 100%;
 }
 .service-detail main :is(.content-cta .button, .data-handover-link, .workflow-options .button) {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
 }
 .opening-depth main .vit-stage-controls:not([hidden]) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(30%, 4.75rem)), 1fr));
 }
 .opening-depth main :is(.vit-stage-controls, .sample-file-controls) button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
 }
}
