/* ==========================================
   Impulse Campus — articles + calculator
   ========================================== */

/* ---- Articles as campus floors ---- */
body.has-nx-shell .articles-page.nx-articles {
  position: relative;
  z-index: 2;
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}

.campus-page-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  pointer-events: none;
  /* Photo is a hero atmosphere, not wallpaper. Mask dissolves it into
     --nx-bg-void so long-form text sits on the page colour, not a photo. */
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 34%,
    rgba(0, 0, 0, 0.55) 56%,
    transparent 78%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 34%,
    rgba(0, 0, 0, 0.55) 56%,
    transparent 78%
  );
}
.campus-page-stage--cloud { background-position: 40% 48%; }
.campus-page-stage--desk { background-position: 52% 50%; }
.campus-page-stage--studio { background-position: 50% 40%; }
.campus-page-stage--security { background-position: 48% 42%; }
.campus-page-stage--vault { background-position: 36% 50%; }
.campus-page-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 52% at 50% 28%, transparent 18%, color-mix(in oklab, var(--nx-bg-void) 32%, transparent) 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--nx-bg-void) 30%, transparent) 0%, color-mix(in oklab, var(--nx-bg-void) 10%, transparent) 38%, color-mix(in oklab, var(--nx-bg-void) 40%, transparent) 100%);
}
.campus-page-stage::after {
  background:
    radial-gradient(ellipse 70% 52% at 50% 28%, transparent 14%, color-mix(in oklab, var(--nx-bg-void) 42%, transparent) 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--nx-bg-void) 38%, transparent) 0%, color-mix(in oklab, var(--nx-bg-void) 16%, transparent) 38%, color-mix(in oklab, var(--nx-bg-void) 52%, transparent) 100%);
}
@media (max-width: 720px) {
  /* canon bp-md: tighter stage mask on phone */
  .campus-page-stage {
    background-position: center 28%;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0, 0, 0, 0.4) 42%, transparent 62%);
    mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0, 0, 0, 0.4) 42%, transparent 62%);
  }
}

body.has-nx-shell .ap-intro.nx-ap-intro {
  min-height: auto;
  padding: calc(var(--nx-header-offset) + var(--space-4)) 0 var(--space-8);
  position: relative;
  z-index: 2;
}
body.has-nx-shell .ap-intro.nx-ap-intro::before,
body.has-nx-shell .ap-intro.nx-ap-intro::after {
  display: none;
}
body.has-nx-shell .nx-ap-intro .container {
  max-width: var(--container-max);
  padding-left: var(--nx-gutter);
  padding-right: var(--nx-gutter);
}
body.has-nx-shell .nx-ap-intro__panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  padding: clamp(28px, 3.5vw, 36px);
  background: var(--campus-header-bg);
  backdrop-filter: var(--campus-header-blur);
  border: 1px solid var(--nx-border-glass);
  border-radius: var(--nx-radius-xl);
  box-shadow: 0 16px 48px rgba(10, 16, 24, 0.1);
  box-sizing: border-box;
  max-width: 100%;
}

/* Hub, about, and other intros without a chapter list — studio-style hero */
body.has-nx-shell .nx-ap-intro__panel:not(:has(.nx-ap-intro__chapters)) {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(32px, 4vw, 44px) clamp(28px, 4vw, 48px);
}

body.has-nx-shell .nx-ap-intro__panel:not(:has(.nx-ap-intro__chapters)) .nx-eyebrow {
  justify-content: center;
  gap: 0;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: var(--nx-radius-orb);
  border: 1px solid var(--campus-line-dim);
  background: color-mix(in srgb, var(--campus-ink) 5%, transparent);
  font-size: var(--nx-fs-micro, 11px);
  letter-spacing: 0.14em;
}

body.has-nx-shell .nx-ap-intro__panel:not(:has(.nx-ap-intro__chapters)) .nx-eyebrow::before {
  display: none;
}

body.has-nx-shell .nx-ap-intro__panel::before { display: none; }
body.has-nx-shell .nx-ap-intro__title {
  font-size: var(--nx-fs-display, clamp(1.75rem, 3.5vw, 2.5rem));
  font-weight: 600;
  line-height: var(--nx-leading-display, 1.15);
  margin: 0 0 16px;
  color: var(--campus-ink);
  overflow-wrap: break-word;
  max-width: 100%;
}
body.has-nx-shell .nx-ap-intro__brand {
  display: block;
  margin-top: 4px;
  color: var(--campus-ink);
}
body.has-nx-shell .nx-ap-intro__sub {
  color: var(--campus-ink-dim);
  max-width: 58ch;
  margin: 0;
  font-size: var(--nx-fs-body, 1rem);
  line-height: var(--nx-leading-relaxed, 1.68);
  letter-spacing: 0.012em;
  overflow-wrap: break-word;
}

body.has-nx-shell .nx-ap-intro__panel:not(:has(.nx-ap-intro__chapters)) .nx-ap-intro__sub {
  margin-inline: auto;
}

/* Long-form text (about, privacy, terms): same frosted sheet as intro panel.
   Without it, mid-page copy sits on the bright lobby photo and fails contrast. */
body.has-nx-shell .article-content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(44rem, calc(100% - (var(--nx-gutter) * 2)));
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  padding: clamp(24px, 4vw, 40px) clamp(22px, 3.5vw, 36px);
  background: var(--campus-header-bg);
  backdrop-filter: var(--campus-header-blur);
  -webkit-backdrop-filter: var(--campus-header-blur);
  border: 1px solid var(--nx-border-glass);
  border-radius: var(--nx-radius-xl);
  box-shadow: 0 16px 48px rgba(10, 16, 24, 0.12);
  color: var(--campus-ink-dim);
  font-size: var(--nx-fs-body, 1.0625rem);
  line-height: var(--nx-leading-prose, 1.72);
  overflow-wrap: break-word;
}
body.has-nx-shell .article-content h2,
body.has-nx-shell .article-content h3,
body.has-nx-shell .article-content strong {
  color: var(--campus-ink);
}
body.has-nx-shell .article-content p,
body.has-nx-shell .article-content li,
body.has-nx-shell .article-content .article-intro {
  color: var(--campus-ink-dim);
}
body.has-nx-shell .article-content .article-intro {
  border-bottom-color: var(--nx-border-glass, var(--border));
}
body.has-nx-shell .article-content a {
  color: var(--campus-ink);
  text-decoration-color: color-mix(in srgb, var(--campus-impulse, #d4c4a8) 70%, var(--campus-ink));
}
body.has-nx-shell .article-content a:hover {
  color: var(--campus-ink);
  text-decoration-color: var(--campus-impulse, #d4c4a8);
}
body.has-nx-shell .article-content ul li::marker,
body.has-nx-shell .article-content ol li::marker {
  color: var(--campus-impulse, #d4c4a8);
}
/* canon bp-sm: denser sheet padding; width already gutter-aware */
@media (max-width: 560px) {
  body.has-nx-shell .article-content {
    padding: 22px 18px;
  }
  body.has-nx-shell .nx-ap-intro__panel {
    padding: 22px 18px;
  }
}

body.has-nx-shell .nx-ap-intro__chapters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
body.has-nx-shell .nx-ap-intro__chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--nx-tap-min, 44px);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--campus-ink-dim);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.25);
  transition: border-color 220ms, color 220ms, background 220ms;
  font-size: var(--nx-fs-caption, 13px);
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
}
body.has-nx-shell .nx-ap-intro__chip:hover {
  color: var(--campus-ink);
  border-color: rgba(28, 36, 48, 0.4);
  background: rgba(28, 36, 48, 0.08);
}
body.has-nx-shell .nx-ap-intro__chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--nx-border-glass, rgba(255, 255, 255, 0.14));
  color: var(--campus-ink-dim);
}
body.has-nx-shell .nx-ap-intro__chip:hover {
  color: var(--campus-ink);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}
body.has-nx-shell .nx-ap-intro__chip-num {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-micro, 11px);
  color: var(--campus-ink);
  flex-shrink: 0;
}

