/* WS Page Blocks 1.4.0 candidate: interactive Waseem.Space Experience Suite */

.ws-xp-section {
  --xp-night: #07100e;
  --xp-deep: #0b1713;
  --xp-glass: #12231d;
  --xp-raised: #172822;
  --xp-cream: #f0ddbd;
  --xp-sand: #a99578;
  --xp-gold: #d4954d;
  --xp-ember: #b86d35;
  --xp-wood: #7b4524;
  --xp-line: rgba(240, 221, 189, 0.14);
  overflow: clip;
  background:
    radial-gradient(circle at 13% 10%, rgba(184, 109, 53, 0.1), transparent 28%),
    linear-gradient(180deg, #07100e 0%, #091411 100%);
  color: var(--xp-cream);
}

.ws-xp-section *,
.ws-xp-section *::before,
.ws-xp-section *::after {
  box-sizing: border-box;
}

.ws-scroll-tech-ready .ws-xp-section::before,
.ws-scroll-tech-ready .ws-xp-section::after {
  content: none;
}

.ws-xp-shell {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid var(--xp-line);
  background:
    linear-gradient(rgba(240, 221, 189, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 221, 189, 0.025) 1px, transparent 1px),
    linear-gradient(145deg, rgba(23, 40, 34, 0.82), rgba(7, 16, 14, 0.94) 58%);
  background-size: 64px 64px, 64px 64px, auto;
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.3);
  isolation: isolate;
}

.ws-xp-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35% auto auto -12%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(212, 149, 77, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(212, 149, 77, 0.025),
    0 0 0 140px rgba(212, 149, 77, 0.018);
  pointer-events: none;
}

.ws-xp-header {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: 42px 46px 34px;
  border-bottom: 1px solid var(--xp-line);
}

.ws-xp-header > div:first-child {
  max-width: 790px;
}

.ws-xp-section .ws-xp-header h2 {
  max-width: 850px;
  margin: 12px 0 14px;
  color: var(--xp-cream);
  font-size: clamp(2.35rem, 4.9vw, 5.15rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-wrap: balance;
}

.ws-html-ar .ws-xp-header h2 {
  letter-spacing: 0;
  line-height: 1.22;
}

.ws-xp-section .ws-xp-header p {
  max-width: 720px;
  margin: 0;
  color: rgba(240, 221, 189, 0.7);
  font-size: 1rem;
}

.ws-xp-label,
.ws-lab-number,
.ws-lab-note-id,
.ws-xp-privacy,
.ws-field-coordinates {
  color: var(--xp-sand);
  font-family: var(--ws-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ws-html-ar .ws-xp-label,
.ws-html-ar .ws-xp-privacy,
.ws-html-ar .ws-lab-number,
.ws-html-ar .ws-lab-note-id {
  font-family: var(--ws-font-arabic);
  letter-spacing: 0;
}

.ws-xp-label span {
  color: var(--xp-gold);
}

.ws-xp-privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(212, 149, 77, 0.24);
  color: var(--xp-cream);
  white-space: nowrap;
}

.ws-xp-privacy span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--xp-gold);
  box-shadow: 0 0 0 4px rgba(212, 149, 77, 0.1), 0 0 18px var(--xp-gold);
  animation: wsXpPulse 2.2s ease-in-out infinite;
}

.ws-xp-button,
.ws-xp-copy {
  appearance: none;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid var(--xp-gold);
  border-radius: 0;
  background: var(--xp-gold);
  color: var(--xp-night);
  cursor: pointer;
  font: 800 0.78rem/1 var(--ws-font-body);
  letter-spacing: 0.025em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.ws-xp-button:hover,
.ws-xp-copy:hover {
  transform: translateY(-2px);
  background: var(--xp-cream);
}

.ws-xp-button.is-quiet {
  border-color: var(--xp-line);
  background: transparent;
  color: var(--xp-cream);
}

.ws-xp-button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
  transform: none;
}

.ws-xp-button:focus-visible,
.ws-xp-copy:focus-visible,
.ws-lab-rail button:focus-visible,
.ws-choice-row input:focus-visible + span,
.ws-xray-view button:focus-visible,
.ws-xray-nav button:focus-visible,
.ws-field-timeline button:focus-visible,
.ws-atlas-filters button:focus-visible,
.ws-atlas-card:focus-visible {
  outline: 2px solid var(--xp-cream);
  outline-offset: 3px;
}

/* Try Next Lab */

