:root {
  --xbase-dark-green: #669487;
  --xbase-green: #8fc2a7;
  --xbase-soft-green: #b8d8bf;
  --xbase-mist: #e7f1df;
  --xbase-ink: #10231d;
  --xbase-muted: #5f756d;
  --xbase-paper: #fbfdf8;
  --xbase-soft: #e7f1df;
  --xbase-line: rgba(16, 35, 29, 0.16);
  --xbase-line-strong: rgba(16, 35, 29, 0.28);
  --xbase-gray: #b8d8bf;
  --xbase-gray-dark: #8fc2a7;
  --xbase-deep-green: #669487;
  --xbase-accent: #8fc2a7;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Forma DJR", "Inter", "Helvetica Neue", Arial, sans-serif;
  --scroll-progress: 0;
  --hero-scroll: 0;
  --scroll-px: 0px;
  --scroll-a: 0px;
  --scroll-b: 0px;
  --section-a: 0px;
  --section-b: 0px;
  --hero-bg-x: 0px;
  --hero-bg-y: 0px;
  --hero-bg-x2: 0px;
  --hero-bg-y2: 0px;
  --hero-terrain-x-neg: 0px;
  --hero-terrain-x-pos: 0px;
  --hero-terrain-y-large: 0px;
  --hero-terrain-y-mid: 0px;
  --hero-fog-x: 0px;
  --hero-fog-y: 0px;
  --hero-fog2-x: 0px;
  --hero-fog2-y: 0px;
  --solutions-a: 0px;
  --solutions-b: 0px;
  --solution-field-x: 0px;
  --solution-shape-x: 0px;
  --solution-shape-y: 0px;
  --solution-branch-x: 0px;
  --solution-branch-y: 0px;
  --stack-a: 0px;
  --stack-b: 0px;
  --stack-line-a: 0px;
  --stack-line-b: 0px;
  --stack-line-c: 0px;
  --fit-a: 0px;
  --fit-b: 0px;
  --work-a: 0px;
  --work-b: 0px;
  --ready-a: 0px;
  --ready-b: 0px;
  --cta-a: 0px;
  --cta-b: 0px;
  --cta-shape-x: 0px;
  --cta-shape-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--xbase-ink);
  background:
    linear-gradient(90deg, rgba(16, 35, 29, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 35, 29, 0.035) 1px, transparent 1px),
    var(--xbase-mist);
  background-size: 88px 88px;
  background-position:
    var(--scroll-a) var(--scroll-b),
    var(--scroll-b) var(--scroll-a),
    0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.42;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

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

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

button {
  border: 0;
}

input,
select,
textarea {
  min-width: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--xbase-deep-green);
  outline-offset: 4px;
}

::selection {
  color: var(--xbase-paper);
  background: var(--xbase-ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--xbase-paper);
  background: var(--xbase-ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

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

.section-inner {
  width: min(100% - 10vw, 1680px);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  z-index: 100;
  width: 100%;
  color: var(--xbase-ink);
  padding: 0 24px;
  pointer-events: none;
}

.nav-shell {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 208px;
  align-items: center;
  width: min(100%, 1120px);
  min-height: 58px;
  margin-inline: auto;
  padding: 4px;
  overflow: visible;
  pointer-events: auto;
  background:
    linear-gradient(135deg, rgba(251, 253, 248, 0.74), rgba(231, 241, 223, 0.38)),
    rgba(251, 253, 248, 0.58);
  border: 1px solid rgba(16, 35, 29, 0.15);
  border-radius: 999px;
  box-shadow:
    0 14px 44px rgba(16, 35, 29, 0.12),
    inset 0 1px 0 rgba(251, 253, 248, 0.92),
    inset 0 -1px 0 rgba(16, 35, 29, 0.06);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
  backdrop-filter: blur(24px) saturate(1.22);
}

.nav-shell::before {
  position: absolute;
  inset: 5px 36% 5px 24%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(251, 253, 248, 0.52), transparent);
  border-radius: inherit;
  opacity: 0.68;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px 0 15px;
  background: rgba(184, 216, 191, 0.52);
  border: 1px solid rgba(16, 35, 29, 0.1);
  border-radius: 999px 16px 16px 999px;
  box-shadow: inset 0 1px 0 rgba(251, 253, 248, 0.56);
  transition: background 180ms ease, transform 180ms var(--ease-out);
}

.brand:hover,
.brand:focus-visible {
  background: rgba(143, 194, 167, 0.58);
  transform: translateX(2px);
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 25px;
  flex: 0 0 auto;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  left: 3px;
  top: 14px;
  width: 28px;
  height: 2px;
  background: var(--xbase-ink);
}

.brand-mark::after {
  left: 8px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--xbase-ink);
  border-left: 2px solid var(--xbase-ink);
  transform: rotate(45deg);
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-text strong {
  font-size: 0.95rem;
  font-weight: 650;
}

.brand-text small {
  color: var(--xbase-muted);
  font-size: 0.48rem;
  font-weight: 700;
  text-align: right;
}

.nav-menu {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.25vw, 24px);
  min-width: 0;
  color: var(--xbase-ink);
  font-size: 0.83rem;
  font-weight: 650;
}

.nav-menu a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-menu a::after,
.underlined-link::after {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 5px;
  content: "";
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}

.nav-menu a::after {
  position: absolute;
  left: 0;
  bottom: 4px;
  margin-top: 0;
  transform: scaleX(0);
  opacity: 0.72;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.underlined-link:hover::after,
.underlined-link:focus-visible::after {
  transform: scaleX(0.52);
}

.nav-menu .nav-cta {
  display: none;
}

.nav-extra {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: stretch;
  min-height: 48px;
  gap: 4px;
}

.nav-extra span,
.nav-extra a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-extra span {
  font-size: 0.76rem;
  font-weight: 650;
  background: rgba(251, 253, 248, 0.44);
  border: 1px solid rgba(16, 35, 29, 0.12);
  border-radius: 999px;
}

.nav-extra a {
  color: var(--xbase-paper);
  padding-inline: 18px 22px;
  background:
    linear-gradient(135deg, rgba(143, 194, 167, 0.18), transparent 48%),
    var(--xbase-ink);
  border-radius: 14px 999px 999px 14px;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%, 0 28%);
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.nav-extra a:hover,
.nav-extra a:focus-visible {
  color: var(--xbase-ink);
  background:
    linear-gradient(135deg, rgba(251, 253, 248, 0.28), transparent 50%),
    var(--xbase-green);
  transform: translateX(-2px);
}

.nav-toggle {
  position: relative;
  z-index: 1;
  display: none;
  width: 40px;
  height: 40px;
  align-self: center;
  justify-self: end;
  margin-right: 4px;
  color: var(--xbase-ink);
  background: rgba(251, 253, 248, 0.4);
  border: 1px solid rgba(16, 35, 29, 0.18);
  border-radius: 999px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.is-nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.is-nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 60px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(102, 148, 135, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(102, 148, 135, 0.06) 1px, transparent 1px),
    var(--xbase-paper);
  background-size: 128px 128px;
  background-position:
    var(--hero-bg-x) var(--hero-bg-y),
    var(--hero-bg-x2) var(--hero-bg-y2),
    0 0;
  isolation: isolate;
}

.terrain-stage {
  position: absolute;
  inset: 60px 0 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 52%, rgba(143, 194, 167, 0.26), transparent 26%),
    linear-gradient(180deg, rgba(251, 253, 248, 0.72), rgba(231, 241, 223, 0.76));
}

