:root {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #181b20;
  --surface-raised: #1d2026;
  --surface-soft: #22262d;
  --primary: #f5f3ef;
  --muted: #8a8f98;
  --muted-strong: #b7bbc2;
  --accent: #3b82f6;
  --line: rgba(245, 243, 239, 0.1);
  --line-strong: rgba(245, 243, 239, 0.17);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  --max-width: 1280px;
  --header-height: 84px;
  --font-heading: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --progress: 0;
}

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

html {
  background: var(--bg);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 58% 42%, rgba(59, 130, 246, 0.07), transparent 42rem),
    radial-gradient(circle at 50% 0%, rgba(245, 243, 239, 0.04), transparent 34rem),
    linear-gradient(180deg, rgba(24, 27, 32, 0.1), transparent 38%),
    var(--bg);
  color: var(--primary);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.portfolio-back-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-bottom: 1px solid transparent;
  color: var(--muted-strong);
  padding-block: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.portfolio-back-link--fixed {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 80;
}

.portfolio-back-link:hover,
.portfolio-back-link:focus-visible {
  color: var(--primary);
  border-bottom-color: currentColor;
  transform: translateY(-1px);
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--header-height);
  background: rgba(15, 17, 21, calc(0.06 + (var(--progress) * 0.82)));
  border-bottom: 1px solid rgba(245, 243, 239, calc(var(--progress) * 0.11));
  backdrop-filter: blur(calc(var(--progress) * 18px));
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.nav-shell {
  width: min(calc(100% - 48px), var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  justify-self: start;
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
}

.nav-links a,
.button-secondary {
  transition: color 180ms ease;
}

.nav-links a:hover,
.button-secondary:hover {
  color: var(--primary);
}

.wordmark[aria-current="page"],
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.52rem;
  height: 1px;
  background: rgba(245, 243, 239, 0.72);
}

.nav-cta {
  justify-self: end;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 650;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 243, 239, 0.28);
  background: rgba(245, 243, 239, 0.045);
}

/* Hero */
.hero {
  min-height: 118svh;
  margin-top: calc(var(--header-height) * -1);
  padding-top: var(--header-height);
}

.hero-frame {
  position: sticky;
  top: 0;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(7.4rem, 10vw, 10.25rem) 0 clamp(2rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: minmax(28rem, 0.92fr) minmax(37rem, 1.08fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6.5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-bottom: clamp(2.5rem, 8vh, 7.5rem);
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(4.45rem, 7.55vw, 7.25rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 650;
}

.hero-subcopy {
  max-width: 560px;
  margin: 1.8rem 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.03rem, 1.22vw, 1.19rem);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.button-primary {
  padding: 0 1.45rem;
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 12px 34px rgba(245, 243, 239, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(245, 243, 239, 0.16);
}

.button-secondary {
  gap: 0.58rem;
  color: var(--muted-strong);
}

.button-secondary span {
  display: inline-block;
  transition: transform 180ms ease;
}

.button-secondary:hover span {
  transform: translateX(0.28rem);
}

/* Operational ecosystem */
.ecosystem {
  position: relative;
  width: min(100%, 780px);
  aspect-ratio: 780 / 560;
  justify-self: end;
  transform: translateY(calc((1 - var(--progress)) * 22px));
}

.ecosystem::before {
  content: "";
  position: absolute;
  inset: 12% 8% 10% 10%;
  border: 1px solid rgba(245, 243, 239, calc(0.025 + (var(--progress) * 0.08)));
  border-radius: 999px;
  transform: scale(calc(0.9 + (var(--progress) * 0.1)));
  opacity: calc(0.15 + (var(--progress) * 0.48));
}

.connectors {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  opacity: calc(var(--progress) * 1);
}

.connectors path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--progress));
  opacity: 0.72;
  filter: drop-shadow(0 0 9px rgba(59, 130, 246, 0.18));
}

.module {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(245, 243, 239, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.036), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow);
  color: var(--primary);
  transform:
    translate3d(
      calc(var(--from-x) * (1 - var(--progress))),
      calc(var(--from-y) * (1 - var(--progress))),
      0
    )
    rotate(calc(var(--from-r) * (1 - var(--progress))))
    translateY(calc((var(--float-y, 0px) + var(--ambient-y, 0px)) * (1 - (var(--progress) * 0.65))));
  transition: border-color 180ms ease, background 180ms ease;
  will-change: transform;
}

.module::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.module-kicker {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.module strong {
  color: var(--primary);
  font-size: 1rem;
}

.module-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.module-meta strong {
  font-size: 0.78rem;
}

/* Sprint 1.1 refinement layer */
.ecosystem {
  isolation: isolate;
  width: min(100%, 735px);
  transform: translateY(calc((1 - var(--progress)) * 16px));
}

.ecosystem::before {
  z-index: 0;
  inset: 13% 9% 9% 9%;
  border-color: rgba(245, 243, 239, calc(0.035 + (var(--progress) * 0.08)));
  transform: scale(calc(0.92 + (var(--progress) * 0.08)));
  opacity: calc(0.28 + (var(--progress) * 0.42));
}

.ecosystem::after {
  content: "";
  position: absolute;
  inset: 8% 3% 1% 4%;
  z-index: 0;
  border-radius: 42%;
  background:
    radial-gradient(ellipse at 55% 54%, rgba(59, 130, 246, 0.12), transparent 34%),
    radial-gradient(ellipse at 44% 58%, rgba(245, 243, 239, 0.055), transparent 52%);
  opacity: calc(0.26 + (var(--progress) * 0.24));
  pointer-events: none;
}

.connectors {
  z-index: 1;
  opacity: 1;
}

.connectors path {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  stroke-width: calc(0.75px + (var(--progress) * 0.5px));
  opacity: calc(0.12 + (var(--progress) * 0.44));
  filter: none;
  vector-effect: non-scaling-stroke;
  transition: opacity 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.ecosystem.is-hovering .connectors path {
  opacity: 0.07;
}

.ecosystem.is-hovering .connectors path.is-related {
  opacity: calc(0.58 + (var(--progress) * 0.24));
  stroke-width: 1.45px;
  filter: drop-shadow(0 0 7px rgba(59, 130, 246, 0.2));
}

.module {
  --focus-lift: 0px;
  --focus-scale: 1;
  --neighbor-x: 0px;
  --neighbor-y: 0px;
  z-index: 2;
  gap: 0.68rem;
  padding: 0.86rem;
  border-color: rgba(245, 243, 239, 0.085);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.035), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 100%),
    var(--surface);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  transform:
    translate3d(
      calc((var(--from-x) * (1 - var(--progress))) + var(--neighbor-x)),
      calc((var(--from-y) * (1 - var(--progress))) + var(--neighbor-y)),
      0
    )
    rotate(calc(var(--from-r) * (1 - var(--progress))))
    translateY(calc((var(--float-y, 0px) + var(--ambient-y, 0px)) * (1 - (var(--progress) * 0.65)) - var(--focus-lift)))
    scale(var(--focus-scale));
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

.module:hover,
.module.is-active {
  --focus-lift: 5px;
  --focus-scale: 1.012;
  border-color: rgba(59, 130, 246, 0.38);
  background:
    linear-gradient(155deg, rgba(59, 130, 246, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 100%),
    var(--surface);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

.module.is-neighbor {
  --focus-scale: 1.006;
  border-color: rgba(59, 130, 246, 0.18);
}

.ecosystem.is-hovering .module:not(.is-active, .is-neighbor) {
  opacity: 0.78;
}

.module-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.module-topline > div {
  min-width: 0;
}

.module-topline strong,
.hiring-count strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  line-height: 1.08;
  letter-spacing: -0.012em;
}

.sync-note,
.live-note {
  flex: 0 0 auto;
  max-width: 6.8rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.live-note {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: var(--accent);
}

.live-note::before {
  content: "";
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.metric-grid,
.payroll-strip {
  display: grid;
  gap: 0.46rem;
}

.metric-grid-compact {
  grid-template-columns: 1fr 1fr;
}

.metric-grid div,
.payroll-strip div {
  min-width: 0;
  padding: 0.58rem 0.62rem;
  border: 1px solid rgba(245, 243, 239, 0.075);
  border-radius: 7px;
  background: rgba(245, 243, 239, 0.024);
}

.metric-grid span,
.payroll-strip span,
.data-row span,
.summary-row span,
.filing-row em {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.3;
}

.metric-grid strong,
.payroll-strip strong,
.data-row strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--primary);
  font-size: 0.84rem;
  line-height: 1.15;
}

.capacity-line {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
}

.capacity-track {
  height: 0.38rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 243, 239, 0.08);
}

.capacity-track span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: rgba(59, 130, 246, 0.76);
}

