:root {
  --navy-950: #07182d;
  --navy-900: #0b2545;
  --navy-800: #12375f;
  --blue-700: #145da0;
  --blue-600: #1d70b8;
  --blue-100: #dcecf8;
  --blue-50: #eef7fc;
  --slate-900: #17202b;
  --slate-700: #465363;
  --slate-500: #6f7b88;
  --slate-300: #cfd7df;
  --slate-200: #dde4ea;
  --slate-100: #edf1f4;
  --white: #ffffff;
  --warm: #f8f7f3;
  --ops: #735224;
  --ops-soft: #f1e8d8;
  --shadow: 0 20px 55px rgba(7, 24, 45, 0.13);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-950);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 850px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  font-weight: 760;
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 730;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
  color: var(--slate-700);
}

.container {
  width: min(calc(100% - 2.4rem), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 840px;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(11, 37, 69, 0.09);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  border-radius: 8px;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  color: var(--navy-950);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--slate-300);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(29, 112, 184, 0.24);
  outline-offset: 2px;
}

.theme-icon {
  position: absolute;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: opacity 140ms ease, transform 140ms ease;
}

.theme-icon-sun {
  opacity: 1;
  transform: scale(1);
}

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.7);
}

html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.7);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-900), var(--blue-600));
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(20, 93, 160, 0.2);
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--navy-950);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.brand-text span {
  margin-top: 0.25rem;
  color: var(--slate-500);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  position: relative;
  color: var(--slate-700);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  background: var(--blue-600);
  transition: transform 160ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--navy-950);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy-950);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  color: var(--white);
  background: var(--navy-900);
  border: 1px solid var(--navy-900);
  border-radius: 999px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--blue-700);
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.2);
}

.button-small {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.button-light {
  color: var(--navy-950);
  background: var(--white);
  border-color: var(--white);
}

.text-link,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy-900);
  font-weight: 760;
  text-decoration: none;
}

.text-link:hover,
.card-link:hover {
  color: var(--blue-600);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2rem;
}

.centered-row {
  justify-content: center;
}

.eyebrow,
.card-kicker {
  margin-bottom: 1rem;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero,
.page-hero {
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(29, 112, 184, 0.14), transparent 32%),
    linear-gradient(180deg, var(--blue-50), var(--white));
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
}

.hero-lead,
.lead {
  color: var(--slate-700);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.hero-proof span {
  padding: 0.45rem 0.75rem;
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 93, 160, 0.16);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.image-frame {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.image-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 24, 45, 0.2));
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.image-frame.tall {
  min-height: 540px;
}

.image-callout {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  display: grid;
  padding: 1rem 1.15rem;
  color: var(--white);
  background: rgba(7, 24, 45, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.image-callout span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-alt {
  background: var(--slate-100);
}

.section-intro {
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(29, 112, 184, 0.3), transparent 35%),
    var(--navy-950);
}

.section-dark h2,
.section-dark h3,
.section-dark strong,
.section-dark blockquote {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.73);
}

.section-dark .eyebrow {
  color: #8ec9f2;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.split-heading {
  max-width: none;
  display: grid;
  align-items: end;
  gap: 3rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.practice-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.practice-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.2rem);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 38px rgba(7, 24, 45, 0.07);
}

.practice-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  content: "";
  background: var(--blue-600);
}

.practice-ops::before {
  background: var(--ops);
}

.practice-number {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  color: rgba(11, 37, 69, 0.08);
  font-size: 4.5rem;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.practice-card h3 {
  max-width: 550px;
  padding-right: 2.5rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.check-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 1.5rem 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--slate-700);
}

.check-list li::before {
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 0.68rem;
  height: 0.68rem;
  content: "";
  background: var(--blue-600);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--blue-100);
}

.practice-ops .check-list li::before {
  background: var(--ops);
  box-shadow: 0 0 0 4px var(--ops-soft);
}

.image-content-grid,
.two-column {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-content-grid.reverse > :first-child {
  order: 2;
}

.image-content-grid.reverse > :last-child {
  order: 1;
}

.process-grid {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid article {
  min-height: 260px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
}

.process-grid article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.process-grid span,
.service-index {
  display: block;
  margin-bottom: 2rem;
  color: #8ec9f2;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2.2rem, 5vw, 4.2rem);
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(75, 159, 219, 0.4), transparent 30%),
    var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta-panel h2,
.cta-panel p {
  color: var(--white);
}

.cta-panel p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.practice-page-hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
}

.division-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  color: var(--navy-800);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.division-label span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--blue-700);
  border-radius: 12px;
  font-size: 1rem;
}

.ops-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(115, 82, 36, 0.16), transparent 32%),
    linear-gradient(180deg, #fbf7ef, var(--white));
}

.ops-hero .division-label span {
  background: var(--ops);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  min-height: 280px;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.service-card .service-index {
  color: var(--blue-700);
}

.stacked-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--slate-200);
}

.stacked-list div {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--slate-200);
  grid-template-columns: 150px 1fr;
}

.stacked-list strong {
  color: var(--navy-950);
}