.terrain-layer {
  position: absolute;
  z-index: 1;
  left: -8vw;
  width: 116vw;
  height: 82%;
  background-image: url("assets/xbase1-terrain.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  filter: saturate(1.08) contrast(1.04);
  opacity: 0.95;
  will-change: transform;
}

.terrain-back {
  top: 10%;
  opacity: 0.34;
  transform: scale(1.08);
  animation: terrain-drift-back 18s ease-in-out infinite alternate;
}

.terrain-front {
  top: 16%;
  opacity: 0.78;
  animation: terrain-drift-front 14s ease-in-out infinite alternate;
}

.three-scroll-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100vw;
  height: 100vh;
  opacity: 0.2;
  pointer-events: none;
  filter: saturate(1.1) contrast(0.96);
  will-change: opacity;
}

.fog-band {
  position: absolute;
  z-index: 3;
  left: -16vw;
  width: 132vw;
  height: 28%;
  border-radius: 50%;
  background: rgba(251, 253, 248, 0.86);
  filter: blur(20px);
  will-change: transform;
}

.fog-one {
  bottom: 5%;
  animation: fog-drift-one 18s ease-in-out infinite alternate;
}

.fog-two {
  bottom: 18%;
  opacity: 0.76;
  animation: fog-drift-two 22s ease-in-out infinite alternate;
}

.terrain-point {
  position: absolute;
  z-index: 4;
  right: 19.8vw;
  top: 45%;
  width: 9px;
  height: 9px;
  background: var(--xbase-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(143, 194, 167, 0.55);
  animation: terrain-point-pulse 1.8s ease-in-out infinite;
}

@keyframes terrain-point-pulse {
  70% {
    box-shadow: 0 0 0 18px rgba(143, 194, 167, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(143, 194, 167, 0);
  }
}

@keyframes terrain-drift-front {
  from {
    transform: translate3d(calc(-2.4vw + var(--hero-terrain-x-neg)), var(--hero-terrain-y-large), 0) scale(1);
  }

  to {
    transform: translate3d(calc(2.6vw + var(--hero-terrain-x-neg)), calc(-1.4vw + var(--hero-terrain-y-large)), 0) scale(1.02);
  }
}

@keyframes terrain-drift-back {
  from {
    transform: translate3d(calc(2vw + var(--hero-terrain-x-pos)), var(--hero-terrain-y-mid), 0) scale(1.08);
  }

  to {
    transform: translate3d(calc(-2vw + var(--hero-terrain-x-pos)), calc(0.8vw + var(--hero-terrain-y-mid)), 0) scale(1.1);
  }
}

@keyframes fog-drift-one {
  from {
    transform: translate3d(calc(-3vw + var(--hero-fog-x)), calc(1vw + var(--hero-fog-y)), 0);
  }

  to {
    transform: translate3d(calc(4vw + var(--hero-fog-x)), calc(-1vw + var(--hero-fog-y)), 0);
  }
}

@keyframes fog-drift-two {
  from {
    transform: translate3d(calc(3vw + var(--hero-fog2-x)), calc(-0.5vw + var(--hero-fog2-y)), 0);
  }

  to {
    transform: translate3d(calc(-4vw + var(--hero-fog2-x)), calc(0.8vw + var(--hero-fog2-y)), 0);
  }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: end;
  min-height: calc(100svh - 60px);
  padding: clamp(46px, 5.6vh, 78px) 5vw clamp(48px, 5.4vw, 82px) 10.6vw;
}

.hero::after {
  position: absolute;
  top: 86px;
  right: 5vw;
  width: min(45vw, 620px);
  height: 1px;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(102, 148, 135, 0.7), transparent);
  transform: translateX(var(--hero-terrain-x-pos));
  opacity: 0.75;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--xbase-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-title .eyebrow {
  max-width: 440px;
  margin: 0 0 34px;
  color: rgba(16, 35, 29, 0.54);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--xbase-ink);
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(6.4rem, 13vw, 16.6rem);
  line-height: 0.72;
}

h1 span {
  display: block;
}

h1 span:nth-child(2) {
  margin-left: 0.58em;
}

h1 span:nth-child(3) {
  margin-left: 0.98em;
}

h2 {
  font-size: clamp(3.1rem, 5.4vw, 7.3rem);
  line-height: 0.93;
}

h3 {
  font-size: clamp(1.25rem, 1.4vw, 1.9rem);
  line-height: 1.08;
}

.hero-copy {
  align-self: end;
  padding-bottom: clamp(18px, 2.4vw, 44px);
}

.hero-copy p {
  max-width: 390px;
  margin: 0 0 30px;
  color: var(--xbase-ink);
  font-size: clamp(1.35rem, 1.7vw, 2.15rem);
  line-height: 1.08;
}

.hero-workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  width: min(620px, 50vw);
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 35, 29, 0.24);
}

.hero-workflow::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 22%;
  height: 2px;
  content: "";
  background: var(--xbase-dark-green);
  animation: workflow-line 6.8s linear infinite;
}

.hero-workflow span {
  position: relative;
  min-width: 0;
  padding-right: 12px;
  color: var(--xbase-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 260ms ease, transform 260ms var(--ease-out);
}

.hero-workflow span::before {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 12px;
  content: "";
  background: var(--xbase-soft-green);
  border: 1px solid rgba(16, 35, 29, 0.18);
  transition: background 260ms ease, transform 260ms var(--ease-out);
}

.hero-workflow span.is-active {
  color: var(--xbase-ink);
  transform: translateY(-4px);
}

.hero-workflow span.is-active::before {
  background: var(--xbase-dark-green);
  transform: scale(1.35);
}

@keyframes workflow-line {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(355%);
  }
}

.underlined-link {
  display: inline-block;
  width: fit-content;
  color: var(--xbase-ink);
  font-weight: 650;
}

.scroll-cue {
  position: absolute;
  left: 5vw;
  bottom: 46px;
  color: rgba(16, 35, 29, 0.18);
  font-size: 1.05rem;
  font-weight: 650;
}

.about-section,
.approach-section,
.insights-section {
  padding: 118px 0;
  background:
    linear-gradient(90deg, rgba(102, 148, 135, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(102, 148, 135, 0.04) 1px, transparent 1px),
    var(--xbase-paper);
  background-size: 116px 116px;
  background-position:
    var(--section-a) var(--section-b),
    var(--section-b) var(--section-a),
    0 0;
}

.about-grid,
.approach-grid,
.work-grid,
.insights-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 54px;
}

