@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --dj-ink: #f4f6ff;
  --dj-muted: #b9c3db;
  --dj-dim: #8d99b5;
  --dj-accent: #8ca5ff;
  --dj-accent-strong: #b5c4ff;
  --dj-night: #0b1020;
  --dj-hairline: rgba(200, 213, 255, 0.22);
  --dj-hairline-selected: rgba(167, 187, 255, 0.82);
  --dj-ease: cubic-bezier(.16, 1, .3, 1);
  --dj-select-time: 280ms;
}

.dj-html {
  min-width: 320px;
  min-height: 100%;
  background: var(--dj-night);
}

.dj-body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-y: auto;
  background: var(--dj-night);
  color: var(--dj-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.dj-body *, .dj-body *::before, .dj-body *::after { box-sizing: border-box; }
.dj-body [hidden] { display: none !important; }

.dj-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 580ms var(--dj-ease);
}

.dj-gradient[data-dj-gradient-layer="base"] {
  opacity: 1;
  background:
    radial-gradient(85% 65% at 12% 0%, rgba(61, 88, 162, 0.28), transparent 68%),
    linear-gradient(148deg, #111a32 0%, #0b1020 48%, #10152a 100%);
}

.dj-gradient[data-dj-gradient-layer="shift"] {
  background:
    radial-gradient(78% 62% at 88% 8%, rgba(100, 74, 168, 0.24), transparent 70%),
    linear-gradient(155deg, #11172c 0%, #0b1020 54%, #15112b 100%);
}

.dj-gradient[data-dj-active="true"] { opacity: 1; }

.dj-shell {
  --dj-enter-x: 12px;
  --dj-exit-x: -8px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
}

.dj-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: min(100%, 980px);
  margin-inline: auto;
  padding: max(18px, env(safe-area-inset-top)) clamp(18px, 4vw, 48px) 14px;
}

.dj-brand, .dj-close, .dj-back, .dj-restart, .dj-continue {
  transition: color var(--dj-select-time) var(--dj-ease), border-color var(--dj-select-time) var(--dj-ease), background-color var(--dj-select-time) var(--dj-ease), opacity var(--dj-select-time) var(--dj-ease), transform var(--dj-select-time) var(--dj-ease);
}

.dj-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  color: var(--dj-ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.dj-brand span {
  margin-left: 10px;
  color: var(--dj-dim);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dj-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--dj-muted);
  text-decoration: none;
}

.dj-close:hover, .dj-close:focus-visible { color: var(--dj-ink); background: rgba(255, 255, 255, 0.07); }
.dj-close:active { transform: scale(.96); }

.dj-content {
  align-self: center;
  width: min(100%, 800px);
  margin-inline: auto;
  padding: 22px clamp(20px, 5.5vw, 64px) calc(28px + env(safe-area-inset-bottom));
}

.dj-progress-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(26px, 5vh, 54px);
  color: var(--dj-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  transition: opacity 440ms var(--dj-ease), transform 440ms var(--dj-ease);
}

.dj-progress-line progress {
  width: 100%;
  height: 1px;
  overflow: visible;
  border: 0;
  appearance: none;
  background: var(--dj-hairline);
}

.dj-progress-line progress::-webkit-progress-bar { background: var(--dj-hairline); }
.dj-progress-line progress::-webkit-progress-value { background: var(--dj-accent); transition: inline-size 440ms var(--dj-ease); }
.dj-progress-line progress::-moz-progress-bar { background: var(--dj-accent); transition: inline-size 440ms var(--dj-ease); }

.dj-shell[data-dj-direction="back"] { --dj-enter-x: -12px; --dj-exit-x: 8px; }

.dj-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.dj-legend {
  max-width: 22ch;
  margin: 0;
  padding: 0;
  color: var(--dj-ink);
  font-size: clamp(26px, 4.2vw, 42px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
  outline: 0;
  transition: opacity 360ms var(--dj-ease), transform 360ms var(--dj-ease);
}

.dj-legend:focus-visible { box-shadow: -3px 0 0 var(--dj-accent); }

.dj-helper {
  min-height: 1.5em;
  margin: 15px 0 0;
  color: var(--dj-muted);
  font-size: 14px;
  line-height: 1.5;
  transition: opacity 360ms var(--dj-ease), transform 360ms var(--dj-ease);
}

.dj-options {
  width: 100%;
  margin-top: clamp(24px, 4vh, 38px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dj-option {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid var(--dj-hairline);
  color: var(--dj-muted);
  cursor: pointer;
  transition: opacity 360ms var(--dj-ease), transform 360ms var(--dj-ease), color var(--dj-select-time) var(--dj-ease), border-color var(--dj-select-time) var(--dj-ease), background-color var(--dj-select-time) var(--dj-ease);
}

.dj-option:last-child { border-bottom-width: 0; }
.dj-option:hover { color: var(--dj-ink); background: linear-gradient(90deg, rgba(115, 142, 233, .08), transparent 72%); }
.dj-option:active { transform: translateX(2px); }
.dj-option:focus-within { color: var(--dj-ink); outline: 0; box-shadow: inset 2px 0 0 var(--dj-accent); }
.dj-option[data-dj-selected="true"] { color: var(--dj-ink); border-bottom-color: var(--dj-hairline-selected); background: linear-gradient(90deg, rgba(112, 142, 242, .13), transparent 78%); }

.dj-answer-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.dj-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--dj-dim);
  transition: color var(--dj-select-time) var(--dj-ease), transform var(--dj-select-time) var(--dj-ease);
}

.dj-icon svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
.dj-option:hover .dj-icon, .dj-option[data-dj-selected="true"] .dj-icon { color: var(--dj-accent-strong); transform: translateX(1px); }
.dj-option-copy { font-size: clamp(14px, 2vw, 16px); font-weight: 520; line-height: 1.4; }

.dj-indicator {
  width: 18px;
  height: 18px;
  border: 1px solid var(--dj-dim);
  border-radius: 50%;
  transition: border-color var(--dj-select-time) var(--dj-ease), background-color var(--dj-select-time) var(--dj-ease), transform var(--dj-select-time) var(--dj-ease);
}

.dj-option[data-dj-selected="true"] .dj-indicator { border-color: var(--dj-accent-strong); background: var(--dj-accent); transform: scale(.88); box-shadow: inset 0 0 0 4px #11182c; }
.dj-option[data-dj-type="multi"] .dj-indicator { border-radius: 3px; }

.dj-error {
  min-height: 22px;
  margin: 14px 0 0;
  color: #ffd0d7;
  font-size: 13px;
  line-height: 1.45;
  transition: opacity var(--dj-select-time) var(--dj-ease), transform var(--dj-select-time) var(--dj-ease);
}

.dj-shell[data-dj-state="error"] .dj-error { transform: translateX(4px); }

.dj-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--dj-hairline);
  transition: opacity 360ms var(--dj-ease), transform 360ms var(--dj-ease);
}

.dj-back, .dj-restart, .dj-continue {
  min-height: 44px;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.dj-back, .dj-restart { padding: 0 10px; background: transparent; color: var(--dj-muted); }
.dj-back:hover, .dj-restart:hover { color: var(--dj-ink); }
.dj-back:active, .dj-restart:active { transform: translateX(-2px); }
.dj-back[hidden] { visibility: hidden; display: inline-block; pointer-events: none; }
.dj-restart { justify-self: center; color: var(--dj-dim); font-size: 12px; }

.dj-continue {
  min-width: 126px;
  padding: 0 20px;
  border: 1px solid rgba(184, 201, 255, .32);
  border-radius: 999px;
  background: rgba(130, 154, 238, .08);
  color: var(--dj-muted);
}

.dj-shell[data-dj-ready="true"] .dj-continue { border-color: rgba(184, 201, 255, .7); background: rgba(130, 154, 238, .18); color: var(--dj-ink); }
.dj-continue:hover, .dj-continue:focus-visible { border-color: var(--dj-accent); color: var(--dj-ink); background: rgba(130, 154, 238, .25); }
.dj-continue:active { transform: translateX(2px) scale(.98); }
.dj-back:focus-visible, .dj-restart:focus-visible, .dj-continue:focus-visible { outline: 2px solid var(--dj-accent); outline-offset: 3px; }

.dj-shell[data-dj-state="exiting"] .dj-legend,
.dj-shell[data-dj-state="exiting"] .dj-helper,
.dj-shell[data-dj-state="exiting"] .dj-option,
.dj-shell[data-dj-state="exiting"] .dj-error,
.dj-shell[data-dj-state="exiting"] .dj-progress-line,
.dj-shell[data-dj-state="exiting"] .dj-controls,
.dj-shell[data-dj-state="exiting"] .dj-close {
  opacity: 0;
  transform: translateX(var(--dj-exit-x));
  transition-duration: 160ms;
  transition-delay: 0ms;
}

.dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-legend,
.dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-helper,
.dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-option,
.dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-error,
.dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-progress-line,
.dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-controls,
.dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-close {
  opacity: 0;
  transform: translateX(var(--dj-enter-x));
  transition-duration: 360ms;
}

.dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-progress-line {
  transition-duration: 440ms;
}

.dj-shell[data-dj-state="entering"][data-dj-enter-ready="true"] .dj-legend,
.dj-shell[data-dj-state="entering"][data-dj-enter-ready="true"] .dj-helper,
.dj-shell[data-dj-state="entering"][data-dj-enter-ready="true"] .dj-error,
.dj-shell[data-dj-state="entering"][data-dj-enter-ready="true"] .dj-close {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 20ms;
  transition-duration: 360ms;
}

.dj-shell[data-dj-state="entering"][data-dj-enter-ready="true"] .dj-option {
  opacity: 1;
  transform: translateX(0);
  transition-delay: var(--dj-row-delay);
}

.dj-shell[data-dj-state="entering"][data-dj-enter-ready="true"] .dj-progress-line {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0ms;
  transition-duration: 440ms;
}

.dj-shell[data-dj-state="entering"][data-dj-enter-ready="true"] .dj-controls {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 50ms;
  transition-duration: 360ms;
}

.dj-shell[data-dj-short-motion="true"] .dj-legend,
.dj-shell[data-dj-short-motion="true"] .dj-helper,
.dj-shell[data-dj-short-motion="true"] .dj-option,
.dj-shell[data-dj-short-motion="true"] .dj-error,
.dj-shell[data-dj-short-motion="true"] .dj-progress-line,
.dj-shell[data-dj-short-motion="true"] .dj-controls,
.dj-shell[data-dj-short-motion="true"] .dj-close {
  transform: none !important;
  transition-property: opacity !important;
  transition-delay: 0ms !important;
  transition-duration: 80ms !important;
}

.dj-noscript {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 680px);
  margin-inline: auto;
  padding: max(48px, env(safe-area-inset-top)) 0 calc(48px + env(safe-area-inset-bottom));
}

.dj-noscript__brand { color: var(--dj-ink); font-weight: 750; text-decoration: none; }
.dj-noscript h1 { max-width: 16ch; margin: 18vh 0 18px; font-size: clamp(30px, 6vw, 52px); line-height: 1.08; letter-spacing: -.04em; }
.dj-noscript p { max-width: 58ch; color: var(--dj-muted); line-height: 1.65; }
.dj-noscript nav { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; }
.dj-noscript nav a { color: var(--dj-accent-strong); }

@media (max-width: 560px) {
  .dj-topbar { padding-inline: 18px; }
  .dj-brand span { display: none; }
  .dj-content { align-self: start; padding-top: 14px; }
  .dj-progress-line { margin-bottom: 25px; }
  .dj-option { min-height: 54px; gap: 11px; }
  .dj-controls { grid-template-columns: 1fr 1fr; }
  .dj-back { justify-self: start; }
  .dj-restart { grid-column: 1; grid-row: 2; justify-self: start; }
  .dj-continue { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .dj-body *, .dj-body *::before, .dj-body *::after { scroll-behavior: auto !important; }
  .dj-gradient { transition-duration: 80ms; }
  .dj-legend, .dj-helper, .dj-option, .dj-error, .dj-progress-line, .dj-controls, .dj-close { transform: none !important; transition-property: opacity !important; transition-delay: 0ms !important; transition-duration: 80ms !important; }
  .dj-shell[data-dj-state="exiting"] .dj-legend,
  .dj-shell[data-dj-state="exiting"] .dj-helper,
  .dj-shell[data-dj-state="exiting"] .dj-option,
  .dj-shell[data-dj-state="exiting"] .dj-error,
  .dj-shell[data-dj-state="exiting"] .dj-progress-line,
  .dj-shell[data-dj-state="exiting"] .dj-controls,
  .dj-shell[data-dj-state="exiting"] .dj-close,
  .dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-legend,
  .dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-helper,
  .dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-option,
  .dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-error,
  .dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-progress-line,
  .dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-controls,
  .dj-shell[data-dj-state="entering"]:not([data-dj-enter-ready="true"]) .dj-close { transform: none; }
}

/* Focused entry, result and methodology surfaces. These extend the same
   diagnostic journey language without creating a second component system. */
.dj-close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.dj-eyebrow {
  margin: 0;
  color: var(--dj-accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dj-primary-action,
.dj-text-link,
.dj-share-actions button,
.dj-share-actions a {
  font: inherit;
  transition: color var(--dj-select-time) var(--dj-ease), border-color var(--dj-select-time) var(--dj-ease), background-color var(--dj-select-time) var(--dj-ease), opacity var(--dj-select-time) var(--dj-ease), transform var(--dj-select-time) var(--dj-ease);
}

.dj-primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 23px;
  border: 1px solid rgba(190, 205, 255, .62);
  border-radius: 999px;
  background: rgba(133, 157, 243, .16);
  color: var(--dj-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.dj-primary-action:hover,
.dj-primary-action:focus-visible {
  border-color: var(--dj-accent-strong);
  background: rgba(133, 157, 243, .26);
  transform: translateY(-2px);
}

.dj-primary-action:focus-visible,
.dj-text-link:focus-visible,
.dj-share-actions button:focus-visible,
.dj-share-actions a:focus-visible {
  outline: 2px solid var(--dj-accent);
  outline-offset: 3px;
}

.dj-text-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--dj-accent-strong);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  text-underline-offset: 5px;
}

.dj-text-link:hover { color: var(--dj-ink); }

/* Entry */
.dj-entry {
  overflow: visible;
}

.dj-entry__main {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(290px, .95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 84px);
  width: min(100% - 40px, 1180px);
  min-height: calc(100vh - 86px);
  min-height: calc(100dvh - 86px);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 64px) 0 clamp(48px, 7vw, 88px);
}

.dj-entry__scene {
  position: relative;
  min-width: 0;
  isolation: isolate;
  opacity: 0;
  transform: translate3d(-16px, 8px, 0) scale(.975);
  transition: opacity 780ms var(--dj-ease), transform 920ms var(--dj-ease);
}

.dj-entry__scene::after {
  position: absolute;
  right: 10%;
  bottom: 5%;
  left: 10%;
  z-index: -1;
  height: 22%;
  border-radius: 50%;
  background: rgba(64, 85, 163, .26);
  content: "";
  filter: blur(54px);
  transform: translateY(36%);
}

.dj-entry__scene svg {
  display: block;
  width: 100%;
  max-height: min(58vh, 590px);
  overflow: visible;
}

.dj-scene-trace {
  fill: none;
  stroke-dasharray: 1040;
  stroke-dashoffset: 1040;
  stroke-linecap: round;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 12px rgba(130, 155, 255, .3));
  transition: stroke-dashoffset 1400ms var(--dj-ease) 260ms;
}

.dj-time-scene__files rect,
.dj-flow-scene__nodes circle {
  fill: rgba(18, 26, 49, .88);
  stroke: rgba(190, 206, 255, .5);
  stroke-width: 1.4;
}

.dj-time-scene__files path,
.dj-time-scene__clock,
.dj-time-scene__measure,
.dj-flow-scene__nodes path {
  fill: none;
  stroke: rgba(202, 214, 255, .7);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.dj-time-scene__clock circle {
  fill: rgba(18, 26, 49, .94);
  stroke: rgba(190, 206, 255, .65);
  stroke-width: 1.4;
}

.dj-time-scene__files,
.dj-time-scene__clock,
.dj-time-scene__measure,
.dj-flow-scene__nodes,
.dj-flow-scene__labels {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 620ms var(--dj-ease), transform 760ms var(--dj-ease);
}

.dj-flow-scene__focus circle:first-child { fill: rgba(106, 126, 214, .22); stroke: var(--dj-accent-strong); }
.dj-flow-scene__labels { fill: var(--dj-dim); font-family: "Plus Jakarta Sans", sans-serif; font-size: 13px; }

.dj-entry__copy {
  max-width: 580px;
}

.dj-entry__copy > * {
  opacity: 0;
  transform: translate3d(14px, 0, 0);
  transition: opacity 480ms var(--dj-ease), transform 620ms var(--dj-ease);
}

.dj-entry__copy > .dj-eyebrow { transition-delay: 300ms; }
.dj-entry__copy > h1 { transition-delay: 350ms; }
.dj-entry__copy > .dj-entry__support { transition-delay: 400ms; }
.dj-entry__copy > .dj-primary-action { transition-delay: 450ms; }
.dj-entry__copy > .dj-entry__note { transition-delay: 500ms; }

.dj-entry__copy h1 {
  max-width: 13ch;
  margin: 17px 0 0;
  color: var(--dj-ink);
  font-size: clamp(38px, 5.5vw, 74px);
  font-weight: 640;
  letter-spacing: -.058em;
  line-height: .99;
  text-wrap: balance;
}

.dj-entry__support {
  max-width: 52ch;
  margin: 24px 0 0;
  color: var(--dj-muted);
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.65;
}

.dj-entry .dj-primary-action { margin-top: 30px; }
.dj-entry__note { margin: 13px 0 0; color: var(--dj-dim); font-size: 11px; line-height: 1.5; }

.dj-entry[data-dj-entry-state="ready"] .dj-entry__scene,
.dj-entry[data-dj-entry-state="ready"] .dj-entry__copy > * {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.dj-entry[data-dj-entry-state="ready"] .dj-scene-trace { stroke-dashoffset: 0; }
.dj-entry[data-dj-entry-state="ready"] .dj-time-scene__files,
.dj-entry[data-dj-entry-state="ready"] .dj-time-scene__clock,
.dj-entry[data-dj-entry-state="ready"] .dj-time-scene__measure,
.dj-entry[data-dj-entry-state="ready"] .dj-flow-scene__nodes,
.dj-entry[data-dj-entry-state="ready"] .dj-flow-scene__labels {
  opacity: 1;
  transform: translateY(0);
}
.dj-entry[data-dj-entry-state="ready"] .dj-time-scene__files,
.dj-entry[data-dj-entry-state="ready"] .dj-flow-scene__nodes { transition-delay: 420ms; }
.dj-entry[data-dj-entry-state="ready"] .dj-time-scene__clock,
.dj-entry[data-dj-entry-state="ready"] .dj-flow-scene__labels { transition-delay: 560ms; }
.dj-entry[data-dj-entry-state="ready"] .dj-time-scene__measure { transition-delay: 650ms; }

/* Results */
.dj-result,
.dj-methodology__main {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
  padding: clamp(26px, 4vw, 58px) 0 calc(74px + env(safe-area-inset-bottom));
}

.dj-result__body {
  display: grid;
  gap: 0;
}

.dj-result__hero {
  min-height: clamp(410px, 66vh, 650px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 70px;
  border-bottom: 1px solid var(--dj-hairline);
}

.dj-result__factual {
  max-width: 54ch;
  margin: 22px 0 0;
  color: var(--dj-muted);
  font-size: clamp(16px, 2.1vw, 22px);
  line-height: 1.55;
}

.dj-result__value {
  margin: 24px 0 0;
  color: var(--dj-ink);
  font-size: clamp(64px, 12vw, 148px);
  font-weight: 620;
  letter-spacing: -.075em;
  line-height: .88;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--dj-ease), transform 680ms var(--dj-ease);
}

.dj-result__interpretation {
  max-width: 52ch;
  margin: 24px 0 0;
  color: var(--dj-accent-strong);
  font-size: 15px;
  line-height: 1.65;
}

.dj-result__path,
.dj-result__details,
.dj-result__share {
  padding: clamp(58px, 9vw, 104px) 0;
  border-bottom: 1px solid var(--dj-hairline);
}

.dj-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 670px;
}

.dj-section-heading h2 {
  margin: 0;
  color: var(--dj-ink);
  font-size: clamp(27px, 4vw, 45px);
  font-weight: 620;
  letter-spacing: -.047em;
  line-height: 1.08;
  text-wrap: balance;
}

.dj-section-heading > p:last-child { margin: 5px 0 0; color: var(--dj-muted); line-height: 1.65; }

.dj-result__trail { margin-top: 45px; }
.dj-trail-row {
  display: grid;
  grid-template-columns: 34px minmax(105px, .7fr) minmax(130px, 1.3fr) minmax(58px, auto);
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  min-height: 62px;
  border-bottom: 1px solid var(--dj-hairline);
  color: var(--dj-muted);
  opacity: .45;
  transform: translateY(7px);
  transition: color 480ms var(--dj-ease), opacity 520ms var(--dj-ease), transform 620ms var(--dj-ease);
}

.dj-trail-row__index { color: var(--dj-dim); font-size: 10px; letter-spacing: .1em; }
.dj-trail-row__label { font-size: 14px; font-weight: 620; }
.dj-trail-row__line { height: 1px; background: var(--dj-hairline); }
.dj-trail-row__line i { display: block; width: var(--dj-stage-value); height: 1px; background: var(--dj-accent); transform: scaleX(0); transform-origin: left; transition: transform 720ms var(--dj-ease); }
.dj-trail-row__value { color: var(--dj-ink); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.dj-trail-row[data-dj-bottleneck="true"] { color: var(--dj-ink); }
.dj-result__bottleneck { margin: 24px 0 0; color: var(--dj-accent-strong); font-size: 14px; font-weight: 650; opacity: 0; transition: opacity 560ms var(--dj-ease), transform 560ms var(--dj-ease); transform: translateY(6px); }

.dj-result__details,
.dj-result__share { opacity: 0; transform: translateY(12px); transition: opacity 680ms var(--dj-ease), transform 760ms var(--dj-ease); }
.dj-result__facts { margin-top: 42px; }
.dj-fact {
  display: grid;
  grid-template-columns: minmax(130px, .6fr) minmax(0, 1.4fr);
  gap: 28px;
  padding: 19px 0;
  border-bottom: 1px solid var(--dj-hairline);
}
.dj-fact dt { color: var(--dj-dim); font-size: 12px; }
.dj-fact dd { margin: 0; color: var(--dj-ink); font-size: 14px; line-height: 1.55; }
.dj-result__details .dj-text-link { display: inline-block; margin-top: 24px; }

.dj-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.dj-share-actions button,
.dj-share-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border: 1px solid var(--dj-hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--dj-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.dj-share-actions button:hover,
.dj-share-actions a:hover { border-color: var(--dj-accent); color: var(--dj-ink); background: rgba(130, 154, 238, .1); }
.dj-share-feedback { min-height: 24px; margin: 15px 0 0; color: var(--dj-accent-strong); font-size: 12px; }
.dj-result__next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 34px 0 0; }

.dj-state-panel {
  width: min(100%, 700px);
  min-height: calc(100vh - 180px);
  min-height: calc(100dvh - 180px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 0;
}
.dj-state-panel h1 { max-width: 15ch; margin: 18px 0 0; font-size: clamp(36px, 6vw, 68px); line-height: 1; letter-spacing: -.055em; }
.dj-state-panel > p:not(.dj-eyebrow) { max-width: 52ch; margin: 22px 0 0; color: var(--dj-muted); line-height: 1.65; }
.dj-state-panel .dj-primary-action { align-self: flex-start; margin-top: 28px; }

.dj-result[data-dj-result-state="revealing-value"] .dj-result__value,
.dj-result[data-dj-result-state="drawing-path"] .dj-result__value,
.dj-result[data-dj-result-state="highlighting-bottleneck"] .dj-result__value,
.dj-result[data-dj-result-state="showing-details"] .dj-result__value,
.dj-result[data-dj-result-state="ready"] .dj-result__value,
.dj-result[data-dj-result-state^="share-"] .dj-result__value { opacity: 1; transform: translateY(0); }

.dj-result[data-dj-result-state="drawing-path"] .dj-trail-row,
.dj-result[data-dj-result-state="highlighting-bottleneck"] .dj-trail-row,
.dj-result[data-dj-result-state="showing-details"] .dj-trail-row,
.dj-result[data-dj-result-state="ready"] .dj-trail-row,
.dj-result[data-dj-result-state^="share-"] .dj-trail-row { opacity: 1; transform: translateY(0); }
.dj-result[data-dj-result-state="drawing-path"] .dj-trail-row__line i,
.dj-result[data-dj-result-state="highlighting-bottleneck"] .dj-trail-row__line i,
.dj-result[data-dj-result-state="showing-details"] .dj-trail-row__line i,
.dj-result[data-dj-result-state="ready"] .dj-trail-row__line i,
.dj-result[data-dj-result-state^="share-"] .dj-trail-row__line i { transform: scaleX(1); }
.dj-result[data-dj-result-state="highlighting-bottleneck"] .dj-result__bottleneck,
.dj-result[data-dj-result-state="showing-details"] .dj-result__bottleneck,
.dj-result[data-dj-result-state="ready"] .dj-result__bottleneck,
.dj-result[data-dj-result-state^="share-"] .dj-result__bottleneck { opacity: 1; transform: translateY(0); }
.dj-result[data-dj-result-state="showing-details"] .dj-result__details,
.dj-result[data-dj-result-state="showing-details"] .dj-result__share,
.dj-result[data-dj-result-state="ready"] .dj-result__details,
.dj-result[data-dj-result-state="ready"] .dj-result__share,
.dj-result[data-dj-result-state^="share-"] .dj-result__details,
.dj-result[data-dj-result-state^="share-"] .dj-result__share { opacity: 1; transform: translateY(0); }

/* Methodology */
.dj-methodology__main { max-width: 1020px; }
.dj-methodology__hero {
  min-height: clamp(460px, 72vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 0 76px;
  border-bottom: 1px solid var(--dj-hairline);
}
.dj-methodology__hero h1 { max-width: 12ch; margin: 19px 0 0; font-size: clamp(43px, 7.5vw, 88px); font-weight: 620; letter-spacing: -.065em; line-height: .98; text-wrap: balance; }
.dj-methodology__hero > p:not(.dj-eyebrow) { max-width: 60ch; margin: 25px 0 0; color: var(--dj-muted); font-size: clamp(15px, 1.8vw, 19px); line-height: 1.65; }
.dj-methodology__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 34px; }
.dj-methodology__nav a { min-height: 36px; display: inline-flex; align-items: center; color: var(--dj-accent-strong); font-size: 13px; font-weight: 650; text-underline-offset: 5px; }
.dj-methodology__section { padding: clamp(70px, 10vw, 116px) 0; border-bottom: 1px solid var(--dj-hairline); outline: 0; scroll-margin-top: 24px; }
.dj-methodology__section:focus-visible { box-shadow: -3px 0 var(--dj-accent); }
.dj-methodology__signals { margin: 44px 0 0; padding: 0; list-style: none; counter-reset: signal; }
.dj-methodology__signals li { counter-increment: signal; display: grid; grid-template-columns: minmax(145px, .65fr) minmax(150px, .8fr) minmax(220px, 1.55fr); gap: clamp(15px, 3vw, 36px); padding: 22px 0; border-bottom: 1px solid var(--dj-hairline); }
.dj-methodology__signals li::before { content: counter(signal, decimal-leading-zero); position: absolute; color: transparent; }
.dj-methodology__signals span { color: var(--dj-accent-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.65; }
.dj-methodology__signals strong { color: var(--dj-ink); font-size: 14px; font-weight: 650; line-height: 1.55; }
.dj-methodology__signals p { margin: 0; color: var(--dj-muted); font-size: 13px; line-height: 1.65; }
.dj-methodology__formula { display: grid; grid-template-columns: minmax(145px, .65fr) minmax(0, 2.35fr); gap: clamp(15px, 3vw, 36px); margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--dj-hairline); }
.dj-methodology__formula > p:not(.dj-eyebrow) { margin: 0; color: var(--dj-muted); font-size: 14px; line-height: 1.7; }
.dj-methodology__formula code,
.dj-methodology__ledger code { color: var(--dj-accent-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; overflow-wrap: anywhere; }
.dj-methodology__bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid var(--dj-hairline); }
.dj-methodology__bands span { min-height: 72px; display: flex; align-items: center; padding: 12px clamp(10px, 2vw, 20px); border-right: 1px solid var(--dj-hairline); color: var(--dj-muted); font-size: 11px; line-height: 1.5; }
.dj-methodology__bands span:last-child { border-right: 0; }
.dj-methodology__ledger { margin: 44px 0 0; }
.dj-methodology__ledger div { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr); gap: clamp(18px, 4vw, 48px); padding: 21px 0; border-bottom: 1px solid var(--dj-hairline); }
.dj-methodology__ledger dt { color: var(--dj-dim); font-size: 12px; line-height: 1.55; }
.dj-methodology__ledger dd { margin: 0; color: var(--dj-muted); font-size: 13px; line-height: 1.65; }
.dj-methodology[data-dj-methodology-state="entering"] .dj-methodology__hero { opacity: 0; transform: translateY(12px); }
.dj-methodology__hero { transition: opacity 720ms var(--dj-ease), transform 820ms var(--dj-ease); }
.dj-methodology[data-dj-methodology-state="ready"] .dj-methodology__hero { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .dj-entry__main { grid-template-columns: 1fr; gap: 4px; padding-top: 4px; }
  .dj-entry__scene { width: min(100%, 520px); margin-inline: auto; }
  .dj-entry__scene svg { max-height: 39vh; }
  .dj-entry__copy { max-width: 630px; }
  .dj-entry__copy h1 { max-width: 15ch; font-size: clamp(35px, 10vw, 58px); }
  .dj-entry__support { margin-top: 18px; }
  .dj-entry .dj-primary-action { margin-top: 24px; }
  .dj-result__hero { min-height: 470px; }
  .dj-methodology__signals li { grid-template-columns: minmax(112px, .55fr) minmax(150px, 1.45fr); }
  .dj-methodology__signals li p { grid-column: 2; }
  .dj-methodology__formula { grid-template-columns: 1fr; gap: 10px; }
  .dj-methodology__bands { grid-template-columns: 1fr 1fr; }
  .dj-methodology__bands span:nth-child(2) { border-right: 0; }
  .dj-methodology__bands span:nth-child(-n+2) { border-bottom: 1px solid var(--dj-hairline); }
}

@media (max-width: 520px) {
  .dj-result, .dj-methodology__main { width: calc(100% - 36px); }
  .dj-entry__main { width: calc(100% - 36px); padding-bottom: 42px; }
  .dj-entry__scene { margin-top: -8px; }
  .dj-entry__scene svg { max-height: 34vh; }
  .dj-entry__copy h1 { font-size: clamp(34px, 10.8vw, 50px); }
  .dj-entry__support { font-size: 14px; line-height: 1.6; }
  .dj-entry__note { max-width: 30ch; }
  .dj-result__hero { min-height: 430px; padding-block: 28px 58px; }
  .dj-result__value { font-size: clamp(60px, 22vw, 96px); }
  .dj-result__path, .dj-result__details, .dj-result__share { padding-block: 58px; }
  .dj-trail-row { grid-template-columns: 28px minmax(96px, 1fr) minmax(56px, auto); gap: 10px; }
  .dj-trail-row__line { grid-column: 2 / -1; grid-row: 2; margin-bottom: 11px; }
  .dj-fact { grid-template-columns: 1fr; gap: 8px; }
  .dj-share-actions { flex-direction: column; align-items: stretch; }
  .dj-share-actions button, .dj-share-actions a { justify-content: center; }
  .dj-result__next { flex-direction: column; }
  .dj-methodology__hero { min-height: 520px; padding-block: 26px 62px; }
  .dj-methodology__hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .dj-methodology__signals li { grid-template-columns: 1fr; gap: 7px; }
  .dj-methodology__signals li p { grid-column: auto; }
  .dj-methodology__bands { grid-template-columns: 1fr; }
  .dj-methodology__bands span { border-right: 0; border-bottom: 1px solid var(--dj-hairline); }
  .dj-methodology__bands span:last-child { border-bottom: 0; }
  .dj-methodology__ledger div { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .dj-entry__main { min-height: auto; padding-top: 14px; }
  .dj-entry__scene svg { max-height: 66vh; }
  .dj-entry__copy h1 { font-size: clamp(37px, 5vw, 61px); }
  .dj-result__hero, .dj-methodology__hero { min-height: 500px; }
}

@media (prefers-reduced-motion: reduce) {
  .dj-entry__scene, .dj-entry__copy, .dj-entry__scene *, .dj-result__value,
  .dj-entry__copy > *,
  .dj-trail-row, .dj-trail-row__line i, .dj-result__bottleneck,
  .dj-result__details, .dj-result__share, .dj-methodology__hero {
    transform: none !important;
    transition-delay: 0ms !important;
    transition-duration: 80ms !important;
    transition-property: opacity !important;
  }
}