.hiring-count {
  display: grid;
  gap: 0.16rem;
  padding: 0.08rem 0 0.22rem;
}

.hiring-count strong {
  font-size: 2.35rem;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hiring-count span {
  color: var(--muted-strong);
  font-size: 0.76rem;
}

.data-list,
.finance-ledger,
.filing-stack,
.summary-list {
  display: grid;
  gap: 0.42rem;
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 0.48rem;
  border-top: 1px solid rgba(245, 243, 239, 0.075);
}

.data-row strong {
  margin-top: 0;
  text-align: right;
}

.payroll-strip {
  grid-template-columns: 1.05fr 1fr 0.9fr;
}

.filing-row {
  display: grid;
  grid-template-columns: 0.48rem 1fr;
  gap: 0.56rem;
  align-items: start;
  padding: 0.44rem 0;
  border-top: 1px solid rgba(245, 243, 239, 0.075);
}

.filing-row > span {
  width: 0.48rem;
  height: 0.48rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.72);
}

.filing-row strong,
.summary-row strong {
  color: var(--primary);
  font-size: 0.75rem;
  line-height: 1.2;
}

.filing-row em {
  display: block;
  margin-top: 0.14rem;
  font-style: normal;
}

.summary-list {
  gap: 0.34rem;
  margin-top: 0.08rem;
}

.summary-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.56rem;
  min-height: 1.55rem;
}

.summary-row i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 243, 239, 0.18), rgba(245, 243, 239, 0.04));
}

.summary-row strong {
  text-align: right;
}

.summary-row-action strong {
  color: var(--accent);
}

.module-workforce {
  --from-x: -34px;
  --from-y: -18px;
  --from-r: -1.6deg;
  --float-y: -1px;
  top: 21.6%;
  left: 3.6%;
  width: 190px;
  min-height: 170px;
}

.module-hiring {
  --from-x: 48px;
  --from-y: -44px;
  --from-r: 1.4deg;
  --float-y: 1px;
  top: 8.4%;
  right: 19.8%;
  width: 176px;
  min-height: 196px;
}

.module-payroll {
  --from-x: 10px;
  --from-y: 44px;
  --from-r: 0.9deg;
  --float-y: -1px;
  top: 43%;
  left: 36%;
  width: 286px;
  min-height: 128px;
}

.module-finance {
  --from-x: -50px;
  --from-y: 54px;
  --from-r: -1.1deg;
  --float-y: 1px;
  top: 64%;
  left: 9%;
  width: 192px;
  min-height: 184px;
}

.module-compliance {
  --from-x: 54px;
  --from-y: 18px;
  --from-r: 1.8deg;
  --float-y: -1px;
  top: 47.8%;
  right: 0.5%;
  width: 184px;
  min-height: 188px;
}

.module-executive {
  --from-x: 34px;
  --from-y: 58px;
  --from-r: -0.8deg;
  --float-y: 1px;
  right: 24%;
  bottom: 1.2%;
  width: 286px;
  min-height: 176px;
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 100%),
    var(--surface);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: copyIn 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .module {
    animation: moduleIn 880ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--delay, 0ms);
  }

  .module-workforce {
    --delay: 80ms;
  }

  .module-hiring {
    --delay: 160ms;
  }

  .module-payroll {
    --delay: 220ms;
  }

  .module-finance {
    --delay: 120ms;
  }

  .module-compliance {
    --delay: 260ms;
  }

  .module-executive {
    --delay: 320ms;
  }
}

@keyframes copyIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes moduleIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .hero-frame {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2.4rem;
    padding-top: 7rem;
  }

  .hero-copy {
    max-width: 740px;
    padding-bottom: 0;
  }

  h1 {
    max-width: 12ch;
  }

  .ecosystem {
    justify-self: center;
    width: min(100%, 690px);
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 116px;
  }

  .site-header {
    position: fixed;
    width: 100%;
  }

  .nav-shell {
    width: min(calc(100% - 32px), var(--max-width));
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-content: center;
    row-gap: 0.7rem;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: flex;
    gap: 1.05rem;
    font-size: 0.78rem;
  }

  .nav-cta {
    padding: 0.68rem 0.86rem;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 154svh;
  }

  .hero-frame {
    position: relative;
    width: min(calc(100% - 32px), var(--max-width));
    min-height: 100svh;
    padding-top: 7.2rem;
    padding-bottom: 2rem;
    align-content: start;
  }

  .eyebrow {
    margin-bottom: 1rem;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.65rem, 16vw, 5.4rem);
  }

  .hero-subcopy {
    font-size: 1rem;
    line-height: 1.68;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.65rem;
  }

  .ecosystem {
    width: min(100%, 620px);
    min-height: 740px;
    aspect-ratio: auto;
    margin-top: 0.4rem;
  }

  .connectors {
    transform: scaleX(1.04);
  }

  .module {
    gap: 0.55rem;
    padding: 0.72rem;
  }

  .module-topline {
    gap: 0.56rem;
  }

  .module-topline strong {
    font-size: 0.78rem;
  }

  .sync-note,
  .live-note {
    max-width: 5.2rem;
    font-size: 0.52rem;
  }

  .metric-grid span,
  .payroll-strip span,
  .data-row span,
  .summary-row span,
  .filing-row em {
    font-size: 0.57rem;
  }

  .metric-grid strong,
  .payroll-strip strong,
  .data-row strong {
    font-size: 0.72rem;
  }

  .payroll-strip {
    grid-template-columns: 1.05fr 1fr 0.9fr;
  }

  .summary-row {
    gap: 0.42rem;
  }

  .module-workforce {
    top: 1%;
    left: 0;
    width: 166px;
    min-height: 154px;
  }

  .hiring-count strong {
    font-size: 1.9rem;
  }

  .module-hiring {
    top: 1%;
    right: 1%;
    width: 164px;
    min-height: 176px;
  }

  .module-payroll {
    top: 31%;
    left: 9%;
    width: 282px;
    min-height: 122px;
  }

  .module-finance {
    top: 52%;
    left: 0;
    width: 166px;
    min-height: 176px;
  }

  .module-compliance {
    top: 52%;
    right: 0;
    width: 170px;
    min-height: 176px;
  }

  .module-executive {
    right: auto;
    left: 34px;
    bottom: 0;
    width: 290px;
    min-height: 176px;
  }
}