.about-copy,
.approach-copy,
.work-heading,
.insights-grid > h2,
.insight-copy {
  min-width: 0;
}

.about-copy h2 {
  max-width: 980px;
  font-size: clamp(2.5rem, 4.5vw, 6.3rem);
}

.about-copy p {
  max-width: 720px;
  margin: 32px 0 28px;
  color: var(--xbase-muted);
  font-size: 1.04rem;
}

.metric-strip {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 74px 0 0;
  border-top: 1px solid var(--xbase-line);
  border-bottom: 1px solid var(--xbase-line);
}

.metric-strip div {
  min-width: 0;
  padding: 24px 22px 26px 0;
}

.metric-strip div + div {
  padding-left: 22px;
  border-left: 1px solid var(--xbase-line);
}

.metric-strip dt {
  color: var(--xbase-ink);
  font-size: 1.16rem;
  font-weight: 650;
}

.metric-strip dd {
  margin: 6px 0 0;
  color: var(--xbase-muted);
}

.capability-band {
  position: relative;
  display: flex;
  gap: 64px;
  overflow: hidden;
  padding: 22px 0;
  color: var(--xbase-paper);
  background: var(--xbase-ink);
  border-block: 1px solid rgba(251, 253, 248, 0.16);
}

.capability-band::before,
.capability-band::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 16vw;
  height: 100%;
  content: "";
  pointer-events: none;
}

.capability-band::before {
  left: 0;
  background: linear-gradient(90deg, var(--xbase-ink), transparent);
}

.capability-band::after {
  right: 0;
  background: linear-gradient(270deg, var(--xbase-ink), transparent);
}

.capability-marquee {
  display: flex;
  flex: 0 0 auto;
  gap: 64px;
  width: max-content;
  min-width: max-content;
  animation: capability-move 38s linear infinite;
}

.capability-marquee-alt {
  animation-delay: 0s;
}

.capability-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(251, 253, 248, 0.82);
  font-size: clamp(1.05rem, 1.45vw, 1.75rem);
  font-weight: 650;
  white-space: nowrap;
}

.capability-icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: currentColor;
  stroke: currentColor;
  opacity: 0.92;
}

@keyframes capability-move {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 64px));
  }
}

.solutions-section {
  position: relative;
  min-height: 600svh;
  overflow: visible;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(16, 35, 29, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 35, 29, 0.05) 1px, transparent 1px),
    var(--xbase-soft-green);
  background-size: 96px 96px;
  background-position:
    var(--solutions-a) var(--solutions-b),
    var(--solutions-b) var(--solutions-a),
    0 0;
}

.solution-tabs {
  position: absolute;
  top: clamp(142px, 18vh, 196px);
  left: 5vw;
  z-index: 6;
  display: grid;
  gap: 18px;
  width: 230px;
  --solution-list-progress: 0;
}

.solution-tabs::before,
.solution-tabs::after {
  position: absolute;
  left: 4px;
  top: 0.76em;
  bottom: 0.76em;
  width: 1px;
  content: "";
  background: rgba(16, 35, 29, 0.16);
}

.solution-tabs::after {
  bottom: auto;
  height: calc(var(--solution-list-progress) * 100%);
  background: var(--xbase-ink);
  transform-origin: top;
}

.solution-tab {
  position: relative;
  z-index: 1;
  display: block;
  width: fit-content;
  padding: 0 0 0 26px;
  color: rgba(16, 35, 29, 0.48);
  text-align: left;
  background: transparent;
  cursor: pointer;
  font-weight: 650;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.solution-tab::before {
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  content: "";
  background: currentColor;
  transform: scale(0.42);
  transform-origin: center;
  transition: transform 260ms var(--ease-out), background 260ms ease, opacity 260ms ease;
  opacity: 0.46;
}

.solution-tab:hover,
.solution-tab:focus-visible,
.solution-tab.is-active {
  color: var(--xbase-ink);
  transform: translateX(4px);
}

.solution-tab.is-active::before {
  transform: scale(1);
  opacity: 1;
}

.solution-tab.is-passed {
  color: rgba(16, 35, 29, 0.72);
}

.solution-tab.is-passed::before {
  transform: scale(0.72);
  opacity: 0.82;
}

.solution-scene {
  position: sticky;
  top: 0;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.solution-scene::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(112deg, transparent 0 33%, rgba(251, 253, 248, 0.28) 33% 45%, transparent 45% 100%),
    linear-gradient(248deg, transparent 0 54%, rgba(102, 148, 135, 0.18) 54% 64%, transparent 64% 100%);
  animation: solution-field-drift 12s ease-in-out infinite alternate;
}

.solution-cube-gallery {
  position: absolute;
  left: 27vw;
  top: 13.5vh;
  z-index: 3;
  width: min(44vw, 680px);
  height: min(64vh, 620px);
  min-height: 460px;
  perspective: 1700px;
  pointer-events: none;
}

.solution-cube-stage {
  --cube-size: min(34vw, 480px);
  position: absolute;
  left: 50%;
  top: 48%;
  width: var(--cube-size);
  height: var(--cube-size);
  transform: translate3d(-50%, -50%, 0) rotateZ(-1deg);
  transform-style: preserve-3d;
  perspective: 1800px;
}

.solution-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform:
    rotateX(var(--cube-rotate-x, -12deg))
    rotateY(var(--cube-rotate-y, -18deg))
    rotateZ(var(--cube-rotate-z, 0deg));
  transform-style: preserve-3d;
  transition: transform 220ms linear;
  will-change: transform;
}

.solution-cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(16px, 2vw, 30px);
  padding: clamp(24px, 3vw, 46px);
  overflow: hidden;
  color: var(--xbase-ink);
  background:
    linear-gradient(135deg, rgba(251, 253, 248, 0.92), rgba(231, 241, 223, 0.74)),
    var(--xbase-paper);
  border: 1px solid rgba(16, 35, 29, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(251, 253, 248, 0.9),
    0 26px 80px rgba(16, 35, 29, 0.18);
  backface-visibility: hidden;
}

.solution-cube-face::before,
.solution-cube-face::after {
  position: absolute;
  left: clamp(22px, 2.6vw, 42px);
  right: clamp(22px, 2.6vw, 42px);
  height: 1px;
  content: "";
  background: rgba(16, 35, 29, 0.28);
}

.solution-cube-face::before {
  top: clamp(22px, 2.6vw, 42px);
}

.solution-cube-face::after {
  bottom: clamp(22px, 2.6vw, 42px);
}

.solution-cube-face-front {
  transform: translateZ(calc(var(--cube-size) / 2));
}

.solution-cube-face-right {
  background:
    linear-gradient(135deg, rgba(143, 194, 167, 0.94), rgba(102, 148, 135, 0.72)),
    var(--xbase-green);
  transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2));
}

