/* Shared navigation and home layout. Page-specific rules live in interior.css. */
:root { --ink: #14283e; --deep: #12518a; --accent: #10395e; --mist: #edf4fa; --rule: #d5e1ec; --mast-height: 76px; }
[id] { scroll-margin-top: calc(var(--mast-height) + 16px); }
.st-masthead { position: sticky; top: 0; z-index: 5; background: #fff; }
.skip { z-index: 10; }
.st-masthead .mast-inner { min-height: var(--mast-height); gap: clamp(14px, 2vw, 34px); }
.st-masthead .mast-nav { gap: clamp(11px, 1.5vw, 26px); }
.st-masthead .mast-nav > a, .st-nav-label > a { padding-block: 23px; font-size: .94rem; }
.st-masthead .mast-quote { background: var(--deep); border-color: var(--deep); color: #fff; }
.st-masthead .mast-quote:hover { background: var(--accent); }
.st-nav-label { display: flex; align-items: center; }
.st-nav-toggle {
  display: grid; place-items: center; min-width: 30px; min-height: 44px;
  border: 0; background: transparent; color: var(--deep); cursor: pointer;
}
.st-nav-toggle::before {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-1px,-1px);
}
.st-nav-toggle[aria-expanded="true"]::before { transform: rotate(225deg) translate(-1px,-1px); }
.st-nav-toggle:is(:hover, [aria-expanded="true"]) { background: var(--mist); }
.st-mega {
  position: absolute; top: 100%; inset-inline: 0; border-block: 1px solid var(--rule);
  background: #fff; box-shadow: 0 15px 24px rgb(16 43 77 / .14);
  max-height: calc(100dvh - var(--mast-height)); overflow: auto;
}
.st-mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .34fr); gap: 34px; padding-block: 30px; }
.st-mega-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.st-mega-service-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-mega-groups section { min-width: 0; padding: 8px 14px 8px 0; border-right: 1px solid var(--rule); }
.st-mega h2 { font-size: 1.15rem; margin-bottom: 8px; }
.st-mega p { color: var(--muted); font-size: .88rem; max-width: 30ch; }
.st-mega a { padding: 0; color: var(--deep); }
.st-mega a:hover { text-decoration: underline; }
.st-mega ul { list-style: none; margin: 12px 0 0; padding: 0; }
.st-mega li a { display: inline-flex; align-items: center; min-height: 32px; }
.st-mega .st-mega-feature { align-self: start; display: block; border-bottom: 1px solid var(--rule); }
.st-mega-feature img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.st-mega-feature > span { display: flex; justify-content: space-between; padding: 12px 14px; }

