/* v5.22.0: maintained context and the decision cycle. */
.ds-page { background: var(--bg); }
.ds-page main { padding-top: 0; }

.ds-shell {
  width: calc(100% - 48px);
  max-width: var(--outer-measure);
  margin-inline: auto;
}

.ds-page :is(h1, h2, h3) { text-wrap: pretty; }
.ds-page h2 {
  max-width: 25ch;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ds-page h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.ds-page :is(p, li) { max-width: 66ch; font-size: 1.18rem; line-height: 1.55; }
.ds-page p + p { margin-top: 1rem; }
.ds-page .ds-eyebrow {
  margin: 0 0 1.1rem;
  color: var(--mineral);
  font: 500 1rem / 1.3 var(--font-sans);
}
.ds-page .ds-lead { font-size: 1.3rem; line-height: 1.5; }
.ds-page .cta-group {
  justify-content: flex-start;
  gap: 0.75rem 1.5rem;
  margin-top: 1.8rem;
}
.ds-page .ds-fine-print { color: var(--muted); font: 400 1rem / 1.45 var(--font-sans); }
.ds-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.6rem;
  font: 500 1.12rem / 1.35 var(--font-sans);
  text-underline-offset: 0.3em;
}
.ds-page :is(a, button):focus-visible {
  outline: 2px solid var(--mineral);
  outline-offset: 4px;
}

.ds-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.86fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
}
.ds-hero h1, .ds-product-hero h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.85rem, 4.8vw, 4.35rem);
  font-weight: 500;
  line-height: 1.04;
  text-align: left;
}
.ds-hero h1 span { color: var(--mineral); }
.ds-hero .ds-lead { margin-top: 1.5rem; max-width: 43ch; }
.ds-page .ds-hero-purpose { color: var(--muted); max-width: 45ch; }

.ds-context-map {
  margin: 0;
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  border-top: 2px solid var(--mineral);
}
.ds-context-map-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.ds-context-map-top .ds-eyebrow { margin: 0; }
.ds-context-map .hero-proof-lockup {
  flex-shrink: 0;
  width: 4rem;
  margin: -0.5rem -0.3rem 0 0;
}
.ds-context-map-items { margin: 1.4rem 0 0; padding: 0; }
.ds-context-map-items > div {
  padding: 0 0 1.2rem 1rem;
  border-left: 1px solid var(--rule);
  position: relative;
}
.ds-context-map-items > div:last-child { padding-bottom: 0; }
.ds-context-map-items > div::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mineral);
}
.ds-context-map-items dt { font-size: 1.4rem; line-height: 1.2; }
.ds-context-map-items dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font: 400 1rem / 1.4 var(--font-sans);
}
.ds-context-map figcaption {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--soft-rule);
  color: var(--muted);
  font: 400 0.95rem / 1.45 var(--font-sans);
}

.ds-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.ds-section-heading, .ds-team, .ds-invitation-inner, .ds-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.ds-section-heading > p { padding-top: 0.2rem; color: var(--muted); }
.ds-questions, .ds-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2.75rem;
}
.ds-questions article { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.ds-page :is(.ds-questions, .ds-principles, .ds-use-cases, .ds-access-grid) h3 + p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.ds-context-band, .ds-access-band {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--surface);
}
/* Keep established fragment links without inheriting the previous page layout. */
.ds-page.route-product #current-view {
  margin-top: 0;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 0;
}
.ds-context-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.ds-context-copy > p:not(.ds-eyebrow) { margin-top: 1.4rem; }
.ds-context-copy .ds-text-link { margin-top: 1.4rem; }
.ds-context-picture > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 15rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .ds-context-picture > img { filter: invert(1); mix-blend-mode: screen; }
.ds-context-ports, .ds-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.ds-context-ports h3 { font-size: 1.25rem; }
.ds-context-ports p { margin-top: 0.5rem; font-size: 1.1rem; }

.ds-use-cases { margin-top: 2.75rem; }
.ds-use-cases article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: baseline;
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule);
}
.ds-use-cases h3 a {
  display: inline-block;
  padding-block: 0.3rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.ds-use-cases h3 span { color: var(--mineral); font-family: var(--font-sans); font-size: 1.2rem; }
.ds-use-cases article h3 + p { margin: 0; }
.ds-team { border-top: 1px solid var(--rule); }

.ds-invitation {
  padding-block: clamp(3.5rem, 7vw, 5rem);
  border-block: 1px solid var(--rule);
}
.ds-invitation h2 + p { margin-top: 1.5rem; }
.ds-invitation-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  gap: 1.1rem;
  justify-self: center;
}
.ds-invitation-actions > p { max-width: 26ch; color: var(--muted); }