body.has-nx-shell .chapter-nav {
  position: fixed;
  top: 50%;
  right: max(16px, env(safe-area-inset-right, 0px));
  left: auto;
  bottom: auto;
  transform: none;
  translate: 0 -50%;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(288px, calc(100vw - 32px));
  padding: 14px 14px;
  margin: 0;
  background: var(--campus-header-bg);
  border: 1px solid var(--nx-border-glass);
  border-radius: var(--nx-radius-xl);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 18px 48px rgba(10, 16, 24, 0.12);
  backdrop-filter: var(--campus-header-blur);
  -webkit-backdrop-filter: var(--campus-header-blur);
}
body.has-nx-shell .chapter-nav {
  background: var(--campus-header-bg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 48px rgba(0, 0, 0, 0.35);
}
body.has-nx-shell .chapter-nav__eyebrow {
  font-family: var(--nx-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--campus-mark);
  padding: 0 8px 4px;
}
body.has-nx-shell .chapter-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.has-nx-shell .chapter-nav__dot {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 9px 12px;
  margin: 0;
  border-radius: var(--nx-radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--campus-ink-dim);
  text-decoration: none;
  box-shadow: none;
  transition:
    background 200ms var(--nx-ease-out),
    border-color 200ms var(--nx-ease-out),
    color 200ms var(--nx-ease-out),
    transform 200ms var(--nx-ease-out);
}
body.has-nx-shell .chapter-nav__dot::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 200ms var(--nx-ease-out);
}
body.has-nx-shell .chapter-nav__num {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--campus-mark);
}
body.has-nx-shell .chapter-nav__name {
  font-family: var(--nx-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: inherit;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.has-nx-shell .chapter-nav__dot .dot-num,
body.has-nx-shell .chapter-nav__dot .dot-text {
  display: none !important;
}
body.has-nx-shell .chapter-nav__dot:hover {
  background: color-mix(in srgb, var(--campus-ink) 5%, transparent);
  border-color: var(--campus-line-dim);
  color: var(--campus-ink);
  transform: translateX(-2px);
  width: 100%;
  border-radius: var(--nx-radius-md);
}
body.has-nx-shell .chapter-nav__dot.is-active {
  background: color-mix(in srgb, var(--campus-ink) 7%, transparent);
  border-color: color-mix(in srgb, var(--campus-ink) 18%, transparent);
  color: var(--campus-ink);
  width: 100%;
  border-radius: var(--nx-radius-md);
  box-shadow: none;
}
body.has-nx-shell .chapter-nav__dot.is-active::before {
  background: linear-gradient(
    180deg,
    var(--campus-impulse, #d4c4a8),
    color-mix(in srgb, var(--campus-ink) 55%, var(--campus-impulse, #d4c4a8))
  );
}
body.has-nx-shell .chapter-nav__dot.is-active .chapter-nav__num {
  color: color-mix(in srgb, var(--campus-ink) 50%, var(--campus-impulse, #d4c4a8));
}
body.has-nx-shell .chapter-nav__dot:focus-visible {
  outline: 2px solid var(--campus-ink);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  /* canon bp-xl: chapter-nav label collapse */
  body.has-nx-shell .chapter-nav {
    width: auto;
    min-width: 0;
    padding: 10px;
  }
  body.has-nx-shell .chapter-nav__eyebrow,
  body.has-nx-shell .chapter-nav__name {
    display: none;
  }
  body.has-nx-shell .chapter-nav__dot {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: var(--nx-tap-min, 44px);
    padding: 10px 12px;
  }
  body.has-nx-shell .chapter-nav__dot::before { display: none; }
  body.has-nx-shell .chapter-nav__num {
    font-size: 10px;
  }
  body.has-nx-shell .chapter-nav__dot.is-active {
    background: var(--campus-ink);
  }
  body.has-nx-shell .chapter-nav__dot.is-active .chapter-nav__num {
    color: #f4f6f8;
  }
  body.has-nx-shell .chapter-nav__dot.is-active {
    background: var(--campus-impulse, #d4c4a8);
  }
  body.has-nx-shell .chapter-nav__dot.is-active .chapter-nav__num {
    color: #14181e;
  }}

@media (max-width: 720px) {
  /* canon bp-md: chapter-nav → bottom pill */
  body.has-nx-shell .chapter-nav {
    display: flex;
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    left: 50%;
    right: auto;
    transform: none;
    translate: -50% 0;
    flex-direction: row;
    align-items: center;
    width: auto;
    max-width: calc(100vw - 24px);
    padding: 8px;
    border-radius: 999px;
  }
  body.has-nx-shell .chapter-nav__list {
    flex-direction: row;
    gap: 2px;
  }
  body.has-nx-shell .chapter-nav__dot {
    min-width: var(--nx-tap-min, 44px);
    min-height: var(--nx-tap-min, 44px);
    border-radius: 999px;
  }
  body.has-nx-shell .chapter-nav__dot:hover {
    transform: none;
  }
  body.has-nx-shell .chapter-nav__dot.is-active {
    border-radius: 999px;
  }}

@media (prefers-reduced-motion: reduce) {
  body.has-nx-shell .chapter-nav__dot {
    transition: none;
  }}

body.has-nx-shell .tldr,
body.has-nx-shell .inline-case,
body.has-nx-shell .stage-box,
body.has-nx-shell .ap-outro__inner {
  background: var(--campus-header-bg);
  backdrop-filter: var(--campus-header-blur);
  border: 1px solid var(--nx-border-glass);
  border-radius: var(--nx-radius-lg);
  box-shadow: none;
}
body.has-nx-shell .tldr.tilt-card:hover { transform: none !important; }

@media (max-width: 720px) {
  body.has-nx-shell .ap-outro {
    padding: 12px 0 8px;
  }
  body.has-nx-shell .ap-outro__inner {
    padding: 16px 16px 14px;
    gap: 12px;
    text-align: center;
  }
  body.has-nx-shell .ap-outro__eyebrow {
    display: none;
  }
  body.has-nx-shell .ap-outro__title {
    font-size: 1.12rem;
    line-height: 1.35;
    font-weight: 600;
  }
  body.has-nx-shell .ap-outro__title br {
    display: none;
  }
  body.has-nx-shell .ap-outro__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  body.has-nx-shell .ap-outro__btns .btn-nexus {
    width: 100%;
    min-height: var(--nx-tap-min, 44px);
    justify-content: center;
  }
}
body.has-nx-shell .scroll-progress {
  background: var(--campus-ink);
  height: 2px;
}

@media (max-width: 900px) {
  body.has-nx-shell .nx-ap-intro__panel {
    grid-template-columns: 1fr;
  }
}

@keyframes campus-flash {
  0% { opacity: 0.45; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .campus-page-stage { transition: none; }
}

/* ==========================================
   Service halls — shared chrome (hero / panels / chapter padding)
   P5 owns this shared layer + the P5 shared blocks below.
   P6: edit only the per-hall zones marked «P6 zone» (cloud / studio /
   desk / sec / vault) — unique layouts (rack, duel, format-*, rates, …).
   ========================================== */

.ch-cloud__hero,
.ch-desk__hero,
.ch-sec__hero,
.ch-vault__hero,
.ch-studio__hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 4.5vw, 52px) 0 clamp(36px, 5vw, 56px);
}

.ch-cloud__panel,
.ch-desk__panel,
.ch-sec__panel,
.ch-vault__panel,
.ch-studio__panel {
  width: min(100%, 52rem);
  padding: clamp(28px, 3.5vw, 40px) clamp(28px, 4vw, 48px);
  text-align: center;
  background: var(--campus-header-bg);
  backdrop-filter: var(--campus-header-blur);
  -webkit-backdrop-filter: var(--campus-header-blur);
  border: 1px solid var(--nx-border-glass);
  border-radius: var(--nx-radius-xl);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 18px 48px rgba(10, 16, 24, 0.12);
}

.ch-cloud__panel,
.ch-desk__panel,
.ch-sec__panel,
.ch-vault__panel,
.ch-studio__panel {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 48px rgba(0, 0, 0, 0.35);
}

.ch-cloud__panel .nx-eyebrow,
.ch-desk__panel .nx-eyebrow,
.ch-sec__panel .nx-eyebrow,
.ch-vault__panel .nx-eyebrow,
.ch-studio__panel .nx-eyebrow {
  justify-content: center;
}

.ch-cloud__title,
.ch-desk__title,
.ch-sec__title,
.ch-vault__title,
.ch-studio__title {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--campus-ink);
  margin: 0 auto 14px;
  max-width: 18em;
}

.ch-studio__title-glue {
  white-space: nowrap;
}

.ch-desk__subtitle {
  margin: 0 auto 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--campus-ink) 72%, transparent);
  max-width: 58ch;
}

.ch-cloud__support,
.ch-desk__support,
.ch-sec__support,
.ch-vault__support,
.ch-studio__support {
  margin: 0 auto 20px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--campus-ink-dim);
  max-width: 58ch;
}

.ch-cloud__meta,
.ch-desk__meta,
.ch-sec__meta,
.ch-vault__meta,
.ch-studio__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 0;
  margin-bottom: 12px;
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--campus-ink-dim);
  font-variant-numeric: tabular-nums;
}

.ch-cloud__price,
.ch-desk__price,
.ch-sec__price,
.ch-vault__price,
.ch-studio__price {
  color: var(--campus-ink);
  font-weight: 600;
}

.ch-cloud__meta-sep,
.ch-desk__meta-sep,
.ch-sec__meta-sep,
.ch-vault__meta-sep,
.ch-studio__meta-sep {
  display: inline-block;
  width: 1px;
  height: 10px;
  margin: 0 10px;
  background: var(--campus-line-dim);
  vertical-align: middle;
}

.ch-cloud__actions,
.ch-studio__actions,
.ch-desk__actions,
.ch-sec__actions,
.ch-vault__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.ch-cloud__section-note.ch-cloud__hero-note,
.ch-studio__section-note.ch-studio__hero-note,
.ch-desk__section-note.ch-desk__hero-note,
.ch-sec__section-note.ch-sec__hero-note,
.ch-vault__section-note.ch-vault__hero-note {
  margin: 0 auto;
  max-width: 54ch;
  font-family: var(--nx-font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.012em;
  line-height: var(--nx-leading-relaxed, 1.68);
  color: var(--campus-ink-dim);
}

.ch-desk__section-note.ch-desk__hero-note + .ch-desk__section-note.ch-desk__hero-note,
.ch-vault__section-note.ch-vault__hero-note + .ch-vault__section-note.ch-vault__hero-note,
.ch-studio__section-note.ch-studio__hero-note + .ch-studio__section-note.ch-studio__hero-note,
.ch-cloud__section-note.ch-cloud__hero-note + .ch-cloud__section-note.ch-cloud__hero-note,
.ch-sec__section-note.ch-sec__hero-note + .ch-sec__section-note.ch-sec__hero-note {
  margin-top: 10px;
}

body.has-nx-shell .chapter.chapter--cloud,
body.has-nx-shell .chapter.chapter--desk,
body.has-nx-shell .chapter.chapter--sec,
body.has-nx-shell .chapter.chapter--vault,
body.has-nx-shell .chapter.chapter--studio {
  padding-top: clamp(20px, 3.5vw, 40px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

@media (max-width: 900px) {
  .ch-cloud__panel,
  .ch-desk__panel,
  .ch-sec__panel,
  .ch-vault__panel,
  .ch-studio__panel {
    width: 100%;
  }
}

/* P6: hero panel densify on bp-sm — avoid clipped title/CTA on 375 */
@media (max-width: 560px) {
  .ch-cloud__panel,
  .ch-desk__panel,
  .ch-sec__panel,
  .ch-vault__panel,
  .ch-studio__panel {
    padding: 22px 16px;
  }
  .ch-cloud__title,
  .ch-desk__title,
  .ch-sec__title,
  .ch-vault__title,
  .ch-studio__title {
    font-size: clamp(1.5rem, 7vw, 1.85rem);
  }
}

/* ---- P5 shared: identical across all 5 halls ---- */
.ch-cloud,
.ch-studio,
.ch-desk,
.ch-sec,
.ch-vault {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--nx-gutter);
}
.ch-cloud__fact-k,
.ch-studio__fact-k,
.ch-desk__fact-k,
.ch-sec__fact-k,
.ch-vault__fact-k {
  font-family: var(--nx-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--campus-mark);
  padding: 14px 16px 0;
}
.ch-cloud__facts,
.ch-studio__facts,
.ch-desk__facts,
.ch-sec__facts,
.ch-vault__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.ch-cloud__facts li:hover,
.ch-studio__facts li:hover,
.ch-desk__facts li:hover,
.ch-sec__facts li:hover,
.ch-vault__facts li:hover {
  border-color: color-mix(in srgb, var(--campus-ink) 28%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(10, 16, 24, 0.1);
}
.ch-cloud__facts li:hover .ch-cloud__fact-media img,
.ch-studio__facts li:hover .ch-studio__fact-media img,
.ch-desk__facts li:hover .ch-desk__fact-media img,
.ch-sec__facts li:hover .ch-sec__fact-media img,
.ch-vault__facts li:hover .ch-vault__fact-media img {
  transform: scale(1.04);
}
.ch-cloud__foot-text span,
.ch-studio__foot-text span,
.ch-desk__foot-text span,
.ch-sec__foot-text span,
.ch-vault__foot-text span {
  font-size: 13px;
  color: var(--campus-ink-dim);
}
.ch-cloud__journey,
.ch-studio__journey,
.ch-desk__journey,
.ch-sec__journey,
.ch-vault__journey {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-cloud__journey-time,
.ch-studio__journey-time,
.ch-desk__journey-time,
.ch-sec__journey-time,
.ch-vault__journey-time {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--campus-mark);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.ch-cloud__process,
.ch-studio__process,
.ch-desk__process,
.ch-sec__process,
.ch-vault__process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0; /* M1: grid child must shrink — avoid step text spilling into detail panel */
  width: 100%;
}
.ch-cloud__process > li,
.ch-studio__process > li,
.ch-desk__process > li,
.ch-sec__process > li,
.ch-vault__process > li {
  margin: 0;
  min-width: 0;
}
.ch-cloud__q,
.ch-studio__q,
.ch-desk__q,
.ch-sec__q,
.ch-vault__q {
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.ch-cloud__q-body,
.ch-studio__q-body,
.ch-desk__q-body,
.ch-sec__q-body,
.ch-vault__q-body {
  padding: 0 20px 20px;
  padding-left: calc(20px + 2ch + 14px);
  color: var(--campus-ink);
  font-size: 15px;
  line-height: 1.65;
  max-width: 68ch;
}
.ch-cloud__q-body p,
.ch-studio__q-body p,
.ch-desk__q-body p,
.ch-sec__q-body p,
.ch-vault__q-body p {
  margin: 0;
}
.ch-cloud__q-caret,
.ch-studio__q-caret,
.ch-desk__q-caret,
.ch-sec__q-caret,
.ch-vault__q-caret {
  font-size: 16px;
  color: var(--campus-mark);
  transition: transform 220ms var(--nx-ease-out);
}
.ch-cloud__q-num,
.ch-studio__q-num,
.ch-desk__q-num,
.ch-sec__q-num,
.ch-vault__q-num {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--campus-mark);
}
.ch-cloud__q-sum::-webkit-details-marker,
.ch-studio__q-sum::-webkit-details-marker,
.ch-desk__q-sum::-webkit-details-marker,
.ch-sec__q-sum::-webkit-details-marker,
.ch-vault__q-sum::-webkit-details-marker {
  display: none;
}
.ch-cloud__q[open],
.ch-studio__q[open],
.ch-desk__q[open],
.ch-sec__q[open],
.ch-vault__q[open] {
  border-color: var(--campus-line);
  background: rgba(255, 255, 255, 0.08);
}
.ch-cloud__q[open] .ch-cloud__q-caret,
.ch-studio__q[open] .ch-studio__q-caret,
.ch-desk__q[open] .ch-desk__q-caret,
.ch-sec__q[open] .ch-sec__q-caret,
.ch-vault__q[open] .ch-vault__q-caret {
  transform: rotate(180deg);
}
.ch-cloud__qs,
.ch-studio__qs,
.ch-desk__qs,
.ch-sec__qs,
.ch-vault__qs {
  margin-bottom: clamp(32px, 4vw, 44px);
}
.ch-cloud__section-head,
.ch-studio__section-head,
.ch-desk__section-head,
.ch-sec__section-head,
.ch-vault__section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}
.ch-cloud__section-note,
.ch-studio__section-note,
.ch-desk__section-note,
.ch-sec__section-note,
.ch-vault__section-note {
  margin: 0;
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--campus-mark);
}
.ch-cloud__sheet,
.ch-studio__sheet,
.ch-desk__sheet,
.ch-sec__sheet,
.ch-vault__sheet {
  isolation: isolate;
  margin-top: 4px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px) clamp(36px, 5vw, 48px);
  background: var(--campus-header-bg);
  backdrop-filter: var(--campus-header-blur);
  -webkit-backdrop-filter: var(--campus-header-blur);
  border: 1px solid var(--nx-border-glass);
  border-radius: calc(var(--nx-radius-xl) + 4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 24px 64px rgba(10, 16, 24, 0.12);
}
.ch-cloud__step.is-active,
.ch-studio__step.is-active,
.ch-desk__step.is-active,
.ch-sec__step.is-active,
.ch-vault__step.is-active {
  border-color: var(--campus-ink);
  background: color-mix(in srgb, var(--campus-ink) 6%, #fff);
}
.ch-cloud__step:hover,
.ch-studio__step:hover,
.ch-desk__step:hover,
.ch-sec__step:hover,
.ch-vault__step:hover {
  border-color: color-mix(in srgb, var(--campus-ink) 28%, transparent);
  transform: translateX(3px);
}
.ch-cloud__viz,
.ch-studio__viz,
.ch-desk__viz,
.ch-sec__viz,
.ch-vault__viz {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--campus-ink) 8%, transparent);
}
.ch-cloud__facts li,
.ch-studio__facts li,
.ch-desk__facts li,
.ch-sec__facts li,
.ch-vault__facts li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
body.has-nx-shell .ch-cloud__hero:focus,
body.has-nx-shell .ch-studio__hero:focus,
body.has-nx-shell .ch-desk__hero:focus,
body.has-nx-shell .ch-sec__hero:focus,
body.has-nx-shell .ch-vault__hero:focus {
  outline: none;
}
@media (max-width: 900px) {
  .ch-cloud__facts,
  .ch-studio__facts,
  .ch-desk__facts,
  .ch-sec__facts,
  .ch-vault__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ch-cloud__foot,
  .ch-studio__foot,
  .ch-desk__foot,
  .ch-sec__foot,
  .ch-vault__foot {
    align-items: flex-start;
  }
  .ch-cloud__q-body,
  .ch-studio__q-body,
  .ch-desk__q-body,
  .ch-sec__q-body,
  .ch-vault__q-body {
    padding-left: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ch-cloud__facts li:hover,
  .ch-studio__facts li:hover,
  .ch-desk__facts li:hover,
  .ch-sec__facts li:hover,
  .ch-vault__facts li:hover {
    transform: none;
  }
}

/* ---- P5 shared: identical across desk|studio|sec|vault (cloud diverges — see Cloud Hall / P6) ---- */
.ch-studio__estimate,
.ch-desk__estimate,
.ch-sec__estimate,
.ch-vault__estimate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
  padding: 16px;
  border-radius: var(--nx-radius-md);
  border: 1px solid rgba(20, 28, 40, 0.12);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.ch-studio__estimate .btn-nexus,
.ch-desk__estimate .btn-nexus,
.ch-sec__estimate .btn-nexus,
.ch-vault__estimate .btn-nexus {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 4px;
}
.ch-studio__estimate > div,
.ch-desk__estimate > div,
.ch-sec__estimate > div,
.ch-vault__estimate > div {
  min-width: 0;
}
.ch-studio__estimate-k,
.ch-desk__estimate-k,
.ch-sec__estimate-k,
.ch-vault__estimate-k {
  display: block;
  font-family: var(--nx-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--campus-mark);
  margin-bottom: 6px;
}
.ch-studio__estimate-v,
.ch-studio__estimate-t,
.ch-desk__estimate-v,
.ch-desk__estimate-t,
.ch-sec__estimate-v,
.ch-sec__estimate-t,
.ch-vault__estimate-v,
.ch-vault__estimate-t {
  display: block;
  font-family: var(--nx-font-mono);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--campus-ink);
  word-break: break-word;
}
.ch-studio__fact-media,
.ch-desk__fact-media,
.ch-sec__fact-media,
.ch-vault__fact-media {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
}
.ch-studio__fact-media img,
.ch-desk__fact-media img,
.ch-sec__fact-media img,
.ch-vault__fact-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms var(--nx-ease-out);
}
.ch-studio__fact-v,
.ch-desk__fact-v,
.ch-sec__fact-v,
.ch-vault__fact-v {
  font-family: var(--nx-font-mono);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-variant-numeric: tabular-nums;
  color: var(--campus-ink);
  padding: 6px 16px 16px;
}
.ch-studio__facts li,
.ch-desk__facts li,
.ch-sec__facts li,
.ch-vault__facts li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(20, 28, 40, 0.1);
  border-radius: var(--nx-radius-md);
  transition: transform 220ms var(--nx-ease-out), border-color 220ms, box-shadow 220ms;
}
/* Studio signal cards are shortcuts to the matching format tab */
.ch-studio__fact-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ch-studio__fact-btn .ch-studio__fact-media {
  display: block;
}
.ch-studio__fact-btn:focus-visible {
  outline: 2px solid var(--campus-mark);
  outline-offset: -2px;
  border-radius: var(--nx-radius-md);
}
.ch-studio__foot,
.ch-desk__foot,
.ch-sec__foot,
.ch-vault__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 26px;
  border-radius: var(--nx-radius-lg);
  border: 1px solid var(--campus-line-dim);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--campus-impulse, #d4c4a8) 18%, transparent), transparent 55%),
    color-mix(in srgb, var(--campus-ink) 4%, transparent);
}
.ch-studio__foot-text,
.ch-desk__foot-text,
.ch-sec__foot-text,
.ch-vault__foot-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* P6: foot CTA row wraps cleanly on narrow */
}
.ch-studio__foot-text strong,
.ch-desk__foot-text strong,
.ch-sec__foot-text strong,
.ch-vault__foot-text strong {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--campus-ink);
}
.ch-studio__journey-body,
.ch-desk__journey-body,
.ch-sec__journey-body,
.ch-vault__journey-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--campus-ink-dim);
  max-width: 42ch;
}
.ch-studio__journey-copy,
.ch-desk__journey-copy,
.ch-sec__journey-copy,
.ch-vault__journey-copy {
  padding: 22px;
}
.ch-studio__journey-panel,
.ch-desk__journey-panel,
.ch-sec__journey-panel,
.ch-vault__journey-panel {
  padding: 0;
  overflow: hidden;
  border-radius: var(--nx-radius-lg);
  border: 1px solid var(--campus-line-dim);
  background: rgba(255, 255, 255, 0.42);
  display: flex;
  flex-direction: column;
  min-width: 0; /* M1: detail panel stays in its grid track */
}
.ch-studio__journey-title,
.ch-desk__journey-title,
.ch-sec__journey-title,
.ch-vault__journey-title {
  margin: 0 0 12px;
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
  color: var(--campus-ink);
}
.ch-studio__mock,
.ch-desk__mock,
.ch-sec__mock,
.ch-vault__mock {
  margin: 0;
  min-width: 0;
  min-height: 320px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0e1218;
  isolation: isolate;
  padding: 14px;
}
.ch-studio__mock img,
.ch-desk__mock img,
.ch-sec__mock img,
.ch-vault__mock img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.ch-studio__mock img,
.ch-studio__viz img,
.ch-studio__vs-viz img,
.ch-desk__mock img,
.ch-desk__viz img,
.ch-desk__vs-viz img,
.ch-sec__mock img,
.ch-sec__viz img,
.ch-sec__vs-viz img,
.ch-vault__mock img,
.ch-vault__viz img,
.ch-vault__vs-viz img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms var(--nx-ease-out);
}
.ch-studio__mock img.is-fading,
.ch-studio__viz img.is-fading,
.ch-studio__vs-viz img.is-fading,
.ch-desk__mock img.is-fading,
.ch-desk__viz img.is-fading,
.ch-desk__vs-viz img.is-fading,
.ch-sec__mock img.is-fading,
.ch-sec__viz img.is-fading,
.ch-sec__vs-viz img.is-fading,
.ch-vault__mock img.is-fading,
.ch-vault__viz img.is-fading,
.ch-vault__vs-viz img.is-fading {
  opacity: 0.35;
}
.ch-studio__q-body strong,
.ch-desk__q-body strong,
.ch-sec__q-body strong,
.ch-vault__q-body strong {
  color: var(--campus-ink);
}
.ch-studio__q-sum,
.ch-desk__q-sum,
.ch-sec__q-sum,
.ch-vault__q-sum {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.ch-studio__q-title,
.ch-desk__q-title,
.ch-sec__q-title,
.ch-vault__q-title {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  letter-spacing: -0.02em;
  color: var(--campus-ink);
}
.ch-studio__section-title,
.ch-desk__section-title,
.ch-sec__section-title,
.ch-vault__section-title {
  margin: 0;
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--campus-ink);
  letter-spacing: -0.03em;
}
.ch-studio__signals,
.ch-desk__signals,
.ch-sec__signals,
.ch-vault__signals {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-studio__step,
.ch-desk__step,
.ch-sec__step,
.ch-vault__step {
  width: 100%;
  max-width: 100%;
  min-width: 0; /* M1: <button> min-content must not force grid overflow */
  box-sizing: border-box;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 18px;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.28);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms, background 200ms, transform 200ms;
}
.ch-studio__step-body,
.ch-desk__step-body,
.ch-sec__step-body,
.ch-vault__step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* P6: flex child must shrink — avoid step title overflow on 375 */
  flex: 1 1 auto;
}
.ch-studio__step-num,
.ch-desk__step-num,
.ch-sec__step-num,
.ch-vault__step-num {
  flex-shrink: 0;
  font-family: var(--nx-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: color-mix(in srgb, var(--campus-ink) 45%, var(--campus-impulse, #d4c4a8));
}
.ch-studio__step-sub,
.ch-desk__step-sub,
.ch-sec__step-sub,
.ch-vault__step-sub {
  font-size: 13px;
  color: var(--campus-ink-dim);
  overflow-wrap: break-word;
}
.ch-studio__step-title,
.ch-desk__step-title,
.ch-sec__step-title,
.ch-vault__step-title {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--campus-ink);
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
}
.ch-studio__vs,
.ch-desk__vs,
.ch-sec__vs,
.ch-vault__vs {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-studio__vs-btn,
.ch-desk__vs-btn,
.ch-sec__vs-btn,
.ch-vault__vs-btn {
  border: 0;
  background: transparent;
  color: var(--campus-ink-dim);
  font-family: var(--nx-font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.ch-studio__vs-btn.is-active,
.ch-desk__vs-btn.is-active,
.ch-sec__vs-btn.is-active,
.ch-vault__vs-btn.is-active {
  background: var(--campus-ink);
  color: #f4f6f8;
}
.ch-studio__vs-list,
.ch-desk__vs-list,
.ch-sec__vs-list,
.ch-vault__vs-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ch-studio__vs-list li,
.ch-desk__vs-list li,
.ch-sec__vs-list li,
.ch-vault__vs-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--campus-ink);
  line-height: 1.45;
}
.ch-studio__vs-list li::before,
.ch-desk__vs-list li::before,
.ch-sec__vs-list li::before,
.ch-vault__vs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 1px;
  background: var(--campus-ink);
}
.ch-studio__vs-note,
.ch-desk__vs-note,
.ch-sec__vs-note,
.ch-vault__vs-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--campus-ink-dim);
  padding: 14px 16px;
  border-radius: var(--nx-radius-md);
  border: 1px solid var(--campus-line-dim);
  background: color-mix(in srgb, var(--campus-impulse, #d4c4a8) 12%, transparent);
}
.ch-studio__vs-stage,
.ch-desk__vs-stage,
.ch-sec__vs-stage,
.ch-vault__vs-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: stretch;
}
.ch-studio__vs-sum,
.ch-desk__vs-sum,
.ch-sec__vs-sum,
.ch-vault__vs-sum {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -0.03em;
  color: var(--campus-ink);
  margin-bottom: 16px;
  line-height: 1.25;
}
.ch-studio__vs-toggle,
.ch-desk__vs-toggle,
.ch-sec__vs-toggle,
.ch-vault__vs-toggle {
  display: inline-flex;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  border: 1px solid var(--campus-line-dim);
  background: rgba(255, 255, 255, 0.35);
  gap: 4px;
}
.ch-studio__vs-viz,
.ch-desk__vs-viz,
.ch-sec__vs-viz,
.ch-vault__vs-viz {
  margin: 0;
  min-height: 240px;
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--campus-line-dim);
}
.ch-studio__vs[data-mode="template"] .ch-studio__vs-note,
.ch-desk__vs[data-mode="template"] .ch-desk__vs-note,
.ch-sec__vs[data-mode="template"] .ch-sec__vs-note,
.ch-vault__vs[data-mode="template"] .ch-vault__vs-note {
  background: color-mix(in srgb, var(--campus-ink) 5%, transparent);
}
.ch-studio__estimate,
.ch-desk__estimate,
.ch-sec__estimate,
.ch-vault__estimate {
  background: #0f141c;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.ch-studio__journey-panel,
.ch-desk__journey-panel,
.ch-sec__journey-panel,
.ch-vault__journey-panel {
  background: rgba(255,255,255,0.04);
}
.ch-studio__q,
.ch-desk__q,
.ch-sec__q,
.ch-vault__q {
  background: rgba(255,255,255,0.04);
}
.ch-studio__step,
.ch-desk__step,
.ch-sec__step,
.ch-vault__step {
  background: rgba(255,255,255,0.04);
}
.ch-studio__step.is-active,
.ch-desk__step.is-active,
.ch-sec__step.is-active,
.ch-vault__step.is-active {
  background: rgba(255,255,255,0.08);
}
.ch-studio__vs-btn.is-active,
.ch-desk__vs-btn.is-active,
.ch-sec__vs-btn.is-active,
.ch-vault__vs-btn.is-active {
  background: var(--campus-impulse, #d4c4a8);
  color: #14181e;
}
.ch-studio__vs-toggle,
.ch-desk__vs-toggle,
.ch-sec__vs-toggle,
.ch-vault__vs-toggle {
  background: rgba(255,255,255,0.05);
}
@media (max-width: 900px) {
  .ch-studio__mock,
  .ch-desk__mock,
  .ch-sec__mock,
  .ch-vault__mock {
    min-height: 240px;
      padding: 12px;
  }
}

/* ---- P5 shared: plan-* chrome identical across desk|sec|vault (studio uses format-*; polish in P6) ---- */
/* M1: all halls share journey grid here — P6 must not re-assert columns after the ≤900 stack MQ */
.ch-cloud__journey-layout,
.ch-studio__journey-layout,
.ch-desk__journey-layout,
.ch-sec__journey-layout,
.ch-vault__journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
}
/* P6: identical journey-note (desk|sec) — vault keeps its own in P6 zone */
.ch-desk__journey-note,
.ch-sec__journey-note {
  margin: 16px 0 0;
  max-width: 52ch;
  font-family: var(--nx-font-body);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--campus-ink-dim);
}
.ch-desk__plan,
.ch-sec__plan,
.ch-vault__plan {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-desk__plan-body,
.ch-sec__plan-body,
.ch-vault__plan-body {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--campus-ink-dim);
  max-width: 52ch;
}
.ch-desk__plan-copy,
.ch-sec__plan-copy,
.ch-vault__plan-copy {
  min-width: 0;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  background: #f7f8fa;
  border-left: 1px solid var(--campus-line-dim);
  color: var(--campus-ink);
  z-index: 1;
}
.ch-desk__plan-kicker,
.ch-sec__plan-kicker,
.ch-vault__plan-kicker {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--campus-mark);
  margin-bottom: 8px;
}
.ch-desk__plan-label,
.ch-sec__plan-label,
.ch-vault__plan-label {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.ch-desk__plan-layout,
.ch-sec__plan-layout,
.ch-vault__plan-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}
.ch-desk__plan-num,
.ch-sec__plan-num,
.ch-vault__plan-num {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--campus-mark);
}
.ch-desk__plan-points,
.ch-sec__plan-points,
.ch-vault__plan-points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-desk__plan-points li,
.ch-sec__plan-points li,
.ch-vault__plan-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--campus-ink);
}
.ch-desk__plan-points li::before,
.ch-sec__plan-points li::before,
.ch-vault__plan-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 1px;
  background: var(--campus-ink);
}
.ch-desk__plan-stage,
.ch-sec__plan-stage,
.ch-vault__plan-stage {
  display: grid;
  /* P6: minmax(0,…) — former 260px min could force overflow if stage stayed dual-col */
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.72fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  background: #f4f5f7;
}
.ch-desk__plan-tab,
.ch-sec__plan-tab,
.ch-vault__plan-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 108px;
  min-width: 0; /* P6: grid item shrink */
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.28);
  color: var(--campus-ink);
  transition: border-color 200ms, background 200ms, transform 200ms, box-shadow 200ms;
}
.ch-desk__plan-tab em,
.ch-sec__plan-tab em,
.ch-vault__plan-tab em {
  font-style: normal;
  font-family: var(--nx-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--campus-mark);
  margin-top: auto;
  padding-top: 8px;
}
.ch-desk__plan-tab.is-active,
.ch-sec__plan-tab.is-active,
.ch-vault__plan-tab.is-active {
  border-color: var(--campus-ink);
  background: color-mix(in srgb, var(--campus-ink) 6%, #fff);
  box-shadow: 0 12px 28px rgba(10, 16, 24, 0.08);
}
.ch-desk__plan-tab:hover,
.ch-sec__plan-tab:hover,
.ch-vault__plan-tab:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--campus-ink) 28%, transparent);
}
.ch-desk__plan-tabs,
.ch-sec__plan-tabs,
.ch-vault__plan-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ch-desk__plan-title,
.ch-sec__plan-title,
.ch-vault__plan-title {
  margin: 0 0 10px;
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.03em;
  color: var(--campus-ink);
}
.ch-desk__plan-copy,
.ch-sec__plan-copy,
.ch-vault__plan-copy {
  background: #161c26;
  border-left-color: rgba(255, 255, 255, 0.1);
}
.ch-desk__plan-stage,
.ch-sec__plan-stage,
.ch-vault__plan-stage {
  background: #121820;
}
.ch-desk__plan-tab,
.ch-sec__plan-tab,
.ch-vault__plan-tab {
  background: rgba(255,255,255,0.04);
}
.ch-desk__plan-tab.is-active,
.ch-sec__plan-tab.is-active,
.ch-vault__plan-tab.is-active {
  background: rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
  .ch-desk__plan-copy,
  .ch-sec__plan-copy,
  .ch-vault__plan-copy {
    border-left: 0;
      border-top: 1px solid var(--campus-line-dim);
  }
  .ch-desk__plan-stage,
    .ch-desk__journey-layout,
    .ch-desk__vs-stage,
  .ch-sec__plan-stage,
    .ch-sec__journey-layout,
    .ch-sec__vs-stage,
  .ch-vault__plan-stage,
    .ch-vault__journey-layout,
    .ch-vault__vs-stage {
    grid-template-columns: 1fr;
  }
  .ch-desk__plan-tabs,
  .ch-sec__plan-tabs,
  .ch-vault__plan-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ch-desk__facts li,
    .ch-desk__fact-media img,
    .ch-desk__plan-tab,
    .ch-desk__step,
    .ch-desk__q-caret,
  .ch-sec__facts li,
    .ch-sec__fact-media img,
    .ch-sec__plan-tab,
    .ch-sec__step,
    .ch-sec__q-caret,
  .ch-vault__facts li,
    .ch-vault__fact-media img,
    .ch-vault__plan-tab,
    .ch-vault__step,
    .ch-vault__q-caret {
    transition: none;
  }
  .ch-desk__plan-stage.is-swap,
    .ch-desk__journey-panel.is-swap,
  .ch-sec__plan-stage.is-swap,
    .ch-sec__journey-panel.is-swap,
  .ch-vault__plan-stage.is-swap,
    .ch-vault__journey-panel.is-swap {
    animation: none;
  }
}