.st-industry-hero { position: relative; isolation: isolate; background: #132f4c; }
.st-industry-stage { position: relative; height: clamp(410px, 34vw, 560px); touch-action: pan-y; }
.st-hero-slide {
  position: absolute; display: grid; align-items: center; inset: 0; text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
.st-hero-slide.is-active { z-index: 1; opacity: 1; pointer-events: auto; }
.st-hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-hero-slide::after { content: ""; position: absolute; inset: 0; background: rgb(14 43 72 / .16); pointer-events: none; }
.st-hero-slide:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.st-hero-card-frame {
  position: relative; z-index: 1; display: grid; justify-items: end;
  width: min(var(--frame), calc(100% - 152px));
}
.st-hero-card {
  display: grid; align-content: center; width: min(100%, 410px); min-height: clamp(208px, 17vw, 248px);
  padding: clamp(24px, 2.7vw, 40px); color: var(--ink); background: #fff;
  border-radius: 4px; box-shadow: 0 10px 28px rgb(14 43 72 / .18);
}
.st-hero-card .st-hero-brand { margin-bottom: 12px; font-size: 1rem; font-weight: 740; letter-spacing: 0; }
.st-hero-card h2 { color: var(--ink); font-size: clamp(1.6rem, 2.35vw, 2.2rem); text-wrap: balance; }
.st-hero-card h2 + p { margin-top: 10px; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.st-hero-slide:is(:hover, :focus-visible) .st-hero-card h2 { color: var(--deep); }
.st-hero-arrow, .st-hero-dots { position: absolute; z-index: 2; }
.st-hero-arrow {
  top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  transform: translateY(-50%); color: var(--accent); background: #fff; border: 0; border-radius: 50%;
  box-shadow: 0 2px 10px rgb(17 36 56 / .26); cursor: pointer;
}
.st-hero-arrow:hover { background: var(--mist); }
.st-hero-arrow::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; }
.st-hero-prev { left: clamp(12px, 2vw, 30px); }
.st-hero-next { right: clamp(12px, 2vw, 30px); }
.st-hero-prev::before { transform: translateX(2px) rotate(-135deg); }
.st-hero-next::before { transform: translateX(-2px) rotate(45deg); }
.st-hero-dots { left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; }
.st-hero-dots::before { content: ""; position: absolute; inset: 12px 1px; border-radius: 20px; background: rgb(255 255 255 / .94); }
.st-hero-dots button {
  position: relative; display: grid; place-items: center; width: 28px; height: 44px;
  padding: 0; background: transparent; border: 0; border-radius: 20px; cursor: pointer;
}
.st-hero-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #596c7e; }
.st-hero-dots button[aria-current]::before { width: 10px; height: 10px; background: var(--deep); }
.st-hero-controls button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.st-hero-rotation:focus { position: absolute; z-index: 2; inset: auto auto 14px 14px; padding: 8px 12px; cursor: pointer; }
.st-hero-visually-hidden, .st-hero-rotation:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.st-home-solutions { padding-block: clamp(28px, 3.25vw, 46px) clamp(18px, 2.1vw, 30px); }
.st-home-solutions .st-section-heading, .st-home-products .st-section-heading { margin-bottom: clamp(16px, 1.5vw, 23px); }
.st-app-card { min-width: 0; border-bottom: 1px solid var(--rule); padding-bottom: 22px; }
.st-app-card .st-app-photo img { aspect-ratio: 16 / 10; }
.st-app-card h3 { font-size: 1.25rem; }
.st-app-card h3 a { text-decoration-thickness: 1px; }
.st-home-products { padding-block: clamp(13px, 1.25vw, 18px) clamp(25px, 2.6vw, 38px); }
.st-home-product-grid { gap: clamp(15px, 2vw, 30px); }
.st-home-product { padding: 15px 0; border-block: 1px solid var(--rule); }
.st-home-services { padding-block: clamp(18px, 3vw, 42px) clamp(20px, 3vw, 40px); }
.st-home-service-layout {
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(24px, 6vw, 86px);
}
.st-home-service-copy > p { max-width: 45ch; margin-block: 10px 18px; color: var(--muted); }
.st-home-service-copy ul { max-width: 460px; list-style: none; margin: 0; padding: 0; }
.st-home-service-copy li { border-block-start: 1px solid var(--rule); }
.st-home-service-copy li:last-child { border-block-end: 1px solid var(--rule); }
.st-home-service-copy li a { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; font-weight: 650; text-decoration: none; }
.st-home-service-copy li a:hover { text-decoration: underline; }
.st-home-service-photo img { width: 100%; height: auto; aspect-ratio: 2; object-fit: cover; object-position: 50% 48%; }
.st-home-contact > .frame { border-top: 0; padding-block: clamp(15px, 1.7vw, 24px) clamp(26px, 3vw, 44px); }
.st-site-footer { background: #f2f6fa; border-block-start: 1px solid var(--rule); }
.st-footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.48fr) minmax(185px, .8fr);
  gap: clamp(26px, 4vw, 62px); align-items: start; padding-block: clamp(28px, 4.5vw, 60px) 30px;
}
.st-footer-logo { display: block; width: 242px; max-width: 100%; margin: -10px 0 9px -16px; }
.st-footer-identity p { max-width: 28ch; color: var(--muted); font-size: .92rem; }
.st-footer-links { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.st-site-footer h2 { margin-bottom: 12px; font-size: 1rem; letter-spacing: 0; }
.st-site-footer ul { padding: 0; margin: 0; list-style: none; }
.st-site-footer li + li { margin-top: 6px; }
.st-site-footer li a { color: var(--muted); font-size: .91rem; text-decoration: none; overflow-wrap: anywhere; }
.st-site-footer li a:hover { color: var(--deep); text-decoration: underline; }
.st-footer-enquiry { display: inline-flex; gap: 8px; margin-top: 12px; font-size: .9rem; font-weight: 680; }
.st-footer-bottom { border-block-start: 1px solid var(--rule); padding-block: 14px 18px; color: var(--muted); }

@media (max-width: 960px) {
  .st-masthead .mast-nav { gap: 7px; }
  .st-masthead .mast-inner { gap: 12px; }
  .st-masthead .wordmark img { width: 172px; margin-left: -12px; }
}
@media (max-width: 860px) {
  .st-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-footer-links { grid-column: 1 / -1; grid-row: 2; }
  .st-footer-contact { grid-column: 2; grid-row: 1; }
}
@media (max-width: 820px) {
  :root { --mast-height: 66px; }
  .st-masthead .mast-inner { gap: 8px; flex-wrap: wrap; padding-block: 10px; }
  .st-masthead .wordmark { margin-right: auto; }
  .st-masthead .wordmark img { width: clamp(112px, 35vw, 162px); margin-left: -8px; }
  .st-masthead :is(.menu-trigger, .mast-quote) { flex: none; padding: 7px 9px; font-size: .78rem; }
  .st-masthead .mast-quote span { display: none; }
  .st-masthead .mast-nav {
    display: block; order: 4; flex-basis: 100%; margin: 0;
    max-height: calc(100dvh - var(--mast-height) - 20px); overflow: auto;
  }
  .st-masthead .mast-nav > a, .st-nav-label > a { display: flex; min-height: 44px; padding-block: 10px; align-items: center; }
  .st-masthead .mast-nav > a, .st-nav-item { border-top: 1px solid var(--rule); }
  .st-nav-label { justify-content: space-between; }
  .st-nav-toggle { min-width: 44px; }
  .st-mega { position: static; max-height: none; overflow: visible; box-shadow: none; border: 0; border-left: 2px solid var(--rule); }
  .st-mega-inner { width: auto; padding: 3px 12px 14px; grid-template-columns: 1fr; gap: 14px; }
  .st-mega-groups, .st-mega-service-groups { grid-template-columns: 1fr; gap: 8px; }
  .st-mega-groups section { padding: 7px 0; border-right: 0; }
  .st-mega-groups li a { min-height: 40px; }
  .st-mega-product-groups ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; margin-top: 5px; }
  .st-mega .st-mega-feature { display: grid; grid-template-columns: minmax(74px, 27%) 1fr; align-items: center; }
  .st-mega-feature img { aspect-ratio: 4/3; }
}
@media (max-width: 760px) {
  .st-industry-stage { height: clamp(380px, 70vw, 440px); }
  .st-hero-slide { align-items: end; padding-bottom: 58px; }
  .st-hero-card-frame { justify-items: stretch; width: calc(100% - 2 * var(--gutter)); }
  .st-hero-card { width: 100%; min-height: 176px; padding: 18px 20px; }
  .st-hero-card .st-hero-brand { margin-bottom: 7px; font-size: .94rem; }
  .st-hero-card h2 { font-size: clamp(1.4rem, 5.8vw, 1.85rem); }
  .st-hero-card h2 + p { margin-top: 7px; font-size: .93rem; }
  .st-hero-arrow { top: 28%; }
  .st-home-service-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .st-home-product-grid { gap: 0; }
  .st-home-product-item + .st-home-product-item .st-home-product { border-top: 0; }
}
@media (max-width: 550px) {
  .st-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .st-footer-links, .st-footer-contact { grid-area: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .st-hero-slide { transition: none; }
}
@media (max-width: 360px) {
  .st-masthead .wordmark img { width: 92px; }
}