@media (max-width: 460px) {
  .wordmark {
    letter-spacing: 0.28em;
  }

  .nav-cta {
    max-width: 9.6rem;
    text-align: center;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 3.85rem);
  }

  .hero-subcopy {
    max-width: 34rem;
  }

  .ecosystem {
    min-height: 760px;
    transform: translateX(-2px);
  }

  .module-workforce {
    width: 154px;
  }

  .module-hiring {
    width: 150px;
  }

  .module-payroll {
    left: 7%;
    width: 270px;
  }

  .module-finance {
    width: 154px;
  }

  .module-compliance {
    width: 158px;
  }

  .module-executive {
    left: 19px;
    width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  :root {
    --progress: 1;
  }

  .module {
    transform: none;
  }
}

/* Transformation section */
.transformation {
  --system-progress: 0;
  position: relative;
  min-height: 188svh;
  background:
    radial-gradient(ellipse at 58% 38%, rgba(59, 130, 246, 0.06), transparent 38rem),
    linear-gradient(180deg, rgba(15, 17, 21, 0), rgba(24, 27, 32, 0.2) 48%, rgba(15, 17, 21, 0));
}

.transformation-frame {
  position: sticky;
  top: 0;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(2.6rem, 5vw, 4.8rem)) 0 clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(2rem, 4vw, 3.3rem);
}

.transformation-copy {
  display: grid;
  grid-template-columns: minmax(24rem, 0.82fr) minmax(26rem, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7.5rem);
}

.transformation-copy h2 {
  max-width: 11ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 5.8vw, 5.95rem);
  font-weight: 650;
  line-height: 0.99;
  letter-spacing: -0.052em;
}

.transformation-copy p {
  max-width: 560px;
  margin: 0 0 0.42rem;
  color: var(--muted-strong);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.74;
}

.workspace-system {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 920px);
  aspect-ratio: 920 / 620;
  isolation: isolate;
}

.workspace-system::before {
  content: "";
  position: absolute;
  inset: 8% 4% 5%;
  z-index: 0;
  border: 1px solid rgba(245, 243, 239, calc(0.03 + (var(--system-progress) * 0.085)));
  border-radius: 22px;
  background:
    linear-gradient(rgba(245, 243, 239, calc(var(--system-progress) * 0.025)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 239, calc(var(--system-progress) * 0.025)) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: calc(0.26 + (var(--system-progress) * 0.58));
  transform: scale(calc(0.94 + (var(--system-progress) * 0.06)));
}

.workspace-system::after {
  content: "";
  position: absolute;
  inset: 11% 15% 13%;
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.13), transparent 63%);
  opacity: calc(0.24 + (var(--system-progress) * 0.22));
  pointer-events: none;
}

.workspace-connectors {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  opacity: 1;
}

.workspace-connectors path {
  fill: none;
  stroke: var(--accent);
  stroke-width: calc(0.65px + (var(--system-progress) * 0.8px));
  stroke-linecap: round;
  opacity: calc(0.08 + (var(--system-progress) * 0.48));
  vector-effect: non-scaling-stroke;
  transition: opacity 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.workspace-system.is-hovering .workspace-connectors path {
  opacity: 0.08;
}

.workspace-system.is-hovering .workspace-connectors path.is-related {
  opacity: calc(0.62 + (var(--system-progress) * 0.22));
  stroke-width: 1.55px;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.2));
}

.system-module {
  --hover-lift: 0px;
  --focus-scale: 1;
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  min-width: 0;
  padding: 0.88rem;
  border: 1px solid rgba(245, 243, 239, calc(0.075 + (var(--system-progress) * 0.045)));
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.035), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, calc(0.018 + (var(--system-progress) * 0.018))), transparent 100%),
    var(--surface);
  box-shadow: 0 16px 44px rgba(0, 0, 0, calc(0.18 + (var(--system-progress) * 0.08)));
  transform:
    translate3d(
      calc(var(--start-x) * (1 - var(--system-progress))),
      calc(var(--start-y) * (1 - var(--system-progress))),
      0
    )
    rotate(calc(var(--start-r) * (1 - var(--system-progress))))
    translateY(calc(var(--ambient-y, 0px) * (1 - (var(--system-progress) * 0.8)) - var(--hover-lift)))
    scale(var(--focus-scale));
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 240ms ease;
  will-change: transform;
}

.system-module::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.system-module:hover,
.system-module:focus-visible,
.system-module.is-active {
  --hover-lift: 5px;
  --focus-scale: 1.01;
  border-color: rgba(59, 130, 246, 0.38);
  background:
    linear-gradient(155deg, rgba(59, 130, 246, 0.085), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), transparent 100%),
    var(--surface);
  box-shadow: 0 21px 52px rgba(0, 0, 0, 0.28);
}

.system-module.is-neighbor {
  --focus-scale: 1.005;
  border-color: rgba(59, 130, 246, 0.2);
}

.workspace-system.is-hovering .system-module:not(.is-active, .is-neighbor, .system-pulse) {
  opacity: 0.72;
}

.workspace-system.is-hovering .system-pulse {
  --focus-scale: 1.012;
  border-color: rgba(59, 130, 246, 0.36);
}

.system-workforce {
  --start-x: -92px;
  --start-y: -38px;
  --start-r: -2.2deg;
  top: 11%;
  left: 5%;
  width: 220px;
  min-height: 170px;
}

.system-hiring {
  --start-x: -124px;
  --start-y: 72px;
  --start-r: 2.4deg;
  left: 6%;
  bottom: 12%;
  width: 238px;
  min-height: 190px;
}

.system-payroll {
  --start-x: 8px;
  --start-y: -96px;
  --start-r: 1.5deg;
  top: 6%;
  left: 40%;
  width: 294px;
  min-height: 128px;
}

.system-finance {
  --start-x: 112px;
  --start-y: -34px;
  --start-r: -1.5deg;
  top: 15%;
  right: 2%;
  width: 218px;
  min-height: 190px;
}

.system-compliance {
  --start-x: 126px;
  --start-y: 82px;
  --start-r: 2deg;
  right: 2%;
  bottom: 10%;
  width: 224px;
  min-height: 178px;
}

.system-pulse {
  --start-x: 26px;
  --start-y: 122px;
  --start-r: -1deg;
  top: 36.5%;
  left: 34%;
  width: 304px;
  min-height: 248px;
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.085), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), transparent 100%),
    var(--surface);
}

.system-pulse .module-topline strong {
  font-size: 1.08rem;
}

@media (max-width: 1120px) {
  .transformation-copy {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.2rem;
  }

  .transformation-copy h2 {
    max-width: 12ch;
  }

  .workspace-system {
    width: min(100%, 820px);
  }
}

@media (max-width: 780px) {
  .transformation {
    min-height: 210svh;
  }

  .transformation-frame {
    width: min(calc(100% - 32px), var(--max-width));
    padding-top: calc(var(--header-height) + 2rem);
    align-content: start;
  }

  .transformation-copy h2 {
    font-size: clamp(2.9rem, 13vw, 4.35rem);
  }

  .transformation-copy p {
    font-size: 0.98rem;
    line-height: 1.66;
  }

  .workspace-system {
    min-height: 800px;
    aspect-ratio: auto;
  }

  .workspace-system::before {
    inset: 4% 0 2%;
  }

  .system-module {
    gap: 0.55rem;
    padding: 0.72rem;
  }

  .system-module .module-topline strong {
    font-size: 0.78rem;
  }

  .system-workforce {
    top: 3%;
    left: 0;
    width: 166px;
    min-height: 154px;
  }

  .system-payroll {
    top: 4%;
    left: auto;
    right: 0;
    width: 190px;
  }

  .system-hiring {
    top: 29%;
    bottom: auto;
    left: 0;
    width: 170px;
    min-height: 176px;
  }

  .system-finance {
    top: 29%;
    right: 0;
    width: 174px;
    min-height: 176px;
  }

  .system-compliance {
    right: 0;
    bottom: 22%;
    width: 176px;
    min-height: 164px;
  }

  .system-pulse {
    top: auto;
    left: 0;
    bottom: 1%;
    width: min(100%, 338px);
    min-height: 222px;
  }
}

