:root {
  color-scheme: light;
  --canvas: #f3f5f8;
  --surface: #e9edf3;
  --surface-strong: #dfe5ee;
  --ink: #171a1f;
  --ink-soft: #5c6470;
  --line: #cbd2dc;
  --accent: #174fa3;
  --accent-dark: #103e82;
  --white: #fdfefe;
  --shell: min(1240px, calc(100% - 48px));
  --header-height: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3 {
  font-weight: 540;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 800px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.98;
}

h2 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.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;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 4px;
}

.top-sentinel {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgb(243 245 248 / 0.8);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

@supports (backdrop-filter: blur(16px)) {
  .site-header {
    background: rgb(243 245 248 / 0.62);
    backdrop-filter: blur(16px);
  }
}

.site-header.is-scrolled {
  border-color: rgb(203 210 220 / 0.8);
  background: rgb(243 245 248 / 0.94);
  box-shadow: 0 8px 26px rgb(23 26 31 / 0.04);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 11px;
  font-size: 1.04rem;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: 8px 8px;
  grid-template-rows: 8px 8px;
  gap: 2px;
  width: 18px;
  height: 18px;
  transform: rotate(4deg);
}

.brand-mark i {
  display: block;
  background: var(--ink);
  border-radius: 2px;
}

.brand-mark i:first-child {
  grid-row: 1 / 3;
  background: var(--accent);
  border-radius: 3px 2px 4px 2px;
}

.brand-mark i:nth-child(2) {
  border-radius: 3px 2px 2px 2px;
}

.brand-mark i:nth-child(3) {
  border-radius: 2px 2px 4px 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #414852;
  font-size: 0.92rem;
}

.desktop-nav a,
.site-footer nav a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.site-footer nav a:hover {
  color: var(--accent);
}

.nav-cta {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--white);
  background: var(--accent);
  font-weight: 620;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button:active {
  transform: translateY(1px);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.text-link span {
  transition: transform 180ms var(--ease);
}

.text-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.text-link:hover span {
  transform: translateX(3px);
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-height));
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--canvas) 0%, var(--canvas) 43%, rgb(243 245 248 / 0.86) 53%, transparent 72%);
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 32%;
  z-index: -2;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 50%;
}

.hero-shell {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - var(--header-height));
  padding-block: 56px 72px;
}

.hero-copy {
  width: min(69%, 850px);
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-inline: 8px;
  color: #99a2ae;
}

.hero-intro {
  max-width: 590px;
  margin-bottom: 34px;
  color: #4d5662;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.section {
  padding-block: clamp(96px, 12vw, 168px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(60px, 8vw, 96px);
}

.section-heading p,
.approach-copy p,
.contact-intro p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-heading .section-eyebrow,
.approach-copy .section-eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capabilities-section {
  border-top: 1px solid var(--line);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}

.capability-grid article {
  min-height: 260px;
  padding: 28px 26px 22px 0;
  border-right: 1px solid var(--line);
}

.capability-grid article:not(:first-child) {
  padding-left: 26px;
}

.capability-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.capability-grid p {
  max-width: 28ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.solutions-section {
  background: var(--surface);
}

.compact-heading {
  max-width: 720px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr;
  grid-template-rows: 290px 290px;
  gap: 2px;
  background: var(--line);
}

.solution {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 3vw, 44px);
  background: var(--canvas);
}

.solution > div {
  margin-top: auto;
}

.solution-primary {
  grid-row: 1 / 3;
  color: var(--white);
  background: #20262f;
}

.solution-data {
  grid-column: 2 / 4;
  background: #dce5f2;
}

.solution-payment {
  background: #f5f7fa;
}

.solution-portals {
  background: #e2e5ea;
}

.solution h3 {
  max-width: 340px;
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
}

.solution p:last-child {
  max-width: 43ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.solution-primary p:last-child {
  color: #c8d0db;
}

.solutions-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 36px;
}

.solutions-cta p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.approach-section {
  border-bottom: 1px solid var(--line);
}

.approach-shell {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  column-gap: 10vw;
}

.approach-copy {
  grid-row: 1 / 3;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-self: end;
  padding: 0;
  margin: 22px 0 48px;
  list-style: none;
  counter-reset: process;
}

.process li {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  font-size: 1.02rem;
  font-weight: 620;
  counter-increment: process;
}

.process li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: -15px;
  right: 8px;
  padding-inline: 6px;
  color: var(--accent);
  background: var(--canvas);
}