.ws-xp-orbit {
  position: absolute;
  z-index: -1;
  top: 90px;
  right: 8%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(212, 149, 77, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.ws-html-ar .ws-xp-orbit {
  right: auto;
  left: 8%;
}

.ws-xp-orbit::before,
.ws-xp-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(212, 149, 77, 0.08);
  border-radius: 50%;
  inset: 36px;
}

.ws-xp-orbit::after {
  inset: 78px;
}

.ws-xp-orbit span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--xp-gold);
  box-shadow: 0 0 16px var(--xp-gold);
}

.ws-xp-orbit span:nth-child(1) { top: 38px; left: 44px; }
.ws-xp-orbit span:nth-child(2) { right: 62px; bottom: 44px; }
.ws-xp-orbit span:nth-child(3) { top: 52%; left: 49%; }
.ws-xp-orbit i {
  position: absolute;
  inset: 20px;
  border-top: 1px solid rgba(212, 149, 77, 0.38);
  border-radius: 50%;
  animation: wsXpSpin 18s linear infinite;
}

.ws-lab {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr) minmax(310px, 0.62fr);
  min-height: 620px;
}

.ws-lab-rail {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--xp-line);
}

.ws-html-ar .ws-lab-rail {
  border-right: 0;
  border-left: 1px solid var(--xp-line);
}

.ws-lab-rail button {
  appearance: none;
  position: relative;
  display: grid;
  min-height: 98px;
  gap: 4px;
  align-content: center;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--xp-line);
  background: rgba(7, 16, 14, 0.38);
  color: var(--xp-sand);
  cursor: pointer;
  text-align: left;
}

.ws-html-ar .ws-lab-rail button { text-align: right; }

.ws-lab-rail button::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 0;
  background: var(--xp-gold);
  box-shadow: 0 0 16px var(--xp-gold);
  transition: height 260ms ease;
}

.ws-html-ar .ws-lab-rail button::after {
  right: auto;
  left: -1px;
}

.ws-lab-rail button b {
  color: inherit;
  font: 700 0.65rem/1 var(--ws-font-mono);
}

.ws-lab-rail button span {
  color: inherit;
  font-size: 0.88rem;
  font-weight: 800;
}

.ws-lab-rail button.is-active {
  background: linear-gradient(90deg, rgba(212, 149, 77, 0.13), transparent);
  color: var(--xp-cream);
}

.ws-html-ar .ws-lab-rail button.is-active {
  background: linear-gradient(270deg, rgba(212, 149, 77, 0.13), transparent);
}

.ws-lab-rail button.is-active::after { height: 100%; }

.ws-lab-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 48px 48px 32px;
}

