.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(221, 229, 240, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  width: min(100%, 1440px);
  min-height: 84px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: center;
  grid-template-columns: 270px 1fr auto;
  gap: 2rem;
}

.logo img {
  width: 220px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 2.2vw, 2.35rem);
}

.primary-nav a {
  position: relative;
  padding: 1.9rem 0;
  color: var(--orbit);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1.3rem;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.header-cta {
  color: var(--white);
  background: var(--orbit);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--orbit);
  border: 1px solid var(--mist);
  border-radius: var(--radius-small);
  background: var(--white);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 840px;
  padding-top: 84px;
  align-items: stretch;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 84px 0 0;
  width: 100%;
  height: calc(100% - 84px);
}

.hero-media {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(255, 247, 232, 0.99) 0%, rgba(255, 247, 232, 0.94) 27%, rgba(255, 247, 232, 0.54) 48%, rgba(255, 247, 232, 0) 67%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(7rem, 12vh, 9.5rem) var(--gutter) 13rem;
}

.hero-content h1 {
  width: min(700px, 56vw);
  margin-bottom: 1.65rem;
}

.hero-content p {
  width: min(620px, 52vw);
  margin-bottom: 2rem;
  color: #394154;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.audience-router {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  margin: 0 auto;
  color: var(--white);
  background: var(--orbit);
  grid-template-columns: 180px 1fr;
}