.solution-cube-face-back {
  color: var(--xbase-paper);
  background:
    linear-gradient(135deg, rgba(16, 35, 29, 0.94), rgba(102, 148, 135, 0.88)),
    var(--xbase-ink);
  transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2));
}

.solution-cube-face-left {
  background:
    linear-gradient(135deg, rgba(184, 216, 191, 0.98), rgba(251, 253, 248, 0.72)),
    var(--xbase-soft-green);
  transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.solution-cube-face-top {
  background:
    linear-gradient(135deg, rgba(231, 241, 223, 0.9), rgba(143, 194, 167, 0.62)),
    var(--xbase-mist);
  transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2));
}

.solution-cube-face-bottom {
  color: var(--xbase-paper);
  background:
    linear-gradient(135deg, rgba(102, 148, 135, 0.92), rgba(16, 35, 29, 0.82)),
    var(--xbase-dark-green);
  transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-face-kicker {
  position: relative;
  z-index: 1;
  align-self: start;
  font-size: clamp(3rem, 6vw, 6.2rem);
  font-weight: 850;
  line-height: 0.76;
}

.solution-cube-face strong {
  position: relative;
  z-index: 1;
  max-width: 76%;
  font-size: clamp(1rem, 1.9vw, 2.4rem);
  font-style: italic;
  font-weight: 850;
  line-height: 0.93;
  text-transform: uppercase;
}

.solution-cube-face p {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 78%;
  margin: 0;
  font-size: clamp(0.82rem, 1vw, 1rem);
  line-height: 1.2;
}

.cube-face-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  font-size: clamp(0.68rem, 0.78vw, 0.84rem);
  font-style: italic;
  font-weight: 760;
}

.cube-face-meta span + span {
  padding-left: 18px;
  border-left: 1px solid currentColor;
}

.solution-cube-shadow {
  position: absolute;
  left: 50%;
  bottom: 3.5vh;
  width: min(34vw, 500px);
  height: 54px;
  background: radial-gradient(ellipse, rgba(16, 35, 29, 0.22), rgba(16, 35, 29, 0));
  filter: blur(10px);
  transform: translateX(-50%) scaleX(calc(0.86 + var(--service-progress, 0) * 0.18));
}

.solution-cube-counter {
  position: absolute;
  right: 2vw;
  bottom: 2.6vh;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: rgba(16, 35, 29, 0.62);
  font-weight: 850;
}

.solution-cube-counter span:first-child {
  color: var(--xbase-ink);
  font-size: clamp(2.2rem, 4vw, 5rem);
  line-height: 0.8;
}

.solution-cube-counter span + span::before {
  content: "/";
  margin-right: 10px;
}

@keyframes solution-field-drift {
  from {
    transform: translate3d(calc(-2vw + var(--solution-field-x)), 0, 0);
  }

  to {
    transform: translate3d(calc(2vw + var(--solution-field-x)), 0, 0);
  }
}

.solution-shape {
  position: absolute;
  left: 26.7vw;
  top: 17.2vh;
  z-index: -1;
  width: 46.5vw;
  height: 66vh;
  background: var(--solution-color, var(--xbase-deep-green));
  clip-path: polygon(0 0, 55% 0, 100% 28%, 100% 100%, 41% 100%, 0 74%);
  transform: translate3d(var(--solution-shape-x), var(--solution-shape-y), 0);
  animation: solution-shape-breathe 7.5s ease-in-out infinite alternate;
  transition: background 280ms ease;
  will-change: transform, clip-path, opacity;
}

.solution-shape::before,
.solution-shape::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.solution-shape::before {
  background: rgba(251, 253, 248, 0.16);
  clip-path: polygon(0 0, 55% 0, 42% 100%, 0 74%);
  opacity: 0.52;
  transform-origin: left center;
}

.solution-shape::after {
  background: rgba(16, 35, 29, 0.1);
  clip-path: polygon(55% 0, 100% 28%, 100% 100%, 41% 100%);
  opacity: 0.38;
  transform-origin: right center;
}

@keyframes solution-shape-breathe {
  from {
    transform: translate3d(calc(var(--solution-shape-x) - 0.7vw), var(--solution-shape-y), 0) scaleX(0.985) skewY(-0.35deg);
    clip-path: polygon(0 0, 55% 0, 100% 28%, 100% 100%, 41% 100%, 0 74%);
  }

  to {
    transform: translate3d(calc(var(--solution-shape-x) + 0.7vw), calc(var(--solution-shape-y) - 0.8vh), 0) scaleX(1.015) skewY(0.45deg);
    clip-path: polygon(0 1%, 57% 0, 100% 25%, 98% 100%, 39% 100%, 0 72%);
  }
}

.solution-scene.is-changing .solution-shape {
  animation: solution-shape-open 760ms var(--ease-out) both;
}

.solution-scene.is-closing .solution-shape {
  animation: solution-shape-close 220ms ease-in both;
}

.solution-scene.is-changing .solution-shape::before {
  animation: solution-panel-open-left 760ms var(--ease-out) both;
}

.solution-scene.is-changing .solution-shape::after {
  animation: solution-panel-open-right 760ms var(--ease-out) both;
}

@keyframes solution-shape-close {
  to {
    opacity: 0.72;
    transform: translate3d(calc(var(--solution-shape-x) + 1vw), var(--solution-shape-y), 0) scaleX(0.72) skewY(-2.2deg);
    clip-path: polygon(12% 7%, 49% 0, 88% 24%, 88% 93%, 45% 100%, 12% 76%);
  }
}

@keyframes solution-shape-open {
  0% {
    opacity: 0.72;
    transform: translate3d(calc(var(--solution-shape-x) + 1vw), var(--solution-shape-y), 0) scaleX(0.72) skewY(-2.2deg);
    clip-path: polygon(12% 7%, 49% 0, 88% 24%, 88% 93%, 45% 100%, 12% 76%);
  }

  56% {
    opacity: 1;
    transform: translate3d(calc(var(--solution-shape-x) - 1.1vw), calc(var(--solution-shape-y) - 0.5vh), 0) scaleX(1.12) skewY(1.8deg);
    clip-path: polygon(0 0, 62% 0, 100% 22%, 99% 100%, 35% 100%, 0 69%);
  }

  100% {
    opacity: 1;
    transform: translate3d(var(--solution-shape-x), var(--solution-shape-y), 0) scaleX(1) skewY(0);
    clip-path: polygon(0 0, 55% 0, 100% 28%, 100% 100%, 41% 100%, 0 74%);
  }
}

@keyframes solution-panel-open-left {
  0%,
  100% {
    transform: translateX(0) scaleX(1);
  }

  48% {
    transform: translateX(-6%) scaleX(0.82);
  }
}

@keyframes solution-panel-open-right {
  0%,
  100% {
    transform: translateX(0) scaleX(1);
  }

  48% {
    transform: translateX(6%) scaleX(0.82);
  }
}