.ws-lab-phase {
  animation: wsXpPhaseIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ws-lab-phase[hidden] { display: none; }

.ws-xp-section .ws-lab-phase h3 {
  max-width: 650px;
  margin: 12px 0 12px;
  color: var(--xp-cream);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.ws-html-ar .ws-lab-phase h3 {
  letter-spacing: 0;
  line-height: 1.24;
}

.ws-lab-phase > p {
  max-width: 620px;
  color: rgba(240, 221, 189, 0.68);
}

.ws-lab-phase label {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  color: var(--xp-cream);
  font-size: 0.85rem;
  font-weight: 800;
}

.ws-lab-optional span {
  color: var(--xp-sand);
  font-size: 0.7rem;
  font-weight: 500;
}

.ws-lab-phase input,
.ws-lab-phase textarea {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(240, 221, 189, 0.18);
  border-radius: 0;
  outline: 0;
  background: rgba(7, 16, 14, 0.64);
  color: var(--xp-cream);
  font: 500 0.96rem/1.55 var(--ws-font-body);
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ws-html-ar .ws-lab-phase input,
.ws-html-ar .ws-lab-phase textarea {
  font-family: var(--ws-font-arabic);
  text-align: right;
}

.ws-lab-phase input { min-height: 50px; padding: 0 15px; }
.ws-lab-phase textarea { min-height: 88px; padding: 13px 15px; resize: vertical; }

.ws-lab-phase input::placeholder,
.ws-lab-phase textarea::placeholder { color: rgba(169, 149, 120, 0.62); }

.ws-lab-phase input:focus,
.ws-lab-phase textarea:focus {
  border-color: var(--xp-gold);
  background: rgba(16, 28, 24, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 149, 77, 0.08), inset 3px 0 0 var(--xp-gold);
}

.ws-html-ar .ws-lab-phase input:focus,
.ws-html-ar .ws-lab-phase textarea:focus {
  box-shadow: 0 0 0 3px rgba(212, 149, 77, 0.08), inset -3px 0 0 var(--xp-gold);
}

.ws-lab-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ws-lab-controls {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: auto;
  padding-top: 30px;
}

.ws-lab-progress {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: var(--xp-line);
}

.ws-lab-progress span {
  display: block;
  width: var(--lab-progress, 25%);
  height: 100%;
  background: var(--xp-gold);
  box-shadow: 0 0 14px var(--xp-gold);
  transition: width 300ms ease;
}

.ws-lab-note {
  position: relative;
  min-width: 0;
  padding: 46px 36px;
  border-left: 1px solid var(--xp-line);
  background:
    linear-gradient(90deg, rgba(212, 149, 77, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(212, 149, 77, 0.055) 1px, transparent 1px),
    rgba(7, 16, 14, 0.56);
  background-size: 28px 28px;
}

.ws-html-ar .ws-lab-note {
  border-right: 1px solid var(--xp-line);
  border-left: 0;
}

.ws-lab-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-top: 1px solid var(--xp-gold);
  border-left: 1px solid var(--xp-gold);
}

.ws-html-ar .ws-lab-note::before {
  right: 0;
  left: auto;
  border-right: 1px solid var(--xp-gold);
  border-left: 0;
}

.ws-lab-note-id { color: var(--xp-gold); }

.ws-xp-section .ws-lab-note h3 {
  margin: 22px 0 14px;
  color: var(--xp-cream);
  font-size: clamp(1.75rem, 2.7vw, 2.7rem);
  line-height: 1;
}

.ws-html-ar .ws-lab-note h3 { line-height: 1.25; }

.ws-lab-note > p { color: rgba(240, 221, 189, 0.62); }

.ws-lab-note-output {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.ws-lab-note-output div {
  padding: 12px 0 0;
  border-top: 1px solid var(--xp-line);
}

.ws-lab-note-output span {
  display: block;
  margin-bottom: 5px;
  color: var(--xp-gold);
  font: 700 0.61rem/1.4 var(--ws-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ws-html-ar .ws-lab-note-output span {
  font-family: var(--ws-font-arabic);
  letter-spacing: 0;
}

.ws-lab-note-output p {
  margin: 0;
  color: var(--xp-cream);
  font-size: 0.91rem;
  line-height: 1.45;
}

.ws-xp-copy {
  width: 100%;
  margin-top: 24px;
  border-color: var(--xp-line);
  background: transparent;
  color: var(--xp-cream);
}

/* Workflow Friction Scanner */

.ws-xp-scanline {
  position: absolute;
  z-index: 2;
  top: -20%;
  left: 0;
  width: 100%;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(212, 149, 77, 0.05), rgba(212, 149, 77, 0.16), transparent);
  pointer-events: none;
  animation: wsXpScan 7.5s linear infinite;
}

.ws-scanner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.ws-scanner-questions {
  display: grid;
  gap: 0;
  padding: 8px 46px 42px;
}

.ws-scanner fieldset {
  min-width: 0;
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid var(--xp-line);
}

.ws-scanner legend {
  width: 100%;
  margin-bottom: 15px;
  color: var(--xp-cream);
  font-size: 1rem;
  font-weight: 800;
}

.ws-scanner legend b {
  margin-right: 13px;
  color: var(--xp-gold);
  font: 700 0.66rem/1 var(--ws-font-mono);
}

.ws-html-ar .ws-scanner legend b {
  margin-right: 0;
  margin-left: 13px;
}

.ws-choice-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ws-choice-row label { min-width: 0; cursor: pointer; }
.ws-choice-row input { position: absolute; opacity: 0; pointer-events: none; }

.ws-choice-row span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid var(--xp-line);
  background: rgba(7, 16, 14, 0.52);
  color: var(--xp-sand);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  transition: border 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.ws-choice-row label:hover span {
  border-color: rgba(212, 149, 77, 0.46);
  color: var(--xp-cream);
  transform: translateY(-2px);
}

.ws-choice-row input:checked + span {
  border-color: var(--xp-gold);
  background: rgba(212, 149, 77, 0.14);
  color: var(--xp-cream);
  box-shadow: inset 0 -2px 0 var(--xp-gold);
}

.ws-scanner-questions > .ws-xp-button {
  justify-self: start;
  margin-top: 26px;
}

.ws-scan-map {
  position: relative;
  display: flex;
  min-height: 570px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 44px;
  border-left: 1px solid var(--xp-line);
  background: radial-gradient(circle at 50% 30%, rgba(212, 149, 77, 0.08), transparent 42%), rgba(7, 16, 14, 0.62);
}

.ws-html-ar .ws-scan-map {
  border-right: 1px solid var(--xp-line);
  border-left: 0;
}

.ws-scan-radar {
  position: absolute;
  top: 44px;
  left: 50%;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(212, 149, 77, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}

.ws-scan-radar::before,
.ws-scan-radar::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(212, 149, 77, 0.12);
  border-radius: 50%;
}

.ws-scan-radar::after { inset: 82px; }

.ws-scan-radar i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, var(--xp-gold), transparent);
  transform-origin: left;
  animation: wsXpRadar 4.8s linear infinite;
}

.ws-scan-radar span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--xp-sand);
}

.ws-scan-radar span:nth-of-type(1) { top: 23%; left: 32%; }
.ws-scan-radar span:nth-of-type(2) { top: 58%; right: 18%; }
.ws-scan-radar span:nth-of-type(3) { bottom: 16%; left: 38%; }

.ws-scan-map.is-built .ws-scan-radar span {
  background: var(--xp-gold);
  box-shadow: 0 0 14px var(--xp-gold);
}

.ws-xp-section .ws-scan-map h3 {
  position: relative;
  margin: 16px 0 10px;
  color: var(--xp-cream);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.ws-html-ar .ws-scan-map h3 { line-height: 1.28; }
.ws-scan-map > p { position: relative; color: rgba(240, 221, 189, 0.64); }

.ws-scan-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.ws-scan-tags span {
  padding: 6px 9px;
  border: 1px solid var(--xp-line);
  color: var(--xp-sand);
  font-size: 0.68rem;
  font-weight: 700;
}

.ws-scan-route {
  position: relative;
  margin-top: 22px;
  padding: 18px 18px 15px;
  border-left: 2px solid var(--xp-gold);
  background: rgba(212, 149, 77, 0.09);
}

.ws-html-ar .ws-scan-route { border-right: 2px solid var(--xp-gold); border-left: 0; }
.ws-scan-route > span { color: var(--xp-sand); font-size: 0.64rem; font-weight: 800; text-transform: uppercase; }
.ws-scan-route strong { display: block; margin-top: 4px; color: var(--xp-cream); font-size: 1.08rem; }
.ws-scan-route p { margin: 7px 0 0; color: rgba(240, 221, 189, 0.66); font-size: 0.84rem; }

/* Diggn'It Operations X-Ray */

.ws-xray-view {
  display: flex;
  border: 1px solid var(--xp-line);
}

.ws-xray-view button {
  appearance: none;
  min-width: 92px;
  min-height: 42px;
  border: 0;
  background: rgba(7, 16, 14, 0.58);
  color: var(--xp-sand);
  cursor: pointer;
  font: 800 0.72rem/1 var(--ws-font-body);
}

.ws-xray-view button + button { border-left: 1px solid var(--xp-line); }
.ws-html-ar .ws-xray-view button + button { border-right: 1px solid var(--xp-line); border-left: 0; }
.ws-xray-view button.is-active { background: var(--xp-gold); color: var(--xp-night); }

.ws-xray {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 610px;
}

.ws-xray-nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--xp-line);
}

