:root {
  --site-content: 1120px;
  --site-gutter: clamp(20px, 3.2vw, 30px);
  --bg: #080f0e;
  --panel: #10201a;
  --line: #244437;
  --green: #62e8a5;
  --site-ink: #eff6f2;
  --site-secondary: #a5b2ac;
  --site-header: #090d0bf2;
  --site-footer: #0c120f;
  --site-footer-edge: #243d30;
  --site-surface-deep: #0e1512;
  --site-hero-glow: radial-gradient(ellipse at 85% 38%, #20443466, transparent 53%);
  --site-heading-gradient: linear-gradient(100deg, #85f3bd, #39d991 70%, #26bf88);
  --site-workspace-gradient: linear-gradient(130deg, #15221c, var(--site-surface-deep) 90%);
  --site-cta-gradient: linear-gradient(130deg, #b3ffda, #62db9c);
  --site-cta-glow: radial-gradient(ellipse at 50% 100%, #21804f40, transparent 70%);
}

body.inner-pages {
  color: var(--site-ink);
}

body.inner-pages :is(.hero, .sub-hero) {
  background: var(--site-hero-glow);
}

body.inner-pages .hero::before {
  background: none;
}

/* Keep content on one grid while section atmospheres span the viewport. */
body.inner-pages .wrap {
  width: 100%;
  max-width: calc(var(--site-content) + var(--site-gutter) * 2);
  padding-inline: var(--site-gutter);
  margin-inline: auto;
}

body.inner-pages footer.wrap {
  max-width: none;
  padding-inline: max(var(--site-gutter), calc((100% - var(--site-content)) / 2));
  background: var(--site-footer);
  border-top-color: var(--site-footer-edge);
}

body:not(.inner-pages) :is(footer, .section, main > .hero) {
  padding-inline: max(var(--site-gutter), calc((100% - var(--site-content)) / 2));
}

body:not(.inner-pages) .hero h1 {
  font-size: clamp(46px, 4.8vw, 70px);
}

body.inner-pages :is(.sub-hero, .sub-section, .closer) {
  width: min(var(--site-content), calc(100% - var(--site-gutter) * 2));
  margin-inline: auto;
}

body.inner-pages .closer > .wrap {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.inner-pages .showcase {
  width: 100%;
  max-width: none;
}

body.inner-pages main :is(.wrap, .pair, .cols, .industry-cards, .sub-grid, .demo-workspace) > * {
  min-width: 0;
}

body.inner-pages :is(.industry-cards a, .sub-card) {
  overflow-wrap: break-word;
}

body:not(.inner-pages) .btn:not(.outline),
body.inner-pages :is(.btn-solid, .btn.primary) {
  background: var(--site-cta-gradient);
  border-color: #9bffcb;
  box-shadow: 0 0 22px #57df9718, inset 0 1px 0 #ffffff80;
}

body > .site-header .btn {
  background: var(--site-cta-gradient);
  border-color: #9bffcb;
  color: rgb(13, 35, 24);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  body > .site-header .btn:hover {
    background: #1a3025 !important;
    border-color: #6ba78a;
    color: #effbf4;
  }
}

body.inner-pages .band .dashboard :is(.event p, .dash-title p) {
  font-size: .85rem;
  line-height: 1.5;
}

body.inner-pages .band .dashboard .event p {
  margin: 0;
}

@media (max-width: 960px) {
  body.inner-pages .industry-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  :root {
    --mobile-header-height: 77px;
    --mobile-header-control: 48px;
    --mobile-header-logo: clamp(126px, 15vw, 200px);
  }

  body > .site-header .nav {
    height: calc(var(--mobile-header-height) - 1px);
  }

  body > .mobile-drawer .drawer-top {
    height: var(--mobile-header-height);
    padding: 0 var(--site-gutter);
  }

  body > .site-header .brand-logo,
  body > .mobile-drawer .drawer-top .brand-logo {
    width: var(--mobile-header-logo);
  }

  body > .site-header .menu,
  body > .mobile-drawer .drawer-close {
    flex: 0 0 var(--mobile-header-control);
    width: var(--mobile-header-control);
    height: var(--mobile-header-control);
  }
}

@media (max-width: 800px) {
  :root {
    --mobile-header-height: 64px;
    --mobile-header-control: 44px;
  }

  body > .site-header {
    background: #0a110e;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body > header .brand {
    min-width: 0;
  }

  body > header :is(.brand-original, .brand-logo) {
    max-width: 100%;
  }

  body > header .menu {
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 9px;
    color: #eff4f2;
  }

  body:not(.inner-pages) .hero-visual {
    isolation: isolate;
  }

  body:not(.inner-pages) .floating-complete {
    right: 0;
  }

  body.inner-pages footer .footer {
    padding-bottom: 64px;
  }
}

@media (max-width: 540px) {
  body.inner-pages .industry-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(.inner-pages) .hero h1 {
    font-size: clamp(38px, 10.6vw, 56px);
  }
}

/* One continuous build journey, with a distinct deliverable at each phase. */
.build-journey {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
}

.build-milestone {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(240px, .8fr);
  gap: 24px;
  align-items: center;
  position: relative;
  padding-block: 32px;
  border-top: 1px solid #6b9f7f30;
}

.build-milestone:last-child {
  border-bottom: 1px solid #6b9f7f30;
}

.build-milestone:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(50% + 25px);
  bottom: calc(-50% + 25px);
  left: 23px;
  width: 1px;
  background: linear-gradient(#70ba9140, #70ba9115);
}

.milestone-number {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid #74c99b66;
  border-radius: 50%;
  color: #a1ebc1;
  background: #102019;
  font: 500 .8rem 'IBM Plex Mono', monospace;
}

.milestone-copy {
  max-width: 470px;
}

.inner-pages .milestone-copy .standfirst {
  color: #82c49e;
  margin: 0 0 12px;
}

.inner-pages .milestone-copy h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 0 0 12px;
  letter-spacing: -.025em;
}

.inner-pages .milestone-copy p {
  font-size: .95rem;
  color: var(--inner-muted);
  margin: 0;
  line-height: 1.7;
}

.milestone-visual {
  margin: 0;
  width: min(100%, 320px);
  justify-self: end;
}

.milestone-visual svg {
  display: block;
  width: 100%;
  color: #9ce7b9;
  overflow: visible;
  fill: currentColor;
}

.milestone-visual use {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.journey-node, .journey-sheet {
  fill: #11231a;
  stroke: #5d9875;
  stroke-width: 1;
}

.journey-sheet.back {
  fill: #0a1710;
  stroke: #34523f;
}

.journey-wire, .journey-line, .journey-packet {
  fill: none;
  stroke: #82c89f;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.journey-wire, .journey-line.muted { opacity: .4; }
.journey-packet { stroke-dasharray: 12 88; animation: journey-signal 4s linear infinite; }

.milestone-visual figcaption {
  text-align: center;
  color: #86a591;
  font: .65rem/1.5 'IBM Plex Mono', monospace;
  margin-top: 4px;
}

.pilot-brief {
  margin: 32px 0 0;
  padding: 0;
}

.pilot-brief > div {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(0, 1.5fr);
  gap: 24px;
  padding-block: 22px;
  border-top: 1px solid #6b9f7f30;
}

.pilot-brief dt {
  color: #a5d6bb;
  font-size: .9rem;
}

.pilot-brief dd {
  color: var(--inner-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin: 0;
  max-width: 65ch;
}

@keyframes journey-signal {
  from { stroke-dashoffset: 12; }
  to { stroke-dashoffset: -100; }
}

@media (max-width: 760px) {
  .build-milestone {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 18px;
  }
  .milestone-number { width: 39px; height: 39px; }
  .milestone-visual { grid-column: 2; justify-self: start; width: min(100%, 280px); }
  .build-milestone:not(:last-child)::after { left: 19px; top: 82px; bottom: -32px; }
  .pilot-brief > div { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-packet { animation: none; stroke-dasharray: none; }
}

.agent-avatar > svg {
  display: block;
  width: 100%;
  height: 100%;
}