.solution-branch {
  position: absolute;
  left: 40vw;
  top: 5vh;
  z-index: 1;
  width: min(30vw, 540px);
  height: 112vh;
  object-fit: contain;
  opacity: 0.92;
  transform-origin: 50% 50%;
  animation: branch-sway 9s ease-in-out infinite alternate;
}

.solution-scene.is-closing .solution-branch {
  animation: solution-branch-close 220ms ease-in both;
}

.solution-scene.is-changing .solution-branch {
  animation: solution-branch-open 760ms var(--ease-out) both;
}

@keyframes branch-sway {
  from {
    transform: rotate(-1.4deg) translate3d(calc(-0.5vw + var(--solution-branch-x)), var(--solution-branch-y), 0);
  }

  to {
    transform: rotate(1deg) translate3d(calc(0.6vw + var(--solution-branch-x)), var(--solution-branch-y), 0);
  }
}

@keyframes solution-branch-close {
  to {
    opacity: 0.62;
    transform: rotate(-4deg) translate3d(calc(-1vw + var(--solution-branch-x)), calc(16px + var(--solution-branch-y)), 0) scaleY(0.9);
  }
}

@keyframes solution-branch-open {
  0% {
    opacity: 0.62;
    transform: rotate(-4deg) translate3d(calc(-1vw + var(--solution-branch-x)), calc(16px + var(--solution-branch-y)), 0) scaleY(0.9);
  }

  58% {
    opacity: 1;
    transform: rotate(2.4deg) translate3d(calc(0.8vw + var(--solution-branch-x)), calc(-10px + var(--solution-branch-y)), 0) scaleY(1.05);
  }

  100% {
    opacity: 0.92;
    transform: rotate(0deg) translate3d(var(--solution-branch-x), var(--solution-branch-y), 0) scaleY(1);
  }
}

.solution-title {
  position: absolute;
  left: 25.2vw;
  top: 35vh;
  z-index: 2;
  font-size: clamp(5.4rem, 10.9vw, 15.2rem);
  line-height: 0.74;
  will-change: transform, opacity;
}

.solution-title span {
  display: block;
}

.solution-title span:nth-child(2) {
  margin-left: 5.2vw;
}

.solution-scene.is-changing .solution-title {
  animation: solution-title-open 620ms var(--ease-out) both;
}

.solution-scene.is-changing .solution-title span:first-child {
  animation: solution-word-open-left 680ms var(--ease-out) both;
}

.solution-scene.is-changing .solution-title span:nth-child(2) {
  animation: solution-word-open-right 680ms var(--ease-out) both;
}

.solution-scene.is-closing .solution-title,
.solution-scene.is-closing .solution-copy,
.solution-scene.is-closing .solution-metrics {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 160ms ease, transform 160ms ease;
}