.ws-html-ar .ws-xray-nav { border-right: 0; border-left: 1px solid var(--xp-line); }

.ws-xray-nav button {
  appearance: none;
  position: relative;
  display: grid;
  min-height: 126px;
  gap: 3px;
  align-content: center;
  padding: 22px 25px;
  border: 0;
  border-bottom: 1px solid var(--xp-line);
  background: rgba(7, 16, 14, 0.48);
  color: var(--xp-sand);
  cursor: pointer;
  text-align: left;
}

.ws-html-ar .ws-xray-nav button { text-align: right; }
.ws-xray-nav button b { color: var(--xp-gold); font: 700 0.62rem/1 var(--ws-font-mono); }
.ws-xray-nav button span { color: inherit; font-size: 1.08rem; font-weight: 800; }
.ws-xray-nav button i { color: var(--xp-sand); font-size: 0.69rem; font-style: normal; line-height: 1.35; }

.ws-xray-nav button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--xp-deep);
  border: 1px solid var(--xp-line);
  transform: translateY(-50%);
}

.ws-html-ar .ws-xray-nav button::after { right: auto; left: -5px; }

.ws-xray-nav button.is-active {
  background: linear-gradient(90deg, rgba(212, 149, 77, 0.15), transparent);
  color: var(--xp-cream);
}