.stacked-list span {
  color: var(--slate-700);
}

.stacked-list.compact div {
  grid-template-columns: 125px 1fr;
}

.quote-panel {
  max-width: 980px;
  text-align: center;
}

.quote-panel blockquote {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2rem, 5vw, 4.3rem);
  font-weight: 730;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.light-quote {
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--blue-50);
  border-radius: var(--radius-lg);
}

.two-col-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fine-print,
.form-note {
  margin-top: 1.5rem;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.lifecycle {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lifecycle div {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
}

.lifecycle span {
  display: block;
  margin-bottom: 1rem;
  color: #8ec9f2;
  font-size: 0.75rem;
  font-weight: 800;
}

.lifecycle strong {
  display: block;
  margin-bottom: 0.6rem;
}

.lifecycle p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.compact-hero {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.compact-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.values-grid,
.principles-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.values-grid article,
.principles-grid article {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.values-grid article > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 14px;
  font-weight: 850;
}

.principles-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-grid {
  display: grid;
  align-items: start;
  gap: clamp(2.5rem, 7vw, 7rem);
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-direct {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--blue-50);
  border-radius: var(--radius-md);
}

.contact-direct a {
  color: var(--blue-700);
  font-size: 1.05rem;
  font-weight: 750;
}

.contact-direct p {
  margin: 0.5rem 0 0;
  color: var(--slate-500);
  font-size: 0.8rem;
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.8rem);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--navy-950);
  font-size: 0.88rem;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 9px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(29, 112, 184, 0.18);
  border-color: var(--blue-600);
}

textarea {
  resize: vertical;
}

.error-page {
  min-height: 65vh;
  display: grid;
  align-items: center;
}

.site-footer {
  padding-top: 4.5rem;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
  grid-template-columns: 1.5fr repeat(3, 1fr);
}

.brand-footer .brand-text strong {
  color: var(--white);
}

.footer-summary {
  max-width: 330px;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.64);
}

