:root {
  --navy-950: #061120;
  --navy-900: #0b1830;
  --navy-850: #10223d;
  --navy-800: #15304f;
  --blue-700: #1559b7;
  --blue-600: #2563d9;
  --cyan-500: #16b9dc;
  --cyan-300: #73def0;
  --ink-900: #142235;
  --ink-700: #405168;
  --ink-600: #58697e;
  --line: #dbe4ed;
  --mist: #f3f7fa;
  --white: #ffffff;
  --success: #146c43;
  --danger: #a32121;
  --shadow-sm: 0 10px 30px rgba(16, 34, 61, 0.08);
  --shadow-lg: 0 24px 70px rgba(6, 17, 32, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --transition: 180ms ease;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html[data-font-scale="90"] { font-size: 14.4px; }
html[data-font-scale="100"] { font-size: 16px; }
html[data-font-scale="115"] { font-size: 18.4px; }
html[data-font-scale="130"] { font-size: 20.8px; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink-900);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink-900);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

h1 { font-size: clamp(2.75rem, 5.8vw, 5.6rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); }
h3 { font-size: 1.35rem; }

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: #0b438e;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffbf47 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1180px, calc(100% - 40px));
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lead {
  color: var(--ink-700);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.65;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  min-height: 44px;
  padding: 0.75rem 1.35rem;
  border-width: 2px;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: #174eb3;
  background: #174eb3;
  color: var(--white);
}

.btn-default {
  border-color: #bdc9d5;
  background: var(--white);
  color: var(--ink-900);
}

.btn-default:hover,
.btn-default:focus {
  border-color: var(--blue-600);
  background: #eef5ff;
  color: var(--ink-900);
}

.btn-lg {
  min-height: 50px;
  padding: 0.9rem 1.65rem;
  font-size: 1rem;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(5, 17, 31, 0.22);
  color: var(--white);
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy-900);
}

.btn-light {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy-900);
}

.btn-light:hover,
.btn-light:focus {
  border-color: var(--cyan-300);
  background: var(--cyan-300);
  color: var(--navy-950);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-700);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--white);
}

.utility-bar {
  background: var(--navy-950);
  color: #d7e4f0;
  font-size: 0.78rem;
  font-weight: 600;
}