.ws-html-ar .ws-xray-nav button.is-active { background: linear-gradient(270deg, rgba(212, 149, 77, 0.15), transparent); }
.ws-xray-nav button.is-active::after { background: var(--xp-gold); border-color: var(--xp-gold); box-shadow: 0 0 16px var(--xp-gold); }

.ws-xray-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 610px;
  align-items: center;
  overflow: hidden;
  padding: 64px;
  background:
    radial-gradient(circle at 74% 44%, rgba(212, 149, 77, 0.08), transparent 28%),
    rgba(7, 16, 14, 0.4);
}

.ws-xray-grid {
  position: absolute;
  inset: 0;
  opacity: 0.48;
  background:
    linear-gradient(rgba(212, 149, 77, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 149, 77, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 76%);
  mask-image: radial-gradient(circle at center, #000, transparent 76%);
}

.ws-xray-signal {
  position: absolute;
  top: 50%;
  right: 9%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(212, 149, 77, 0.13);
  border-radius: 50%;
  transform: translateY(-50%);
}

.ws-html-ar .ws-xray-signal { right: auto; left: 9%; }

.ws-xray-signal::before,
.ws-xray-signal::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(212, 149, 77, 0.1);
  border-radius: 50%;
  inset: 45px;
}

.ws-xray-signal::after { inset: 95px; }

.ws-xray-signal i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--xp-sand);
  transform: translate(-50%, -50%);
  transition: transform 360ms ease, background 360ms ease, box-shadow 360ms ease;
}

.ws-xray-signal i:nth-child(2) { transform: translate(-120px, -62px); }
.ws-xray-signal i:nth-child(3) { transform: translate(78px, 70px); }
.ws-xray-stage.is-after .ws-xray-signal i { background: var(--xp-gold); box-shadow: 0 0 18px var(--xp-gold); }
.ws-xray-stage.is-after .ws-xray-signal i:nth-child(2) { transform: translate(-60px, -30px); }
.ws-xray-stage.is-after .ws-xray-signal i:nth-child(3) { transform: translate(40px, 34px); }

.ws-xray-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  animation: wsXpPhaseIn 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ws-xp-section .ws-xray-content h3 {
  margin: 15px 0 15px;
  color: var(--xp-cream);
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.ws-html-ar .ws-xray-content h3 { letter-spacing: 0; line-height: 1.2; }
.ws-xray-content > p { max-width: 500px; color: rgba(240, 221, 189, 0.7); }

.ws-xray-artifact {
  display: grid;
  gap: 4px;
  margin-top: 30px;
  padding: 17px 19px;
  border-left: 2px solid var(--xp-gold);
  background: rgba(212, 149, 77, 0.08);
}

.ws-html-ar .ws-xray-artifact { border-right: 2px solid var(--xp-gold); border-left: 0; }
.ws-xray-artifact span { color: var(--xp-sand); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.ws-xray-artifact strong { color: var(--xp-cream); font-size: 0.9rem; }

.ws-xray-nodes {
  position: absolute;
  right: 28px;
  bottom: 26px;
  display: flex;
  gap: 7px;
}

.ws-html-ar .ws-xray-nodes { right: auto; left: 28px; }
.ws-xray-nodes span { padding: 5px 8px; border: 1px solid var(--xp-line); color: var(--xp-sand); font: 700 0.58rem/1 var(--ws-font-mono); }

/* Founder Field Notes */

.ws-field-coordinates {
  padding-left: 18px;
  border-left: 1px solid var(--xp-gold);
  color: var(--xp-gold);
  text-align: left;
}

.ws-html-ar .ws-field-coordinates { padding-right: 18px; padding-left: 0; border-right: 1px solid var(--xp-gold); border-left: 0; text-align: right; }

.ws-field-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 610px;
}

.ws-field-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 0;
  border-right: 1px solid var(--xp-line);
}

.ws-html-ar .ws-field-timeline { border-right: 0; border-left: 1px solid var(--xp-line); }

.ws-field-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, var(--xp-gold), transparent);
  opacity: 0.45;
}

.ws-html-ar .ws-field-timeline::before { right: auto; left: -1px; }