.footer-heading {
  margin-bottom: 1.1rem;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

@media (max-width: 1050px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 82px;
    right: 1.2rem;
    left: 1.2rem;
    display: none;
    align-items: stretch;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    flex-direction: column;
  }

  .primary-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 0.7rem;
  }

  .nav-link::after {
    display: none;
  }

  .hero-grid,
  .image-content-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 440px;
  }

  .image-content-grid.reverse > :first-child,
  .image-content-grid.reverse > :last-child {
    order: initial;
  }

  .process-grid,
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid article + article {
    border-left: 0;
  }

  .process-grid article:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .lifecycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 1.4rem), var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .primary-nav {
    top: 72px;
    right: 0.7rem;
    left: 0.7rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero,
  .page-hero {
    padding-block: 3.5rem;
  }

  .hero-media,
  .image-frame.tall {
    min-height: 340px;
  }

  .practice-grid,
  .service-grid,
  .values-grid,
  .principles-grid,
  .process-grid,
  .lifecycle,
  .form-grid,
  .two-col-list {
    grid-template-columns: 1fr;
  }

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

  .practice-number {
    font-size: 3.4rem;
  }

  .process-grid article:nth-child(even) {
    border-left: 0;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .stacked-list div,
  .stacked-list.compact div {
    gap: 0.25rem;
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

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

.ms-form-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.ms-form-header {
  padding: 2rem 2rem 1rem;
}

.ms-form-header h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.ms-form-header p:last-child {
  margin-bottom: 0;
}

.ms-form-container {
  width: 100%;
  overflow: hidden;
  background: var(--white);
}

.ms-form-container iframe {
  display: block;
  width: 100%;
  min-height: 980px;
  border: 0;
}

@media (max-width: 760px) {
  .ms-form-header {
    padding: 1.4rem 1.2rem 0.8rem;
  }

  .ms-form-container iframe {
    min-height: 1120px;
    height: 1120px;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;

  --navy-950: #f5f8fb;
  --navy-900: #e6eef6;
  --navy-800: #c7d9e9;
  --blue-700: #72b7e8;
  --blue-600: #67b5ec;
  --blue-100: #173c59;
  --blue-50: #101a24;
  --slate-900: #edf3f8;
  --slate-700: #bac7d2;
  --slate-500: #98a7b5;
  --slate-300: #465564;
  --slate-200: #33414e;
  --slate-100: #17222d;
  --white: #0d151d;
  --warm: #131b22;
  --ops: #d1aa70;
  --ops-soft: #3d2d18;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] body {
  background: #0d151d;
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(13, 21, 29, 0.92);
}

html[data-theme="dark"] .primary-nav {
  background: #0d151d;
  border-color: var(--slate-200);
}

html[data-theme="dark"] .brand-text strong {
  color: #f5f8fb;
}

html[data-theme="dark"] .brand-text span,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] p {
  color: var(--slate-700);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(29, 112, 184, 0.17), transparent 32%),
    linear-gradient(180deg, #101c27, #0d151d);
}

html[data-theme="dark"] .j2-hero,
html[data-theme="dark"] .ops-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(180, 131, 65, 0.14), transparent 32%),
    linear-gradient(180deg, #171c21, #0d151d);
}

html[data-theme="dark"] .section-alt {
  background: #121d27;
}

html[data-theme="dark"] .practice-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .values-grid article,
html[data-theme="dark"] .principles-grid article,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .ms-form-card,
html[data-theme="dark"] .contact-direct {
  background: #111c26;
  border-color: #2a3a49;
}

html[data-theme="dark"] .light-quote {
  background: #112231;
}

html[data-theme="dark"] .theme-toggle {
  color: #f5f8fb;
  background: #14212b;
  border-color: #33414e;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  color: #edf3f8;
  background: #0f1922;
  border-color: #40505f;
}

html[data-theme="dark"] .hero-proof span {
  color: #dceaf5;
  background: rgba(16, 28, 39, 0.82);
  border-color: rgba(114, 183, 232, 0.18);
}

html[data-theme="dark"] .image-callout {
  background: rgba(3, 10, 17, 0.86);
}

html[data-theme="dark"] .button {
  color: #08121c;
  background: #8bc7ef;
  border-color: #8bc7ef;
}

html[data-theme="dark"] .button:hover {
  color: #08121c;
  background: #a6d7f6;
}

html[data-theme="dark"] .button-light {
  color: #08121c;
  background: #ffffff;
  border-color: #ffffff;
}

html[data-theme="dark"] .cta-panel {
  background:
    radial-gradient(circle at 85% 20%, rgba(75, 159, 219, 0.25), transparent 30%),
    #102436;
}

html[data-theme="dark"] .site-footer {
  background: #071018;
}

html[data-theme="dark"] .brand-footer .brand-text strong,
html[data-theme="dark"] .footer-heading,
html[data-theme="dark"] .section-dark h2,
html[data-theme="dark"] .section-dark h3,
html[data-theme="dark"] .section-dark strong,
html[data-theme="dark"] .section-dark blockquote {
  color: #ffffff;
}

html[data-theme="dark"] .section-dark {
  background:
    radial-gradient(circle at 80% 0%, rgba(29, 112, 184, 0.24), transparent 35%),
    #071018;
}

html[data-theme="dark"] .ms-form-container {
  background: #ffffff;
}

@media (max-width: 760px) {
  .theme-toggle {
    width: 100%;
    height: 42px;
    border-radius: 10px;
  }
}

@media (max-width: 760px) {
  .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

.native-form-panel {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form-intro {
  padding-bottom: 1.4rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--slate-200);
}

.contact-form-intro h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.contact-form-intro p:last-child {
  max-width: 680px;
  margin-bottom: 0;
}

.native-contact-form {
  position: relative;
}

.native-contact-form .form-row {
  margin-bottom: 1.15rem;
}

.native-contact-form label {
  display: inline-block;
  margin-bottom: 0.42rem;
}

.native-contact-form label span,
.form-required-note span {
  color: #b5473c;
}

.native-contact-form input,
.native-contact-form select,
.native-contact-form textarea {
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.native-contact-form textarea {
  min-height: 180px;
  line-height: 1.55;
}

.native-contact-form input::placeholder,
.native-contact-form textarea::placeholder {
  color: var(--slate-500);
  opacity: 0.86;
}

.native-contact-form input:focus,
.native-contact-form select:focus,
.native-contact-form textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(29, 112, 184, 0.12);
}

.native-contact-form [aria-invalid="true"] {
  border-color: #b5473c;
  box-shadow: 0 0 0 4px rgba(181, 71, 60, 0.10);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.form-security {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 0 0.3rem;
}

.form-security p {
  max-width: 620px;
  margin: 0;
  color: var(--slate-500);
  font-size: 0.78rem;
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
}

.form-submit-button {
  min-width: 165px;
}

.form-submit-button[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-required-note {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.8rem;
}

.form-status {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 650;
}

.form-status.success {
  color: #174f34;
  background: #e7f6ed;
  border: 1px solid #b8dfc8;
}

.form-status.error {
  color: #7d2e28;
  background: #fbeceb;
  border: 1px solid #efc1bc;
}

html[data-theme="dark"] .native-form-panel {
  background: #111c26;
  border-color: #2a3a49;
}

html[data-theme="dark"] .contact-form-intro {
  border-bottom-color: #33414e;
}

html[data-theme="dark"] .native-contact-form input,
html[data-theme="dark"] .native-contact-form select,
html[data-theme="dark"] .native-contact-form textarea {
  color: #edf3f8;
  background: #0f1922;
  border-color: #40505f;
}

html[data-theme="dark"] .native-contact-form input::placeholder,
html[data-theme="dark"] .native-contact-form textarea::placeholder {
  color: #8495a4;
}

html[data-theme="dark"] .form-status.success {
  color: #c7eed7;
  background: #123322;
  border-color: #275f40;
}

html[data-theme="dark"] .form-status.error {
  color: #f4cbc6;
  background: #3b1d1b;
  border-color: #71352f;
}

@media (max-width: 760px) {
  .native-form-panel {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit-button {
    width: 100%;
  }
}