@keyframes solution-title-open {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes solution-word-open-left {
  0% {
    transform: translateX(-0.22em);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes solution-word-open-right {
  0% {
    transform: translateX(0.28em);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes solution-detail-open {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.solution-copy {
  position: absolute;
  left: 5vw;
  bottom: 9.2vh;
  z-index: 3;
  width: 260px;
  will-change: transform, opacity;
}

.solution-scene.is-changing .solution-copy {
  animation: solution-detail-open 520ms var(--ease-out) 120ms both;
}

.solution-copy p {
  margin: 0 0 26px;
  color: var(--xbase-ink);
  font-size: 1.18rem;
  line-height: 1.12;
}

.solution-metrics {
  position: absolute;
  right: 5vw;
  bottom: 8vh;
  z-index: 3;
  display: grid;
  gap: 42px;
  width: 220px;
  margin: 0;
  text-align: right;
  will-change: transform, opacity;
}

.solution-scene.is-changing .solution-metrics {
  animation: solution-detail-open 520ms var(--ease-out) 180ms both;
}

.solution-metrics dt {
  margin-bottom: 6px;
  color: var(--xbase-ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.solution-metrics dd {
  margin: 0;
  color: var(--xbase-ink);
  font-size: 1.02rem;
}

.stack-section {
  position: relative;
  overflow: hidden;
  padding: 132px 0;
  color: var(--xbase-paper);
  background: var(--xbase-ink);
}

.stack-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(251, 253, 248, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(251, 253, 248, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position:
    var(--stack-a) var(--stack-b),
    var(--stack-b) var(--stack-a);
}

.stack-background span {
  position: absolute;
  display: block;
  width: 36vw;
  height: 1px;
  background: rgba(143, 194, 167, 0.42);
  transform-origin: left center;
}

.stack-background span:nth-child(1) {
  top: 22%;
  left: 44%;
  transform: rotate(-18deg) translateX(var(--stack-line-a));
}

.stack-background span:nth-child(2) {
  top: 56%;
  left: 14%;
  transform: rotate(12deg) translateX(var(--stack-line-b));
}

.stack-background span:nth-child(3) {
  right: 0;
  bottom: 18%;
  transform: rotate(-28deg) translateX(var(--stack-line-c));
}

/* Utility to hide decorative stack lines when not desired */
.stack-background.hide-lines span {
  display: none;
}

.stack-grid,
.fit-grid,
.readiness-grid,
.final-cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 54px;
}

.stack-section .section-label,
.stack-section h2,
.stack-section h3 {
  color: var(--xbase-paper);
}

.stack-heading p {
  max-width: 760px;
  margin: 30px 0 0;
  color: rgba(251, 253, 248, 0.68);
  font-size: 1.08rem;
}

.stack-layers {
  grid-column: 2;
  display: grid;
  gap: 0;
  margin-top: 76px;
  border-top: 1px solid rgba(251, 253, 248, 0.18);
}

.stack-layer {
  display: grid;
  grid-template-columns: 82px minmax(230px, 0.38fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(251, 253, 248, 0.18);
}

.stack-layer span {
  color: var(--xbase-green);
  font-weight: 800;
}

.stack-layer p {
  margin: 0;
  color: rgba(251, 253, 248, 0.68);
}

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

.approach-rows,
.work-list {
  grid-column: 2;
  border-top: 1px solid var(--xbase-line-strong);
}

.approach-row,
.work-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--xbase-line-strong);
}

.approach-row span,
.work-row span {
  color: var(--xbase-muted);
  font-weight: 650;
}

.approach-row p {
  margin: 0;
  color: var(--xbase-muted);
}

.fit-section {
  padding: 132px 0;
  background:
    linear-gradient(90deg, rgba(16, 35, 29, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 35, 29, 0.045) 1px, transparent 1px),
    var(--xbase-soft-green);
  background-size: 92px 92px;
  background-position:
    var(--fit-a) var(--fit-b),
    var(--fit-b) var(--fit-a),
    0 0;
}

.fit-cards {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 68px;
}

.fit-card {
  position: relative;
  min-height: 360px;
  padding: 28px;
  overflow: hidden;
  background: rgba(251, 253, 248, 0.62);
  border: 1px solid var(--xbase-line);
  transition: transform 240ms var(--ease-out), background 240ms ease;
}

.fit-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(102, 148, 135, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(102, 148, 135, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0;
  transition: opacity 240ms ease;
}

.fit-card:hover {
  transform: translateY(-8px);
  background: var(--xbase-paper);
}

.fit-card:hover::before {
  opacity: 1;
}

.fit-card > * {
  position: relative;
}

.fit-card span {
  color: var(--xbase-dark-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fit-card h3 {
  margin-top: 92px;
  font-size: clamp(1.4rem, 2vw, 2.5rem);
}

.fit-card p {
  margin: 22px 0 0;
  color: var(--xbase-muted);
}

.work-section {
  padding: 118px 0;
  background:
    linear-gradient(90deg, rgba(16, 35, 29, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 35, 29, 0.05) 1px, transparent 1px),
    var(--xbase-mist);
  background-size: 84px 84px;
  background-position:
    var(--work-a) var(--work-b),
    var(--work-b) var(--work-a),
    0 0;
}

.work-heading h2 {
  max-width: 920px;
}

.work-row {
  grid-template-columns: 220px minmax(0, 1fr);
}

.work-row h3 {
  max-width: 920px;
  font-size: clamp(1.6rem, 2.8vw, 4.1rem);
}

.readiness-section {
  padding: 132px 0;
  color: var(--xbase-paper);
  background:
    linear-gradient(90deg, rgba(251, 253, 248, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(251, 253, 248, 0.07) 1px, transparent 1px),
    var(--xbase-dark-green);
  background-size: 86px 86px;
  background-position:
    var(--ready-a) var(--ready-b),
    var(--ready-b) var(--ready-a),
    0 0;
}

.readiness-section .section-label,
.readiness-section h2,
.readiness-section h3 {
  color: var(--xbase-paper);
}

.readiness-list {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 76px;
  border-top: 1px solid rgba(251, 253, 248, 0.2);
  border-left: 1px solid rgba(251, 253, 248, 0.2);
}

.readiness-item {
  min-height: 270px;
  padding: 28px;
  border-right: 1px solid rgba(251, 253, 248, 0.2);
  border-bottom: 1px solid rgba(251, 253, 248, 0.2);
  transition: background 220ms ease, transform 220ms var(--ease-out);
}

.readiness-item:hover {
  background: rgba(251, 253, 248, 0.08);
  transform: translateY(-6px);
}

.readiness-item span {
  color: var(--xbase-green);
  font-weight: 800;
}

.readiness-item h3 {
  margin-top: 70px;
}

.readiness-item p {
  margin: 18px 0 0;
  color: rgba(251, 253, 248, 0.72);
}

.insights-grid {
  align-items: start;
}

.insights-grid h2 {
  max-width: 860px;
}

.insight-copy {
  grid-column: 2;
  max-width: 720px;
}

.insight-copy p {
  margin: 38px 0 28px;
  color: var(--xbase-muted);
  font-size: 1.08rem;
}

.final-cta-section {
  position: relative;
  overflow: hidden;
  padding: 150px 0;
  background:
    linear-gradient(90deg, rgba(16, 35, 29, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 35, 29, 0.045) 1px, transparent 1px),
    var(--xbase-paper);
  background-size: 112px 112px;
  background-position:
    var(--cta-a) var(--cta-b),
    var(--cta-b) var(--cta-a),
    0 0;
}

.final-cta-section::before {
  position: absolute;
  right: 7vw;
  bottom: 18%;
  width: 42vw;
  height: 44vh;
  content: "";
  background: var(--xbase-soft-green);
  clip-path: polygon(0 0, 62% 8%, 100% 48%, 84% 100%, 18% 78%);
  transform: translate3d(var(--cta-shape-x), var(--cta-shape-y), 0);
}

.final-cta-copy {
  position: relative;
  grid-column: 2;
  max-width: 980px;
}

.final-cta-copy p {
  max-width: 680px;
  margin: 34px 0 30px;
  color: var(--xbase-muted);
  font-size: 1.12rem;
}

.site-footer {
  min-height: 620px;
  overflow: hidden;
  color: var(--xbase-ink);
  background:
    linear-gradient(90deg, rgba(16, 35, 29, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 35, 29, 0.03) 1px, transparent 1px),
    var(--xbase-mist);
  background-size: 96px 96px;
}

.footer-canvas {
  position: relative;
  min-height: 620px;
  padding: 96px 3.4vw 34px;
}

.footer-nav {
  position: absolute;
  top: 94px;
  left: 26vw;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--xbase-ink);
}

.footer-nav a {
  width: fit-content;
  color: var(--xbase-ink);
  font-size: clamp(1.25rem, 1.35vw, 1.9rem);
  font-weight: 650;
  line-height: 1.08;
  text-transform: uppercase;
}

.footer-contact {
  position: absolute;
  top: 96px;
  left: 51vw;
  z-index: 2;
  display: grid;
  gap: 76px;
  max-width: 260px;
  color: var(--xbase-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-contact a {
  width: fit-content;
  color: var(--xbase-muted);
}

.footer-location {
  position: absolute;
  top: 96px;
  right: 3.4vw;
  z-index: 2;
  max-width: 300px;
  color: var(--xbase-muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: right;
  text-transform: uppercase;
}

.footer-location span {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 0 28px auto;
  background: var(--xbase-ink);
  border-radius: 50%;
}

.footer-location p {
  margin: 0 0 4px;
}

.footer-wordmark {
  position: absolute;
  left: -0.7vw;
  bottom: -0.22em;
  z-index: 1;
  color: var(--xbase-ink);
  font-size: clamp(10rem, 29vw, 36rem);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: 0;
  white-space: nowrap;
}

.footer-bottom {
  position: absolute;
  left: 0.7vw;
  right: 0.7vw;
  bottom: 16px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  color: var(--xbase-ink);
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: underline;
  text-transform: uppercase;
}

.footer-bottom a:nth-child(2) {
  justify-self: start;
  margin-left: 18vw;
}

.footer-bottom a:nth-child(3) {
  justify-self: end;
}

.footer-bottom a:nth-child(4) {
  justify-self: end;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--xbase-dark-green);
}

.about-page-hero {
  position: relative;
  min-height: 100svh;
  padding: 168px 0 96px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(102, 148, 135, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(102, 148, 135, 0.06) 1px, transparent 1px),
    var(--xbase-paper);
  background-size: 118px 118px;
  background-position:
    var(--section-a) var(--section-b),
    var(--section-b) var(--section-a),
    0 0;
}

.about-page-bg {
  position: absolute;
  inset: 104px 0 0;
  overflow: hidden;
  pointer-events: none;
}

.about-page-bg::before {
  position: absolute;
  right: 9vw;
  bottom: 12vh;
  width: 48vw;
  height: 50vh;
  content: "";
  background: var(--xbase-soft-green);
  clip-path: polygon(0 4%, 66% 0, 100% 36%, 82% 100%, 22% 82%);
  transform: translate3d(var(--cta-shape-x), var(--cta-shape-y), 0);
}

.about-page-bg span {
  position: absolute;
  display: block;
  height: 1px;
  background: rgba(16, 35, 29, 0.22);
}

.about-page-bg span:nth-child(1) {
  top: 34%;
  left: 42%;
  width: 46vw;
  transform: rotate(-18deg) translateX(var(--stack-line-a));
}

.about-page-bg span:nth-child(2) {
  bottom: 24%;
  left: 10%;
  width: 52vw;
  transform: rotate(13deg) translateX(var(--stack-line-b));
}

.about-page-hero-grid,
.mission-vision-grid,
.belief-grid,
.about-cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 54px;
}

.about-page-title h1 {
  font-size: clamp(5rem, 13vw, 15.8rem);
}

.about-page-title p {
  max-width: 650px;
  margin: 42px 0 0;
  color: var(--xbase-muted);
  font-size: clamp(1.2rem, 1.8vw, 2.1rem);
  line-height: 1.12;
}

.mission-vision-section {
  padding: 132px 0;
  background: var(--xbase-mist);
}

.mission-card,
.vision-card {
  min-height: 520px;
  padding: 34px;
  background: rgba(251, 253, 248, 0.72);
  border: 1px solid var(--xbase-line);
}

.mission-card {
  grid-column: 2;
}

.vision-card {
  grid-column: 2;
  margin-top: 12px;
  background: var(--xbase-soft-green);
}

.mission-card span,
.vision-card span {
  color: var(--xbase-dark-green);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mission-card h2,
.vision-card h2 {
  margin-top: 132px;
  font-size: clamp(2.4rem, 4.3vw, 6.2rem);
}

.mission-card p,
.vision-card p {
  max-width: 780px;
  margin: 30px 0 0;
  color: var(--xbase-muted);
  font-size: 1.06rem;
}

.belief-section {
  padding: 132px 0;
  color: var(--xbase-paper);
  background:
    linear-gradient(90deg, rgba(251, 253, 248, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(251, 253, 248, 0.06) 1px, transparent 1px),
    var(--xbase-ink);
  background-size: 96px 96px;
  background-position:
    var(--stack-a) var(--stack-b),
    var(--stack-b) var(--stack-a),
    0 0;
}

.belief-section .section-label,
.belief-section h2,
.belief-section h3 {
  color: var(--xbase-paper);
}

.belief-list {
  grid-column: 2;
  margin-top: 76px;
  border-top: 1px solid rgba(251, 253, 248, 0.18);
}

.belief-row {
  display: grid;
  grid-template-columns: 82px minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(251, 253, 248, 0.18);
}

.belief-row span {
  color: var(--xbase-green);
  font-weight: 850;
}

.belief-row p {
  margin: 0;
  color: rgba(251, 253, 248, 0.68);
}

.about-cta-section {
  padding: 132px 0;
  background: var(--xbase-paper);
}

.about-cta-copy {
  grid-column: 2;
  max-width: 980px;
}

.about-cta-copy p {
  max-width: 720px;
  margin: 34px 0 30px;
  color: var(--xbase-muted);
  font-size: 1.12rem;
}

.contact-hero {
  min-height: calc(100svh - 104px);
  padding: 174px 0 96px;
  background: var(--xbase-paper);
}

/* Make contact page fit the viewport and prevent body scrolling beyond footer.
   The contact content will be constrained to the viewport height and the footer
   remains reachable; on small screens the natural flow falls back to default. */
body[data-page="contact"] main {
  height: calc(100svh - 0px);
  overflow: hidden;
}

body[data-page="contact"] .contact-hero {
  height: 100%;
  display: flex;
  align-items: center;
}

/* Allow footer to scroll into view only by using the page footer anchor.
   The main content remains fixed; user can navigate to footer via links. */
body[data-page="contact"] .site-footer {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 76px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 136px;
}

.contact-copy h1 {
  color: var(--xbase-ink);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 0.82;
}

.contact-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--xbase-muted);
  font-size: 1.12rem;
}

.contact-note {
  display: grid;
  gap: 6px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--xbase-line-strong);
  color: var(--xbase-muted);
  font-weight: 650;
}

.contact-note a {
  width: fit-content;
  color: var(--xbase-ink);
}

.contact-form {
  display: grid;
  gap: 24px;
  padding: 16px;
  background: var(--xbase-soft-green);
  border: 1px solid var(--xbase-line-strong);
}

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

.contact-form label,
.contact-form fieldset {
  min-width: 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--xbase-ink);
  font-size: 0.84rem;
  font-weight: 650;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--xbase-ink);
  background: var(--xbase-paper);
  border: 1px solid var(--xbase-line-strong);
  border-radius: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 44px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 100px;
  padding: 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--xbase-deep-green);
  box-shadow: 0 0 0 3px rgba(102, 148, 135, 0.22);
  outline: 0;
}

.contact-form fieldset {
  padding: 18px;
  margin: 0;
  border: 1px solid var(--xbase-line-strong);
}

.contact-form legend {
  padding: 0 8px;
  color: var(--xbase-ink);
  font-size: 0.84rem;
  font-weight: 650;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--xbase-muted);
  font-size: 0.88rem;
}

.checkbox-grid input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--xbase-deep-green);
}

.form-submit,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 50px;
  padding: 14px 20px;
  color: var(--xbase-paper);
  background: var(--xbase-ink);
  border: 1px solid var(--xbase-ink);
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease;
}

.form-submit:hover,
.form-submit:focus-visible,
.button:hover,
.button:focus-visible {
  color: var(--xbase-ink);
  background: var(--xbase-green);
}

.form-status {
  min-height: 1.5em;
  margin: -12px 0 0;
  color: var(--xbase-muted);
  font-size: 0.92rem;
}

.reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
}

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

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

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

@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    width: min(100%, 980px);
  }

  .nav-extra {
    display: none;
  }

  .nav-menu {
    justify-content: flex-end;
    padding-right: 14px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 42px;
  }

  .hero-copy {
    justify-self: end;
    padding-bottom: 2vw;
  }

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

  .fit-cards,
  .readiness-list {
    grid-template-columns: 1fr;
  }

  .metric-strip div,
  .metric-strip div + div {
    padding-left: 0;
    border-left: 0;
    border-bottom: 1px solid var(--xbase-line);
  }

  .solution-shape {
    left: 23vw;
    width: 58vw;
  }

  .solution-cube-gallery {
    left: 32vw;
    width: 48vw;
  }

  .solution-cube-stage {
    --cube-size: min(39vw, 420px);
  }

  .solution-title {
    left: 18vw;
    font-size: clamp(5rem, 14vw, 10rem);
  }

  .solution-branch {
    left: 42vw;
    width: 38vw;
  }
}

