/* why-ripple redesign scoped to .wrx-page */
.wrx-page{
  --ink: #08101f;
  --ink-2: #101b31;
  --paper: #f6f8fc;
  --paper-2: #edf2f9;
  --line: rgba(92, 118, 160, .22);
  --muted: #64728a;
  --text: #162238;
  --text-soft: #43516a;
  --white: #ffffff;
  --xrp: #38d4ff;
  --xrp-2: #6a7cff;
  --cyan-soft: #d9f7ff;
  --violet: #8b7bff;
  --mint: #6ce1bd;
  --gold: #f5c96a;
  --red: #ff7a8f;
  --shadow-sm: 0 10px 30px rgba(17, 35, 70, .08);
  --shadow-md: 0 22px 70px rgba(17, 35, 70, .14);
  --radius-sm: 16px;
  --radius-md: 26px;
  --radius-lg: 38px;
  --max: 1180px;
  --copy: 740px;
  --ease: cubic-bezier(.2,.8,.2,1);
}.wrx-page *{ box-sizing: border-box; }html:has(.wrx-page){ scroll-behavior: smooth; }.wrx-page{
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(56, 212, 255, .09), transparent 30rem),
    linear-gradient(180deg, #fff 0%, var(--paper) 32%, #fff 100%);
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}.wrx-page button, .wrx-page input{ font: inherit; }.wrx-page a{ color: inherit; }.wrx-page img, .wrx-page svg{ max-width: 100%; }.wrx-page ::selection{ background: rgba(56, 212, 255, .25); }.wrx-page .skip-link{
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transition: top .2s ease;
}.wrx-page .skip-link:focus{ top: 16px; }.wrx-page .site-header{
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(8, 16, 31, .82);
  backdrop-filter: blur(18px) saturate(140%);
  color: #fff;
}.wrx-page .header-inner{
  width: min(var(--max), calc(100% - 36px));
  height: 62px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}.wrx-page .brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
}.wrx-page .brand-mark{
  width: 30px;
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--xrp), var(--xrp-2));
  box-shadow: 0 0 24px rgba(56, 212, 255, .4);
}.wrx-page .brand-mark svg{ width: 19px; }.wrx-page .header-progress{
  height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  overflow: hidden;
}.wrx-page .header-progress > span{
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--xrp), var(--violet));
}.wrx-page .header-meta{
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  white-space: nowrap;
}.wrx-page .hero{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 34%, rgba(56, 212, 255, .16), transparent 26rem),
    radial-gradient(circle at 20% 68%, rgba(139, 123, 255, .15), transparent 28rem),
    linear-gradient(145deg, #07101f 0%, #0c1730 58%, #081121 100%);
  color: #fff;
  min-height: 820px;
}.wrx-page .hero::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}.wrx-page .hero-inner{
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
  padding: 94px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 68px;
}.wrx-page .eyebrow{
  margin: 0 0 20px;
  color: var(--xrp);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}.wrx-page .hero h1{
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.065em;
  max-width: 9ch;
}.wrx-page .hero h1 .thin{
  display: block;
  margin-top: .2em;
  color: rgba(255,255,255,.68);
  font-weight: 500;
  font-size: .42em;
  line-height: 1.35;
  letter-spacing: -.03em;
}.wrx-page .hero-lead{
  margin: 32px 0 0;
  max-width: 640px;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.9;
}.wrx-page .hero-lead strong{ color: #fff; }.wrx-page .hero-actions{
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}.wrx-page .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease;
}.wrx-page .btn:hover{ transform: translateY(-2px); }.wrx-page .btn-primary{
  color: var(--ink);
  background: linear-gradient(135deg, #fff, var(--cyan-soft));
  box-shadow: 0 12px 30px rgba(56, 212, 255, .16);
}.wrx-page .btn-ghost{
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}.wrx-page .hero-badges{
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}.wrx-page .hero-badge{
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.035);
  font-size: .73rem;
}.wrx-page .hero-viz{
  position: relative;
  min-height: 620px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 40px 120px rgba(0,0,0,.36);
  overflow: hidden;
}.wrx-page .hero-viz::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 82%, rgba(56,212,255,.16), transparent 36%);
  pointer-events: none;
}.wrx-page .viz-topline{
  position: absolute;
  inset: 22px 22px auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.58);
  font-size: .69rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}.wrx-page .viz-surface{
  position: absolute;
  inset: 82px 36px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}.wrx-page .asset-pill{
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.055);
  font-size: .72rem;
}.wrx-page .viz-boundary{
  position: absolute;
  top: 180px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.4);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}.wrx-page .viz-boundary::before, .wrx-page .viz-boundary::after{
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(56,212,255,.35), transparent);
}.wrx-page .viz-network{
  position: absolute;
  inset: 220px 28px 80px;
}.wrx-page .viz-node{
  position: absolute;
  width: 138px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(8,16,31,.7);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
  transform: translate(-50%, -50%);
}.wrx-page .viz-node b{ display: block; font-size: .78rem; }.wrx-page .viz-node span{ display: block; margin-top: 4px; color: rgba(255,255,255,.45); font-size: .65rem; line-height: 1.4; }.wrx-page .viz-node.bank{ left: 20%; top: 20%; }.wrx-page .viz-node.pb{ left: 80%; top: 22%; }.wrx-page .viz-node.mm{ left: 18%; top: 64%; }.wrx-page .viz-node.custody{ left: 82%; top: 64%; }.wrx-page .xrp-core{
  position: absolute;
  left: 50%;
  top: 49%;
  width: 170px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg, rgba(56,212,255,.9), rgba(106,124,255,.95));
  box-shadow: 0 0 0 18px rgba(56,212,255,.05), 0 0 0 38px rgba(56,212,255,.025), 0 0 72px rgba(56,212,255,.38);
}.wrx-page .xrp-core::after{
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(56,212,255,.26);
  border-radius: 50%;
  animation: core-ring 3s ease-out infinite;
}.wrx-page .xrp-core strong{ font-size: 1.55rem; letter-spacing: -.04em; }.wrx-page .xrp-core small{ display: block; text-align: center; color: rgba(255,255,255,.78); font-size: .63rem; }.wrx-page .network-lines{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}.wrx-page .network-lines line{
  stroke: rgba(56,212,255,.28);
  stroke-width: 1.2;
  stroke-dasharray: 4 8;
}.wrx-page .packet{
  position: absolute;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px var(--xrp);
  opacity: 0;
}.wrx-page .packet.p1{ animation: packet-1 4.6s linear infinite; }.wrx-page .packet.p2{ animation: packet-2 5.2s linear 1.1s infinite; }.wrx-page .packet.p3{ animation: packet-3 5.8s linear 2.2s infinite; }.wrx-page .viz-caption{
  position: absolute;
  inset: auto 32px 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.58);
  font-size: .72rem;
  text-align: center;
}@keyframes core-ring{
  0% { transform: scale(.8); opacity: 0; }
  28% { opacity: .7; }
  100% { transform: scale(1.18); opacity: 0; }
}@keyframes packet-1{
  0% { left: 20%; top: 20%; opacity: 0; }
  10% { opacity: 1; }
  47% { left: 49%; top: 48%; opacity: 1; }
  55% { opacity: 1; }
  100% { left: 80%; top: 22%; opacity: 0; }
}@keyframes packet-2{
  0% { left: 18%; top: 64%; opacity: 0; }
  10% { opacity: 1; }
  47% { left: 49%; top: 50%; opacity: 1; }
  100% { left: 82%; top: 64%; opacity: 0; }
}@keyframes packet-3{
  0% { left: 82%; top: 64%; opacity: 0; }
  10% { opacity: 1; }
  48% { left: 50%; top: 50%; opacity: 1; }
  100% { left: 20%; top: 20%; opacity: 0; }
}.wrx-page .article-shell{
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 66px;
  padding: 74px 0 120px;
  min-width: 0;
}.wrx-page .article-main{ min-width: 0; max-width: 100%; }.wrx-page .chapter-rail{
  position: relative;
}.wrx-page .chapter-nav{
  position: sticky;
  top: 94px;
  display: grid;
  gap: 6px;
}.wrx-page .chapter-nav a{
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 10px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: .76rem;
  line-height: 1.45;
  transition: background .2s ease, color .2s ease, transform .2s var(--ease);
}.wrx-page .chapter-nav a:hover{ background: #fff; color: var(--text); transform: translateX(3px); }.wrx-page .chapter-nav a[aria-current="true"]{ background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }.wrx-page .chapter-nav .num{ color: var(--xrp-2); font-weight: 900; }.wrx-page .rail-note{
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.7;
}.wrx-page .article-main{ min-width: 0; }.wrx-page .article-meta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}.wrx-page .meta-chip{
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: .72rem;
}.wrx-page .intro-card{
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(56,212,255,.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(56,212,255,.13), transparent 24rem),
    #fff;
  box-shadow: var(--shadow-md);
}.wrx-page .intro-card h2{
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -.05em;
}.wrx-page .three-lines{ display: grid; gap: 12px; }.wrx-page .three-line{
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: var(--paper);
}.wrx-page .three-line .index{
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--xrp-2), var(--xrp));
  font-weight: 900;
}.wrx-page .three-line p{ margin: 0; line-height: 1.75; }.wrx-page .article-section{
  scroll-margin-top: 90px;
  padding-top: 92px;
}.wrx-page .section-kicker{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--xrp-2);
  font-weight: 900;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}.wrx-page .section-kicker::after{
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(106,124,255,.35), transparent);
}.wrx-page .article-section h2{
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2rem, 4.8vw, 4.7rem);
  line-height: 1.06;
  letter-spacing: -.06em;
}.wrx-page .section-deck{
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--text-soft);
  font-size: 1.03rem;
}.wrx-page .copy{
  max-width: var(--copy);
  margin-top: 34px;
}.wrx-page .copy p{ margin: 0 0 1.45em; }.wrx-page .copy strong{ color: #0b172a; }.wrx-page .pullquote{
  margin: 44px 0;
  padding: 8px 0 8px 24px;
  border-left: 4px solid var(--xrp);
  color: var(--ink-2);
  font-size: clamp(1.28rem, 2.2vw, 1.8rem);
  line-height: 1.65;
  letter-spacing: -.025em;
  font-weight: 700;
}.wrx-page .note-card{
  margin: 32px 0;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}.wrx-page .note-card .label{
  display: block;
  margin-bottom: 10px;
  color: var(--xrp-2);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}.wrx-page .note-card p:last-child{ margin-bottom: 0; }.wrx-page .figure{
  margin: 54px 0 18px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}.wrx-page .figure-header{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}.wrx-page .figure-tag{
  margin: 0 0 6px;
  color: var(--xrp-2);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}.wrx-page .figure h3{
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -.04em;
}.wrx-page .figure-help{
  color: var(--muted);
  font-size: .68rem;
  text-align: right;
}.wrx-page .figure-body{ padding-top: 26px; }.wrx-page .figure-caption{
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.7;
}.wrx-page /* Fig 01 */
.stack-world{ display: grid; gap: 14px; }.wrx-page .stack-layer{
  position: relative;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
}.wrx-page .stack-layer.surface{
  border: 1px solid var(--line);
  background: var(--paper);
}.wrx-page .stack-layer.hidden{
  color: #fff;
  background:
    radial-gradient(circle at 72% 10%, rgba(56,212,255,.15), transparent 24rem),
    var(--ink-2);
}.wrx-page .layer-title{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}.wrx-page .layer-title b{ font-size: .86rem; }.wrx-page .layer-title span{ color: var(--muted); font-size: .68rem; }.wrx-page .hidden .layer-title span{ color: rgba(255,255,255,.45); }.wrx-page .token-row{ display: flex; flex-wrap: wrap; gap: 10px; }.wrx-page .token{
  min-width: 72px;
  padding: 9px 12px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
}.wrx-page .hidden-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}.wrx-page .hidden-card{
  padding: 16px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}.wrx-page .hidden-card b{ display: block; font-size: .75rem; }.wrx-page .hidden-card span{ display: block; margin-top: 4px; color: rgba(255,255,255,.48); font-size: .66rem; line-height: 1.45; }.wrx-page .neutral-floor{
  margin-top: 12px;
  padding: 18px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan-soft), #e9e7ff);
}.wrx-page .neutral-orb{
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--xrp), var(--xrp-2));
  box-shadow: 0 8px 22px rgba(56,212,255,.26);
  font-weight: 900;
}.wrx-page .neutral-floor strong{ display: block; line-height: 1.4; }.wrx-page .neutral-floor small{ color: var(--text-soft); }.wrx-page /* Fig 02 */
.mode-switch{
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--paper-2);
}.wrx-page .mode-switch button{
  appearance: none;
  border: 0;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  font-size: .75rem;
}.wrx-page .mode-switch button[aria-pressed="true"]{
  color: var(--ink);
  background: #fff;
  box-shadow: 0 5px 18px rgba(21,35,62,.1);
}.wrx-page .flow-stock-stage{
  position: relative;
  min-height: 380px;
  margin-top: 22px;
  border-radius: 26px;
  background:
    linear-gradient(rgba(14,32,62,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,32,62,.05) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  overflow: hidden;
}.wrx-page .fs-path{
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(106,124,255,.12);
}.wrx-page .fs-end{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 92px;
  min-height: 92px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: .76rem;
  font-weight: 900;
}.wrx-page .fs-end.left{ left: 6%; }.wrx-page .fs-end.right{ right: 6%; }.wrx-page .fs-coin{
  position: absolute;
  left: 15%;
  top: 50%;
  width: 58px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--xrp), var(--xrp-2));
  box-shadow: 0 0 24px rgba(56,212,255,.28);
  font-weight: 900;
}.wrx-page .flow-mode .fs-coin{ animation: flow-pass 3.1s var(--ease) infinite; }.wrx-page .stock-mode .fs-coin{ left: 50%; animation: stock-lock 2.6s var(--ease) infinite; }.wrx-page .fs-status{
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: min(82%, 520px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}.wrx-page .fs-stat{
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.9);
  text-align: center;
}.wrx-page .fs-stat b{ display: block; font-size: .78rem; }.wrx-page .fs-stat span{ color: var(--muted); font-size: .65rem; }.wrx-page .stock-mode .fs-stat:last-child{ border-color: rgba(108,225,189,.5); background: #f0fff9; }@keyframes flow-pass{
  0% { left: 16%; opacity: 0; }
  10% { opacity: 1; }
  50% { left: 50%; }
  90% { opacity: 1; }
  100% { left: 84%; opacity: 0; }
}@keyframes stock-lock{
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(56,212,255,.3); }
  50% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 18px rgba(56,212,255,0); }
}.wrx-page /* Fig 03 */
.moat-stack{ display: grid; gap: 10px; }.wrx-page .moat-layer{
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}.wrx-page .moat-layer:hover, .wrx-page .moat-layer.is-active{
  transform: translateX(8px);
  border-color: rgba(56,212,255,.48);
  box-shadow: var(--shadow-sm);
}.wrx-page .moat-level{
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--xrp-2), var(--xrp));
  font-weight: 900;
}.wrx-page .moat-copy b{ display: block; }.wrx-page .moat-copy span{ display: block; color: var(--muted); font-size: .72rem; line-height: 1.5; }.wrx-page .moat-proof{
  max-width: 230px;
  color: var(--text-soft);
  font-size: .68rem;
  text-align: right;
}.wrx-page .moat-foundation{
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background: var(--ink-2);
  text-align: center;
  font-weight: 900;
}.wrx-page /* Fig 04 */
.seat-map{
  position: relative;
  min-height: 620px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(56,212,255,.11), transparent 31%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--ink-2);
  background-size: auto, 34px 34px, 34px 34px, auto;
  overflow: hidden;
}.wrx-page .seat-center{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(56,212,255,.9), rgba(106,124,255,.92));
  box-shadow: 0 0 0 22px rgba(56,212,255,.04), 0 0 0 50px rgba(56,212,255,.025), 0 20px 60px rgba(0,0,0,.25);
  animation: seat-breathe 4s ease-in-out infinite;
}.wrx-page .seat-center b{ display: block; font-size: 1.15rem; line-height: 1.25; }.wrx-page .seat-center span{ display: block; margin-top: 6px; color: rgba(255,255,255,.74); font-size: .68rem; line-height: 1.45; }.wrx-page .seat-node{
  position: absolute;
  width: 146px;
  min-height: 82px;
  transform: translate(-50%, -50%);
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 17px;
  color: #fff;
  background: rgba(8,16,31,.76);
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
}.wrx-page .seat-node b{ display: block; font-size: .76rem; }.wrx-page .seat-node span{ display: block; margin-top: 4px; color: rgba(255,255,255,.46); font-size: .64rem; line-height: 1.45; }.wrx-page .seat-node.n1{ left: 18%; top: 17%; }.wrx-page .seat-node.n2{ left: 50%; top: 12%; }.wrx-page .seat-node.n3{ left: 82%; top: 17%; }.wrx-page .seat-node.n4{ left: 88%; top: 50%; }.wrx-page .seat-node.n5{ left: 78%; top: 83%; }.wrx-page .seat-node.n6{ left: 50%; top: 88%; }.wrx-page .seat-node.n7{ left: 22%; top: 83%; }.wrx-page .seat-node.n8{ left: 12%; top: 50%; }.wrx-page .seat-rays{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}.wrx-page .seat-rays line{ stroke: rgba(56,212,255,.18); stroke-width: 1; stroke-dasharray: 5 9; }@keyframes seat-breathe{ 50% { transform: translate(-50%, -50%) scale(1.035); } }.wrx-page /* Fig 05 */
.flywheel-wrap{
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, .65fr);
  gap: 24px;
  align-items: center;
}.wrx-page .flywheel{
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 600px;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 25%, var(--paper) 26% 100%);
}.wrx-page .flywheel svg{
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  animation: rotate-wheel 26s linear infinite;
}.wrx-page .flywheel.is-paused svg{ animation-play-state: paused; }.wrx-page .flywheel .wheel-path{ fill: none; stroke: rgba(106,124,255,.22); stroke-width: 5; stroke-dasharray: 9 9; }.wrx-page .flywheel-node{
  position: absolute;
  width: 118px;
  min-height: 78px;
  transform: translate(-50%, -50%);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: center;
  transition: transform .25s var(--ease), border-color .25s ease;
}.wrx-page .flywheel-node:hover, .wrx-page .flywheel-node.is-active{ transform: translate(-50%, -50%) scale(1.05); border-color: rgba(56,212,255,.5); }.wrx-page .flywheel-node b{ display: block; font-size: .7rem; }.wrx-page .flywheel-node span{ display: block; margin-top: 3px; color: var(--muted); font-size: .61rem; line-height: 1.35; }.wrx-page .flywheel-node.w1{ left: 50%; top: 8%; }.wrx-page .flywheel-node.w2{ left: 86%; top: 29%; }.wrx-page .flywheel-node.w3{ left: 86%; top: 70%; }.wrx-page .flywheel-node.w4{ left: 50%; top: 92%; }.wrx-page .flywheel-node.w5{ left: 14%; top: 70%; }.wrx-page .flywheel-node.w6{ left: 14%; top: 29%; }.wrx-page .wheel-core{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink-2);
  text-align: center;
  box-shadow: 0 18px 40px rgba(8,16,31,.22);
}.wrx-page .wheel-core b{ display: block; font-size: .88rem; }.wrx-page .wheel-core span{ display: block; color: rgba(255,255,255,.55); font-size: .62rem; }.wrx-page .wheel-panel{
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: var(--ink-2);
}.wrx-page .wheel-panel .step{ color: var(--xrp); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }.wrx-page .wheel-panel h4{ margin: 10px 0 10px; font-size: 1.45rem; line-height: 1.3; }.wrx-page .wheel-panel p{ margin: 0; color: rgba(255,255,255,.63); font-size: .8rem; line-height: 1.75; }.wrx-page .wheel-controls{ margin-top: 18px; display: flex; gap: 10px; }.wrx-page .wheel-controls button{
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font-size: .7rem;
}@keyframes rotate-wheel{ to { transform: rotate(360deg); } }.wrx-page /* Fig 06 */
.signal-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}.wrx-page .signal-column{
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}.wrx-page .signal-column.good{ background: linear-gradient(180deg, #f2fff9, #fff); border-color: rgba(108,225,189,.38); }.wrx-page .signal-column.bad{ background: linear-gradient(180deg, #fff5f7, #fff); border-color: rgba(255,122,143,.3); }.wrx-page .signal-column h4{ margin: 0 0 16px; font-size: 1rem; }.wrx-page .signal-list{ display: grid; gap: 10px; }.wrx-page .signal-item{
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.8);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s ease;
}.wrx-page .signal-item:hover{ transform: translateY(-2px); box-shadow: var(--shadow-sm); }.wrx-page .signal-icon{
  width: 28px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: .7rem;
  font-weight: 900;
}.wrx-page .good .signal-icon{ color: #0e6b51; background: #dffcef; }.wrx-page .bad .signal-icon{ color: #9c3246; background: #ffe3e8; }.wrx-page .signal-item b{ display: block; font-size: .74rem; }.wrx-page .signal-item span{ display: block; margin-top: 3px; color: var(--muted); font-size: .65rem; line-height: 1.45; }.wrx-page .signal-item.is-on{ outline: 2px solid currentColor; }.wrx-page .dashboard-meter{
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: var(--ink-2);
}.wrx-page .meter-top{ display: flex; justify-content: space-between; gap: 12px; font-size: .74rem; }.wrx-page .meter-track{ height: 10px; margin-top: 12px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }.wrx-page .meter-track span{ display: block; height: 100%; width: 50%; background: linear-gradient(90deg, var(--red), var(--gold), var(--mint)); transition: width .35s var(--ease); }.wrx-page .meter-copy{ margin-top: 10px; color: rgba(255,255,255,.58); font-size: .68rem; }.wrx-page .summary-panel{
  margin-top: 54px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(56,212,255,.17), transparent 24rem),
    var(--ink-2);
  box-shadow: var(--shadow-md);
}.wrx-page .summary-panel h3{ margin: 0 0 24px; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -.04em; }.wrx-page .summary-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }.wrx-page .summary-item{
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}.wrx-page .summary-item b{ display: block; color: var(--xrp); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }.wrx-page .summary-item p{ margin: 6px 0 0; color: rgba(255,255,255,.7); font-size: .78rem; line-height: 1.7; }.wrx-page .reading-map{
  margin-top: 92px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}.wrx-page .reading-map h2{ max-width: none; font-size: clamp(2rem, 4vw, 3.6rem); }.wrx-page .reading-map-grid{
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}.wrx-page .reading-card{
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}.wrx-page .reading-card h3{ margin: 0 0 6px; font-size: 1rem; }.wrx-page .reading-card > p{ margin: 0 0 14px; color: var(--muted); font-size: .74rem; }.wrx-page .reading-card ul{ margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }.wrx-page .reading-card a{
  display: inline-flex;
  gap: 8px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: .74rem;
  line-height: 1.55;
}.wrx-page .reading-card a::before{ content: "↗"; color: var(--xrp-2); }.wrx-page .reading-card a:hover{ color: var(--xrp-2); }.wrx-page .article-end{
  margin-top: 42px;
  padding: 24px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--muted);
  font-size: .74rem;
}.wrx-page .back-to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  background: rgba(8,16,31,.88);
  box-shadow: 0 12px 30px rgba(8,16,31,.2);
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease);
}.wrx-page .back-to-top.is-visible{ opacity: 1; transform: translateY(0); pointer-events: auto; }.wrx-page .reveal{opacity:1;transform:none;}.wrx-page .reveal.is-visible{ opacity: 1; transform: none; }