/* ---- P5 shared MQ: patterns that were bundled with hall-specific siblings ---- */
@media (max-width: 900px) {
  .ch-cloud__journey-layout,
  .ch-studio__journey-layout,
  .ch-desk__journey-layout,
  .ch-sec__journey-layout,
  .ch-vault__journey-layout {
    grid-template-columns: 1fr;
  }
  .ch-studio__vs-stage,
  .ch-desk__vs-stage,
  .ch-sec__vs-stage,
  .ch-vault__vs-stage {
    grid-template-columns: 1fr;
  }
  /* M1: no sideways nudge into the former 2-col neighbor on phone */
  .ch-cloud__step:hover,
  .ch-studio__step:hover,
  .ch-desk__step:hover,
  .ch-sec__step:hover,
  .ch-vault__step:hover {
    transform: none;
  }
}
/* P6 shared micro-fix: tap ≥ --nx-tap-min (vs toggle + journey steps) — one place, not 4× copy */
@media (max-width: 900px), (pointer: coarse) {
  .ch-studio__vs-btn,
  .ch-desk__vs-btn,
  .ch-sec__vs-btn,
  .ch-vault__vs-btn {
    min-height: var(--nx-tap-min, 44px);
  }
  .ch-cloud__step,
  .ch-studio__step,
  .ch-desk__step,
  .ch-sec__step,
  .ch-vault__step {
    min-height: var(--nx-tap-min, 44px);
  }
}