.audience-router > p {
  display: flex;
  margin: 0;
  padding: 1.75rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.route-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.route-links a {
  display: flex;
  min-height: 116px;
  padding: 1.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  transition: color var(--transition), background var(--transition);
}

.route-links a:nth-child(1):hover {
  color: var(--orbit);
  background: var(--blue);
}

.route-links a:nth-child(2):hover {
  color: var(--orbit);
  background: var(--teal);
}

.route-links a:nth-child(3):hover {
  color: var(--orbit);
  background: var(--amber);
}

.route-links svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.ecosystem-strip {
  padding: clamp(3.25rem, 5vw, 4.75rem) var(--gutter);
  background: var(--white);
}

.ecosystem-logos {
  display: grid;
  width: min(100%, var(--container));
  margin: 0 auto;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.ecosystem-logos figure {
  display: flex;
  min-width: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  opacity: 1;
}

.ecosystem-logos img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.ecosystem-logos figcaption {
  color: var(--orbit);
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
}

.ecosystem-logos svg {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  stroke-width: 1.7;
}

.ecosystem-blue { color: var(--blue); }
.ecosystem-coral { color: var(--coral); }
.ecosystem-amber { color: var(--amber); }
.ecosystem-teal { color: var(--teal); }
.ecosystem-orbit { color: var(--orbit); }

.ecosystem-openclaw {
  color: var(--orbit);
}

.company-intro {
  color: var(--warm-cloud);
  background: var(--coral);
}

.company-intro h2 {
  color: var(--warm-cloud);
}

.section-heading {
  display: grid;
  width: min(100%, var(--container));
  margin: 0 auto clamp(3rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 4rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 540px;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.leverage-layout {
  display: grid;
  width: min(100%, var(--container));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.leverage-copy h2 {
  max-width: 830px;
  margin-bottom: 1.5rem;
}

.leverage-copy > p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.leverage-points {
  margin: 2.4rem 0 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.leverage-points > div {
  display: grid;
  padding: 1.05rem 0;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.leverage-points svg {
  width: 25px;
  height: 25px;
  color: var(--warm-cloud);
  stroke-width: 1.8;
}

.leverage-points span {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.leverage-points strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--warm-cloud);
  font-family: var(--font-display);
}

.company-intro .text-link {
  color: var(--warm-cloud);
}

.leverage-image {
  position: relative;
  margin: 0;
}

.leverage-image::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 42%;
  height: 34%;
  border-right: 10px solid var(--teal);
  border-bottom: 10px solid var(--teal);
  content: "";
}

.leverage-image img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.capabilities {
  padding: var(--section-space) var(--gutter) 0;
  background: var(--white);
}

.capabilities-heading {
  width: min(100%, var(--container));
  margin: 0 auto 3.5rem;
}

.capabilities-heading h2 {
  max-width: 900px;
  margin-bottom: 0;
}

.capability-grid {
  display: grid;
  width: min(100%, 1440px);
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
}

.capability {
  display: flex;
  min-height: 470px;
  padding: clamp(2rem, 3vw, 3.25rem);
  flex-direction: column;
}

.capability > svg {
  width: 42px;
  height: 42px;
  margin-bottom: auto;
  stroke-width: 1.55;
}

.capability h3 {
  margin: 3rem 0 1rem;
  color: inherit;
  font-size: 1.65rem;
}

.capability p {
  margin-bottom: 2rem;
}

.capability a {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.capability a:hover svg {
  transform: translateX(3px);
}

.capability-blue {
  color: var(--white);
  background: var(--blue);
}

.capability-teal {
  color: var(--orbit);
  background: var(--teal);
}

.capability-amber {
  color: var(--orbit);
  background: var(--amber);
}

.capability-orbit {
  color: var(--white);
  background: var(--orbit);
}

.programme {
  display: grid;
  background: var(--cloud-white);
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.programme-copy {
  max-width: 630px;
  margin-left: max(0px, calc((100vw - var(--container)) / 2));
}

.programme-copy h2 {
  margin-bottom: 1.5rem;
}

.programme-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.programme-copy .button {
  margin-top: 1.25rem;
}

.programme-flow {
  align-self: center;
  width: min(700px, 100%);
}

.programme-flow ol {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
}

.programme-flow li {
  position: relative;
  display: flex;
  min-height: 190px;
  padding: 1.5rem;
  flex-direction: column;
  border-top: 6px solid currentColor;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.programme-flow li > span {
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.programme-flow li > svg {
  width: 35px;
  height: 35px;
  margin: auto 0 1rem;
  stroke-width: 1.7;
}

.programme-flow li strong {
  max-width: 230px;
  color: var(--orbit);
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.35;
}

.programme-flow li > b {
  position: absolute;
  z-index: 2;
  right: -1.5rem;
  bottom: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  color: var(--white);
  border-radius: 50%;
  background: var(--orbit);
  place-items: center;
  transform: translateY(50%);
}

.programme-flow li:nth-child(2) > b {
  right: 50%;
  bottom: -1.5rem;
  transform: translate(50%, 0);
}

.programme-flow li:nth-child(3) > b {
  right: auto;
  bottom: 50%;
  left: -1.5rem;
  transform: translateY(50%);
}

.programme-flow li > b svg {
  width: 17px;
  height: 17px;
}

.flow-blue { color: var(--blue); }
.flow-teal { color: #078f82; }
.flow-amber { color: #c77b00; }
.flow-coral { color: var(--coral); }
}

.agents {
  background: var(--white);
}

.section-heading-left {
  display: block;
}

.section-heading-left h2 {
  max-width: 820px;
  margin-bottom: 1.25rem;
}

.section-heading-left p {
  max-width: 700px;
}

.agent-examples {
  display: grid;
  width: min(100%, var(--container));
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.agent-example {
  overflow: hidden;
  border: 1px solid var(--mist);
  border-radius: var(--radius-medium);
  background: var(--white);
}

.agent-example > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.agent-example > div {
  padding: 1.75rem;
}

.agent-example svg {
  width: 29px;
  height: 29px;
  margin-bottom: 1.25rem;
  color: var(--blue);
  stroke-width: 1.7;
}

.agent-stat {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--orbit);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1;
}

.agent-example:nth-child(2) svg {
  color: var(--teal);
}

.agent-example:nth-child(3) svg {
  color: var(--coral);
}

.agent-example h3 {
  margin-bottom: 0.75rem;
}

.agent-example p {
  margin-bottom: 0;
  color: var(--muted);
}

.agents-cta {
  display: flex;
  width: max-content;
  margin: 2.5rem auto 0;
}

.performance-note {
  width: min(100%, var(--container));
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.organizations {
  display: grid;
  min-height: 720px;
  color: var(--white);
  background: var(--orbit);
  grid-template-columns: 1fr 1fr;
}

.organization-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.organization-copy {
  display: flex;
  max-width: 720px;
  padding: clamp(4rem, 8vw, 8rem);
  flex-direction: column;
  justify-content: center;
}

.organization-copy h2 {
  color: var(--white);
}

.organization-copy > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.organization-steps {
  display: grid;
  margin: 1.5rem 0 2.5rem;
}

.organization-steps span {
  display: flex;
  padding: 1rem 0;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.organization-steps b {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.organization-copy .button {
  width: max-content;
}

.governed-work {
  color: var(--white);
  background: #090e20;
}

.governed-heading {
  width: min(100%, var(--container));
  margin: 0 auto 4rem;
}

.governed-heading h2 {
  max-width: 900px;
  color: var(--white);
}

.governed-heading p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.05rem;
}

.work-rail {
  display: grid;
  width: min(100%, var(--container));
  margin: 0 auto;
  grid-template-columns: repeat(6, 1fr);
}

.work-rail div {
  position: relative;
  display: flex;
  min-height: 210px;
  padding: 1.5rem 1.2rem;
  flex-direction: column;
  border-top: 2px solid var(--blue);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.work-rail div:nth-child(2) {
  border-top-color: var(--teal);
}

.work-rail div:nth-child(3) {
  border-top-color: var(--amber);
}

.work-rail div:nth-child(4) {
  border-top-color: var(--coral);
}

.work-rail div:nth-child(5) {
  border-top-color: var(--teal);
}

.work-rail div:nth-child(6) {
  border-top-color: var(--blue);
}

.work-rail span {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.work-rail strong {
  margin: auto 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.work-rail small {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.closing-cta {
  display: grid;
  padding: clamp(4.5rem, 8vw, 7.5rem) var(--gutter);
  color: var(--orbit);
  background: var(--teal);
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4rem;
}

.closing-copy h2,
.closing-copy p,
.closing-actions .text-link {
  color: var(--orbit);
}

.closing-copy {
  width: min(800px, 100%);
  margin-left: max(0px, calc((100vw - var(--container)) / 2));
}

.closing-copy h2 {
  margin-bottom: 1rem;
}

.closing-copy p {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.closing-actions {
  display: flex;
  padding-right: max(0px, calc((100vw - var(--container)) / 2));
  align-items: center;
  gap: 1.5rem;
}

.site-footer {
  display: grid;
  padding: 3.5rem var(--gutter);
  color: rgba(255, 255, 255, 0.72);
  background: var(--orbit);
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 4rem;
}

.footer-brand img {
  width: 210px;
  padding: 0.5rem;
  background: var(--white);
}

.footer-brand p {
  margin: 1rem 0 0;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
}

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

.footer-note {
  margin-bottom: 0;
  font-size: 0.82rem;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 230px 1fr auto;
    gap: 1.25rem;
  }

  .logo img {
    width: 195px;
  }

  .primary-nav {
    gap: 1.25rem;
  }

  .primary-nav a {
    font-size: 0.82rem;
  }

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

  .ecosystem-logos {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.25rem;
  }

  .capability {
    min-height: 400px;
  }

  .work-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 74px;
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: 74px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 2rem var(--gutter);
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--mist);
    font-family: var(--font-display);
    font-size: 1.25rem;
  }

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

  .hero {
    min-height: 900px;
    padding-top: 74px;
  }

  .hero-media,
  .hero-shade {
    inset: 74px 0 0;
    height: calc(100% - 74px);
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(255, 247, 232, 0.98) 0%, rgba(255, 247, 232, 0.91) 43%, rgba(255, 247, 232, 0.24) 80%);
  }

  .hero-content {
    padding-top: 7rem;
  }

  .hero-content h1,
  .hero-content p {
    width: min(620px, 76vw);
  }

  .audience-router {
    width: calc(100% - (2 * var(--gutter)));
    grid-template-columns: 1fr;
  }

  .audience-router > p {
    padding: 1rem 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .route-links a {
    min-height: 100px;
  }

  .section-heading,
  .leverage-layout,
  .programme,
  .organizations {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 1.5rem;
  }

  .programme-copy {
    margin-left: 0;
  }

  .programme-flow {
    width: min(680px, 100%);
  }

  .agent-examples {
    grid-template-columns: 1fr 1fr;
  }

  .agent-example:last-child {
    grid-column: 1 / -1;
  }

  .agent-example:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .organizations {
    min-height: auto;
  }

  .organization-image img {
    max-height: 560px;
  }

  .organization-copy {
    max-width: none;
    padding: var(--section-space) var(--gutter);
  }

  .closing-cta {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2rem;
  }

  .closing-copy {
    margin-left: 0;
  }

  .closing-actions {
    padding-right: 0;
  }

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

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 1.15rem;
    --section-space: 4.75rem;
  }

  h1 {
    font-size: clamp(2.65rem, 10.5vw, 3.2rem);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .logo img {
    width: 180px;
  }

  .hero {
    min-height: 980px;
  }

  .hero-media {
    height: 54%;
    object-position: 68% center;
  }

  .hero-shade {
    height: 65%;
    background: linear-gradient(180deg, rgba(255, 247, 232, 0.88) 0%, rgba(255, 247, 232, 0.88) 48%, var(--warm-cloud) 100%);
  }

  .hero-content {
    padding: 5.25rem var(--gutter) 21rem;
  }

  .hero-content h1,
  .hero-content p {
    width: 100%;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .audience-router {
    width: 100%;
  }

  .route-links {
    grid-template-columns: 1fr;
  }

  .route-links a {
    min-height: 74px;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .leverage-layout {
    gap: 3rem;
  }

  .leverage-image {
    width: calc(100% - 8px);
  }

  .leverage-image::after {
    right: -8px;
    bottom: -8px;
    border-width: 6px;
  }

  .capabilities {
    padding-top: var(--section-space);
  }

  .ecosystem-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .ecosystem-logos figure {
    justify-content: flex-start;
  }

  .ecosystem-logos figcaption {
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.25;
    white-space: normal;
  }

  .capability-grid,
  .programme-flow ol,
  .agent-examples,
  .work-rail {
    grid-template-columns: 1fr;
  }

  .capability {
    min-height: 350px;
  }

  .programme-flow li {
    min-height: 165px;
  }

  .programme-flow li > b,
  .programme-flow li:nth-child(2) > b,
  .programme-flow li:nth-child(3) > b {
    right: 50%;
    bottom: -1.5rem;
    left: auto;
    transform: translate(50%, 0);
  }

  .programme-flow li > b svg {
    display: none;
  }

  .programme-flow li > b::after {
    color: var(--white);
    content: "\2193";
    font-size: 1rem;
  }

  .agent-example:last-child {
    display: block;
    grid-column: auto;
  }

  .agents-cta,
  .organization-copy .button {
    width: 100%;
  }

  .work-rail div {
    min-height: 150px;
    border-right: 0;
  }

  .closing-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-actions .button {
    width: 100%;
  }

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

  .footer-note {
    grid-column: auto;
  }
}