.ws-field-timeline button {
  appearance: none;
  position: relative;
  display: grid;
  min-height: 120px;
  gap: 5px;
  align-content: center;
  padding: 20px 34px;
  border: 0;
  background: transparent;
  color: var(--xp-sand);
  cursor: pointer;
  text-align: left;
}

.ws-html-ar .ws-field-timeline button { text-align: right; }

.ws-field-timeline button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--xp-line);
  border-radius: 50%;
  background: var(--xp-deep);
  transform: translateY(-50%);
}

.ws-html-ar .ws-field-timeline button::after { right: auto; left: -5px; }
.ws-field-timeline button b { color: var(--xp-gold); font: 700 0.62rem/1 var(--ws-font-mono); }
.ws-field-timeline button span { color: inherit; font-size: 1rem; font-weight: 800; }
.ws-field-timeline button i { color: var(--xp-sand); font-size: 0.73rem; font-style: normal; }
.ws-field-timeline button.is-active { background: linear-gradient(90deg, rgba(212, 149, 77, 0.13), transparent); color: var(--xp-cream); }
.ws-html-ar .ws-field-timeline button.is-active { background: linear-gradient(270deg, rgba(212, 149, 77, 0.13), transparent); }
.ws-field-timeline button.is-active::after { background: var(--xp-gold); border-color: var(--xp-gold); box-shadow: 0 0 18px var(--xp-gold); }

.ws-field-stage {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 70px;
  background:
    linear-gradient(180deg, rgba(7, 16, 14, 0.2), rgba(7, 16, 14, 0.84)),
    radial-gradient(circle at 65% 22%, rgba(184, 109, 53, 0.16), transparent 35%);
}

.ws-field-horizon {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ws-field-horizon::before {
  content: "";
  position: absolute;
  top: 31%;
  left: -8%;
  width: 116%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 149, 77, 0.55), transparent);
  box-shadow: 0 0 26px rgba(212, 149, 77, 0.22);
}

.ws-field-horizon span:nth-child(1) {
  position: absolute;
  top: 20%;
  right: 17%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(212, 149, 77, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(212, 149, 77, 0.02), 0 0 0 88px rgba(212, 149, 77, 0.015);
}

.ws-html-ar .ws-field-horizon span:nth-child(1) { right: auto; left: 17%; }
.ws-field-horizon span:nth-child(2) { position: absolute; top: 31%; left: 15%; width: 5px; height: 5px; border-radius: 50%; background: var(--xp-gold); box-shadow: 0 0 18px var(--xp-gold); }
.ws-field-horizon i { position: absolute; inset: 0; opacity: 0.15; background: repeating-linear-gradient(90deg, transparent 0 54px, rgba(240, 221, 189, 0.12) 55px 56px); -webkit-mask-image: linear-gradient(transparent, #000 50%, transparent); mask-image: linear-gradient(transparent, #000 50%, transparent); }

.ws-field-stage > *:not(.ws-field-horizon) { position: relative; z-index: 2; }
.ws-field-stage blockquote { max-width: 760px; margin: 0 0 22px; color: var(--xp-gold); font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 700; line-height: 1.45; }

.ws-xp-section .ws-field-stage h3 {
  max-width: 730px;
  margin: 0 0 15px;
  color: var(--xp-cream);
  font-size: clamp(2.6rem, 5.4vw, 5.8rem);
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.ws-html-ar .ws-field-stage h3 { letter-spacing: 0; line-height: 1.2; }
.ws-field-stage > p { max-width: 680px; color: rgba(240, 221, 189, 0.7); }

.ws-field-proof {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--xp-line);
}

.ws-field-proof span { color: var(--xp-sand); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.ws-field-proof strong { color: var(--xp-cream); font-size: 0.82rem; }

/* Signal Atlas */

.ws-atlas-count {
  display: grid;
  min-width: 112px;
  justify-items: end;
}

.ws-atlas-count strong {
  color: var(--xp-gold);
  font: 900 3.8rem/0.8 var(--ws-font-display);
}

.ws-atlas-count span { margin-top: 8px; color: var(--xp-sand); font: 700 0.62rem/1 var(--ws-font-mono); text-transform: uppercase; }

.ws-atlas-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 46px;
  border-bottom: 1px solid var(--xp-line);
}

.ws-atlas-filters button {
  appearance: none;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--xp-line);
  background: rgba(7, 16, 14, 0.46);
  color: var(--xp-sand);
  cursor: pointer;
  font: 800 0.7rem/1 var(--ws-font-body);
}

.ws-atlas-filters button.is-active { border-color: var(--xp-gold); background: rgba(212, 149, 77, 0.14); color: var(--xp-cream); }

.ws-atlas-map {
  position: relative;
  min-height: 650px;
  padding: 44px;
}

.ws-atlas-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 152px;
  height: 152px;
  place-items: center;
  border: 1px solid rgba(212, 149, 77, 0.38);
  border-radius: 50%;
  background: rgba(7, 16, 14, 0.94);
  box-shadow: 0 0 0 34px rgba(212, 149, 77, 0.025), 0 0 0 68px rgba(212, 149, 77, 0.018), 0 0 80px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
}

.ws-atlas-core::before,
.ws-atlas-core::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(212, 149, 77, 0.2);
  border-radius: 50%;
  animation: wsXpSpin 18s linear infinite;
}