@media (max-width: 460px) {
  .workspace-system {
    min-height: 840px;
  }

  .system-workforce,
  .system-hiring {
    width: 154px;
  }

  .system-payroll {
    width: 176px;
  }

  .system-finance,
  .system-compliance {
    width: 158px;
  }

  .system-pulse {
    width: 100%;
  }

  .system-payroll .payroll-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transformation {
    --system-progress: 1;
  }

  .system-module {
    transform: none;
  }

  .workspace-connectors path {
    opacity: 0.54;
    stroke-width: 1.35px;
  }
}

/* How Atlas Works */
.how-atlas {
  position: relative;
  padding: clamp(6.5rem, 10vw, 10rem) 0 clamp(5rem, 8vw, 8rem);
  background:
    radial-gradient(ellipse at 42% 12%, rgba(245, 243, 239, 0.035), transparent 32rem),
    radial-gradient(ellipse at 65% 58%, rgba(59, 130, 246, 0.055), transparent 38rem),
    var(--bg);
}

.how-atlas-header {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto clamp(3.6rem, 7vw, 6.2rem);
  display: grid;
  grid-template-columns: minmax(24rem, 0.82fr) minmax(26rem, 0.72fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7.5rem);
}

.how-atlas-header h2 {
  max-width: 8ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(3.35rem, 6.1vw, 6.2rem);
  font-weight: 650;
  line-height: 0.99;
  letter-spacing: -0.052em;
}

.how-atlas-header p {
  max-width: 610px;
  margin: 0 0 0.44rem;
  color: var(--muted-strong);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.74;
}

.how-panels {
  display: grid;
  gap: clamp(4rem, 8vw, 7.5rem);
}

.how-panel {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: min(760px, 86svh);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(24rem, 0.86fr) minmax(32rem, 1.14fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  opacity: 0.34;
  transform: translateY(28px);
  transition: opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.how-panel.is-reversed {
  grid-template-columns: minmax(32rem, 1.14fr) minmax(24rem, 0.86fr);
}

.how-panel.is-reversed .panel-copy {
  grid-column: 2;
}

.how-panel.is-reversed .panel-visual {
  grid-column: 1;
  grid-row: 1;
}

.how-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel-copy {
  max-width: 480px;
}

.panel-copy h3 {
  max-width: 10ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(2.65rem, 4.6vw, 4.75rem);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.panel-copy > p:last-child {
  margin: 1.45rem 0 0;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.72;
}

.panel-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(245, 243, 239, 0.075);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 100%),
    rgba(24, 27, 32, 0.46);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  isolation: isolate;
}

.panel-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 0;
  border: 1px solid rgba(245, 243, 239, 0.05);
  border-radius: 999px;
}

.panel-visual svg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.panel-visual path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1px;
  stroke-linecap: round;
  opacity: 0.32;
  vector-effect: non-scaling-stroke;
}

.workflow-path-main {
  opacity: 0.46;
}

.workflow-path-side {
  opacity: 0.22;
}

.workflow-lanes,
.workflow-step {
  position: absolute;
  z-index: 2;
}

