:root {
  --navy-deep: #0f2447;
  --navy: #1b3a6b;
  --teal: #1f8b8b;
  --teal-light: #8ed7d2;
  --amber: #e8a33d;
  --amber-dark: #9b650f;
  --amber-soft: #f5c77e;
  --bg: #fafaf7;
  --bg-elev: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --rule: #e5e7eb;
  --rule-strong: #d1d5db;
  --container: 1140px;
  --container-narrow: 820px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5rem;
  --space-9: 6.5rem;
  --space-10: 8rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--navy-deep);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
}

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.container.narrow {
  width: min(var(--container-narrow), calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 82px;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2));
  background: rgba(250, 250, 247, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand,
.footer-logo {
  --logo-width: clamp(300px, 30vw, 380px);
  display: grid;
  width: var(--logo-width);
  max-width: 100%;
  grid-template-columns: 29% 1fr;
  column-gap: 5%;
  align-items: center;
}

.brand > img {
  width: 100%;
  height: auto;
}

.logo-mark,
.logo-wordmark,
.logo-rule,
.logo-tagline {
  width: 100%;
  height: auto;
}

.logo-copy {
  display: grid;
  gap: 5px;
  align-content: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 30px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 23px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(220px, 0.25fr);
  gap: var(--space-6);
  align-items: end;
  min-height: calc(78vh - 82px);
  min-height: calc(78svh - 82px);
  padding: var(--space-7) max(24px, calc((100vw - var(--container)) / 2)) var(--space-6);
  background:
    linear-gradient(90deg, rgba(15, 36, 71, 0.96), rgba(15, 36, 71, 0.9)),
    url("assets/xion-systems-map.png") center / cover;
  background:
    linear-gradient(90deg, rgba(15, 36, 71, 0.96), rgba(15, 36, 71, 0.9)),
    image-set(
      url("assets/xion-systems-map.avif") type("image/avif"),
      url("assets/xion-systems-map.webp") type("image/webp"),
      url("assets/xion-systems-map.png") type("image/png")
    ) center / cover;
  color: var(--bg-elev);
}

.eyebrow,
.section-label {
  color: var(--amber-dark);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber-soft);
}

.hero h1,
.section h2,
.vision-lede,
.legal-document h1 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 550;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: var(--space-5);
  font-size: clamp(2.9rem, 5vw, 4.65rem);
}

.hero-lede {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
}

.button-primary {
  background: var(--amber);
  color: var(--navy-deep);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--amber-soft);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--bg-elev);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--amber);
  color: var(--amber-soft);
}

.hero-aside {
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
}

.hero-line {
  width: 100%;
  height: 2px;
  margin-bottom: var(--space-4);
  background: var(--amber);
}

.section {
  padding: var(--space-10) 0;
}

section[id] {
  scroll-margin-top: 120px;
}

.vision,
.team,
.contact {
  background: var(--bg-elev);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.section-label span {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
}

.section-label p {
  margin-bottom: 0;
}

.vision-lede {
  margin-bottom: var(--space-4);
  color: var(--navy-deep);
  font-size: clamp(2.35rem, 5vw, 4.9rem);
}

.vision-detail {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.46fr);
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-6);
}

.section h2 {
  margin-bottom: 0;
  color: var(--navy-deep);
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.section-head > p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}

.approach-grid article,
.service-card {
  min-height: 280px;
  padding: var(--space-5);
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: rgba(255, 255, 255, 0.46);
}

.approach-graphic {
  position: relative;
  width: 100%;
  max-width: 170px;
  height: 92px;
  margin-bottom: var(--space-4);
}

.context-graphic {
  background:
    linear-gradient(135deg, transparent 18%, rgba(31, 139, 139, 0.18) 18% 35%, transparent 35%),
    linear-gradient(45deg, transparent 58%, rgba(232, 163, 61, 0.22) 58% 72%, transparent 72%);
}

.context-graphic span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--bg);
}

.context-graphic span:nth-child(1) {
  left: 8px;
  top: 58px;
}

.context-graphic span:nth-child(2) {
  left: 54px;
  top: 28px;
  border-color: var(--teal);
}

.context-graphic span:nth-child(3) {
  left: 108px;
  top: 48px;
  border-color: var(--amber);
}

.context-graphic span:nth-child(4) {
  left: 142px;
  top: 14px;
}

.method-graphic {
  border-left: 2px solid rgba(15, 36, 71, 0.24);
  border-bottom: 2px solid rgba(15, 36, 71, 0.24);
}

.method-graphic::before {
  position: absolute;
  inset: 24px 6px 22px 12px;
  content: "";
  border-top: 4px solid var(--teal);
  transform: skewY(-14deg);
  transform-origin: left center;
}

.method-graphic span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--navy);
}

.method-graphic span:nth-child(1) {
  left: 28px;
  top: 55px;
}

.method-graphic span:nth-child(2) {
  left: 66px;
  top: 44px;
  box-shadow: 0 0 0 4px var(--teal);
}

.method-graphic span:nth-child(3) {
  left: 104px;
  top: 31px;
  box-shadow: 0 0 0 4px var(--amber);
}

.method-graphic span:nth-child(4) {
  left: 142px;
  top: 18px;
}