.ds-product-hero { padding-block: clamp(3rem, 6vw, 5rem); align-items: end; }
.ds-product-hero h1 { font-size: clamp(2.75rem, 4.3vw, 3.85rem); }
.ds-product-intro > p + p { margin-top: 1.1rem; color: var(--muted); }
.ds-principles svg, .ds-access-grid svg {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  color: var(--mineral);
  fill: none;
  stroke: currentColor;
}

.ds-use-case-families { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.ds-case-family {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 2rem;
}
.ds-case-family:last-of-type { padding-bottom: 0; }
.ds-page.route-product #task-context { margin-top: 0; padding-top: 2.5rem; }
.ds-family-intro h2 { max-width: 17ch; }
.ds-family-intro p { margin-top: 1rem; color: var(--muted); max-width: 33ch; }
.ds-case-list article + article { margin-top: 1.8rem; }
.ds-page.route-product #staying-current { margin-top: 1.8rem; padding: 0; border: 0; }
.ds-case-list h3 { font-size: 1.45rem; }
.ds-case-list h3 + p { margin-top: 0.6rem; color: var(--muted); }
.ds-page .ds-control-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  max-width: none;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1.08rem;
}
.ds-control-note a { text-underline-offset: 0.2em; }
.ds-access-grid { gap: clamp(2rem, 5vw, 4rem); margin-top: 2.75rem; }