/* M3: compact category pick — shell; show/hide MQ lives AFTER hall display:grid
   rules (those later `display: grid` were overriding an earlier display:none). */
.ch-hall-pick {
  display: none;
  position: relative;
  min-width: 0;
  z-index: 4;
}
.ch-hall-pick__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--campus-mark);
}
.ch-hall-pick__select {
  /* Kept in DOM for *-hall.js; UI is .ch-hall-pick__trigger + menu */
  display: none;
}
.ch-hall-pick__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: var(--nx-tap-min, 44px);
  padding: 14px 16px;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(12, 16, 22, 0.72);
  color: var(--campus-ink);
  font-family: var(--nx-font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.ch-hall-pick__trigger:hover {
  border-color: color-mix(in srgb, var(--campus-ink) 28%, transparent);
}
.ch-hall-pick__trigger:focus-visible {
  outline: 2px solid var(--campus-impulse, #d4c4a8);
  outline-offset: 2px;
}
.ch-hall-pick.is-open .ch-hall-pick__trigger {
  border-color: color-mix(in srgb, var(--campus-impulse, #d4c4a8) 55%, transparent);
  background:
    linear-gradient(165deg, rgba(212, 196, 168, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(12, 16, 22, 0.88);
}
.ch-hall-pick__value {
  min-width: 0;
  flex: 1;
}
.ch-hall-pick__trigger .ph {
  flex: none;
  font-size: 0.95rem;
  color: var(--campus-mark);
  transition: transform 180ms ease;
}
.ch-hall-pick.is-open .ch-hall-pick__trigger .ph {
  transform: rotate(180deg);
}
.ch-hall-pick__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: min(62vh, 420px);
  overflow: auto;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background: #121820;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  z-index: 6;
  -webkit-overflow-scrolling: touch;
}
.ch-hall-pick__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: var(--nx-tap-min, 44px);
  padding: 12px 12px;
  border: 1px solid transparent;
  border-radius: calc(var(--nx-radius-md) - 2px);
  color: var(--campus-ink);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.ch-hall-pick__option:hover,
.ch-hall-pick__option:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.ch-hall-pick__option.is-on {
  border-color: color-mix(in srgb, var(--campus-impulse, #d4c4a8) 45%, transparent);
  background: rgba(212, 196, 168, 0.1);
}
.ch-hall-pick__num {
  flex: none;
  margin-top: 2px;
  font-family: var(--nx-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--campus-ink) 45%, var(--campus-impulse, #d4c4a8));
}
.ch-hall-pick__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ch-hall-pick__opt-label {
  font-family: var(--nx-font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ch-hall-pick__opt-sub {
  font-family: var(--nx-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--campus-ink-dim);
  line-height: 1.35;
}
@media (max-width: 560px) {
  .ch-cloud__facts,
  .ch-studio__facts,
  .ch-desk__facts,
  .ch-sec__facts,
  .ch-vault__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* Decorative stage photos next to tabs / duel / vs — keep copy, drop tall art */
  .ch-cloud__viz,
  .ch-studio__viz,
  .ch-desk__viz,
  .ch-sec__viz,
  .ch-vault__viz,
  .ch-cloud__duel-viz,
  .ch-desk__mock,
  .ch-sec__mock,
  .ch-vault__mock,
  .ch-studio__mock,
  .ch-desk__vs-viz,
  .ch-studio__vs-viz,
  .ch-sec__vs-viz,
  .ch-vault__vs-viz {
    display: none !important;
  }

  /* Room for bottom chapter pills */
  body.has-nx-shell .articles-page.nx-articles.articles-page--detail {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  /* P6: densify sheet + stack estimate / plan tabs / vs toggle */
  .ch-cloud__sheet,
  .ch-studio__sheet,
  .ch-desk__sheet,
  .ch-sec__sheet,
  .ch-vault__sheet {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ch-studio__estimate,
  .ch-desk__estimate,
  .ch-sec__estimate,
  .ch-vault__estimate {
    grid-template-columns: 1fr;
  }
  .ch-desk__plan-tabs,
  .ch-sec__plan-tabs,
  .ch-vault__plan-tabs {
    grid-template-columns: 1fr;
  }
  .ch-studio__vs-toggle,
  .ch-desk__vs-toggle,
  .ch-sec__vs-toggle,
  .ch-vault__vs-toggle {
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
  }
  .ch-studio__vs-btn,
  .ch-desk__vs-btn,
  .ch-sec__vs-btn,
  .ch-vault__vs-btn {
    flex: 1 1 auto;
  }
  .ch-studio__foot,
  .ch-desk__foot,
  .ch-sec__foot,
  .ch-vault__foot,
  .ch-cloud__foot {
    padding: 18px 16px;
  }
  .ch-cloud__node-copy,
  .ch-cloud__journey-copy,
  .ch-studio__format-copy,
  .ch-studio__journey-copy,
  .ch-desk__plan-copy,
  .ch-desk__journey-copy,
  .ch-sec__plan-copy,
  .ch-sec__journey-copy,
  .ch-vault__plan-copy,
  .ch-vault__journey-copy {
    padding: 16px;
  }
  /* M1: room for «Прототип» / «Разработка» inside the step card on 375 */
  .ch-cloud__step,
  .ch-studio__step,
  .ch-desk__step,
  .ch-sec__step,
  .ch-vault__step {
    gap: 12px;
    padding: 16px 14px;
  }
}

/* ==========================================
   Cloud Hall — P6 zone (hall-specific) — articles #chapter-1
   Spacious interactive service floor
   ========================================== */

body.has-nx-shell .chapter.chapter--cloud::before {
  display: none;
}

/* ---- Hero: shared panel styles above ---- */

.ch-cloud__meta-note,
.ch-cloud__journey-note {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--campus-ink) 62%, transparent);
  max-width: 52ch;
}
.ch-cloud__journey-note {
  margin-top: 16px;
}

/* ---- Sheet ---- */

.ch-cloud__sheet {
  background: var(--campus-header-bg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.35);
}

.ch-cloud__section-title {
  margin: 0;
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--campus-ink);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* ---- Compact signal facts ---- */
.ch-cloud__tldr {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}

.ch-cloud__facts li {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(20, 28, 40, 0.1);
  border-radius: var(--nx-radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-height: 0;
  transition: border-color 220ms var(--nx-ease-out), transform 220ms var(--nx-ease-out), box-shadow 220ms var(--nx-ease-out);
}

.ch-cloud__fact-media {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--campus-ink) 8%, transparent);
}
.ch-cloud__fact-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 480ms var(--nx-ease-out);
}

.ch-cloud__fact-v {
  font-family: var(--nx-font-mono);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--campus-ink);
  padding: 6px 16px 16px;
}

/* ---- Interactive rack ---- */
.ch-cloud__rack {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-cloud__rack-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: stretch;
}
.ch-cloud__nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ch-cloud__node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.28);
  color: var(--campus-ink);
  transition:
    border-color 220ms var(--nx-ease-out),
    background 220ms var(--nx-ease-out),
    transform 220ms var(--nx-ease-out),
    box-shadow 220ms var(--nx-ease-out);
}
.ch-cloud__node i {
  font-size: 1.35rem;
  color: var(--campus-mark);
  margin-bottom: 6px;
  transition: color 220ms var(--nx-ease-out);
}
.ch-cloud__node span {
  font-family: var(--nx-font-display);
  font-size: 1.15rem;
  line-height: 1.2;
}
.ch-cloud__node em {
  font-style: normal;
  font-family: var(--nx-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--campus-mark);
}
.ch-cloud__node:hover {
  border-color: color-mix(in srgb, var(--campus-ink) 28%, transparent);
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
.ch-cloud__node.is-active {
  border-color: var(--campus-ink);
  background: color-mix(in srgb, var(--campus-ink) 6%, #fff);
  box-shadow: 0 10px 28px rgba(10, 16, 24, 0.08);
}
.ch-cloud__node.is-active i {
  color: color-mix(in srgb, var(--campus-ink) 55%, var(--campus-impulse, #d4c4a8));
}
.ch-cloud__node:focus-visible {
  outline: 2px solid var(--campus-ink);
  outline-offset: 2px;
}
.ch-cloud__node {
  background: rgba(255, 255, 255, 0.04);
}
.ch-cloud__node:hover,
.ch-cloud__node.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.ch-cloud__node-panel {
  padding: 0;
  overflow: hidden;
  border-radius: var(--nx-radius-lg);
  border: 1px solid var(--campus-line-dim);
  background: rgba(255, 255, 255, 0.42);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.ch-cloud__node-panel {
  background: rgba(255, 255, 255, 0.04);
}

.ch-cloud__viz img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms var(--nx-ease-out), transform 480ms var(--nx-ease-out);
}
.ch-cloud__viz img.is-fading {
  opacity: 0.35;
}
.ch-cloud__node-copy,
.ch-cloud__journey-copy {
  padding: 22px 22px 24px;
}
.ch-cloud__node-panel.is-swap,
.ch-cloud__journey-panel.is-swap {
  animation: chCloudSwap 280ms var(--nx-ease-out);
}
@keyframes chCloudSwap {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.ch-cloud__node-kicker {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--campus-mark);
  margin-bottom: 10px;
}
.ch-cloud__node-title {
  margin: 0 0 12px;
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--campus-ink);
}
.ch-cloud__node-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--campus-ink-dim);
  max-width: 36ch;
}

/* ---- Cost duel ---- */
.ch-cloud__duel {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-cloud__duel-toggle {
  display: inline-flex;
  padding: 4px;
  margin-bottom: 28px;
  border-radius: 999px;
  border: 1px solid var(--campus-line-dim);
  background: rgba(255, 255, 255, 0.35);
  gap: 4px;
}
.ch-cloud__duel-toggle {
  background: rgba(255, 255, 255, 0.05);
}
.ch-cloud__duel-btn {
  border: 0;
  background: transparent;
  color: var(--campus-ink-dim);
  font-family: var(--nx-font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.ch-cloud__duel-btn.is-active {
  background: var(--campus-ink);
  color: #f4f6f8;
}
.ch-cloud__duel-btn.is-active {
  background: var(--campus-impulse, #d4c4a8);
  color: #14181e;
}
.ch-cloud__duel-btn:focus-visible {
  outline: 2px solid var(--campus-ink);
  outline-offset: 2px;
}
.ch-cloud__duel-stage {
  display: grid;
  /* P6: minmax(0,…) — avoid 220px floor forcing overflow if dual-col */
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.55fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}
.ch-cloud__duel-viz {
  margin: 0;
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--campus-line-dim);
  background: color-mix(in srgb, var(--campus-ink) 8%, transparent);
  min-height: 220px;
}
.ch-cloud__duel-viz img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms var(--nx-ease-out);
}
.ch-cloud__duel-viz img.is-fading {
  opacity: 0.35;
}
.ch-cloud__bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
  min-height: 220px;
}
.ch-cloud__bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 180px;
}
.ch-cloud__bar-fill {
  display: block;
  width: 100%;
  border-radius: 12px 12px 6px 6px;
  background: color-mix(in srgb, var(--campus-ink) 14%, transparent);
  transition: height 420ms var(--nx-ease-out), background 280ms;
}
.ch-cloud__bar--staff .ch-cloud__bar-fill { height: 100%; }
.ch-cloud__bar--impulse .ch-cloud__bar-fill { height: 39%; }
.ch-cloud__bar.is-hot .ch-cloud__bar-fill {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--campus-impulse-bright, #e8d9b8) 75%, #fff),
    color-mix(in srgb, var(--campus-impulse, #d4c4a8) 55%, var(--campus-ink))
  );
}
.ch-cloud__duel[data-mode="staff"] .ch-cloud__bar--staff .ch-cloud__bar-fill {
  background: linear-gradient(180deg, rgba(28, 36, 48, 0.35), rgba(28, 36, 48, 0.75));
}
.ch-cloud__duel[data-mode="staff"] .ch-cloud__bar--impulse .ch-cloud__bar-fill {
  background: color-mix(in srgb, var(--campus-ink) 10%, transparent);
}
.ch-cloud__bar-label {
  margin-top: 10px;
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--campus-mark);
  text-align: center;
}
.ch-cloud__duel-sum {
  font-family: var(--nx-font-mono);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--campus-ink);
  margin-bottom: 12px;
}
.ch-cloud__duel-lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--campus-ink-dim);
  max-width: 42ch;
}
.ch-cloud__duel-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-cloud__duel-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--campus-ink);
}
.ch-cloud__duel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 1px;
  background: var(--campus-ink);
}
.ch-cloud__duel-save {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--campus-ink-dim);
  padding: 14px 16px;
  border-radius: var(--nx-radius-md);
  border: 1px solid var(--campus-line-dim);
  background: color-mix(in srgb, var(--campus-impulse, #d4c4a8) 14%, transparent);
}
.ch-cloud__duel-save strong { color: var(--campus-ink); }

/* ---- Journey ---- */

/* Columns live in shared P5 block; only gap/align differ here (M1: do not re-assert grid-template-columns) */
.ch-cloud__journey-layout {
  gap: 24px;
  align-items: stretch;
}

.ch-cloud__step {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 18px;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.28);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 220ms var(--nx-ease-out),
    background 220ms var(--nx-ease-out),
    transform 220ms var(--nx-ease-out);
}

