.services-directory__intro { padding-top:calc(var(--header-h) + 4rem); padding-bottom:3.5rem; text-align:center; }
body main.services-directory h1 { font-size:clamp(2rem,3.1vw,3rem)!important; max-width:26ch!important; margin:0 auto 1.25rem; text-wrap:balance; }
.services-directory__intro > p { max-width:48ch; margin:0 auto; color:var(--muted); font-size:1.05rem; line-height:1.65; }
.services-directory__nav { position:sticky; top:var(--header-h); z-index:20; background:var(--paper); border-block:1px solid var(--line); }
.services-directory__nav-inner { display:flex; justify-content:center; gap:clamp(1.5rem,4vw,4rem); overflow-x:auto; scrollbar-width:none; }
.services-directory__nav-inner::-webkit-scrollbar { display:none; }
.services-directory__nav a { display:block; flex:0 0 auto; position:relative; padding:1.2rem 0; font-size:.9rem; color:var(--muted); text-decoration:none; transition:color .2s; }
.services-directory__nav a::after { content:""; position:absolute; height:2px; left:0; right:0; bottom:0; background:var(--ink); transform:scaleX(0); transition:transform .25s ease; }
.services-directory__nav a:hover,.services-directory__nav a[aria-current] { color:var(--ink); }
.services-directory__nav a[aria-current]::after { transform:scaleX(1); }
.service-detail { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(3rem,7vw,7rem); align-items:start; padding-block:4rem; scroll-margin-top:calc(var(--header-h) + 5rem); }
.service-detail + .service-detail { border-top:1px solid var(--line); }
.service-detail__summary { position:sticky; top:calc(var(--header-h) + 6.5rem); }
body main.services-directory .service-detail h2 { font-size:clamp(1.75rem,2.2vw,2.125rem)!important; font-weight:500; margin:0 0 1.5rem; }
.service-detail__summary > p { color:var(--muted); line-height:1.7; font-size:1rem; max-width:39ch; margin:0; }
.service-detail__actions { display:flex; align-items:center; flex-wrap:wrap; gap:1.5rem; margin-top:2rem; }
.service-detail__actions .button { min-width:0; font-size:.85rem; }
.service-detail__actions .text-link { font-size:.85rem; }
.service-detail__capabilities { min-width:0; }
.service-detail__capabilities article { padding:1.5rem 0; border-top:1px solid var(--line); }
.service-detail__capabilities article:first-child { padding-top:0; border-top:0; }
body main.services-directory .service-detail__capabilities h3 { font-size:1.2rem!important; font-weight:500; margin:0 0 .65rem; }
.service-detail__capabilities p { margin:0; font-size:.95rem; line-height:1.65; color:var(--muted); max-width:52ch; }
.services-directory a:focus-visible { outline:2px solid var(--ink); outline-offset:5px; }
@media(max-width:900px) {
  .services-directory__intro { padding-top:calc(var(--header-h) + 3rem); padding-bottom:2.5rem; }
  .service-detail { gap:2.5rem; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
  .service-detail__actions { align-items:flex-start; flex-direction:column; gap:1.25rem; }
}
@media(max-width:720px) {
  body main.services-directory h1 { font-size:clamp(1.875rem,8.5vw,2.25rem)!important; }
  .services-directory__intro { padding-top:calc(var(--header-h) + 2rem); padding-bottom:2rem; }
  .services-directory__intro > p { font-size:1rem; }
  .services-directory__nav-inner { justify-content:space-between; gap:1.1rem; }
  .services-directory__nav a { font-size:.8rem; padding:1rem 0; }
  .service-detail { grid-template-columns:minmax(0,1fr); padding-block:2.5rem; gap:2rem; scroll-margin-top:calc(var(--header-h) + 4.5rem); }
  .service-detail__summary { position:static; }
  .service-detail__summary > p { max-width:none; }
  .service-detail__actions { flex-direction:row; align-items:center; gap:1.25rem; margin-top:1.5rem; }
  .service-detail__actions .button { width:auto; align-self:auto; }
  .service-detail__capabilities article:first-child { padding-top:1.5rem; border-top:1px solid var(--line); }
  body main.services-directory .service-detail__capabilities h3 { font-size:1.125rem!important; }
}
@media(prefers-reduced-motion:reduce) {
  html:has(.services-directory) { scroll-behavior:auto; }
  .services-directory__nav a,.services-directory__nav a::after { transition:none; }
}

/* Compact, non-interactive tool identities beneath each service summary. */
.service-tools { display:flex; flex-wrap:wrap; align-items:center; gap:1rem 1.35rem; margin:1.75rem 0 0; padding:0; list-style:none; max-width:440px; }
.service-tools li { display:flex; align-items:center; gap:.5rem; color:var(--muted); font-size:.8rem; line-height:1.4; }
.service-tools img { display:block; width:26px; height:26px; object-fit:contain; filter:grayscale(1) brightness(0); opacity:.65; flex:none; }
.service-tools img[src$="clarity.png"] { filter:grayscale(1); }
.service-tools__wordmark img { width:65px; height:24px; }
.service-tools__wordmark span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
html[data-theme="dark"] .service-tools img { filter:brightness(0) invert(1); opacity:.75; }
html[data-theme="dark"] .service-tools img[src$="clarity.png"] { filter:grayscale(1) brightness(1.8); }
@media(max-width:720px) {
  .service-tools { gap:.9rem 1.1rem; margin-top:1.5rem; }
  .service-tools li { font-size:.775rem; }
  .service-tools img { width:24px; height:24px; }
  .service-tools__wordmark img { width:60px; height:24px; }
}

/* Wide service artwork; contained content stays aligned with the directory. */
.service-detail { column-gap:clamp(3rem,7vw,7rem); row-gap:3rem; }
.service-detail__banner { grid-column:1 / -1; margin:0 calc(-1 * var(--pad)); overflow:hidden; background:#181a19; }
.service-detail__banner img { display:block; width:100%; height:auto; aspect-ratio:3 / 1; object-fit:cover; }
@media(max-width:720px) {
  .service-detail { row-gap:2rem; }
  .service-detail__banner { margin-inline:calc(-1 * var(--pad)); }
  .service-detail__banner img { aspect-ratio:2 / 1; object-fit:cover; object-position:center; }
}


/* Quiet atmosphere and a more generous opening above the services title. */
.services-directory__intro { position:relative; isolation:isolate; overflow:hidden; padding-top:calc(var(--header-h) + 8rem); padding-bottom:5rem; }
.services-directory__intro > h1,.services-directory__intro > p { position:relative; z-index:1; }
/* Outward light trails inspired by the original development page. */
.services-directory__streams { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; mask-image:linear-gradient(transparent,#000 20%,#000 72%,transparent); }
@media(max-width:900px) { .services-directory__intro { padding-top:calc(var(--header-h) + 6rem); padding-bottom:4rem; } }
@media(max-width:720px) { .services-directory__intro { padding-top:calc(var(--header-h) + 4rem); padding-bottom:3rem; } }


/* Approved aurora ribbons, with a quiet centre for the copy. */
.services-directory__streams { opacity:1;filter:none;mask-image:linear-gradient(transparent,#000 18%,#000 80%,transparent); }
.services-directory__intro::after { content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse 360px 135px at var(--streams-x,50%) var(--streams-y,60%),rgba(13,14,18,.92),rgba(13,14,18,.65) 45%,transparent 100%); }
@media(max-width:720px) { .services-directory__intro::after { background:radial-gradient(ellipse 205px 160px at var(--streams-x,50%) var(--streams-y,60%),rgba(13,14,18,.92),rgba(13,14,18,.65) 45%,transparent 100%); } }

/* Aurora colour over a truly black services hero. */
.services-directory__intro { background:#000; }
.services-directory__intro::after { background:radial-gradient(ellipse 360px 135px at var(--streams-x,50%) var(--streams-y,60%),rgba(0,0,0,.92),rgba(0,0,0,.65) 45%,transparent 100%); }
@media(max-width:720px) { .services-directory__intro::after { background:radial-gradient(ellipse 205px 160px at var(--streams-x,50%) var(--streams-y,60%),rgba(0,0,0,.92),rgba(0,0,0,.65) 45%,transparent 100%); } }