.utility-bar__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.utility-bar__contact {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.utility-bar a {
  color: #eaf5fc;
  text-decoration: none;
}

.utility-bar a:hover,
.utility-bar a:focus {
  color: var(--cyan-300);
  text-decoration: underline;
}

.navbar.navbar-default {
  min-height: 84px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(9, 25, 46, 0.08);
}

.navbar-brand {
  display: flex;
  width: min(450px, 55vw);
  height: 84px;
  padding: 12px 0;
  align-items: center;
  text-decoration: none;
}

.navbar-brand:hover,
.navbar-brand:focus {
  text-decoration: none;
}

.navbar-brand img {
  width: 122px;
  height: 60px;
  flex: 0 0 122px;
  object-fit: contain;
}

.brand-lockup {
  display: grid;
  margin-left: 0.65rem;
  color: var(--ink-900);
  line-height: 1.1;
}

.brand-lockup strong {
  font-size: 1.34rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-lockup small {
  margin-top: 0.33rem;
  color: var(--ink-600);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-default .navbar-nav > li > a {
  position: relative;
  min-height: 84px;
  padding: 32px 18px 28px;
  color: var(--ink-900);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.navbar-default .navbar-nav > li > a::after {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity var(--transition), transform var(--transition);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background: transparent;
  color: var(--blue-700);
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li > a:focus::after,
.navbar-default .navbar-nav > .active > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar-toggle {
  min-width: 46px;
  min-height: 46px;
  margin-top: 19px;
  border-color: #b9c6d2;
}

/* Hero */
.page-hero {
  position: relative;
  display: flex;
  min-height: 520px;
  overflow: hidden;
  align-items: center;
  background: var(--navy-900);
  color: var(--white);
}

.page-hero--home {
  min-height: min(690px, calc(100vh - 122px));
}

.page-hero__media,
.page-hero__overlay {
  position: absolute;
  inset: 0;
}

.page-hero__media {
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.page-hero--home .page-hero__media { background-image: url("/img/ax-bg.jpg"); background-position: center 42%; }
.page-hero--services .page-hero__media { background-image: url("/img/our-products-bg.jpg"); }
.page-hero--team .page-hero__media { background-image: url("/img/ai-assisted-bg.jpg"); background-position: center 42%; }
.page-hero--contact .page-hero__media { background-image: url("/img/website-development-bg.jpg"); }
.page-hero--accessibility .page-hero__media,
.page-hero--default .page-hero__media { background-image: url("/img/hosting-bg.jpg"); }
.page-hero--terms .page-hero__media { background-image: url("/img/saas-bg.jpg"); }

.page-hero__overlay {
  background:
    linear-gradient(90deg, rgba(5, 14, 27, 0.97) 0%, rgba(7, 29, 57, 0.88) 46%, rgba(4, 35, 63, 0.28) 82%),
    linear-gradient(0deg, rgba(5, 14, 27, 0.28), transparent 58%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.page-hero .eyebrow {
  color: var(--cyan-300);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 1.6rem;
  color: var(--white);
}

.page-hero__lead {
  max-width: 760px;
  margin-bottom: 0;
  color: #dbe7f2;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.65;
}

.page-hero__actions {
  display: flex;
  margin-top: 2.25rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Shared sections */
.section {
  padding: 6.5rem 0;
}

.section-intro {
  position: relative;
}

.section-intro::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 24%;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  content: "";
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1.4rem;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #cad8e6;
}

.section-dark::after {
  position: absolute;
  right: -180px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(91, 214, 237, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(91, 214, 237, 0.035), 0 0 0 140px rgba(91, 214, 237, 0.025);
  content: "";
  pointer-events: none;
}

.section-tint {
  background: var(--mist);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-heading--wide {
  max-width: 920px;
}

.section-heading--light h2 {
  color: var(--white);
}

.section-heading--light .eyebrow {
  color: var(--cyan-300);
}

.section-heading--split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: 5rem;
}

.section-heading--split p:last-child {
  color: var(--ink-600);
}

.section-actions {
  position: relative;
  z-index: 2;
  margin-top: 2.6rem;
}

.vertical-center-lg {
  display: flex;
  align-items: center;
}

.equal-row {
  display: flex;
  flex-wrap: wrap;
}

.equal-row > [class*="col-"] {
  display: flex;
  margin-bottom: 30px;
}

.signal-card {
  position: relative;
  padding: 2.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #f8fbfd, #eef4f8);
  box-shadow: var(--shadow-sm);
}

.signal-card__line {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
}

.signal-card__number {
  margin-bottom: 2.6rem;
  color: var(--blue-600);
  font-size: 2.5rem;
  font-weight: 300;
}

.signal-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.55rem;
}

.signal-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-600);
}

.service-card {
  position: relative;
  width: 100%;
  min-height: 190px;
  padding: 2rem;
  border: 1px solid rgba(172, 207, 230, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: rgba(89, 214, 237, 0.55);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-4px);
}

.service-card__index {
  display: inline-block;
  margin-bottom: 3.3rem;
  color: var(--cyan-300);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin: 0 0 0.9rem;
  color: var(--white);
  font-size: 1.45rem;
}

.service-card p {
  margin-bottom: 0;
  color: #bdcada;
}

.service-grid {
  margin-top: 1rem;
}

.service-detail-card {
  position: relative;
  width: 100%;
  min-height: 640px;
  padding: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.service-detail-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  content: "";
}

.service-detail-card__media {
  position: relative;
  height: 220px;
  margin: -2.5rem -2.5rem 2rem;
  overflow: hidden;
  background: var(--navy-900);
}

.service-detail-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 17, 31, 0.42), transparent 62%);
  content: "";
}

.service-detail-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-detail-card:hover .service-detail-card__media img {
  transform: scale(1.03);
}

.service-detail-card__number {
  display: block;
  margin-bottom: 2rem;
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.service-detail-card h2 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

.service-detail-card p,
.service-detail-card li {
  color: var(--ink-600);
}

.service-detail-card ul {
  padding-left: 1.2rem;
}

.service-detail-card li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.engagement-list article {
  padding: 0 0 1.5rem 1.5rem;
  border-left: 3px solid var(--cyan-500);
}

.engagement-list article + article {
  margin-top: 1.5rem;
}

.engagement-list h3 {
  margin: 0 0 0.45rem;
}

.engagement-list p {
  margin: 0;
  color: var(--ink-600);
}

/* Work */
.section-work {
  background: #f7fafc;
}

.work-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.work-card:hover {
  box-shadow: 0 20px 52px rgba(16, 34, 61, 0.14);
  transform: translateY(-4px);
}

.work-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}

.work-card__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 17, 31, 0.3), transparent 56%);
  content: "";
  pointer-events: none;
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.work-card:hover .work-card__image img {
  transform: scale(1.025);
}

.work-card__body {
  padding: 1.75rem;
}

.work-card__body h3 {
  margin: 0 0 0.8rem;
  font-size: 1.45rem;
}

.work-card__body p:not(.eyebrow) {
  color: var(--ink-600);
}

.work-card__domain {
  margin: 0 0 0.65rem;
  color: #4e6178 !important;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-empty {
  padding: 3.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.work-empty h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

/* Process and profile */
.section-process {
  background: var(--white);
}

.process-list {
  margin: 0;
  padding: 0;
  counter-reset: process;
  list-style: none;
}

.process-list li {
  position: relative;
  display: grid;
  min-height: 98px;
  padding: 0 0 1.55rem 4.8rem;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  counter-increment: process;
}

.process-list li::before {
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: flex;
  width: 48px;
  height: 48px;
  border: 2px solid #bdd0df;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  content: counter(process, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 800;
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 23px;
  width: 2px;
  background: #dce5ed;
  content: "";
}

.process-list span {
  color: var(--ink-900);
  font-size: 1.1rem;
  font-weight: 750;
}

.process-list p {
  margin-bottom: 0;
  color: var(--ink-600);
}

.section-profile {
  background: linear-gradient(135deg, #eef5f9, #f9fbfc 65%);
}

.profile-photo {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}

.profile-photo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(5, 18, 37, 0.92), transparent);
  content: "";
  pointer-events: none;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

.profile-photo figcaption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.3rem;
  left: 1.5rem;
  z-index: 2;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.profile-photo figcaption span {
  display: block;
  margin-top: 0.2rem;
  color: var(--cyan-300);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-band {
  padding: 4.3rem 0;
  background: linear-gradient(100deg, #0d52af, #126aaf 60%, #0a859e);
  color: var(--white);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-band .eyebrow {
  color: #c6f4fb;
}

.cta-band h2 {
  margin: 0;
  color: var(--white);
}

/* Team */
.leader-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.leader-card__portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy-900), #17466c);
}

.leader-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.leader-card__identity {
  padding: 1.8rem;
}

.leader-card__identity h2 {
  margin: 0 0 0.45rem;
  font-size: 2rem;
}

.leader-card__identity p:last-child {
  margin-bottom: 0;
  color: var(--ink-600);
}

.bio-copy > p:not(.eyebrow):not(.lead) {
  color: var(--ink-700);
}

.experience-grid article {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.7rem;
  border-top: 3px solid var(--cyan-500);
  background: rgba(255, 255, 255, 0.05);
}

.experience-grid h3 {
  margin-top: 0;
  color: var(--white);
  font-size: 1.2rem;
}

.experience-grid p {
  margin-bottom: 0;
  color: #bdcada;
}

.credential-row {
  display: flex;
  margin-top: 2.1rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.credential-row span {
  padding: 0.45rem 0.7rem;
  border: 1px solid #cbd8e3;
  border-radius: 5px;
  background: #f4f8fb;
  color: var(--ink-700);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Sidebar */
.sidebar-card {
  position: sticky;
  top: 2rem;
  padding: 2.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f7fafc;
  box-shadow: var(--shadow-sm);
}

.sidebar-card__accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
}

.sidebar-card h2 {
  font-size: 1.75rem;
}

.sidebar-card__contact {
  display: grid;
  margin-top: 1.4rem;
  gap: 0.35rem;
  font-size: 0.88rem;
}

/* Contact */
.contact-section {
  background: #f7fafc;
}

.contact-form-shell,
.contact-details {
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-form-shell > h2,
.contact-details > h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.contact-form {
  margin-top: 2.2rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  margin-bottom: 0.45rem;
  color: var(--ink-900);
  font-size: 0.87rem;
  font-weight: 750;
}

.optional {
  color: var(--ink-600);
  font-size: 0.72rem;
  font-weight: 500;
}

.form-control {
  min-height: 48px;
  padding: 0.72rem 0.85rem;
  border: 1px solid #aebdca;
  border-radius: 6px;
  color: var(--ink-900);
  font-size: 1rem;
  box-shadow: none;
}

textarea.form-control {
  min-height: 170px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 217, 0.16);
}

.has-error .form-control {
  border-color: var(--danger);
}

.has-error .help-block,
.has-error label {
  color: var(--danger);
}

.help-block,
.form-hint,
.form-privacy {
  color: var(--ink-600);
  font-size: 0.78rem;
}

.form-alert {
  margin: 1.8rem 0 0;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
}

.form-alert h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.form-alert p {
  margin-bottom: 0;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-privacy {
  max-width: 580px;
  margin-top: 1rem;
}

.captcha-fieldset {
  margin: 1.8rem 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist);
}

.captcha-fieldset legend {
  width: auto;
  margin: 0;
  padding: 0 0.45rem;
  border: 0;
  color: var(--ink-900);
  font-size: 1rem;
  font-weight: 750;
}

.captcha-instructions {
  margin-bottom: 1.1rem;
  color: var(--ink-600);
  font-size: 0.85rem;
}

.captcha-options {
  display: flex;
  align-items: stretch;
}

.captcha-options > [class*="col-"] {
  display: flex;
}

.captcha-option {
  position: relative;
  width: 100%;
  padding: 1rem;
  border: 1px solid #c8d4df;
  border-radius: 6px;
  background: var(--white);
}

.captcha-option label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-900);
  font-size: 0.86rem;
  font-weight: 750;
}

.captcha-image-wrap {
  overflow: hidden;
  border: 1px solid #92a5b8;
  border-radius: 5px;
  background: var(--navy-950);
}

.captcha-image-wrap img {
  display: block;
  width: 100%;
  height: 76px;
  object-fit: cover;
}

.captcha-refresh {
  min-height: 44px;
  margin: 0.35rem 0 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.captcha-option--math {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

.captcha-or {
  position: absolute;
  top: 50%;
  left: -27px;
  display: flex;
  width: 38px;
  height: 38px;
  margin: -19px 0 0;
  border: 1px solid #c8d4df;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--ink-600);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.captcha-fieldset.has-error {
  border: 2px solid var(--danger);
}

.contact-details {
  position: sticky;
  top: 2rem;
  background: var(--navy-900);
  color: #d1deea;
}

.contact-details h2,
.contact-details h3 {
  color: var(--white);
}

.contact-details .eyebrow {
  color: var(--cyan-300);
}

.contact-details a {
  color: var(--white);
}

.contact-details hr {
  margin: 2rem 0;
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-method {
  display: grid;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 0.2rem;
}

.contact-method > span {
  color: var(--cyan-300);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-method p {
  margin: 0;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1.65rem;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--cyan-300);
  content: "✓";
  font-weight: 800;
}

/* Legal */
.legal-page {
  background: var(--white);
}

.legal-page h2 {
  margin-top: 3.2rem;
  font-size: 2rem;
}

.legal-page h2:first-of-type {
  margin-top: 1.4rem;
}

.legal-page h3 {
  margin-top: 2.2rem;
  font-size: 1.25rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-700);
}

.legal-page li {
  margin-bottom: 0.65rem;
}

.legal-updated {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  background: var(--mist);
  color: var(--ink-600) !important;
  font-size: 0.78rem;
  font-weight: 700;
}

.legal-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-nav li + li {
  margin-top: 0.7rem;
}

.footer-link-button {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.footer-link-button:hover,
.footer-link-button:focus {
  color: var(--cyan-300);
}

.empty-state {
  min-height: 420px;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 4.8rem 0 0;
  background: var(--navy-950);
  color: #aebdd0;
}

.footer-brand {
  display: inline-flex;
  width: min(420px, 100%);
  margin-bottom: 1.3rem;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.footer-brand__mark {
  display: flex;
  width: 120px;
  height: 64px;
  padding: 5px 8px;
  align-items: center;

}

.footer-brand__mark img {
  width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.footer-brand__name {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer h2 {
  margin: 0 0 1.2rem;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 500px;
}

.site-footer a {
  color: #d6e3ef;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--cyan-300);
}

.footer-main-site {
  font-size: 0.88rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.65rem;
}

.site-footer__legal {
  display: flex;
  margin-top: 4rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  justify-content: space-between;
  gap: 2rem;
  color: #8799ad;
  font-size: 0.78rem;
}

.site-footer__legal p {
  margin: 0;
}

/* Dialog foundations */
.dialog-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(3, 11, 22, 0.66);
  backdrop-filter: blur(2px);
}

.dialog-close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #bbc8d4;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--ink-900);
  font-size: 1.7rem;
  line-height: 1;
}

.switch {
  position: relative;
  width: 54px;
  min-width: 54px;
  height: 30px;
  padding: 0;
  border: 2px solid #8999aa;
  border-radius: 999px;
  background: #dbe3ea;
}

.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: left var(--transition);
}

.switch[aria-checked="true"] {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.switch[aria-checked="true"] span {
  left: 27px;
}

/* Accessibility panel */
.accessibility-trigger {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  min-width: 54px;
  min-height: 54px;
  padding: 6px;
  border: 2px solid var(--white);
  border-radius: 999px;
  align-items: center;
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(5, 20, 45, 0.3);
}

.accessibility-trigger:hover,
.accessibility-trigger:focus {
  background: #174eb3;
}

.accessibility-trigger__icon {
  display: flex;
  width: 38px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}

.accessibility-trigger__label {
  max-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 750;
  opacity: 0;
  transition: max-width var(--transition), padding var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.accessibility-trigger:hover .accessibility-trigger__label,
.accessibility-trigger:focus .accessibility-trigger__label {
  max-width: 120px;
  padding: 0 0.7rem;
  opacity: 1;
}

.accessibility-panel,
.cookie-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1010;
  width: min(560px, calc(100% - 32px));
  max-height: min(780px, calc(100vh - 32px));
  padding: 1.8rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -50%);
}

.accessibility-panel__header,
.cookie-panel__header {
  display: flex;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.accessibility-panel__header h2,
.cookie-panel__header h2 {
  margin: 0;
  font-size: 2rem;
}

.tool-group {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.tool-group h3,
.cookie-option h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.tool-group p,
.cookie-option p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.85rem;
}

.font-controls,
.reader-controls {
  display: flex;
  margin-top: 0.8rem;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.font-controls button {
  min-width: 48px;
  min-height: 44px;
  padding: 0.55rem;
  border: 2px solid #bac7d3;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-900);
  font-weight: 750;
}

.font-controls button[aria-pressed="true"] {
  border-color: var(--blue-600);
  background: #eaf2ff;
  color: #123e84;
}

.font-controls button:nth-child(1) { font-size: 0.8rem; }
.font-controls button:nth-child(2) { font-size: 1rem; }
.font-controls button:nth-child(3) { font-size: 1.15rem; }
.font-controls button:nth-child(4) { font-size: 1.3rem; }

.switch-row,
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.reader-status {
  margin-top: 0.8rem !important;
}

.accessibility-panel__statement {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Cookie banner and panel */
.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 86px;
  left: 18px;
  z-index: 880;
  display: flex;
  max-width: 1160px;
  margin: auto;
  padding: 1.25rem;
  border: 1px solid #314663;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--navy-900);
  color: #d8e5ef;
  box-shadow: var(--shadow-lg);
}

.cookie-banner h2 {
  margin: 0 0 0.25rem;
  color: var(--white);
  font-size: 1.15rem;
}

.cookie-banner p {
  max-width: 710px;
  margin: 0;
  font-size: 0.85rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cookie-banner .btn-link {
  color: var(--white);
}

.cookie-backdrop {
  z-index: 1020;
}

.cookie-panel {
  z-index: 1030;
}

.cookie-option {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.cookie-required {
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-panel__actions {
  display: flex;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* High contrast */
body.high-contrast {
  --ink-900: #000000;
  --ink-700: #000000;
  --ink-600: #111111;
  --line: #000000;
  --mist: #ffffff;
  --blue-700: #003087;
  --blue-600: #003087;
  background: #ffffff;
  color: #000000;
}

body.high-contrast .section-tint,
body.high-contrast .section-profile,
body.high-contrast .section-work,
body.high-contrast .contact-section,
body.high-contrast .signal-card,
body.high-contrast .sidebar-card,
body.high-contrast .credential-row span {
  background: #ffffff;
}

body.high-contrast .service-detail-card,
body.high-contrast .work-card,
body.high-contrast .contact-form-shell {
  border: 2px solid #000000;
  box-shadow: none;
}

body.high-contrast .page-hero__overlay {
  background: rgba(0, 0, 0, 0.88);
}

body.high-contrast .section-dark,
body.high-contrast .site-footer,
body.high-contrast .contact-details,
body.high-contrast .utility-bar,
body.high-contrast .cookie-banner {
  background: #000000;
  color: #ffffff;
}

body.high-contrast .service-card,
body.high-contrast .experience-grid article {
  border: 2px solid #ffffff;
  background: #000000;
}

body.high-contrast a:not(.btn),
body.high-contrast .footer-link-button {
  color: #003087;
  text-decoration-thickness: 2px;
}

body.high-contrast .section-dark a:not(.btn),
body.high-contrast .site-footer a,
body.high-contrast .site-footer .footer-link-button,
body.high-contrast .cookie-banner .btn-link,
body.high-contrast .contact-details a {
  color: #ffff00;
}

body.high-contrast .btn-primary {
  border-color: #000000;
  background: #003087;
  color: #ffffff;
}

body.high-contrast .form-control {
  border: 2px solid #000000;
}

body.high-contrast .captcha-fieldset,
body.high-contrast .captcha-option {
  border: 2px solid #000000;
  background: #ffffff;
}

body.high-contrast .captcha-image-wrap {
  border: 2px solid #000000;
}

/* Responsive */
@media (max-width: 991px) {
  .vertical-center-lg {
    display: block;
  }

  .vertical-center-lg > [class*="col-"] + [class*="col-"] {
    margin-top: 3rem;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .process-list {
    margin-top: 2.5rem;
  }

  .team-leadership .leader-card,
  .contact-details,
  .sidebar-card {
    position: relative;
    top: auto;
    margin-bottom: 3rem;
  }

  .team-leadership .bio-copy {
    margin-top: 3rem;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .utility-bar__inner {
    min-height: 34px;
    justify-content: center;
  }

  .utility-bar__inner > span,
  .utility-bar__contact a:not(:first-child) {
    display: none;
  }

  .navbar.navbar-default,
  .navbar-brand {
    min-height: 76px;
    height: 76px;
  }

  .navbar-brand {
    width: min(330px, calc(100vw - 95px));
    padding: 10px 0;
  }

  .navbar-toggle {
    margin-top: 15px;
    margin-right: 0;
  }

  .navbar-collapse {
    max-height: none;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }

  .navbar-default .navbar-nav {
    margin: 0 -15px;
  }

  .navbar-default .navbar-nav > li > a {
    min-height: 48px;
    padding: 14px 20px;
  }

  .navbar-default .navbar-nav > li > a::after {
    top: 11px;
    right: auto;
    bottom: 11px;
    left: 10px;
    width: 3px;
    height: auto;
    transform: scaleY(0.3);
  }

  .navbar-default .navbar-nav > .active > a::after,
  .navbar-default .navbar-nav > li > a:hover::after,
  .navbar-default .navbar-nav > li > a:focus::after {
    transform: scaleY(1);
  }

  .page-hero,
  .page-hero--home {
    min-height: 520px;
  }

  .page-hero__overlay {
    background: rgba(5, 14, 27, 0.82);
  }

  .page-hero__content {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .page-hero__actions {
    display: grid;
  }

  .page-hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 4.5rem 0;
  }

  .equal-row {
    display: block;
  }

  .equal-row > [class*="col-"] {
    display: block;
  }

  .service-detail-card {
    min-height: 0;
  }

  .captcha-options {
    display: block;
  }

  .captcha-options > [class*="col-"] + [class*="col-"] {
    margin-top: 1rem;
  }

  .captcha-or {
    position: static;
    margin: 0 0 0.8rem;
  }

  .process-list li {
    display: block;
    padding-left: 4rem;
  }

  .process-list span {
    display: block;
    margin-bottom: 0.35rem;
  }

  .cta-band__inner,
  .site-footer__legal,
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-band .btn {
    width: 100%;
  }

  .site-footer__main > div + div {
    margin-top: 2.3rem;
  }

  .site-footer__legal {
    gap: 0.45rem;
  }

  .cookie-banner {
    bottom: 82px;
    gap: 1rem;
  }

  .cookie-banner__actions {
    display: grid;
  }

  .accessibility-trigger__label {
    display: none;
  }

  .work-empty {
    padding: 2rem 1.3rem;
  }
}

@media (max-width: 480px) {
  .navbar-brand img {
    width: 86px;
    height: 54px;
    flex-basis: 86px;
  }

  .brand-lockup {
    margin-left: 0.35rem;
  }

  .brand-lockup strong {
    font-size: 1rem;
  }

  .brand-lockup small {
    display: none;
  }

  .service-detail-card,
  .contact-form-shell,
  .contact-details,
  .sidebar-card,
  .accessibility-panel,
  .cookie-panel {
    padding: 1.35rem;
  }

  .service-detail-card__media {
    height: 180px;
    margin: -1.35rem -1.35rem 1.4rem;
  }

  .reader-controls,
  .cookie-panel__actions {
    display: grid;
  }

  .reader-controls .btn,
  .cookie-panel__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .accessibility-tools,
  .cookie-banner,
  .cookie-panel,
  .dialog-backdrop,
  .page-hero__media,
  .page-hero__overlay {
    display: none !important;
  }

  .page-hero {
    min-height: 0;
    background: #ffffff;
    color: #000000;
  }

  .page-hero h1,
  .page-hero .eyebrow,
  .page-hero__lead {
    color: #000000;
  }

  .section {
    padding: 2rem 0;
  }
}