.workflow-lanes {
  inset: 1rem 1rem auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.workflow-lanes span {
  padding-bottom: 0.58rem;
  border-bottom: 1px solid rgba(245, 243, 239, 0.075);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workflow-step {
  width: 162px;
  display: grid;
  gap: 0.26rem;
  padding: 0.82rem 0.86rem;
  border: 1px solid rgba(245, 243, 239, 0.085);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.034), transparent 42%),
    rgba(24, 27, 32, 0.92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.workflow-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.3rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.68;
  transform: translateY(-50%);
}

.workflow-step span {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-step strong {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.flow-candidate {
  top: 15%;
  left: 9%;
}

.flow-hr {
  top: 34%;
  left: 9%;
}

.flow-manager {
  top: 34%;
  left: 36%;
}

.flow-approval {
  top: 23%;
  right: 9%;
}

.flow-offer {
  top: 48%;
  right: 9%;
}

.flow-record {
  bottom: 12%;
  right: 9%;
}

.map-node,
.map-label,
.design-card,
.mini-module,
.mini-dashboard,
.pulse-card,
.orbit-module {
  position: absolute;
  z-index: 2;
}

.map-node {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(245, 243, 239, 0.055);
  opacity: 0.9;
}

.node-a {
  top: 22%;
  left: 16%;
}

.node-b {
  top: 30%;
  left: 52%;
}

.node-c {
  top: 24%;
  right: 13%;
}

.node-d {
  left: 22%;
  bottom: 26%;
}

.node-e {
  right: 17%;
  bottom: 36%;
}

.map-label {
  padding: 0.48rem 0.58rem;
  border: 1px solid rgba(245, 243, 239, 0.08);
  border-radius: 7px;
  background: rgba(24, 27, 32, 0.92);
  color: var(--muted-strong);
  font-size: 0.66rem;
  font-weight: 700;
}

.label-a {
  top: 13%;
  left: 23%;
}

.label-b {
  top: 42%;
  right: 18%;
}

.label-c {
  left: 31%;
  bottom: 20%;
}

.design-card,
.mini-module,
.pulse-card {
  display: grid;
  gap: 0.28rem;
  border: 1px solid rgba(245, 243, 239, 0.085);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.design-card,
.mini-module {
  padding: 0.88rem;
}

.design-card span,
.mini-module span,
.orbit-module {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.design-card strong,
.mini-module strong {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.1;
}

.card-a {
  top: 22%;
  left: 16%;
  width: 154px;
}

.card-b {
  top: 20%;
  right: 17%;
  width: 164px;
}

.card-c {
  left: 20%;
  bottom: 21%;
  width: 174px;
}

.card-d {
  right: 14%;
  bottom: 25%;
  width: 160px;
}

.mini-module {
  width: 146px;
}

.impl-people {
  top: 19%;
  left: 15%;
}

.impl-payroll {
  top: 17%;
  right: 18%;
}

.impl-finance {
  left: 20%;
  bottom: 21%;
}

.impl-ops {
  right: 14%;
  bottom: 20%;
}

.mini-dashboard {
  top: 38%;
  left: 38%;
  width: 142px;
  height: 118px;
  padding: 0.9rem;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.mini-dashboard span {
  display: block;
  height: 0.42rem;
  margin-bottom: 0.64rem;
  border-radius: 999px;
  background: rgba(245, 243, 239, 0.13);
}

.mini-dashboard span:nth-child(2) {
  width: 72%;
  background: rgba(59, 130, 246, 0.55);
}

.mini-dashboard span:nth-child(3) {
  width: 48%;
}

.pulse-card {
  top: 31%;
  left: 28%;
  width: 230px;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.085), transparent 42%),
    var(--surface);
}

.pulse-card .summary-row {
  min-height: 1.42rem;
}

.pulse-card .summary-row span,
.pulse-card .summary-row strong {
  font-size: 0.68rem;
}

.orbit-module {
  padding: 0.58rem 0.68rem;
  border: 1px solid rgba(245, 243, 239, 0.08);
  border-radius: 999px;
  background: rgba(24, 27, 32, 0.92);
}

.orbit-a {
  top: 17%;
  left: 19%;
}

.orbit-b {
  top: 16%;
  right: 19%;
}

.orbit-c {
  right: 14%;
  bottom: 23%;
}

.orbit-d {
  left: 15%;
  bottom: 24%;
}

@media (prefers-reduced-motion: no-preference) {
  .how-panel.is-visible .panel-visual path {
    animation: panelLineIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .panel-visual > :not(svg) {
    transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .how-panel:not(.is-visible) .panel-visual > :not(svg) {
    opacity: 0.42;
    transform: translateY(14px);
  }
}

@keyframes panelLineIn {
  from {
    opacity: 0.08;
    stroke-dasharray: 14 18;
  }
  to {
    opacity: 0.32;
    stroke-dasharray: 1 0;
  }
}

@media (max-width: 1120px) {
  .how-atlas-header,
  .how-panel,
  .how-panel.is-reversed {
    grid-template-columns: 1fr;
  }

  .how-atlas-header h2 {
    max-width: 12ch;
  }

  .how-panel,
  .how-panel.is-reversed {
    min-height: auto;
    gap: 2.2rem;
  }

  .how-panel.is-reversed .panel-copy,
  .how-panel.is-reversed .panel-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .how-panel.is-reversed .panel-visual {
    order: 2;
  }

  .panel-copy {
    max-width: 640px;
  }

  .panel-visual {
    min-height: 500px;
  }
}

@media (max-width: 780px) {
  .how-atlas {
    padding-top: 5.4rem;
  }

  .how-atlas-header,
  .how-panel {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .how-atlas-header h2 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .panel-copy h3 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 11vw, 3.55rem);
  }

  .panel-visual {
    min-height: 430px;
  }

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

  .workflow-step {
    width: 142px;
    padding: 0.68rem;
  }

  .flow-candidate,
  .flow-hr {
    left: 7%;
  }

  .flow-manager {
    left: 34%;
  }

  .flow-approval,
  .flow-offer,
  .flow-record {
    right: 7%;
  }

  .card-a,
  .card-c,
  .impl-people,
  .impl-finance {
    left: 8%;
  }

  .card-b,
  .card-d,
  .impl-payroll,
  .impl-ops {
    right: 8%;
  }

  .mini-dashboard {
    left: 34%;
  }

  .pulse-card {
    left: 20%;
  }
}

@media (max-width: 460px) {
  .panel-visual {
    min-height: 400px;
  }

  .workflow-step {
    width: 118px;
  }

  .workflow-step strong {
    font-size: 0.78rem;
  }

  .flow-candidate {
    top: 12%;
    left: 7%;
  }

  .flow-hr {
    top: 31%;
    left: 7%;
  }

  .flow-manager {
    top: 26%;
    right: 7%;
    left: auto;
  }

  .flow-approval {
    top: 49%;
    right: 7%;
  }

  .flow-offer {
    top: 66%;
    right: 7%;
  }

  .flow-record {
    right: 7%;
    bottom: 2%;
  }

  .design-card,
  .mini-module {
    width: 132px;
    padding: 0.74rem;
  }

  .mini-dashboard {
    left: 31%;
    width: 118px;
  }

  .pulse-card {
    left: 11%;
    width: 220px;
  }

  .orbit-a,
  .orbit-d {
    left: 7%;
  }

  .orbit-b,
  .orbit-c {
    right: 7%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-panel {
    opacity: 1;
    transform: none;
  }

  .panel-visual > :not(svg) {
    transform: none;
  }
}

/* Solutions */
.solutions {
  position: relative;
  padding: clamp(6.5rem, 10vw, 10rem) 0 clamp(5rem, 8vw, 8rem);
  background:
    radial-gradient(ellipse at 60% 20%, rgba(59, 130, 246, 0.055), transparent 36rem),
    radial-gradient(ellipse at 38% 74%, rgba(245, 243, 239, 0.032), transparent 34rem),
    var(--bg);
}

.solutions-header {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto clamp(3.4rem, 6vw, 5.8rem);
  display: grid;
  grid-template-columns: minmax(28rem, 0.92fr) minmax(26rem, 0.72fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
}

.solutions-header h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 5.9vw, 6.1rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.052em;
}

.solutions-header p {
  max-width: 560px;
  margin: 0 0 0.4rem;
  color: var(--muted-strong);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.74;
}

.solutions-stack {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.solution-card {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(22rem, 0.94fr) minmax(24rem, 1.06fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  border: 1px solid rgba(245, 243, 239, 0.078);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.035), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 100%),
    rgba(24, 27, 32, 0.58);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 72% 38%, rgba(59, 130, 246, 0.08), transparent 48%);
  opacity: 0.34;
  transition: opacity 180ms ease;
}

.solution-card:hover,
.solution-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.34);
  background:
    linear-gradient(155deg, rgba(59, 130, 246, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 100%),
    rgba(24, 27, 32, 0.66);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.solution-card:hover::before,
.solution-card:focus-visible::before {
  opacity: 0.58;
}

.solution-workforce,
.solution-leadership {
  grid-column: 1 / -1;
}

.solution-payroll,
.solution-finance {
  grid-column: span 6;
  grid-template-columns: 1fr;
  min-height: 530px;
}

.solution-compliance {
  grid-column: 1 / -1;
}

.solution-content,
.solution-visual {
  position: relative;
  z-index: 1;
}

.solution-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-width: 0;
}

.solution-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.solution-heading .eyebrow {
  margin: 0;
}

.solution-status {
  position: relative;
  flex: 0 0 auto;
  min-width: 7.2rem;
  min-height: 2rem;
  padding: 0.48rem 0.68rem;
  border: 1px solid rgba(245, 243, 239, 0.09);
  border-radius: 999px;
  background: rgba(245, 243, 239, 0.035);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
}

.solution-status span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.solution-status span:last-child {
  color: var(--accent);
  opacity: 0;
  transform: translateY(55%);
}

.solution-card:hover .solution-status,
.solution-card:focus-visible .solution-status {
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.09);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.075);
}

.solution-card:hover .solution-status span:first-child,
.solution-card:focus-visible .solution-status span:first-child {
  opacity: 0;
  transform: translateY(-55%);
}

.solution-card:hover .solution-status span:last-child,
.solution-card:focus-visible .solution-status span:last-child {
  opacity: 1;
  transform: translateY(0);
}

.solution-card h3 {
  max-width: 11ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 3.7vw, 4rem);
  font-weight: 640;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.solution-detail {
  display: grid;
  gap: 0.82rem;
}

.solution-detail div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding-top: 0.86rem;
  border-top: 1px solid rgba(245, 243, 239, 0.075);
}

.solution-detail span,
.visual-label,
.cycle-card span,
.finance-signal span,
.finance-row span,
.deadline-list em {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-detail p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.94rem;
  line-height: 1.58;
}

.solution-visual {
  min-height: 320px;
  align-self: stretch;
  border: 1px solid rgba(245, 243, 239, 0.065);
  border-radius: 8px;
  background:
    linear-gradient(rgba(245, 243, 239, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 239, 0.018) 1px, transparent 1px),
    rgba(15, 17, 21, 0.28);
  background-size: 52px 52px;
  overflow: hidden;
}

.solution-visual::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(245, 243, 239, 0.045);
  border-radius: 999px;
  opacity: 0.8;
}

.visual-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.46rem 0.56rem;
  border: 1px solid rgba(245, 243, 239, 0.08);
  border-radius: 999px;
  background: rgba(24, 27, 32, 0.92);
}