/* —— Mobile / tablet (must re-scope under .wrx-page; bare selectors lose to base) —— */
.wrx-page {
  min-height: 60vh;
  overflow-x: clip;
  max-width: 100%;
}
.wrx-page .site-header { display: none; }
.wrx-page .header-progress-standalone {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  background: rgba(8,16,31,.08);
}
.wrx-page .header-progress-standalone > span {
  display:block; height:100%; width:0;
  background: linear-gradient(90deg, #38d4ff, #6a7cff);
}
.wrx-page .reveal { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.wrx-page.wrx-enhanced .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.wrx-page .reveal.is-visible { opacity: 1; transform: none; }
.wrx-page a { color: #1a5f8a; text-decoration: underline; text-underline-offset: 3px; }
.wrx-page a:hover { color: #0d3d5c; }
.wrx-page .btn, .wrx-page .brand, .wrx-page .chapter-nav a, .wrx-page .mode-switch button, .wrx-page .reading-card a { text-decoration: none; }

@media (max-width: 1040px){
  .wrx-page .hero-inner {
    grid-template-columns: 1fr;
    width: min(var(--max), calc(100% - 28px));
  }
  .wrx-page .hero h1 { max-width: 12ch; }
  .wrx-page .hero-viz {
    min-height: 560px;
    min-width: 0;
    width: 100%;
  }
  .wrx-page .article-shell {
    grid-template-columns: 1fr;
    width: min(var(--max), calc(100% - 28px));
    gap: 28px;
  }
  .wrx-page .chapter-rail { display: none; }
  .wrx-page .flywheel-wrap {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .wrx-page .wheel-panel { max-width: 620px; margin-inline: auto; width: 100%; }
}

@media (max-width: 760px){
  .wrx-page { line-height: 1.8; }
  .wrx-page .header-inner { grid-template-columns: auto 1fr; }
  .wrx-page .header-meta { display: none; }
  .wrx-page .hero { min-height: auto; overflow: hidden; }
  .wrx-page .hero-inner {
    padding: 70px 0 58px;
    gap: 42px;
    width: min(var(--max), calc(100% - 24px));
    grid-template-columns: 1fr;
  }
  .wrx-page .hero h1 {
    font-size: clamp(2.5rem, 12vw, 4.7rem);
    max-width: none;
  }
  .wrx-page .hero-viz {
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
  }
  .wrx-page .viz-topline {
    inset: 14px 12px auto;
    font-size: .62rem;
    gap: 8px;
  }
  .wrx-page .viz-surface {
    inset: 64px 12px auto;
    gap: 6px;
  }
  .wrx-page .asset-pill {
    padding: 6px 9px;
    font-size: .64rem;
  }
  .wrx-page .viz-boundary {
    top: 150px;
    left: 12px;
    right: 12px;
    font-size: .58rem;
  }
  .wrx-page .viz-network { inset: 190px 10px 72px; }
  .wrx-page .viz-node {
    width: min(108px, 28vw);
    min-height: 68px;
    padding: 10px;
  }
  .wrx-page .viz-node b { font-size: .7rem; }
  .wrx-page .viz-node span { font-size: .58rem; }
  .wrx-page .xrp-core { width: min(120px, 32vw); }
  .wrx-page .xrp-core strong { font-size: 1.25rem; }
  .wrx-page .viz-caption {
    inset: auto 12px 16px;
    font-size: .64rem;
  }
  .wrx-page .article-shell {
    width: min(var(--max), calc(100% - 24px));
    padding: 46px 0 88px;
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .wrx-page .article-main,
  .wrx-page .figure,
  .wrx-page .figure-body { min-width: 0; max-width: 100%; }
  .wrx-page .intro-card,
  .wrx-page .figure,
  .wrx-page .summary-panel { border-radius: 26px; }
  .wrx-page .three-line { grid-template-columns: 36px 1fr; }
  .wrx-page .three-line .index { width: 36px; }
  .wrx-page .article-section { padding-top: 72px; }
  .wrx-page .article-section h2 { font-size: clamp(1.9rem, 9vw, 3.2rem); }
  .wrx-page .figure-header { grid-template-columns: 1fr; }
  .wrx-page .figure-help { text-align: left; }
  .wrx-page .hidden-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wrx-page .moat-layer {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .wrx-page .moat-layer:hover,
  .wrx-page .moat-layer.is-active { transform: none; }
  .wrx-page .moat-proof {
    grid-column: 2;
    text-align: left;
    max-width: none;
  }
  /* Seat map: keep absolute but shrink nodes + clamp edges */
  .wrx-page .seat-map {
    min-height: 560px;
    overflow: hidden;
  }
  .wrx-page .seat-center {
    width: min(132px, 36vw);
    padding: 14px;
  }
  .wrx-page .seat-center b { font-size: .95rem; }
  .wrx-page .seat-center span { font-size: .6rem; }
  .wrx-page .seat-node {
    width: min(100px, 26vw);
    min-height: 64px;
    padding: 9px 10px;
  }
  .wrx-page .seat-node b { font-size: .66rem; }
  .wrx-page .seat-node span { font-size: .56rem; }
  .wrx-page .seat-node.n1 { left: 22%; top: 16%; }
  .wrx-page .seat-node.n2 { left: 50%; top: 10%; }
  .wrx-page .seat-node.n3 { left: 78%; top: 16%; }
  .wrx-page .seat-node.n4 { left: 82%; top: 48%; }
  .wrx-page .seat-node.n5 { left: 76%; top: 80%; }
  .wrx-page .seat-node.n6 { left: 50%; top: 88%; }
  .wrx-page .seat-node.n7 { left: 24%; top: 80%; }
  .wrx-page .seat-node.n8 { left: 18%; top: 48%; }
  /* Flywheel */
  .wrx-page .flywheel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .wrx-page .flywheel-node {
    width: min(88px, 24vw);
    min-height: 60px;
    padding: 8px;
  }
  .wrx-page .flywheel-node b { font-size: .62rem; }
  .wrx-page .flywheel-node span { font-size: .54rem; }
  .wrx-page .wheel-core { width: min(110px, 30vw); }
  .wrx-page .wheel-core b { font-size: .78rem; }
  .wrx-page .signal-grid,
  .wrx-page .summary-grid,
  .wrx-page .reading-map-grid { grid-template-columns: 1fr; }
  .wrx-page .fs-status {
    width: min(94%, 420px);
    grid-template-columns: 1fr;
    bottom: 16px;
  }
  .wrx-page .flow-stock-stage { min-height: 420px; }
  .wrx-page .fs-end {
    top: 34%;
    width: min(78px, 22vw);
    min-height: 78px;
    font-size: .68rem;
  }
  .wrx-page .fs-path { top: 34%; }
  .wrx-page .fs-coin {
    top: 34%;
    width: min(48px, 14vw);
  }
  .wrx-page .flow-mode .fs-coin { animation-name: wrx-flow-pass-mobile; }
  .wrx-page .stock-mode .fs-coin { top: 34%; }
  .wrx-page .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 42px;
  }
  @keyframes wrx-flow-pass-mobile {
    0% { left: 18%; opacity: 0; }
    10% { opacity: 1; }
    50% { left: 50%; }
    90% { opacity: 1; }
    100% { left: 82%; opacity: 0; }
  }
}

@media (max-width: 520px){
  .wrx-page .hero-inner {
    width: min(var(--max), calc(100% - 20px));
    padding: 56px 0 44px;
    gap: 28px;
  }
  .wrx-page .hero-viz { min-height: 480px; border-radius: 22px; }
  .wrx-page .viz-network { inset: 176px 6px 64px; }
  .wrx-page .viz-node.bank { left: 24%; top: 16%; }
  .wrx-page .viz-node.pb { left: 76%; top: 16%; }
  .wrx-page .viz-node.mm { left: 24%; top: 78%; }
  .wrx-page .viz-node.custody { left: 76%; top: 78%; }
  .wrx-page .xrp-core { top: 48%; width: min(112px, 30vw); }
  .wrx-page .neutral-floor { grid-template-columns: 1fr; }
  .wrx-page .hidden-grid { grid-template-columns: 1fr; }
  .wrx-page .article-shell {
    width: min(var(--max), calc(100% - 20px));
  }
  .wrx-page .seat-map { min-height: 480px; }
  .wrx-page .seat-node {
    width: min(92px, 24vw);
    min-height: 58px;
    padding: 8px;
  }
  .wrx-page .flywheel { aspect-ratio: 1 / 1.12; }
  .wrx-page .flywheel-node {
    width: min(78px, 22vw);
    min-height: 54px;
    padding: 6px;
  }
  .wrx-page .flywheel-node.w1 { left: 50%; top: 10%; }
  .wrx-page .flywheel-node.w2 { left: 84%; top: 30%; }
  .wrx-page .flywheel-node.w3 { left: 84%; top: 70%; }
  .wrx-page .flywheel-node.w4 { left: 50%; top: 90%; }
  .wrx-page .flywheel-node.w5 { left: 16%; top: 70%; }
  .wrx-page .flywheel-node.w6 { left: 16%; top: 30%; }
  .wrx-page .wheel-core { width: min(96px, 28vw); }
  .wrx-page .wheel-panel { padding: 18px; }
  .wrx-page .wheel-panel h4 { font-size: 1.2rem; }
  .wrx-page .summary-panel { padding: 20px; }
  .wrx-page .reading-card { padding: 16px; }
  .wrx-page .hero-actions { gap: 8px; }
  .wrx-page .btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: .84rem;
  }
}

@media (prefers-reduced-motion: reduce){
  html:has(.wrx-page) { scroll-behavior: auto; }
  .wrx-page *,
  .wrx-page *::before,
  .wrx-page *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .wrx-page .reveal,
  .wrx-page.wrx-enhanced .reveal:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print{
  .wrx-page .site-header,
  .wrx-page .chapter-rail,
  .wrx-page .back-to-top,
  .wrx-page .hero-actions,
  .wrx-page .wheel-controls { display: none !important; }
  .wrx-page .hero { min-height: auto; background: #fff; color: #111; }
  .wrx-page .hero-inner { grid-template-columns: 1fr; padding: 30px 0; }
  .wrx-page .hero-lead,
  .wrx-page .eyebrow { color: #333; }
  .wrx-page .hero-viz { display: none; }
  .wrx-page .article-shell { display: block; width: 100%; padding: 0; }
  .wrx-page .figure,
  .wrx-page .intro-card,
  .wrx-page .summary-panel { box-shadow: none; break-inside: avoid; }
  .wrx-page .article-section { padding-top: 40px; }
}

/* ==========================================================================
   Light-theme isolation
   Site shell is dark (body text-fg / bg-bg). This article is paper-light.
   Remap Tailwind theme tokens for the whole document while .wrx-page is present,
   and force ArticleNav / ArticleFooter / SiteFooter surfaces to light cards.
   ========================================================================== */

html:has(.wrx-page),
html:has(.wrx-light-shell) {
  color-scheme: light;
  background: #f6f8fc;
}

html:has(.wrx-page) body,
html:has(.wrx-light-shell) body {
  /* Remap site design tokens → light paper palette */
  --color-bg: #f6f8fc;
  --color-bg-elevated: #ffffff;
  --color-bg-card: rgba(15, 30, 60, 0.04);
  --color-fg: #162238;
  --color-fg-muted: #5b6b84;
  --color-fg-subtle: #7a879c;
  --color-accent-blue: #2563eb;
  --color-accent-blue-deep: #1d4ed8;
  --color-accent-blue-glow: rgba(37, 99, 235, 0.28);
  --color-accent-gold: #b45309;
  --color-accent-gold-glow: rgba(180, 83, 9, 0.28);
  --color-accent-cyan: #0891b2;
  --color-accent-red: #dc2626;
  --color-accent-green: #059669;
  --color-grid: rgba(37, 99, 235, 0.06);
  --color-grid-strong: rgba(37, 99, 235, 0.14);
  background: #f6f8fc !important;
  color: #162238 !important;
}

html:has(.wrx-page) body ::selection,
html:has(.wrx-light-shell) body ::selection {
  background: rgba(56, 212, 255, 0.35);
  color: #0b172a;
}

/* Page shell */
.wrx-light-shell {
  color-scheme: light;
  background:
    radial-gradient(circle at 14% 0%, rgba(56, 212, 255, 0.08), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 28%, #ffffff 100%);
  color: #162238;
  isolation: isolate;
}

/* Keep redesign tokens local and high-priority */
.wrx-page {
  color: var(--text, #162238);
  background:
    radial-gradient(circle at 14% 0%, rgba(56, 212, 255, 0.09), transparent 30rem),
    linear-gradient(180deg, #fff 0%, var(--paper, #f6f8fc) 32%, #fff 100%);
}

/* Dark islands inside the light article must stay white-on-dark */
.wrx-page .hero,
.wrx-page .seat-map,
.wrx-page .summary-panel,
.wrx-page .dashboard-meter,
.wrx-page .wheel-panel,
.wrx-page .moat-foundation,
.wrx-page .hidden-card {
  color-scheme: dark;
}

/* —— ArticleNav (sticky top) → frosted light bar —— */
.wrx-light-shell > nav {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(92, 118, 160, 0.16) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.wrx-light-shell > nav a {
  color: #5b6b84 !important;
}
.wrx-light-shell > nav a:hover {
  color: #2563eb !important;
}
.wrx-light-shell > nav .text-fg-subtle {
  color: #8a96a8 !important;
}
.wrx-light-shell > nav .bg-accent-blue {
  background: #2563eb !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.35) !important;
}

/* Progress bar sits under light nav */
.wrx-page .header-progress-standalone {
  top: 57px;
  background: rgba(8, 16, 31, 0.06);
}

/* —— ArticleFooter (inside main) —— */
.wrx-light-shell > footer {
  color: #162238;
}
.wrx-light-shell > footer > div[aria-hidden="true"] {
  background: linear-gradient(90deg, transparent, rgba(92, 118, 160, 0.28), transparent) !important;
}
.wrx-light-shell > footer a.group.block,
.wrx-light-shell > footer .rounded-2xl,
.wrx-light-shell > footer .rounded-xl,
.wrx-light-shell > footer .rounded-lg {
  border-color: rgba(92, 118, 160, 0.2) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(17, 35, 70, 0.06);
}
.wrx-light-shell > footer a.group.block:hover,
.wrx-light-shell > footer a.rounded-lg:hover {
  border-color: rgba(37, 99, 235, 0.35) !important;
  background: #f8fbff !important;
}
.wrx-light-shell > footer h3,
.wrx-light-shell > footer .text-fg {
  color: #162238 !important;
}
.wrx-light-shell > footer .text-fg-muted {
  color: #5b6b84 !important;
}
.wrx-light-shell > footer .text-fg-subtle {
  color: #7a879c !important;
}
.wrx-light-shell > footer .text-accent-blue {
  color: #2563eb !important;
}

/* Related cards: keep image dark gradient, light body */
.wrx-light-shell > footer a.group.block .p-4 {
  background: #ffffff;
}

/* —— SiteFooter (body > footer sibling of main) —— */
html:has(.wrx-page) body > footer,
html:has(.wrx-light-shell) body > footer {
  color: #5b6b84;
}
html:has(.wrx-page) body > footer > div[aria-hidden="true"],
html:has(.wrx-light-shell) body > footer > div[aria-hidden="true"] {
  background: linear-gradient(90deg, transparent, rgba(92, 118, 160, 0.28), transparent) !important;
}
html:has(.wrx-page) body > footer .rounded-xl,
html:has(.wrx-light-shell) body > footer .rounded-xl {
  border-color: rgba(92, 118, 160, 0.22) !important;
  background: #ffffff !important;
  color: #5b6b84 !important;
  box-shadow: 0 10px 28px rgba(17, 35, 70, 0.06);
}
html:has(.wrx-page) body > footer .text-fg,
html:has(.wrx-light-shell) body > footer .text-fg,
html:has(.wrx-page) body > footer strong.text-fg,
html:has(.wrx-light-shell) body > footer strong.text-fg {
  color: #162238 !important;
}
html:has(.wrx-page) body > footer .text-fg-muted,
html:has(.wrx-light-shell) body > footer .text-fg-muted {
  color: #5b6b84 !important;
}
html:has(.wrx-page) body > footer .text-fg-subtle,
html:has(.wrx-light-shell) body > footer .text-fg-subtle {
  color: #7a879c !important;
}
html:has(.wrx-page) body > footer .text-accent-blue,
html:has(.wrx-light-shell) body > footer .text-accent-blue,
html:has(.wrx-page) body > footer a:hover,
html:has(.wrx-light-shell) body > footer a:hover {
  color: #2563eb !important;
}
html:has(.wrx-page) body > footer .text-accent-gold,
html:has(.wrx-light-shell) body > footer .text-accent-gold {
  color: #b45309 !important;
}
html:has(.wrx-page) body > footer .border-white\/10,
html:has(.wrx-light-shell) body > footer .border-white\/10 {
  border-color: rgba(92, 118, 160, 0.22) !important;
}

/* SiblingNav chips often use dark borders */
html:has(.wrx-page) body > footer a,
html:has(.wrx-light-shell) body > footer a {
  color: inherit;
}

/* Back-to-top site component: keep readable on light page */
html:has(.wrx-page) body [class*="back-to-top"],
html:has(.wrx-light-shell) body [class*="back-to-top"] {
  color: #fff;
}
