/* Naxie page */
.nx-hero { padding: 0; overflow: visible; }
.nx-hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(8px, 2vw, 32px); min-height: calc(100dvh - 76px); }
.nx-hero-copy { position: relative; z-index: 2; padding: 24px 0; }
.nx-hero h1 { font-size: clamp(2.7rem, 4.9vw, 4.7rem); margin-bottom: 24px; }
.nx-hero h1 span { display: block; text-wrap: balance; }
.nx-hero h1 span + span { margin-top: .18em; color: var(--brand); }
.nx-hero .lede { margin-bottom: 34px; max-width: 40ch; }
.nx-stage { position: relative; }
@media (min-width: 1300px) { .nx-stage { margin-right: -24px; } }
.nx-stage .stage3d { aspect-ratio: auto; height: min(740px, calc(100dvh - var(--nav-h) - 40px)); max-height: none; border-radius: var(--r-lg); overflow: hidden; }
.nx-wide { border-radius: var(--r-lg); overflow: hidden; }
.nx-cap { position: absolute; left: 32px; bottom: 34px; margin: 0; height: 1.5em; width: min(360px, 60%); font-size: .98rem; font-weight: 500; color: var(--ink-2); pointer-events: none; }
.nx-cap::before { content: ""; position: absolute; left: 0; top: -14px; width: 36px; height: 2px; background: var(--brand); }
.nx-cap span { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.nx-cap[data-step="0"] span:nth-child(1), .nx-cap[data-step="1"] span:nth-child(2), .nx-cap[data-step="2"] span:nth-child(3) { opacity: 1; transform: none; }

.stage3d.wide.nx-wide { aspect-ratio: 5 / 4; max-height: 640px; }
.nx-sec-numbers .row, .nx-sec-threads .row { padding: 0; }
.nx-sec-numbers .row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.nx-sec-threads .row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.nx-sec-numbers .row.flip .row-copy { order: 2; }

/* clause card */
.nx-clause { perspective: 1400px; padding: 10px 0 30px; }
.nx-clause-tilt { position: relative; transform-style: preserve-3d; transform: rotateY(-10deg) rotateX(4deg); will-change: transform; max-width: 560px; margin-inline: auto; }
.nx-doc { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 50px 80px -40px rgba(14, 16, 32, .35), 0 2px 0 rgba(14, 16, 32, .03); padding: 26px 30px 90px; }
.nx-doc-bar { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 22px; font-size: .88rem; color: var(--muted); }
.nx-doc-bar b { color: var(--ink); font-weight: 600; }
.nx-doc h3 { font-size: 1.08rem; margin-bottom: 12px; }
.nx-doc p { font-size: .92rem; line-height: 1.7; margin-bottom: 14px; }
.nx-doc .dim { color: #8e93ab; }
.nx-hl { position: relative; padding-left: 14px; border-left: 3px solid var(--brand); color: var(--ink); }
.nx-mark { background: linear-gradient(#e0ddff, #e0ddff) no-repeat left / 100% 100%; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.nx-ans { position: absolute; right: -22px; bottom: -34px; width: min(330px, 72%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px 18px; box-shadow: 0 34px 60px -26px rgba(14, 16, 32, .4); transform: translateZ(70px); }
.nx-ans small { display: block; font-weight: 600; color: var(--brand); margin-bottom: 4px; }
.nx-ans p { font-weight: 500; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.nx-cite { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .8rem; font-weight: 600; }
.nx-cite::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* works with */
.nx-with { padding: clamp(56px, 7vw, 96px) 0 0; }
.nx-with .wrap { border-top: 1px solid var(--line); padding-top: 28px; }
.nx-with p { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; color: var(--ink-2); }
.nx-with strong { font-weight: 500; max-width: 38ch; }
.nx-with-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nx-with-links a { font-weight: 600; color: var(--brand); text-decoration: none; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.nx-with-links a:hover { border-color: currentColor; }

@media (max-width: 1180px) { .nx-ans { right: -4px; } .nx-clause-tilt { max-width: 520px; } }
@media (max-width: 980px) {
  .nx-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 28px 0 8px; gap: 22px; }
  .nx-hero-copy { display: contents; }
  .nx-hero h1 { order: 1; margin: 0; }
  .nx-stage { order: 2; }
  .nx-hero .lede { order: 3; margin: 0; }
  .nx-hero .hero-actions { order: 4; }
  .nx-stage .stage3d { height: min(560px, 104vw); }
  .nx-cap { position: absolute; left: 20px; bottom: 22px; width: calc(100% - 40px); }
  .nx-sec-numbers .row, .nx-sec-threads .row { grid-template-columns: 1fr; gap: 28px; }
  .nx-sec-numbers .row.flip .row-copy { order: 0; }
  .stage3d.wide.nx-wide { aspect-ratio: 1 / 1; }
  .nx-ans { right: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-clause-tilt { transform: rotateY(-8deg) rotateX(3deg); }
}

/* no tinted bands behind the 3D scenes */
.section.soft.nx-sec-numbers { background: #fff; }