.record-stack,
.cycle-card,
.finance-signal,
.deadline-list,
.leadership-pulse,
.signal-chip {
  position: absolute;
  z-index: 2;
}

.record-stack {
  inset: 25% 12% auto;
  display: grid;
  gap: 0.7rem;
}

.record-stack span,
.deadline-list span {
  display: grid;
  grid-template-columns: 0.5rem 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 0.82rem;
  border: 1px solid rgba(245, 243, 239, 0.08);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.9);
  transition: border-color 180ms ease, transform 180ms ease;
}

.record-stack i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.record-stack strong,
.deadline-list strong,
.cycle-card strong,
.finance-signal strong,
.finance-row strong {
  color: var(--primary);
  font-size: 0.86rem;
  line-height: 1.1;
}

.status-switch {
  position: relative;
  min-height: 1.05rem;
  overflow: hidden;
}

.status-switch span {
  position: absolute;
  inset: 0;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.status-switch span:last-child {
  color: var(--accent);
  opacity: 0;
  transform: translateY(72%);
}

.record-stack em,
.deadline-list em {
  font-style: normal;
  text-align: right;
}

.visual-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.52), transparent);
  opacity: 0.28;
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.line-a {
  top: 38%;
  left: 18%;
  width: 64%;
  transform: rotate(9deg);
}

.line-b {
  right: 14%;
  bottom: 31%;
  width: 62%;
  transform: rotate(-8deg);
}

.solution-card:hover .record-stack span,
.solution-card:focus-visible .record-stack span,
.solution-card:hover .deadline-list span,
.solution-card:focus-visible .deadline-list span {
  border-color: rgba(59, 130, 246, 0.2);
}

.solution-card:hover .visual-line,
.solution-card:focus-visible .visual-line {
  opacity: 0.58;
  transform: rotate(0deg);
}

.payroll-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  gap: 0.72rem;
  padding: 1rem;
}

.cycle-card {
  position: relative;
  display: grid;
  gap: 0.38rem;
  min-height: 104px;
  padding: 0.9rem;
  border: 1px solid rgba(245, 243, 239, 0.08);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.9);
  transition: border-color 180ms ease, transform 180ms ease;
}

.payroll-track {
  grid-column: 1 / -1;
  height: 0.44rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 243, 239, 0.075);
}

.payroll-track span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: rgba(59, 130, 246, 0.62);
  transition: width 180ms ease;
}

.solution-card:hover .cycle-card,
.solution-card:focus-visible .cycle-card {
  border-color: rgba(59, 130, 246, 0.2);
}

.solution-card:hover .status-switch span:first-child,
.solution-card:focus-visible .status-switch span:first-child {
  opacity: 0;
  transform: translateY(-72%);
}

.solution-card:hover .status-switch span:last-child,
.solution-card:focus-visible .status-switch span:last-child {
  opacity: 1;
  transform: translateY(0);
}

.solution-card:hover .payroll-track span,
.solution-card:focus-visible .payroll-track span {
  width: 92%;
}

.finance-visual {
  padding: 1rem;
}

.finance-signal {
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.86rem;
  border: 1px solid rgba(245, 243, 239, 0.08);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.9);
}

.finance-bars {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 6.4rem;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 0.62rem;
  height: 8.4rem;
}

.finance-bars span {
  display: block;
  height: var(--bar);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.72), rgba(59, 130, 246, 0.16));
  transition: height 180ms ease, opacity 180ms ease;
}

.solution-card:hover .finance-bars span,
.solution-card:focus-visible .finance-bars span {
  height: calc(var(--bar) + 4%);
}

.finance-row {
  position: absolute;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(245, 243, 239, 0.075);
}

.finance-row-receivables {
  bottom: 3.2rem;
}

.finance-row-runway {
  bottom: 1.1rem;
}

.deadline-list {
  inset: 20% 12% auto;
  display: grid;
  gap: 0.72rem;
}

.deadline-list span {
  grid-template-columns: 1fr auto;
}

.review-meter {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 16%;
  z-index: 2;
  height: 0.44rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 243, 239, 0.075);
}

.review-meter span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: rgba(59, 130, 246, 0.58);
  transition: width 180ms ease;
}

.solution-card:hover .review-meter span,
.solution-card:focus-visible .review-meter span {
  width: 78%;
}

.leadership-visual {
  min-height: 360px;
}

.leadership-pulse {
  top: 22%;
  left: 27%;
  width: 250px;
  display: grid;
  gap: 0.44rem;
  padding: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.085), transparent 42%),
    rgba(24, 27, 32, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
  transition: border-color 180ms ease, transform 180ms ease;
}

.solution-card:hover .leadership-pulse,
.solution-card:focus-visible .leadership-pulse {
  border-color: rgba(59, 130, 246, 0.36);
}

