/**
 * Every page except the home page. Kept separate so a change here can never
 * disturb the home page, and vice versa.
 */

/* ---------- The banner at the top of an inner page ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(34px, 4vw, 60px)) clamp(40px, 5vw, 72px);
  background-image: linear-gradient(162deg, var(--ink) 0%, var(--ink-2) 58%, #130f39 100%);
  border-bottom: 1px solid var(--ink-line);
  color: var(--on-ink-dim);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -20%;
  height: 160%;
  background:
    radial-gradient(40% 46% at 20% 40%, rgba(43, 217, 240, 0.20), transparent 70%),
    radial-gradient(40% 46% at 82% 60%, rgba(154, 107, 255, 0.24), transparent 70%);
  pointer-events: none;
}
.page-head > * { position: relative; }
.page-head h1 { color: #ffffff; margin-bottom: 16px; }
.page-head .lede { color: #c9d4f2; max-width: 58ch; }
.page-head .eyebrow { color: #6fe3f5; }
.page-head :focus-visible { outline-color: #6fe3f5; }

/* The masthead floats over the banner, the same as it does over the home
   page hero. */
.page-head ~ * .site-header,
body:has(.page-head) .site-header:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
body:has(.page-head) .site-header:not(.is-stuck) .nav__link,
body:has(.page-head) .site-header:not(.is-stuck) .header__phone { color: #cfd9f8; }
body:has(.page-head) .site-header:not(.is-stuck) .nav__link:hover,
body:has(.page-head) .site-header:not(.is-stuck) .nav__link[aria-current="page"],
body:has(.page-head) .site-header:not(.is-stuck) .header__phone:hover { color: #ffffff; }
body:has(.page-head) .site-header:not(.is-stuck) .icon-btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}
body:has(.page-head) .site-header:not(.is-stuck) .icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
body:has(.page-head) .site-header:not(.is-stuck) .brand img.brand__light { display: none; }
body:has(.page-head) .site-header:not(.is-stuck) .brand img.brand__dark  { display: block; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--on-ink-dim);
}
.crumbs a { color: var(--on-ink-dim); }
.crumbs a:hover { color: #6fe3f5; }
.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.6;
}
.crumbs [aria-current="page"] { color: #ffffff; font-weight: 600; }

/* ---------- Ordinary page text ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.1rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ---------- Two-column page layout ---------- */
.split {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 940px) { .split { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } }
@media (min-width: 940px) { .split--wide-right { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); } }

/* A panel that stays beside the text while there is room for it. */
.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 940px) and (min-height: 760px) {
  .side-panel--sticky { position: sticky; top: calc(var(--header-h) + 20px); }
}
.side-panel h2 { font-size: 1.15rem; margin-bottom: 14px; }
.side-panel__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.side-panel__list a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 550;
}
.side-panel__list a:hover { color: var(--heading); text-decoration: none; }
.side-panel__list .icon { width: 19px; height: 19px; color: var(--cyan); flex: none; }
.side-panel__list [aria-current="page"] { color: var(--heading); font-weight: 700; }

/* ---------- "What this covers" list ---------- */
.covers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 680px) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.covers li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
}
.covers .icon { width: 19px; height: 19px; color: var(--cyan); flex: none; margin-top: 4px; }

/* ---------- Benefit cards ---------- */
.benefits { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px)  { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.benefit {
  height: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.benefit b { display: block; color: var(--heading); font-size: 1.04rem; margin-bottom: 6px; }
.benefit p { font-size: 0.95rem; margin: 0; }

/* ---------- Service page banner picture ---------- */
.service-hero__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(126, 160, 255, 0.34);
  box-shadow: 0 26px 60px rgba(4, 10, 32, 0.45);
  aspect-ratio: 16 / 11.5;
}
.service-hero__figure img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact details ---------- */
.contact-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 21px; height: 21px; color: var(--cyan); flex: none; margin-top: 3px; }
.contact-list b { display: block; color: var(--heading); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.contact-list a { font-weight: 600; }

/* ---------- Capability tiles on Our work ---------- */
.work-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px)  { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.work-card figure { margin: 0; aspect-ratio: 16 / 11.5; overflow: hidden; background: #0b1330; }
.work-card figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-card__body { padding: 22px 24px 26px; }
.work-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.work-card p { font-size: 0.94rem; margin: 0; }

.notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border-left: 3px solid var(--cyan);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  font-size: 0.96rem;
  color: var(--text);
  max-width: 76ch;
}
.notice .icon { color: var(--cyan); margin-top: 3px; }

/* ---------- Not found ---------- */
.not-found { max-width: 620px; }
.not-found__code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

/* A long email address must wrap rather than push the column wide on a
   narrow phone. */
.contact-list a,
.contact-list span { overflow-wrap: anywhere; }