.ch-cloud__step {
  background: rgba(255, 255, 255, 0.04);
}
.ch-cloud__step.is-active {
  background: rgba(255, 255, 255, 0.08);
}
.ch-cloud__step:focus-visible {
  outline: 2px solid var(--campus-ink);
  outline-offset: 2px;
}
.ch-cloud__step-num {
  flex-shrink: 0;
  font-family: var(--nx-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--campus-ink) 45%, var(--campus-impulse, #d4c4a8));
}
.ch-cloud__step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.ch-cloud__step-title {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--campus-ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: normal;
  overflow-wrap: break-word;
}
.ch-cloud__step-sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--campus-ink-dim);
  overflow-wrap: break-word;
}
.ch-cloud__journey-panel {
  padding: 0;
  overflow: hidden;
  border-radius: var(--nx-radius-lg);
  border: 1px solid var(--campus-line-dim);
  background: rgba(255, 255, 255, 0.42);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}
.ch-cloud__journey-panel {
  background: rgba(255, 255, 255, 0.04);
}

.ch-cloud__journey-title {
  margin: 0 0 12px;
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--campus-ink);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.ch-cloud__journey-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--campus-ink-dim);
  max-width: 40ch;
}

/* ---- FAQ ---- */

.ch-cloud__q {
  background: rgba(255, 255, 255, 0.04);
}