.ws-atlas-core::after { inset: -18px; animation-direction: reverse; animation-duration: 26s; }
.ws-atlas-core span { color: var(--xp-cream); font: 800 0.68rem/1.55 var(--ws-font-mono); letter-spacing: 0.06em; text-align: center; }
.ws-html-ar .ws-atlas-core span { font-family: var(--ws-font-arabic); letter-spacing: 0; }
.ws-atlas-core i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--xp-gold); box-shadow: 0 0 18px var(--xp-gold); }

.ws-atlas-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ws-atlas-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--xp-line);
  background: linear-gradient(150deg, rgba(23, 40, 34, 0.78), rgba(7, 16, 14, 0.78));
  color: var(--xp-cream) !important;
  text-decoration: none !important;
  transition: border 220ms ease, transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.ws-atlas-card:nth-child(1),
.ws-atlas-card:nth-child(2),
.ws-atlas-card:nth-child(3) { transform: translateY(-12px); }
.ws-atlas-card:nth-child(4),
.ws-atlas-card:nth-child(5),
.ws-atlas-card:nth-child(6) { transform: translateY(12px); }

.ws-atlas-card:hover {
  z-index: 4;
  border-color: rgba(212, 149, 77, 0.56);
  transform: translateY(-6px) scale(1.014);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.ws-atlas-card.is-filtered {
  display: none;
}

.ws-atlas-card > span { max-width: calc(100% - 34px); color: var(--xp-gold); font: 700 0.58rem/1.35 var(--ws-font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.ws-html-ar .ws-atlas-card > span { font-family: var(--ws-font-arabic); letter-spacing: 0; }
.ws-atlas-card > b { position: absolute; top: 20px; right: 20px; color: rgba(240, 221, 189, 0.18); font: 900 2.2rem/1 var(--ws-font-display); }
.ws-html-ar .ws-atlas-card > b { right: auto; left: 20px; }

.ws-xp-section .ws-atlas-card h3 {
  margin: auto 0 10px;
  color: var(--xp-cream);
  font-size: clamp(1.2rem, 1.6vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.ws-html-ar .ws-atlas-card h3 { letter-spacing: 0; line-height: 1.35; }
.ws-atlas-card p { margin: 0; color: rgba(240, 221, 189, 0.58); font-size: 0.79rem; line-height: 1.48; }

@keyframes wsXpPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.84); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes wsXpSpin { to { transform: rotate(360deg); } }

@keyframes wsXpPhaseIn {
  from { opacity: 0; filter: blur(7px); transform: translateY(18px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes wsXpScan {
  from { transform: translateY(-20%); }
  to { transform: translateY(620%); }
}

@keyframes wsXpRadar { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .ws-xp-header { padding: 36px 34px 30px; }
  .ws-lab { grid-template-columns: 118px minmax(0, 1fr); }
  .ws-lab-note { grid-column: 1 / -1; min-height: 280px; border-top: 1px solid var(--xp-line); border-left: 0; }
  .ws-html-ar .ws-lab-note { border-right: 0; }
  .ws-lab-stage { padding: 40px 34px 30px; }
  .ws-scanner { grid-template-columns: 1fr; }
  .ws-scan-map { min-height: 520px; border-top: 1px solid var(--xp-line); border-left: 0; }
  .ws-html-ar .ws-scan-map { border-right: 0; }
  .ws-xray { grid-template-columns: 220px minmax(0, 1fr); }
  .ws-xray-stage { padding: 48px; }
  .ws-xray-signal { opacity: 0.5; }
  .ws-field-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .ws-field-stage { padding: 50px; }
  .ws-atlas-map { padding: 34px; }
  .ws-atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-atlas-card:nth-child(n) { transform: none; }
  .ws-atlas-core { display: none; }
}

@media (max-width: 720px) {
  .ws-xp-section { padding: 42px 0; }
  .ws-xp-section .ws-html-inner { padding: 0 14px; }
  .ws-xp-shell { min-height: 0; background-size: 44px 44px, 44px 44px, auto; }
  .ws-xp-header { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px 24px; }
  .ws-xp-section .ws-xp-header h2 { font-size: clamp(2.25rem, 13vw, 3.6rem); letter-spacing: -0.045em; }
  .ws-html-ar .ws-xp-header h2 { letter-spacing: 0; }
  .ws-xp-privacy { justify-self: start; }
  .ws-xp-orbit { display: none; }

  .ws-lab { display: block; }
  .ws-lab-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--xp-line); }
  .ws-html-ar .ws-lab-rail { border-left: 0; }
  .ws-lab-rail button { min-height: 68px; padding: 9px 7px; text-align: center; }
  .ws-html-ar .ws-lab-rail button { text-align: center; }
  .ws-lab-rail button::after { top: auto; right: 0; bottom: -1px; width: 0; height: 2px; transition: width 260ms ease; }
  .ws-html-ar .ws-lab-rail button::after { right: 0; left: auto; }
  .ws-lab-rail button.is-active::after { width: 100%; height: 2px; }
  .ws-lab-stage { min-height: 570px; padding: 32px 20px 24px; }
  .ws-xp-section .ws-lab-phase h3 { font-size: clamp(2.1rem, 11vw, 3.3rem); }
  .ws-lab-grid { grid-template-columns: 1fr; gap: 0; }
  .ws-lab-controls { grid-template-columns: auto minmax(30px, 1fr) auto; gap: 8px; }
  .ws-xp-button { min-height: 43px; padding: 0 13px; font-size: 0.7rem; }
  .ws-lab-note { padding: 32px 22px; }

  .ws-scanner-questions { padding: 4px 20px 30px; }
  .ws-choice-row { grid-template-columns: 1fr; }
  .ws-choice-row span { min-height: 44px; }
  .ws-scan-map { min-height: 560px; padding: 30px 22px; }
  .ws-scan-radar { top: 34px; width: 220px; height: 220px; }

  .ws-xray-view { justify-self: start; }
  .ws-xray { display: block; }
  .ws-xray-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--xp-line); }
  .ws-html-ar .ws-xray-nav { border-left: 0; }
  .ws-xray-nav button { min-height: 92px; padding: 14px; }
  .ws-xray-nav button::after { display: none; }
  .ws-xray-stage { min-height: 570px; padding: 32px 22px 70px; align-items: end; }
  .ws-xray-signal { top: 30%; right: -36px; width: 230px; height: 230px; opacity: 0.45; }
  .ws-html-ar .ws-xray-signal { right: auto; left: -36px; }
  .ws-xp-section .ws-xray-content h3 { font-size: clamp(2.65rem, 13vw, 4.3rem); }
  .ws-xray-nodes { right: 18px; bottom: 20px; flex-wrap: wrap; }
  .ws-html-ar .ws-xray-nodes { right: auto; left: 18px; }

  .ws-field-layout { display: block; }
  .ws-field-timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; border-right: 0; border-bottom: 1px solid var(--xp-line); }
  .ws-html-ar .ws-field-timeline { border-left: 0; }
  .ws-field-timeline::before,
  .ws-field-timeline button::after { display: none; }
  .ws-field-timeline button { min-height: 90px; padding: 14px 18px; }
  .ws-field-stage { min-height: 590px; padding: 38px 22px; }
  .ws-xp-section .ws-field-stage h3 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .ws-field-proof { align-items: flex-start; flex-direction: column; gap: 5px; }

  .ws-atlas-count { justify-items: start; }
  .ws-atlas-filters { padding: 20px 22px; }
  .ws-atlas-map { min-height: 0; padding: 20px; }
  .ws-atlas-grid { grid-template-columns: 1fr; }
  .ws-atlas-card { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-xp-section *,
  .ws-xp-section *::before,
  .ws-xp-section *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.ws-motion-reduced .ws-xp-section *,
.ws-motion-reduced .ws-xp-section *::before,
.ws-motion-reduced .ws-xp-section *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.ws-motion-reduced .ws-xp-section .ws-reveal {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}