@media (max-width: 920px) {
  .section-inner {
    width: min(100% - 32px, 1680px);
  }

  .site-header {
    top: 10px;
    padding: 0 12px;
    background: transparent;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    min-height: 56px;
  }

  .brand {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px 14px 14px 999px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 76px 16px auto;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 8px;
    background:
      linear-gradient(135deg, rgba(251, 253, 248, 0.9), rgba(231, 241, 223, 0.72)),
      rgba(251, 253, 248, 0.82);
    border: 1px solid rgba(16, 35, 29, 0.16);
    border-radius: 22px;
    box-shadow:
      0 22px 60px rgba(16, 35, 29, 0.15),
      inset 0 1px 0 rgba(251, 253, 248, 0.9);
    -webkit-backdrop-filter: blur(22px) saturate(1.18);
    backdrop-filter: blur(22px) saturate(1.18);
    transform: translateY(-18px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .is-nav-open .nav-menu {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .nav-menu a {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav-menu a:hover,
  .nav-menu a:focus-visible,
  .nav-menu a[aria-current="page"] {
    background: rgba(184, 216, 191, 0.5);
  }

  .nav-menu a::after {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .terrain-stage {
    inset: 54px 0 0;
  }

  .hero-inner {
    min-height: calc(100svh - 54px);
    padding: 58px 18px 58px;
  }

  h1 {
    font-size: clamp(5rem, 24vw, 9rem);
  }

  h1 span:nth-child(2),
  h1 span:nth-child(3) {
    margin-left: 0;
  }

  .hero-copy {
    justify-self: start;
  }

  .about-section,
  .about-page-hero,
  .mission-vision-section,
  .belief-section,
  .about-cta-section,
  .stack-section,
  .approach-section,
  .fit-section,
  .work-section,
  .readiness-section,
  .insights-section {
    padding: 82px 0;
  }

  .about-grid,
  .about-page-hero-grid,
  .mission-vision-grid,
  .belief-grid,
  .about-cta-grid,
  .stack-grid,
  .approach-grid,
  .fit-grid,
  .work-grid,
  .readiness-grid,
  .insights-grid,
  .final-cta-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .metric-strip,
  .mission-card,
  .vision-card,
  .belief-list,
  .about-cta-copy,
  .stack-layers,
  .approach-rows,
  .fit-cards,
  .work-list,
  .readiness-list,
  .insight-copy,
  .final-cta-copy {
    grid-column: auto;
  }

  .stack-layer {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .stack-layer p,
  .belief-row p {
    grid-column: 2;
  }

  .belief-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .site-footer {
    min-height: 760px;
  }

  .footer-canvas {
    min-height: 760px;
    padding: 54px 24px 28px;
  }

  .footer-nav,
  .footer-contact,
  .footer-location,
  .footer-bottom {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .footer-nav {
    width: fit-content;
  }

  .footer-contact {
    margin-top: 46px;
    gap: 18px;
  }

  .footer-location {
    margin-top: 46px;
    text-align: left;
  }

  .footer-location span {
    margin: 0 0 22px;
  }

  .footer-wordmark {
    left: -2vw;
    bottom: 78px;
    font-size: clamp(7rem, 29vw, 16rem);
  }

  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 300px;
  }

  .footer-bottom a:nth-child(2),
  .footer-bottom a:nth-child(3),
  .footer-bottom a:nth-child(4) {
    justify-self: auto;
    margin-left: 0;
  }

  .fit-cards {
    grid-template-columns: 1fr;
  }

  .readiness-list {
    grid-template-columns: 1fr;
  }

  .solutions-section {
    min-height: 600svh;
  }

  .solution-scene {
    min-height: 820px;
  }

  .solution-tabs {
    top: 104px;
    left: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    width: calc(100% - 36px);
  }

  .solution-cube-gallery {
    left: 18px;
    right: 18px;
    top: 218px;
    width: auto;
    height: 360px;
    min-height: 0;
  }

  .solution-cube-stage {
    --cube-size: min(56vw, 340px);
    top: 46%;
  }

  .solution-cube-face {
    padding: 24px;
  }

  .solution-cube-face strong {
    max-width: 86%;
  }

  .solution-cube-face p {
    max-width: 88%;
  }

  .solution-cube-counter {
    right: 2px;
    bottom: 0;
  }

  .solution-shape {
    top: 250px;
    left: 16px;
    width: calc(100% - 32px);
    height: 330px;
  }

  .solution-title {
    top: 318px;
    left: 18px;
    font-size: clamp(4.6rem, 18vw, 8rem);
  }

  .solution-title span:nth-child(2) {
    margin-left: 0;
  }

  .solution-branch {
    top: 178px;
    left: 48%;
    width: 280px;
    height: 610px;
  }

  .solution-copy {
    left: 18px;
    bottom: 42px;
    width: min(360px, calc(100% - 36px));
  }

  .solution-metrics {
    right: 18px;
    bottom: 42px;
    gap: 22px;
    width: 180px;
  }

  .approach-row,
  .work-row,
  .readiness-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .approach-row p {
    grid-column: 2;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .final-cta-section {
    padding: 96px 0;
  }

  .contact-grid,
  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 1rem;
  }

  .hero-title .eyebrow {
    margin-bottom: 22px;
  }

  .hero-copy p {
    font-size: 1.28rem;
  }

  .hero-workflow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 420px);
    gap: 18px 0;
  }

  .hero-workflow::before {
    animation: workflow-line-mobile 5.4s linear infinite;
  }

  @keyframes workflow-line-mobile {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(214%);
    }
  }

  .terrain-layer {
    height: 68%;
  }

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

  .stack-layer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stack-layer p,
  .belief-row p {
    grid-column: auto;
  }

  .belief-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mission-card,
  .vision-card {
    min-height: 420px;
    padding: 24px;
  }

  .mission-card h2,
  .vision-card h2 {
    margin-top: 86px;
  }

  .fit-card {
    min-height: 300px;
  }

  .fit-card h3 {
    margin-top: 70px;
  }

  .readiness-item {
    min-height: 230px;
  }

  .solution-tabs {
    grid-template-columns: 1fr;
  }

  .solutions-section {
    min-height: 600svh;
  }

  .solution-scene {
    min-height: 840px;
  }

  .solution-cube-gallery {
    top: 260px;
    height: 300px;
  }

  .solution-cube-stage {
    --cube-size: min(64vw, 260px);
  }

  .cube-face-kicker {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }

  .solution-cube-face strong {
    font-size: clamp(1rem, 6vw, 1.8rem);
  }

  .solution-cube-face p,
  .cube-face-meta {
    font-size: 0.75rem;
  }

  .solution-copy,
  .solution-metrics {
    position: static;
    width: auto;
    margin-inline: 18px;
  }

  .solution-copy {
    padding-top: 650px;
  }

  .solution-metrics {
    margin-top: 30px;
    text-align: left;
  }
}