.ch-cloud__q-sum {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.ch-cloud__q-sum:focus-visible {
  outline: 2px solid var(--campus-ink);
  outline-offset: -2px;
}

.ch-cloud__q-title {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--campus-ink);
}

.ch-cloud__q-body strong { color: var(--campus-ink); font-weight: 600; }

/* ---- Footer CTA ---- */
.ch-cloud__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 26px;
  margin-top: 8px;
  border-radius: var(--nx-radius-lg);
  border: 1px solid var(--campus-line-dim);
  background: color-mix(in srgb, var(--campus-ink) 4%, transparent);
}
.ch-cloud__foot-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ch-cloud__foot-text strong {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--campus-ink);
}

/* Chapter heroes are hash targets (tabindex=-1) — no focus ring on jump */

@media (max-width: 900px) {
  .ch-cloud__rack-layout,
  .ch-cloud__duel-stage {
    grid-template-columns: 1fr;
  }
  .ch-cloud__duel-viz { min-height: 180px; aspect-ratio: 16 / 10; }
  .ch-cloud__bars {
    min-height: 160px;
    order: 2;
  }
  .ch-cloud__duel-copy { order: 3; }
  .ch-cloud__duel-viz { order: 1; }
  .ch-cloud__bar { min-height: 140px; }
}

/* P6: duel toggle tap ≥ --nx-tap-min on coarse / ≤bp-lg */
@media (max-width: 900px), (pointer: coarse) {
  .ch-cloud__duel-btn {
    min-height: var(--nx-tap-min, 44px);
  }
}