/* An illustrated opening, followed by the intended decision cycle. */
.ds-page main :is(p, li), .ns-page main :is(p, li) { font-family: var(--font-sans); }
.ds-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; padding-block: 2.5rem 4.5rem; }
.ds-hero h1 { max-width: 14ch; letter-spacing: -0.035em; }
.ds-hero .ds-lead { max-width: 36ch; font-size: 1.4rem; line-height: 1.4; }
.ds-hero-purpose { font-size: 1.15rem; }
.ns-hero-art { position: relative; align-self: stretch; min-height: 34rem; margin: 0; background: #080907; }
.ns-hero-art img { display: block; width: 100%; height: 100%; position: absolute; object-fit: cover; }
.ns-hero-art figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 1.1rem 1.3rem; color: #F0EEE6; background: #080907; font: 400 1rem / 1.35 var(--font-sans); }
.ns-cycle { --cycle-field: #2F5144; --cycle-ink: #F0EEE6; --cycle-muted: #D9E2D8; padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--cycle-field); color: var(--cycle-ink); }
:root[data-theme="dark"] .ns-cycle { --cycle-field: #243E33; }
.ns-cycle-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.ds-page .ns-cycle :is(h2, h3, p) { color: inherit; }
.ds-page .ns-cycle .ds-eyebrow { color: var(--cycle-muted); }
.ns-cycle-intro h2 { max-width: 12ch; font-size: clamp(2.4rem, 4vw, 3.2rem); }
.ns-cycle-intro h2 + p { margin-top: 1.5rem; }
.ns-cycle-intro > p:not(.ds-eyebrow) { max-width: 32ch; color: var(--cycle-muted); }
.ns-cycle-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "understand examine" "learn choose"; gap: 2.6rem; margin: 0; padding: 0; list-style: none; position: relative; }
.ns-cycle-steps li { position: relative; padding: 1.1rem 1.2rem 1.2rem; background: var(--cycle-field); border: 1px solid #D9E2D880; }
.ns-cycle-steps li:nth-child(1) { grid-area: understand; }
.ns-cycle-steps li:nth-child(2) { grid-area: examine; }
.ns-cycle-steps li:nth-child(3) { grid-area: choose; }
.ns-cycle-steps li:nth-child(4) { grid-area: learn; }
.ns-cycle-steps li::after { content: "→" / ""; position: absolute; inset-inline-end: -1.95rem; top: 44%; font: 400 1.6rem / 1 var(--font-sans); }
.ns-cycle-steps li:nth-child(2)::after { content: "↓" / ""; top: auto; bottom: -2.15rem; inset-inline-end: 50%; }
.ns-cycle-steps li:nth-child(3)::after { content: "←" / ""; inset-inline-end: auto; left: -1.95rem; }
.ns-cycle-steps li:nth-child(4)::after { content: "↑" / ""; top: -2.1rem; inset-inline-end: 50%; }
.ns-step-number { display: block; margin-bottom: .7rem; color: var(--cycle-muted); font: 400 .9rem / 1 var(--font-sans); }
.ds-page .ns-cycle-steps h3 { font-size: 1.65rem; font-weight: 500; }
.ds-page .ns-cycle-steps p { margin-top: .5rem; font-size: 1.05rem; line-height: 1.4; color: var(--cycle-muted); }
.ds-page .ns-cycle-return { margin-top: 1.5rem; font-size: 1rem; color: var(--cycle-muted); }
.ns-cycle-return span { font-size: 1.4rem; margin-right: .25rem; }
.ds-use-cases article { padding-block: 1.7rem; }
.ds-context-layout { border-top: 1px solid var(--rule); }
.ds-context-ports { gap: 2.5rem; padding: 2rem; background: var(--surface); }
.ds-context-ports svg { width: 2.5rem; height: 2.5rem; color: var(--mineral); margin-bottom: 1.1rem; }
.ds-context-ports h3 { font-size: 1.6rem; }
.ds-context-ports p { color: var(--muted); }
.ds-team h2 { max-width: 18ch; }
.ds-team > div p:first-child { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.45; }
.ds-team > div p + p { color: var(--muted); }
.ns-method { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); }
.ns-method-intro h2 + p { margin-top: 1.2rem; color: var(--muted); }
.ns-method-steps { list-style: none; counter-reset: method; margin: 0; padding: 0; }
.ns-method-steps li { position: relative; padding-left: 3.1rem; padding-bottom: 2rem; counter-increment: method; }
.ns-method-steps li:last-child { padding-bottom: 0; }
.ns-method-steps li::before { content: counter(method, decimal-leading-zero); position: absolute; left: 0; top: .2rem; font: 400 1rem / 1.5 var(--font-sans); color: var(--mineral); }
.ns-method-steps li:not(:last-child)::after { content: ""; position: absolute; left: .65rem; top: 2rem; bottom: .5rem; width: 1px; background: var(--rule); }
.ns-method-steps p { margin-top: .6rem; color: var(--muted); }
.ns-method + .ds-use-case-families { padding-top: 0; }
.ns-page .enterprise-hero-copy .page-lead, .ns-page .contact-hero-copy p { font-family: var(--font-sans); }

@media (min-width: 821px) and (max-height: 760px) {
  .ds-hero { padding-block: 1rem 2.5rem; }
  .ns-hero-art { min-height: 31rem; }
}

@media (max-width: 820px) {
  .ds-hero, .ds-section-heading, .ds-context-layout, .ds-team,
  .ds-product-hero, .ds-case-family, .ds-invitation-inner, .ns-cycle-layout, .ns-method {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .ds-hero h1, .ds-product-hero h1 { max-width: 18ch; font-size: clamp(2.85rem, 7vw, 4rem); }
  .ds-context-map { max-width: 34rem; width: 100%; justify-self: start; }
  .ds-family-intro h2 { max-width: 25ch; }
  .ds-family-intro p { max-width: 50ch; }
  .ds-invitation-actions { justify-self: start; }
  .ds-context-picture > img { max-height: 13rem; }
  .ns-hero-art { min-height: 23rem; }
  .ns-hero-art img { object-position: 50% 52%; }
  .ns-cycle-intro h2 { max-width: 22ch; }
  .ns-cycle-intro > p:not(.ds-eyebrow) { max-width: 55ch; }
}

@media (max-width: 640px) {
  .ds-shell { width: calc(100% - 40px); }
  .ds-hero, .ds-product-hero { padding-top: 2.5rem; }
  .ds-page .ds-lead { font-size: 1.2rem; }
  .ds-context-map { padding: 1.25rem; }
  .ds-questions, .ds-principles, .ds-use-cases article, .ds-access-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
  .ds-use-cases article { gap: 0.6rem; }
  .ds-context-ports { gap: 2rem; padding: 1.5rem; grid-template-columns: minmax(0, 1fr); }
  .ns-hero-art { min-height: 19rem; }
  .ns-cycle-steps { grid-template-columns: minmax(0, 1fr); grid-template-areas: "understand" "examine" "choose" "learn"; gap: 1.8rem; }
  .ns-cycle-steps li::after, .ns-cycle-steps li:nth-child(2)::after, .ns-cycle-steps li:nth-child(3)::after { content: "↓" / ""; left: 50%; right: auto; top: auto; bottom: -1.65rem; }
  .ns-cycle-steps li:nth-child(4)::after { display: none; }
  .ns-cycle-steps li { padding: 1.2rem; }
  .ns-step-number { float: right; margin: .2rem 0 0 1rem; }
}

@media print {
  .ds-page :is(.ds-context-band, .ds-access-band, .ds-context-map) { background: transparent; }
  .ds-page :is(.ds-hero, .ds-product-hero, .ds-section, .ds-context-band, .ds-access-band, .ds-invitation, .ds-use-case-families) {
    padding-block: 1.5rem;
  }
  .ds-context-map, .ds-case-list article { break-inside: avoid; }
  .ns-cycle, :root[data-theme="dark"] .ns-cycle { --cycle-field: #fff; --cycle-ink: #000; --cycle-muted: #333; break-inside: avoid; }
  .ns-cycle-steps li { border-color: #777; }
  .ns-hero-art { display: none; }
}