.quality-graphic {
  display: grid;
  width: 146px;
  align-content: center;
  gap: 12px;
}

.quality-graphic::before {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 52px;
  height: 28px;
  content: "";
  border-bottom: 7px solid var(--teal);
  border-left: 7px solid var(--teal);
  transform: rotate(-45deg);
  transform-origin: center;
}

.quality-graphic span {
  display: block;
  height: 8px;
  background: rgba(15, 36, 71, 0.18);
}

.quality-graphic span:nth-child(1) {
  width: 104px;
}

.quality-graphic span:nth-child(2) {
  width: 82px;
  background: rgba(232, 163, 61, 0.5);
}

.quality-graphic span:nth-child(3) {
  width: 116px;
}

.approach-grid h3,
.service-card h3,
.team-card h3 {
  margin-bottom: var(--space-3);
  color: var(--navy-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
}

.approach-grid p,
.service-card p,
.team-card p,
.prose p,
.legal-document p,
.legal-document li {
  color: var(--text-muted);
}

.three-rs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding: var(--space-6);
  border-left: 6px solid var(--amber);
  background: var(--navy-deep);
  color: var(--bg-elev);
}

.three-rs div {
  display: grid;
  gap: var(--space-1);
}

.three-rs span {
  color: var(--amber);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 600;
  line-height: 0.88;
}

.three-rs strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
}

.three-rs p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}

.service-card {
  transition: background 180ms ease;
}

.service-card:hover {
  background: var(--bg-elev);
}

.service-card-head {
  display: grid;
  grid-template-columns: auto minmax(92px, 1fr);
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-5);
}

.service-card-head span {
  display: inline-flex;
  color: var(--amber);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 700;
}

.service-graphic {
  height: 34px;
  min-width: 92px;
  width: 100%;
  color: var(--navy);
  overflow: visible;
}

.service-graphic path,
.service-graphic rect,
.service-graphic circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.service-graphic rect,
.service-graphic circle {
  stroke: var(--teal);
}

.service-graphic path:nth-of-type(even) {
  stroke: var(--amber);
}

.service-card:nth-child(4) .service-graphic path:first-child {
  stroke: var(--teal);
}

.team-grid {
  display: grid;
  gap: var(--space-4);
}

.team-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--rule);
  background: var(--bg-elev);
}

.headshot-placeholder {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 3px solid var(--amber);
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--amber);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.role {
  margin-bottom: var(--space-4);
  color: var(--teal);
  font-weight: 700;
}

.two-col,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(320px, 0.72fr);
  gap: var(--space-8);
}

.prose {
  font-size: 1.14rem;
}

.prose a,
.text-link {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--amber);
}

.text-link {
  display: inline-flex;
  margin-top: var(--space-2);
}

.careers {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.contact {
  border-top: 1px solid var(--rule);
}

.legal-identifier {
  margin-top: var(--space-5);
  font-size: 0.98rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, auto);
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-7) max(24px, calc((100vw - var(--container)) / 2));
  background: var(--navy-deep);
  color: var(--amber-soft);
  font-size: 0.95rem;
}

.footer-logo {
  --logo-width: 290px;
  margin-bottom: var(--space-3);
  padding: 10px 12px;
  background: var(--bg);
  box-sizing: border-box;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: var(--space-5);
  justify-self: end;
}

.footer-nav h2 {
  margin: 0 0 var(--space-2);
  color: var(--amber-soft);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--bg);
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--amber-soft);
  text-decoration: underline;
}

.site-footer > p {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.legal-header {
  position: relative;
}

.legal-page {
  padding: var(--space-7) 24px var(--space-9);
}

.legal-document {
  width: min(var(--container-narrow), 100%);
  margin: 0 auto;
  padding: var(--space-7);
  border: 1px solid var(--rule);
  background: var(--bg-elev);
}

.legal-document h1 {
  margin-bottom: var(--space-5);
  color: var(--navy-deep);
  font-size: clamp(2.7rem, 6vw, 4.5rem);
}

.legal-document h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--navy-deep);
  font-size: 1.45rem;
  line-height: 1.25;
}

.legal-document h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
  color: var(--teal);
  font-size: 1.05rem;
}

.legal-document ul {
  padding-left: 22px;
}

.legal-document li {
  margin-bottom: var(--space-1);
}

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

@media (max-width: 900px) {
  .hero,
  .section-head,
  .two-col,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero-aside {
    max-width: 360px;
  }

  .approach-grid,
  .service-grid,
  .three-rs {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .footer-nav {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
    padding: 0 20px;
  }

  .brand {
    --logo-width: min(270px, calc(100vw - 96px));
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--rule);
    background: var(--bg-elev);
    box-shadow: 0 18px 45px rgba(15, 36, 71, 0.13);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .site-nav a::after {
    bottom: 8px;
  }

  .hero {
    min-height: auto;
    padding-block: var(--space-6) var(--space-5);
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-lede {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-aside {
    display: none;
  }

  .section {
    padding-block: var(--space-6);
  }

  .approach-grid article,
  .service-card,
  .team-card,
  .three-rs,
  .legal-document {
    padding: var(--space-5);
  }
}

@media (max-width: 520px) {
  .container,
  .container.narrow {
    width: calc(100% - 36px);
  }

  .hero h1 {
    font-size: 2.24rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

}