@media (max-width: 560px) {
  .ch-cloud__nodes { grid-template-columns: 1fr; }
  .ch-cloud__duel-toggle {
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
  }
  .ch-cloud__duel-btn {
    flex: 1 1 auto;
  }
  .ch-cloud__node {
    padding: 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ch-cloud__q-caret,
  .ch-cloud__step,
  .ch-cloud__node,
  .ch-cloud__bar-fill,
  .ch-cloud__facts li,
  .ch-cloud__fact-media img { transition: none; }
  
  .ch-cloud__facts li:hover .ch-cloud__fact-media img { transform: none; }
  .ch-cloud__node-panel.is-swap,
  .ch-cloud__journey-panel.is-swap { animation: none; }
}

/* ==========================================
   Build Studio — P6 zone (hall-specific) — articles #chapter-2
   Conversion-led product floor
   ========================================== */

body.has-nx-shell .chapter.chapter--studio::before { display: none; }

/* ---- Hero: shared panel styles above ---- */

/* Signals */

/* Format picker */
.ch-studio__format {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-studio__format-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}
.ch-studio__format-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ch-studio__format-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 108px;
  min-width: 0; /* P6: grid item shrink */
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.28);
  color: var(--campus-ink);
  transition: border-color 200ms, background 200ms, transform 200ms, box-shadow 200ms;
}
.ch-studio__format-tab em {
  font-style: normal;
  font-family: var(--nx-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--campus-mark);
  margin-top: auto;
  padding-top: 8px;
}
.ch-studio__format-num {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--campus-mark);
}
.ch-studio__format-label {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.ch-studio__format-tab:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--campus-ink) 28%, transparent);
}
.ch-studio__format-tab.is-active {
  border-color: var(--campus-ink);
  background: color-mix(in srgb, var(--campus-ink) 6%, #fff);
  box-shadow: 0 12px 28px rgba(10, 16, 24, 0.08);
}
.ch-studio__format-tab { background: rgba(255,255,255,0.04); }
.ch-studio__format-tab.is-active { background: rgba(255,255,255,0.08); }

.ch-studio__format-stage {
  display: grid;
  /* P6: minmax(0,…) — former 260px min unsafe if dual-col on narrow */
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.72fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  background: #f4f5f7;
}
.ch-studio__format-stage {
  background: #121820;
}
.ch-studio__format-stage.is-swap,
.ch-studio__journey-panel.is-swap {
  animation: chStudioSwap 280ms var(--nx-ease-out);
}
@keyframes chStudioSwap {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Сцена формата: либо PNG-мок, либо живая модель в iframe */
.ch-studio__stage-media {
  min-width: 0;
  display: grid;
  align-content: stretch;
}
.ch-studio__stage-media > [hidden] { display: none; }

.ch-studio__exhibit {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #0e1218;
}
.ch-studio__exhibit-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ch-studio__exhibit-name {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--campus-ink-dim);
}
.ch-studio__exhibit-screens {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ch-studio__exhibit-screen {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--campus-ink-dim);
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}
.ch-studio__exhibit-screen.is-active {
  border-color: var(--campus-line);
  background: rgba(255, 255, 255, 0.12);
  color: var(--campus-ink);
}
.ch-studio__exhibit-frame {
  flex: 1 1 auto;
  min-height: 460px;
  background: #f4f6f9;
}
.ch-studio__exhibit-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}
.ch-studio__exhibit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ch-studio__exhibit-badge {
  padding: 3px 9px;
  border: 1px dashed rgba(224, 196, 128, 0.5);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #e0c480;
}
.ch-studio__exhibit-open {
  color: var(--campus-ink);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ch-studio__exhibit-hint {
  display: none;
  margin: 0;
  padding: 0 12px 12px;
  color: var(--campus-ink-dim);
  font-size: 12px;
}

.ch-studio__format-copy {
  min-width: 0;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  background: #f7f8fa;
  border-left: 1px solid var(--campus-line-dim);
  color: var(--campus-ink);
  z-index: 1;
}
.ch-studio__format-copy {
  background: #161c26;
  border-left-color: rgba(255, 255, 255, 0.1);
}
.ch-studio__format-kicker {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--campus-mark);
  margin-bottom: 8px;
}
.ch-studio__format-title {
  margin: 0 0 10px;
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.03em;
  color: var(--campus-ink);
}
.ch-studio__format-body {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--campus-ink-dim);
  max-width: 52ch;
}
.ch-studio__format-points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-studio__format-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--campus-ink);
}
.ch-studio__format-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 1px;
  background: var(--campus-ink);
}

.ch-studio__format-note {
  margin: 16px 0 0;
  max-width: 48ch;
  font-family: var(--nx-font-body);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--campus-ink-dim);
}

/* Journey */

/* Columns live in shared P5 block (M1: do not re-assert grid-template-columns after ≤900 MQ) */
.ch-studio__journey-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* VS */

/* Care: чужой сайт — заявка инженеру, карточка по центру листа */
.ch-studio__care {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-studio__care .ch-studio__section-head {
  align-items: center;
  width: 100%;
  max-width: 40rem;
  text-align: center;
}
.ch-studio__care-card {
  width: min(40rem, 100%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.04);
}
.ch-studio__care-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--campus-ink-dim);
}
.ch-studio__care-body a,
.ch-studio__care-consent a,
.ch-studio__q-body a,
.ch-studio__contour-foot a,
.ch-cloud__hero-note a,
.ch-cloud__q-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ch-studio__care-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.ch-studio__care-form[hidden],
.ch-studio__care-ok[hidden],
.ch-studio__care-error[hidden] {
  display: none !important;
}
.ch-studio__care-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ch-studio__care-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.ch-studio__care-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.ch-studio__care-label {
  font-size: 13px;
  line-height: 1.3;
  color: var(--campus-ink);
}
.ch-studio__care-input {
  width: 100%;
  min-width: 0;
  min-height: var(--nx-tap-min, 44px);
  padding: 10px 12px;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--campus-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.ch-studio__care-input:focus {
  outline: 2px solid var(--campus-impulse, #d4c4a8);
  outline-offset: 2px;
}
.ch-studio__care-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ch-studio__care-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--nx-tap-min, 44px);
  padding: 8px 14px;
  border: 1px solid var(--campus-line-dim);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--campus-ink);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
.ch-studio__care-opt input {
  flex: none;
  margin: 0;
  accent-color: var(--campus-impulse, #d4c4a8);
}
.ch-studio__care-opt:hover {
  border-color: color-mix(in srgb, var(--campus-ink) 28%, transparent);
}
.ch-studio__care-opt:focus-within {
  outline: 2px solid var(--campus-impulse, #d4c4a8);
  outline-offset: 2px;
}
.ch-studio__care-opt:has(input:checked) {
  border-color: var(--campus-line);
  background: rgba(255, 255, 255, 0.1);
}
.ch-studio__care-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--campus-ink-dim);
}
.ch-studio__care-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--campus-impulse, #d4c4a8);
}
.ch-studio__care-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #f0b4b4;
}
.ch-studio__care-ok {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--campus-ink);
}
.ch-studio__care-form .btn-nexus {
  width: 100%;
  min-height: var(--nx-tap-min, 44px);
}
#studio-care,
#studio-contour,
#studio-estimate,
#studio-retain,
#studio-format {
  scroll-margin-top: calc(var(--nx-header-offset, 72px) + 12px);
}
.ch-studio__format-care {
  display: inline-flex;
  align-items: center;
  min-height: var(--nx-tap-min, 44px);
  margin-top: 10px;
  color: var(--campus-ink);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ch-studio__format-care[hidden] {
  display: none;
}
.ch-studio__journey-note {
  margin: 0;
  max-width: 42ch;
  font-family: var(--nx-font-body);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--campus-ink-dim);
}

/* Контур: хостинг / бэкап / кабинет — не четвёртая «отрасль» и не SEO/AI */
.ch-studio__contour {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-studio__contour-lead {
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--campus-ink-dim);
}
.ch-studio__contour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ch-studio__contour-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 18px;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
button.ch-studio__contour-tile {
  width: 100%;
}
.ch-studio__contour-tile:hover {
  border-color: color-mix(in srgb, var(--campus-ink) 28%, transparent);
  background: rgba(255, 255, 255, 0.08);
}
.ch-studio__contour-tile:focus-visible {
  outline: 2px solid var(--campus-impulse, #d4c4a8);
  outline-offset: 2px;
}
.ch-studio__contour-k {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--campus-mark);
}
.ch-studio__contour-title {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
  color: var(--campus-ink);
}
.ch-studio__contour-body {
  margin: 0;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--campus-ink-dim);
}
.ch-studio__contour-go {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--campus-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ch-studio__contour-foot {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--campus-ink-dim);
}

.ch-studio__retain {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-studio__retain-lead,
.ch-studio__retain-foot {
  margin: 0 0 16px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--campus-ink-dim);
}
.ch-studio__retain-lead a,
.ch-studio__retain-foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ch-studio__retain-grid {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.ch-studio__retain-grid li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.04);
}
.ch-studio__retain-k {
  font-family: var(--nx-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--campus-mark);
}
.ch-studio__retain-v {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--campus-ink);
  font-variant-numeric: tabular-nums;
}
.ch-studio__retain .btn-nexus {
  display: inline-flex;
}

/* Оценщик вилки (#studio-estimate) — шаги слева, живой итог справа.
   Это не облачный калькулятор: calculator.css здесь не участвует. */