.signal-chip {
  padding: 0.54rem 0.66rem;
  border: 1px solid rgba(245, 243, 239, 0.08);
  border-radius: 999px;
  background: rgba(24, 27, 32, 0.92);
  transition: border-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.chip-people {
  top: 14%;
  left: 17%;
}

.chip-payroll {
  top: 15%;
  right: 17%;
}

.chip-finance {
  right: 15%;
  bottom: 18%;
}

.chip-compliance {
  left: 14%;
  bottom: 20%;
}

.solution-card:hover .signal-chip,
.solution-card:focus-visible .signal-chip {
  border-color: rgba(59, 130, 246, 0.22);
  color: var(--muted-strong);
}

@media (max-width: 1120px) {
  .solutions-header,
  .solution-card {
    grid-template-columns: 1fr;
  }

  .solutions-header h2 {
    max-width: 13ch;
  }

  .solution-payroll,
  .solution-finance {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .solution-card {
    min-height: 0;
  }

  .solution-visual {
    min-height: 360px;
  }
}

@media (max-width: 780px) {
  .solutions {
    padding-top: 5.4rem;
  }

  .solutions-header,
  .solutions-stack {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .solutions-header h2 {
    font-size: clamp(2.85rem, 13vw, 4.3rem);
  }

  .solution-card {
    padding: 1rem;
  }

  .solution-card h3 {
    max-width: 13ch;
    font-size: clamp(2.2rem, 10vw, 3.35rem);
  }

  .solution-heading {
    flex-direction: column;
  }

  .solution-detail div {
    grid-template-columns: 1fr;
    gap: 0.36rem;
  }

  .solution-visual {
    min-height: 330px;
  }

  .payroll-visual {
    grid-template-columns: 1fr;
  }

  .finance-bars {
    bottom: 6rem;
    height: 7rem;
  }

  .leadership-pulse {
    left: 13%;
    width: 240px;
  }
}

@media (max-width: 460px) {
  .record-stack,
  .deadline-list {
    inset-inline: 7%;
  }

  .leadership-pulse {
    left: 6%;
    width: 232px;
  }

  .chip-people,
  .chip-compliance {
    left: 6%;
  }

  .chip-payroll,
  .chip-finance {
    right: 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .solution-card,
  .solution-card::before,
  .solution-status span,
  .status-switch span,
  .visual-line,
  .record-stack span,
  .deadline-list span,
  .cycle-card,
  .payroll-track span,
  .finance-bars span,
  .review-meter span,
  .leadership-pulse,
  .signal-chip {
    transition-duration: 0.01ms !important;
  }
}

.solution-card:focus {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.34);
  background:
    linear-gradient(155deg, rgba(59, 130, 246, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 100%),
    rgba(24, 27, 32, 0.66);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.solution-card:focus::before {
  opacity: 0.58;
}

.solution-card:focus .solution-status {
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.09);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.075);
}

.solution-card:focus .solution-status span:first-child {
  opacity: 0;
  transform: translateY(-55%);
}

.solution-card:focus .solution-status span:last-child {
  opacity: 1;
  transform: translateY(0);
}

.solution-card:focus .record-stack span,
.solution-card:focus .deadline-list span,
.solution-card:focus .cycle-card {
  border-color: rgba(59, 130, 246, 0.2);
}

.solution-card:focus .visual-line {
  opacity: 0.58;
  transform: rotate(0deg);
}

.solution-card:focus .payroll-track span {
  width: 92%;
}

.solution-card:focus .status-switch span:first-child {
  opacity: 0;
  transform: translateY(-72%);
}

.solution-card:focus .status-switch span:last-child {
  opacity: 1;
  transform: translateY(0);
}

.solution-card:focus .finance-bars span {
  height: calc(var(--bar) + 4%);
}

.solution-card:focus .review-meter span {
  width: 78%;
}

.solution-card:focus .leadership-pulse {
  border-color: rgba(59, 130, 246, 0.36);
}

.solution-card:focus .signal-chip {
  border-color: rgba(59, 130, 246, 0.22);
  color: var(--muted-strong);
}

.solution-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.34);
  background:
    linear-gradient(155deg, rgba(59, 130, 246, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 100%),
    rgba(24, 27, 32, 0.66);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.solution-card.is-active::before {
  opacity: 0.58;
}

.solution-card.is-active .solution-status {
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.09);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.075);
}

.solution-card.is-active .solution-status span:first-child {
  opacity: 0;
  transform: translateY(-55%);
}

.solution-card.is-active .solution-status span:last-child {
  opacity: 1;
  transform: translateY(0);
}

.solution-card.is-active .record-stack span,
.solution-card.is-active .deadline-list span,
.solution-card.is-active .cycle-card {
  border-color: rgba(59, 130, 246, 0.2);
}

.solution-card.is-active .visual-line {
  opacity: 0.58;
  transform: rotate(0deg);
}

.solution-card.is-active .payroll-track span {
  width: 92%;
}

.solution-card.is-active .status-switch span:first-child {
  opacity: 0;
  transform: translateY(-72%);
}

.solution-card.is-active .status-switch span:last-child {
  opacity: 1;
  transform: translateY(0);
}

.solution-card.is-active .finance-bars span {
  height: calc(var(--bar) + 4%);
}

.solution-card.is-active .review-meter span {
  width: 78%;
}

.solution-card.is-active .leadership-pulse {
  border-color: rgba(59, 130, 246, 0.36);
}

.solution-card.is-active .signal-chip {
  border-color: rgba(59, 130, 246, 0.22);
  color: var(--muted-strong);
}

/* Subpages */
.page-main {
  background: var(--bg);
}

.page-hero {
  position: relative;
  padding: clamp(7rem, 12vw, 12rem) 0 clamp(4.2rem, 8vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 56% 20%, rgba(59, 130, 246, 0.065), transparent 38rem),
    var(--bg);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 243, 239, 0.025), transparent 48%);
}

.page-hero-inner,
.page-section-inner {
  position: relative;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(28rem, 0.92fr) minmax(26rem, 0.72fr);
  align-items: end;
  gap: clamp(2.5rem, 8vw, 8rem);
}

.page-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 7vw, 7.15rem);
  font-weight: 650;
  line-height: 0.99;
  letter-spacing: -0.052em;
}

.page-hero-copy {
  max-width: 600px;
  margin: 0 0 0.38rem;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.18vw, 1.16rem);
  line-height: 1.76;
}

.page-section {
  padding: clamp(5.5rem, 9vw, 9rem) 0;
}