.approach-note {
  max-width: 650px;
  margin-bottom: 70px;
  color: var(--ink-soft);
}

.markets {
  grid-column: 1 / -1;
  margin: 64px 0 0;
  color: #727a85;
  font-size: 0.82rem;
  font-weight: 660;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.markets span {
  margin-inline: 12px;
  color: var(--line);
}

.contact-section {
  padding-block: clamp(96px, 12vw, 160px);
  background: var(--surface-strong);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
  gap: clamp(64px, 10vw, 140px);
}

.contact-intro h2 {
  max-width: 760px;
}

.contact-action {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.contact-action p {
  margin-bottom: 0;
  color: #515a66;
  font-size: 0.82rem;
}

.tally-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 17px 0 13px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  color: var(--white);
  background: #20262f;
  box-shadow: 0 14px 34px rgb(23 26 31 / 0.18);
  font-size: 0.86rem;
  font-weight: 640;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 220ms var(--ease), background-color 180ms ease;
}

.tally-launcher.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tally-launcher:hover {
  background: var(--accent);
}

.launcher-mark {
  display: grid;
  grid-template-columns: 6px 6px;
  grid-template-rows: 6px 6px;
  gap: 2px;
  width: 14px;
  height: 14px;
}

.launcher-mark i {
  display: block;
  border-radius: 2px;
  background: #d8e0eb;
}

.launcher-mark i:first-child {
  grid-row: 1 / 3;
  background: #78a5e5;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: 64px 36px;
  color: #cbd2db;
  background: #1e232b;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 280px;
  height: 220px;
  opacity: 0.18;
  background:
    linear-gradient(135deg, transparent 48%, #92a6c5 49% 51%, transparent 52%) 0 0 / 72px 72px,
    linear-gradient(45deg, transparent 48%, #92a6c5 49% 51%, transparent 52%) 0 0 / 72px 72px;
  transform: rotate(8deg);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
}

.footer-brand {
  margin-bottom: 15px;
  color: var(--white);
}

.footer-brand .brand-mark i {
  background: #d8e0eb;
}

.footer-brand .brand-mark i:first-child {
  background: #6495dc;
}

.site-footer p {
  margin-bottom: 0;
  color: #98a2af;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px 28px;
  font-size: 0.88rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 40px;
  border-top: 1px solid #363d47;
}

.legal-page {
  min-height: calc(100dvh - var(--header-height));
  padding-block: clamp(96px, 14vw, 180px);
}

.legal-shell {
  max-width: 780px;
  margin-inline: auto;
}

.legal-shell h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.legal-shell p {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.form-page {
  min-height: calc(100dvh - var(--header-height));
  padding-block: clamp(48px, 7vw, 92px);
}

.form-page-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(480px, 1fr);
  align-items: start;
  gap: clamp(56px, 9vw, 132px);
}

.form-page-intro {
  position: sticky;
  top: calc(var(--header-height) + 48px);
  padding-top: 18px;
}

.form-page-intro h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5vw, 5rem);
}

.form-page-intro > p:last-child {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.tally-page-embed {
  min-height: 640px;
  padding: clamp(22px, 3vw, 42px);
  border-top: 2px solid var(--ink);
  background: var(--surface);
}

.tally-page-embed iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
}

@media (max-width: 980px) {
  .hero-copy {
    width: 78%;
  }

  .hero-visual {
    left: 42%;
  }

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

  .capability-grid article:nth-child(2) {
    border-right: 0;
  }

  .capability-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .solutions-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 290px 290px;
  }

  .solution-primary {
    grid-row: auto;
  }

  .solution-data {
    grid-column: auto;
  }

  .solution-portals {
    display: flex;
  }

  .approach-shell {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .approach-copy {
    grid-row: auto;
  }

  .process {
    margin: 0;
  }

  .approach-note {
    margin-bottom: 0;
  }

  .markets {
    margin-top: 14px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-action {
    padding-top: 0;
  }

  .form-page-shell {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-page-intro {
    position: static;
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 32px, 1240px);
    --header-height: 64px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: clamp(2.75rem, 13vw, 4.2rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 12px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 1px;
    margin: auto;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-nav:not([hidden]) {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 32px 16px;
    background: var(--canvas);
  }

  .mobile-nav a {
    padding: 19px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 1.35rem;
    font-weight: 560;
  }

  .hero {
    min-height: calc(100dvh - var(--header-height));
  }

  .hero::after {
    background: linear-gradient(180deg, var(--canvas) 0%, rgb(243 245 248 / 0.98) 62%, rgb(243 245 248 / 0.46) 100%);
  }

  .hero-visual {
    inset: 51% -22% -10% 20%;
    opacity: 0.82;
  }

  .hero-visual img {
    object-position: 66% 52%;
  }

  .hero-shell {
    align-items: flex-start;
    min-height: calc(100dvh - var(--header-height));
    padding-block: 46px 40px;
  }

  .hero-copy {
    width: 100%;
  }

  .eyebrow {
    max-width: 280px;
    margin-bottom: 18px;
    font-size: 0.68rem;
    line-height: 1.55;
  }

  .hero-intro {
    max-width: 32ch;
    margin-bottom: 26px;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 20px;
  }

  .hero-actions .button {
    min-height: 46px;
    padding-inline: 18px;
  }

  .hero-actions .text-link {
    font-size: 0.9rem;
  }

  .section {
    padding-block: 88px;
  }

  .section-heading {
    margin-bottom: 54px;
  }

  .section-heading p,
  .approach-copy p,
  .contact-intro p {
    font-size: 1rem;
  }

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

  .capability-grid article,
  .capability-grid article:not(:first-child) {
    min-height: auto;
    padding: 25px 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-grid article:last-child {
    border-bottom: 0;
  }

  .capability-grid h3 {
    margin-bottom: 8px;
  }

  .capability-grid p {
    max-width: 37ch;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .solution,
  .solution-primary {
    grid-row: auto;
    min-height: 230px;
    padding: 28px 24px;
  }

  .solution-portals {
    display: grid;
  }

  .solution h3 {
    font-size: 1.55rem;
  }

  .solutions-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 30px;
  }

  .approach-shell {
    gap: 42px;
  }

  .process {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }

  .process li:nth-child(2)::after {
    content: none;
  }

  .process li:nth-child(3),
  .process li:nth-child(4) {
    padding-top: 20px;
  }

  .markets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    line-height: 1.5;
  }

  .markets span {
    display: none;
  }

  .contact-section {
    padding-block: 88px;
  }

  .contact-shell {
    gap: 42px;
  }

  .tally-launcher {
    right: 16px;
    bottom: 16px;
    min-height: 46px;
  }

  .form-page {
    padding-block: 52px 0;
  }

  .form-page-shell {
    width: 100%;
    gap: 42px;
  }

  .form-page-intro {
    width: var(--shell);
    margin-inline: auto;
  }

  .tally-page-embed {
    min-height: 620px;
    padding: 24px 16px 48px;
    border-top-width: 1px;
  }

  .tally-page-embed iframe {
    min-height: 620px;
  }

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

  .site-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: start;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (max-height: 700px) and (min-width: 721px) {
  h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }

  .hero-shell {
    padding-block: 32px 44px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .hero-intro {
    margin-bottom: 24px;
  }
}

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

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