.ch-studio__estimator {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-studio__estimator-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.ch-studio__estimator-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nx-tap-min, 44px);
  padding: 8px 16px;
  border: 1px solid var(--campus-line-dim);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--campus-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.ch-studio__estimator-preset:hover {
  border-color: color-mix(in srgb, var(--campus-ink) 28%, transparent);
}
.ch-studio__estimator-preset:focus-visible {
  outline: 2px solid var(--campus-impulse, #d4c4a8);
  outline-offset: 2px;
}
.ch-studio__estimator-preset[aria-pressed="true"] {
  border-color: var(--campus-line);
  background: rgba(255, 255, 255, 0.1);
}
.ch-studio__estimator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: start;
}
.ch-studio__estimator-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ch-studio__estimator-step {
  min-width: 0;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--campus-line-dim);
  border-radius: var(--nx-radius-md);
  background: rgba(255, 255, 255, 0.04);
}
.ch-studio__estimator-legend {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
}
.ch-studio__estimator-num {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--campus-mark);
}
.ch-studio__estimator-ask {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--campus-ink);
}
.ch-studio__estimator-hint {
  margin: 6px 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--campus-ink-dim);
}
.ch-studio__estimator-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ch-studio__estimator-opt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--campus-line-dim);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--campus-ink);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.ch-studio__estimator-opt input {
  flex: none;
  margin: 0;
  accent-color: var(--campus-impulse, #d4c4a8);
}
.ch-studio__estimator-opt:hover {
  border-color: color-mix(in srgb, var(--campus-ink) 28%, transparent);
}
.ch-studio__estimator-opt:focus-within {
  outline: 2px solid var(--campus-impulse, #d4c4a8);
  outline-offset: 2px;
}
.ch-studio__estimator-opt:has(input:checked) {
  border-color: var(--campus-line);
  background: rgba(255, 255, 255, 0.1);
}
.ch-studio__estimator-out {
  min-width: 0;
  /* Шагов пять, итог короткий — держим его в поле зрения рядом с шагами */
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nx-radius-lg);
  background: #161c26;
}
.ch-studio__estimator-figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ch-studio__estimator-figs > div { min-width: 0; }
.ch-studio__estimator-cap {
  display: block;
  margin-bottom: 6px;
  font-family: var(--nx-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--campus-mark);
}
.ch-studio__estimator-money,
.ch-studio__estimator-weeks {
  display: block;
  font-family: var(--nx-font-mono);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--campus-ink);
  overflow-wrap: anywhere;
}
.ch-studio__estimator-picked {
  margin: 0;
  font-family: var(--nx-font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--campus-ink-dim);
}
.ch-studio__estimator-why {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ch-studio__estimator-why li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--campus-ink);
}
.ch-studio__estimator-why li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 1px;
  background: var(--campus-ink);
}
.ch-studio__estimator-out .btn-nexus { justify-content: center; }
.ch-studio__estimator-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--campus-ink-dim);
}

/* FAQ + foot */

@media (max-width: 900px) {
  .ch-studio__format-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-studio__contour-grid { grid-template-columns: 1fr; }
  .ch-studio__retain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-studio__estimator-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .ch-studio__estimator-out {
    order: -1;
    position: sticky;
    top: calc(var(--nx-header-offset-sm, 72px) + 6px);
    z-index: 4;
    padding: 14px 16px;
    gap: 10px;
  }
  .ch-studio__estimator-why,
  .ch-studio__estimator-note,
  .ch-studio__estimator-hint {
    display: none;
  }
  .ch-studio__estimator-step {
    padding: 12px 14px;
  }
  .ch-studio__estimator-opt,
  .ch-studio__estimator-preset {
    white-space: nowrap;
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
  }
  .ch-studio__format-stage {
    grid-template-columns: 1fr;
  }
  .ch-studio__format-copy {
    border-left: 0;
    border-top: 1px solid var(--campus-line-dim);
  }
  /* Превью, а не рабочая площадка: тыкать модель зовём отдельным экраном */
  .ch-studio__exhibit-frame,
  .ch-studio__exhibit-iframe { min-height: 330px; }
  .ch-studio__exhibit-open {
    min-height: var(--nx-tap-min, 44px);
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 560px) {
  .ch-studio__format-tabs { grid-template-columns: 1fr; }
  .ch-studio__retain-grid { grid-template-columns: 1fr; }
  .ch-studio__care-row { grid-template-columns: 1fr; }
  .ch-studio__care-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ch-studio__care-opt {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
  .ch-studio__care-form .btn-nexus {
    margin-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  /* На телефоне iframe — превью, не площадка: прячем окно и хром табов,
     оставляем одну кнопку «открыть экран». */
  .ch-studio__exhibit-frame { display: none; }
  .ch-studio__exhibit-chrome,
  .ch-studio__exhibit-hint { display: none; }
  .ch-studio__exhibit-foot {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px;
  }
  .ch-studio__exhibit-badge { align-self: flex-start; }
  .ch-studio__exhibit-open {
    justify-content: center;
    width: 100%;
    min-height: var(--nx-tap-min, 44px);
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 0;
  }
  .ch-studio__format-tab {
    min-height: var(--nx-tap-min, 44px);
    padding: 16px 14px;
  }
  .ch-studio__estimator-step { padding: 10px 12px; }
  .ch-studio__estimator-out { padding: 12px 14px; }
  .ch-studio__estimator-figs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px), (pointer: coarse) {
  .ch-studio__estimator-opt,
  .ch-studio__estimator-preset { min-height: var(--nx-tap-min, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-studio__facts li,
  .ch-studio__fact-media img,
  .ch-studio__format-tab,
  .ch-studio__estimator-opt,
  .ch-studio__estimator-preset,
  .ch-studio__contour-tile,
  .ch-studio__step,
  .ch-studio__q-caret { transition: none; }
  
  .ch-studio__format-stage.is-swap,
  .ch-studio__journey-panel.is-swap { animation: none; }
}

/* ==========================================
   Service Desk — P6 zone (hall-specific) — articles #chapter-3
   Managed support conversion floor
   ========================================== */

body.has-nx-shell .chapter.chapter--desk::before { display: none; }

/* ---- Hero: shared panel styles above ---- */

/* Signals */

/* Format picker */

.ch-desk__plan-stage.is-swap,
.ch-desk__journey-panel.is-swap {
  animation: chDeskSwap 280ms var(--nx-ease-out);
}
@keyframes chDeskSwap {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Journey */

/* Rates */
.ch-desk__rates {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--campus-line-dim);
}
.ch-desk__rates-grid {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ch-desk__rates-grid li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(20, 28, 40, 0.1);
  border-radius: var(--nx-radius-md);
}
.ch-desk__rates-grid li { background: rgba(255,255,255,0.04); }
.ch-desk__rates-k {
  font-family: var(--nx-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--campus-mark);
}
.ch-desk__rates-v {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--campus-ink);
  font-variant-numeric: tabular-nums;
}
.ch-desk__rates-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--campus-ink-dim);
  max-width: 58ch;
}
.ch-desk__q-body ul {
  margin: 8px 0;
  padding-left: 1.2em;
}
.ch-desk__q-body li {
  margin-bottom: 4px;
}

/* VS */

/* FAQ + foot */

@media (max-width: 900px) {
  .ch-desk__rates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ch-desk__rates-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   Security Gallery — P6 zone (hall-specific) — articles #chapter-4
   Video + telephony conversion floor
   ========================================== */

body.has-nx-shell .chapter.chapter--sec::before { display: none; }

/* ---- Hero: shared panel styles above ---- */

/* Signals */

/* Format picker */

.ch-sec__plan-stage.is-swap,
.ch-sec__journey-panel.is-swap {
  animation: chSecSwap 280ms var(--nx-ease-out);
}
@keyframes chSecSwap {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ch-sec__estimate-note {
  display: block;
  margin-top: 6px;
  font-family: var(--nx-font-body);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--campus-ink-dim);
}

/* Journey */

/* VS */

/* FAQ + foot */

/* ==========================================
   Backup Vault — P6 zone (hall-specific) — articles #chapter-5
   Backup + DR conversion floor
   ========================================== */

body.has-nx-shell .chapter.chapter--vault::before { display: none; }

/* ---- Hero: shared panel styles above ---- */

.ch-vault__journey-note {
  margin: 20px 0 0;
  max-width: 52ch;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

/* Signals */

/* Format picker */

.ch-vault__plan-stage.is-swap,
.ch-vault__journey-panel.is-swap {
  animation: chVaultSwap 280ms var(--nx-ease-out);
}
@keyframes chVaultSwap {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Journey */

/* VS */

/* FAQ + foot */

/* ==========================================
   Mobile signal facts — 2×2 dense grid (LAST)
   Hall-specific .ch-cloud__facts li (flex column + 1:1
   media) is defined earlier and must not win on phone.
   ========================================== */
@media (max-width: 900px) {
  .ch-cloud__facts,
  .ch-studio__facts,
  .ch-desk__facts,
  .ch-sec__facts,
  .ch-vault__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ch-cloud__facts li,
  .ch-studio__facts li,
  .ch-desk__facts li,
  .ch-sec__facts li,
  .ch-vault__facts li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    min-height: 0;
    padding: 10px;
    transform: none;
  }

  .ch-studio__fact-btn {
    align-items: flex-start;
    gap: 6px;
  }

  .ch-cloud__facts li:hover,
  .ch-studio__facts li:hover,
  .ch-desk__facts li:hover,
  .ch-sec__facts li:hover,
  .ch-vault__facts li:hover {
    transform: none;
    box-shadow: none;
  }

  .ch-cloud__fact-media,
  .ch-studio__fact-media,
  .ch-desk__fact-media,
  .ch-sec__fact-media,
  .ch-vault__fact-media {
    width: 40px;
    height: 40px;
    max-width: 40px;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
  }

  .ch-cloud__fact-media img,
  .ch-studio__fact-media img,
  .ch-desk__fact-media img,
  .ch-sec__fact-media img,
  .ch-vault__fact-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
  }

  .ch-cloud__fact-k,
  .ch-studio__fact-k,
  .ch-desk__fact-k,
  .ch-sec__fact-k,
  .ch-vault__fact-k {
    padding: 0;
    margin: 0;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .ch-cloud__fact-v,
  .ch-studio__fact-v,
  .ch-desk__fact-v,
  .ch-sec__fact-v,
  .ch-vault__fact-v {
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  /* Студия: не «квадрат с дыркой», а строка [превью · имя · цена] */
  .ch-studio__facts li {
    padding: 0;
    gap: 0;
  }
  .ch-studio__fact-btn {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 10px 12px;
    min-height: 76px;
  }
  .ch-studio__fact-btn .ch-studio__fact-media {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    max-width: 56px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }
  .ch-studio__fact-btn .ch-studio__fact-k {
    grid-column: 2;
    font-family: var(--nx-font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--campus-ink);
    line-height: 1.25;
    white-space: normal;
  }
  .ch-studio__fact-btn .ch-studio__fact-v {
    grid-column: 2;
    font-size: 0.92rem;
    color: var(--campus-ink);
  }
}

@media (max-width: 560px) {
  .ch-studio__facts {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* M3 fix (must be last): later hall blocks set display:grid on tab stacks and
   previously overrode an earlier display:none — hide stacks only ≤ bp-md. */
@media (max-width: 720px) {
  .ch-hall-pick {
    display: block;
  }
  .ch-studio__format-tabs,
  .ch-cloud__nodes,
  .ch-desk__plan-tabs,
  .ch-sec__plan-tabs,
  .ch-vault__plan-tabs {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ch-hall-pick__trigger,
  .ch-hall-pick__trigger .ph,
  .ch-hall-pick__option {
    transition: none;
  }
}