.page-section-header {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(24rem, 0.82fr) minmax(24rem, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
}

.page-section-header h2 {
  max-width: 10ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.052em;
}

.page-section-header p {
  max-width: 570px;
  margin: 0 0 0.38rem;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.72;
}

.page-reveal {
  opacity: 0.34;
  transform: translateY(26px);
  transition: opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.method-stack {
  display: grid;
  gap: clamp(3rem, 6vw, 5.8rem);
}

.method-panel {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: min(620px, 78svh);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(24rem, 0.86fr) minmax(32rem, 1.14fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.method-panel.is-reversed {
  grid-template-columns: minmax(32rem, 1.14fr) minmax(24rem, 0.86fr);
}

.method-panel.is-reversed .method-copy {
  grid-column: 2;
}

.method-panel.is-reversed .method-visual {
  grid-column: 1;
  grid-row: 1;
}

.method-copy {
  max-width: 500px;
}

.method-copy h2,
.method-copy h3 {
  max-width: 10ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(2.55rem, 4.6vw, 4.6rem);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.method-copy p {
  margin: 1.35rem 0 0;
  color: var(--muted-strong);
  font-size: 1.01rem;
  line-height: 1.72;
}

.method-list,
.contact-list {
  display: grid;
  gap: 0.72rem;
  margin: 1.45rem 0 0;
  padding: 0;
  list-style: none;
}

.method-list li,
.contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(245, 243, 239, 0.075);
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.method-list li::after,
.contact-list li::after {
  content: "";
  flex: 0 0 0.42rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.62;
}

.method-visual,
.offering-visual,
.contact-panel {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(245, 243, 239, 0.075);
  border-radius: 8px;
  background:
    linear-gradient(rgba(245, 243, 239, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 239, 0.018) 1px, transparent 1px),
    rgba(24, 27, 32, 0.46);
  background-size: 52px 52px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  isolation: isolate;
}

.method-visual::before,
.offering-visual::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(245, 243, 239, 0.05);
  border-radius: 999px;
}

.diagram-card,
.diagram-pill,
.diagram-hub,
.rollout-card,
.support-card,
.contact-stat {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(245, 243, 239, 0.085);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.diagram-card,
.rollout-card,
.support-card {
  display: grid;
  gap: 0.3rem;
  width: 168px;
  padding: 0.86rem;
}

.diagram-card span,
.diagram-pill,
.diagram-hub span,
.rollout-card span,
.support-card span,
.contact-stat span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.diagram-card strong,
.diagram-hub strong,
.rollout-card strong,
.support-card strong,
.contact-stat strong {
  color: var(--primary);
  font-size: 0.9rem;
  line-height: 1.12;
}

.diagram-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: rgba(59, 130, 246, 0.34);
  opacity: 0.36;
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.method-panel:hover .diagram-line,
.method-panel:focus-within .diagram-line,
.solution-card:hover .diagram-line,
.solution-card:focus .diagram-line {
  opacity: 0.62;
  transform: rotate(0deg);
}

.diagram-a {
  top: 20%;
  left: 13%;
}

.diagram-b {
  top: 19%;
  right: 13%;
}

.diagram-c {
  left: 18%;
  bottom: 17%;
}

.diagram-d {
  right: 15%;
  bottom: 19%;
}

.diagram-line-a {
  top: 34%;
  left: 24%;
  width: 52%;
  transform: rotate(8deg);
}

.diagram-line-b {
  left: 25%;
  bottom: 34%;
  width: 50%;
  transform: rotate(-8deg);
}

.diagram-line-c {
  top: 50%;
  left: 20%;
  width: 60%;
}

.diagram-hub {
  top: 33%;
  left: 50%;
  width: 190px;
  display: grid;
  gap: 0.36rem;
  padding: 1rem;
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateX(-50%);
}

.diagram-pill {
  padding: 0.58rem 0.7rem;
  border-radius: 999px;
}

.pill-people {
  top: 16%;
  left: 13%;
}

.pill-finance {
  top: 18%;
  right: 13%;
}

.pill-payroll {
  right: 12%;
  bottom: 17%;
}

.pill-compliance {
  left: 12%;
  bottom: 17%;
}

.pill-approvals {
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
}

.rollout-card {
  width: 174px;
}

.rollout-a {
  top: 18%;
  left: 12%;
}

.rollout-b {
  top: 18%;
  right: 12%;
}

.rollout-c {
  left: 19%;
  bottom: 18%;
}

.rollout-d {
  right: 13%;
  bottom: 18%;
}

.rollout-track {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  z-index: 1;
  height: 0.44rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 243, 239, 0.075);
}

.rollout-track span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: rgba(59, 130, 246, 0.58);
  transition: width 180ms ease;
}

.method-panel:hover .rollout-track span,
.method-panel:focus-within .rollout-track span {
  width: 90%;
}

.support-card {
  width: 160px;
}

.support-a {
  top: 15%;
  left: 15%;
}

.support-b {
  top: 16%;
  right: 14%;
}

.support-c {
  right: 18%;
  bottom: 17%;
}

.support-d {
  left: 16%;
  bottom: 18%;
}

.support-pulse {
  top: 36%;
  left: 50%;
  width: 220px;
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateX(-50%);
}

.solution-offerings {
  padding-top: 0;
}

.solution-offerings .solutions-stack {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.solution-page-card.solution-card {
  min-height: 470px;
}

.solution-page-card h3 {
  max-width: 12ch;
}

.offering-visual {
  min-height: 320px;
}

.contact-layout {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(30rem, 0.96fr) minmax(22rem, 0.64fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-heading {
  width: 100%;
  margin: 0 0 2rem;
  grid-template-columns: 1fr;
}

.contact-heading h2 {
  max-width: 9ch;
}

.contact-heading p {
  max-width: 560px;
}

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

.field {
  display: grid;
  gap: 0.48rem;
}

.field label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field label span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(245, 243, 239, 0.105);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.74);
  color: var(--primary);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.5;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field input {
  min-height: 3.25rem;
  padding: 0 0.95rem;
}

.field textarea {
  min-height: 11rem;
  padding: 0.9rem 0.95rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.48);
  background: rgba(24, 27, 32, 0.9);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.contact-panel {
  min-height: 0;
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
}

.contact-panel::before {
  display: none;
}

.contact-panel h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 640;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.contact-form .final-primary {
  width: max-content;
  margin-top: 0.4rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.contact-list li::after {
  margin-top: 0.42rem;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 650;
}

.contact-list a {
  transition: color 180ms ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--muted-strong);
}

@media (max-width: 1120px) {
  .page-hero-inner,
  .page-section-header,
  .method-panel,
  .method-panel.is-reversed,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .method-panel {
    min-height: 0;
  }

  .method-panel.is-reversed .method-copy,
  .method-panel.is-reversed .method-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .method-visual {
    min-height: 440px;
  }
}

@media (max-width: 780px) {
  .page-main {
    padding-top: var(--header-height);
  }

  .page-hero {
    padding: clamp(4.6rem, 16vw, 6.6rem) 0 clamp(3.4rem, 12vw, 5rem);
  }

  .page-hero-inner,
  .page-section-inner,
  .page-section-header,
  .method-panel,
  .contact-layout {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .page-hero h1 {
    font-size: clamp(3.2rem, 14vw, 5rem);
  }

  .page-section {
    padding: clamp(4.6rem, 14vw, 6.8rem) 0;
  }

  .page-section-header h2,
  .method-copy h2,
  .method-copy h3 {
    font-size: clamp(2.45rem, 11vw, 3.7rem);
  }

  .method-visual,
  .offering-visual {
    min-height: 400px;
  }

  .diagram-card,
  .rollout-card,
  .support-card {
    width: 132px;
    padding: 0.72rem;
  }

  .diagram-hub,
  .support-pulse {
    width: 178px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .diagram-a,
  .support-a,
  .rollout-a {
    left: 7%;
  }

  .diagram-b,
  .support-b,
  .rollout-b {
    right: 7%;
  }

  .diagram-c,
  .support-d,
  .rollout-c {
    left: 7%;
  }

  .diagram-d,
  .support-c,
  .rollout-d {
    right: 7%;
  }

  .diagram-pill {
    padding: 0.48rem 0.56rem;
    font-size: 0.58rem;
  }

  .pill-people,
  .pill-compliance {
    left: 7%;
  }

  .pill-finance,
  .pill-payroll {
    right: 7%;
  }

  .contact-panel {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-reveal,
  .diagram-line,
  .rollout-track span,
  .field input,
  .field textarea,
  .contact-list a {
    transition-duration: 0.01ms !important;
  }

  .page-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Final CTA */
.final-cta {
  position: relative;
  padding: clamp(7rem, 13vw, 13rem) 0 clamp(6rem, 10vw, 10rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(59, 130, 246, 0.07), transparent 38rem),
    var(--bg);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(245, 243, 239, 0.07);
  background: linear-gradient(180deg, rgba(245, 243, 239, 0.025), transparent 42%);
}

.final-cta-inner {
  position: relative;
  width: min(calc(100% - 48px), 1040px);
  margin: 0 auto;
}

.final-cta h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(3.65rem, 7vw, 7.1rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.final-cta p:not(.eyebrow) {
  max-width: 610px;
  margin: 1.65rem 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.18vw, 1.16rem);
  line-height: 1.76;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-top: 2.35rem;
}

.final-primary {
  min-height: 3.2rem;
  padding: 0 1.45rem;
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 12px 34px rgba(245, 243, 239, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.final-primary:hover,
.final-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(245, 243, 239, 0.16);
}

.final-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.final-secondary span {
  display: inline-block;
  transition: transform 180ms ease;
}

.final-secondary:hover,
.final-secondary:focus-visible {
  color: var(--primary);
}

.final-secondary:hover span,
.final-secondary:focus-visible span {
  transform: translateX(0.28rem);
}

/* Footer */
.site-footer {
  background: var(--bg);
  color: var(--muted-strong);
}

.footer-inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw, 5.4rem) 0;
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto;
  gap: clamp(3rem, 8vw, 8rem);
  border-top: 1px solid rgba(245, 243, 239, 0.1);
}

.footer-brand {
  display: grid;
  gap: 1.1rem;
  max-width: 330px;
}

.footer-wordmark {
  width: max-content;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.footer-brand p,
.footer-bottom p {
  margin: 0;
}

.footer-brand p {
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.62;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(7rem, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.82rem;
}

.footer-column a {
  width: max-content;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 180ms ease, opacity 180ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--primary);
}

.footer-bottom {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid rgba(245, 243, 239, 0.075);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    width: min(100%, 420px);
  }
}

@media (max-width: 780px) {
  .final-cta {
    padding: clamp(5.5rem, 18vw, 8rem) 0 clamp(4.6rem, 14vw, 6.4rem);
  }

  .final-cta-inner,
  .footer-inner,
  .footer-bottom {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .final-cta h2 {
    font-size: clamp(3rem, 14vw, 4.75rem);
  }

  .final-cta-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.15rem;
  }
}

@media (max-width: 520px) {
  .portfolio-back-link--fixed {
    top: 0.75rem;
    left: 0.75rem;
  }

  .portfolio-back-link {
    font-size: 0.78rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .final-primary,
  .final-secondary,
  .final-secondary span,
  .footer-column a,
  .portfolio-back-link {
    transition-duration: 0.01ms !important;
  }
}
