/* Scrollcraft / NinjaSwap. Page composition and progressive enhancements.
   Vendored engine stays unchanged; financial UI never moves on scroll. */
:root {
  --sc-canvas: #f7f7f2;
  --sc-surface: #ffffff;
  --sc-ink: #153c32;
  --sc-ink-soft: #63716a;
  --sc-accent: #116b4b;
  --sc-accent-ink: #ffffff;
  --sc-font-display: Geist, sans-serif;
  --sc-font-text: Geist, sans-serif;
  --experience-ease: cubic-bezier(.23,1,.32,1);
}
/* Content starts visible even if the enhancement or its engine fails. */
html:not(.sc-ready) [data-sc-in], html:not(.sc-ready) [data-sc-stagger] > * { opacity: 1; transform: none; }
body[data-page="home"] { overflow-x: clip; }
.home-main { max-width: 1440px; width: calc(100% - clamp(32px, 8vw, 128px)); }
.spatial-hero { position: relative; grid-template-columns: 1.13fr 1fr; min-height: min(780px, calc(100svh - 80px)); gap: 0; padding: 56px 0 68px; isolation: isolate; }
.spatial-hero .hero__copy { position: relative; z-index: 3; padding: 0; }
.spatial-hero h1 { font-size: clamp(56px, 6.5vw, 100px); line-height: 1.03; letter-spacing: -.065em; max-width: 850px; text-wrap: initial; }
.spatial-hero h1 span { color: var(--accent); }
.spatial-hero .hero__lede { max-width: 380px; font-size: 16px; line-height: 1.75; margin: 30px 0; }
.hero__actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.hero__actions .button { gap: 28px; min-height: 51px; padding: 15px 20px; font-size: 13px; }
.hero__actions .text-link { font-size: 12px; }
.hero-world { position: relative; height: clamp(440px, 43vw, 640px); margin-left: -40px; margin-right: -22px; z-index: 1; pointer-events: none; }
.hero-world__subject { position: absolute; width: 93%; left: 5%; top: -2%; z-index: 2; transform: translate3d(var(--subject-x,0px),var(--subject-y,0px),0) rotate(var(--subject-r,-9deg)); }
.hero-world__subject picture { display: block; aspect-ratio: 1; }
.hero-world__subject img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(12px 27px 19px #153c3217); }
.hero-world__orbit { position: absolute; inset: 9% -3% 1%; transform: translate3d(0,var(--back-y,0px),0) rotate(-24deg); }
.hero-world__orbit i { position: absolute; border: 1px solid #a6bba93b; border-radius: 50%; inset: 6%; }
.hero-world__orbit i:nth-child(2) { inset: -5%; }
.hero-world__orbit i:nth-child(3) { inset: 18%; }
.hero-world__ground { position: absolute; width: 64%; height: 40px; left: 18%; bottom: 3%; background: radial-gradient(ellipse, #153c3216, transparent 67%); transform: scaleX(1.3); }
.hero-world__token { position: absolute; display: grid; place-items: center; background: #fff; border: 1px solid #e0e7de; border-radius: 50%; box-shadow: 0 12px 28px #153c3214, inset 0 2px 0 #fff; z-index: 3; }
.hero-world__token--cash { width: 80px; height: 80px; left: 6%; top: 15%; transform: translate3d(var(--near-x,0px),var(--near-y,0px),0) rotate(-9deg); }
.hero-world__token--ltc { width: 94px; height: 94px; right: -2%; bottom: 14%; transform: translate3d(var(--front-x,0px),var(--front-y,0px),0) rotate(11deg); }
.hero-world__token--paypal { width: 56px; height: 56px; right: 8%; top: 6%; z-index: 1; transform: translate3d(var(--middle-x,0px),var(--middle-y,0px),0) rotate(var(--middle-r,8deg)); }
.exchange-desk { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px,10vw,150px); align-items: center; padding: 64px 5% 80px; border-top: 1px solid var(--rule); }
.exchange-desk__copy h2 { font: 500 clamp(44px,4.4vw,68px)/1.08 var(--font-ui); letter-spacing: -.055em; margin: 22px 0; }
.exchange-desk__copy h2 span { color: var(--accent); }
.exchange-desk__copy > p:not(.eyebrow) { max-width: 330px; font-size: 15px; line-height: 1.75; }
.exchange-desk__note { display: flex; gap: 12px; align-items: start; margin-top: 34px; font-size: 12px; color: var(--ink); }
.exchange-desk__note .icon { margin-top: 2px; color: var(--accent); }
.exchange-desk__note small { color: var(--mute); font-size: 11px; }
.exchange-desk .trade-composer { padding: 28px; box-shadow: 0 2px 3px #153c3203, 0 20px 60px -20px #153c3220; }
.proof-bar { padding: 36px 0; margin-bottom: 80px; }
.proof-bar strong { font-size: clamp(34px,3.8vw,54px); font-weight: 450; }
.people-banner { min-height: 430px; padding: 68px; margin-bottom: 96px; border-radius: 6px; display: flex; align-items: center; }
.people-banner > img { inset: -40px 0; height: calc(100% + 80px); object-position: 62% center; }
.people-banner > div { width: 55%; }
.people-banner h2 { font-size: clamp(34px,4vw,60px); max-width: 510px; letter-spacing: -.05em; }
.people-banner p:not(.eyebrow) { font-size: 15px; }
.people-banner .text-link { font-size: 13px; margin-top: 10px; }
.popular-routes { padding: 0 3% 96px; gap: 100px; }
.section-head h2 { font-size: clamp(36px,3.8vw,54px); }
.popular-routes__grid > a { padding: 26px 8px; transition: background 180ms, transform 180ms; }
.popular-routes__grid .icon-external { opacity: .5; }
/* A compact walkthrough in normal flow. Instructions never wait for motion. */
.exchange-guide { display: grid; grid-template-columns: 1.08fr 1fr; grid-template-areas: 'photo heading' 'photo steps'; gap: 28px clamp(36px,6vw,88px); padding-top: 64px; margin-bottom: 96px; border-top: 1px solid var(--rule); color: var(--ink); }
.guide__heading { grid-area: heading; padding-top: 8px; }
.guide__heading h2 { font-size: clamp(36px,3.8vw,56px); font-weight: 500; line-height: 1.06; letter-spacing: -.05em; max-width: 490px; margin: 0 0 18px; text-wrap: balance; }
.guide__heading p { font-size: 15px; line-height: 1.65; color: var(--mute); max-width: 370px; margin: 0; }
.guide__photo { grid-area: photo; position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: 6px; background: #dfe3db; }
.guide__photo picture { display: block; position: absolute; inset: -20px 0; transform: translate3d(0,var(--photo-y,0px),0); }
.guide__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 63% center; }
.guide__instructions { grid-area: steps; min-width: 0; padding-bottom: 8px; }
.guide__steps { padding: 0; margin: 0; list-style: none; }
.guide__steps li { display: grid; grid-template-columns: 26px 1fr; gap: 18px; border-top: 1px solid var(--rule); padding: 22px 0; }
.guide__number { color: var(--accent); font-size: 12px; line-height: 24px; font-variant-numeric: tabular-nums; }
.guide__steps h3 { color: var(--ink); font-size: 19px; font-weight: 550; letter-spacing: -.025em; line-height: 1.3; margin: 0 0 8px; }
.guide__steps p { color: var(--mute); font-size: 13px; line-height: 1.7; max-width: 380px; margin: 0; }
.guide__steps .guide__selection { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--ink); font-size: 11px; margin-top: 14px; }
.guide__selection > span:not(.sr-only) { display: inline-flex; align-items: center; gap: 6px; }
.guide__selection img { width: 18px; height: 18px; }
.guide__instructions > .text-link { display: inline-flex; align-items: center; gap: 30px; margin: 5px 0 0 44px; font-size: 13px; }
.exchange-guide.is-photo-unavailable { grid-template-columns: .8fr 1.2fr; grid-template-areas: 'heading steps'; }
.method-strip { margin-bottom: 80px; padding: 0 3% 64px; }
.closing-grid { padding: 0 3%; margin-bottom: 60px; }
.exchanger-callout { margin: 0 3% 72px; }
.exchange-invitation { position: relative; isolation: isolate; overflow: hidden; background: #123d30; padding: 75px 6% 85px; border-radius: 6px; color: #edf4e8; margin-bottom: 20px; }
.exchange-invitation > p { font-size: 12px; color: #bbd2c3; }
.exchange-invitation h2 { color: #f2f6e9; font-size: clamp(56px,7.5vw,108px); font-weight: 450; letter-spacing: -.055em; line-height: 1.04; margin: 25px 0 32px; }
.exchange-invitation h2 span { color: #bbdfaa; }
.exchange-invitation .button { background: #d6edc4; color: #123d30; gap: 34px; padding: 15px 20px; font-size: 13px; border-color: #d6edc4; }
.exchange-invitation__mark { position: absolute; right: 6%; top: -8%; font-size: clamp(260px,36vw,500px); line-height: 1.15; font-weight: 300; color: #badfa6; z-index: -1; transform: translateY(var(--close-y,0px)); }
.exchange-invitation__line { width: 64%; aspect-ratio: 1; border: 1px solid #c3e6ae21; border-radius: 50%; position: absolute; right: -14%; top: -23%; z-index: -2; }
.exchange-invitation__line::after { content: ''; position: absolute; inset: 35px; border: inherit; border-radius: inherit; }
.site-header { transition: box-shadow 180ms, background 180ms; }
.site-header.is-scrolled { box-shadow: 0 4px 22px #153c3208; }
.ns-public :is(.directory-hero,.apply-hero) { position: relative; }
.ns-public :is(.directory-title,.apply-title,.page-title) { letter-spacing: -.045em; }
.ns-public .site-footer { border-top-color: #c6d2c7; }
.site-footer .footer-brand { display: block; }
.site-footer .footer-brand::before { content: none; }
body[data-page="route"] .page-sub { color: #56675d; }
/* Community pages: a layered information slip, then chapters in normal flow. */
:is(.apply-hero,.partner-hero,.refer-hero) { isolation: isolate; }
:is(.apply-hero,.partner-hero,.refer-hero) > div { position: relative; z-index: 2; }
.dossier { position: relative; isolation: isolate; margin: 20px 12px; border: 1px solid #c6d2c7; border-radius: 4px; background: #fff; box-shadow: 0 18px 40px -22px #153c3255; }
.dossier::after { content: ''; position: relative; display: block; height: 1px; margin-top: 28px; border-top: 1px dashed #abbfaa; }
.dossier::before { content: ''; position: absolute; inset: 0; background: #fff; border-radius: inherit; }
.dossier-plane { position: absolute; inset: -14px 12px 15px -12px; z-index: -1; pointer-events: none; }
.dossier-plane::before { content: ''; position: absolute; inset: 0; border: 1px solid #b8cbb4; background: #e9eddd; border-radius: 4px; transform: rotate(-5deg); }
.dossier-plane--back { inset: -25px -8px 30px 22px; z-index: -2; }
.dossier-plane--back::before { transform: rotate(6deg); background: #f1f3ea; border-color: #d1dbc9; }
.dossier > :not(.dossier-plane) { position: relative; }
.page-jumps { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 20px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }
.page-jumps > span { color: var(--mute); margin-right: auto; }
.page-jumps a { color: #56675d; text-decoration: none; padding-block: 5px; }
.page-jumps a:hover, .page-jumps a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
:is(.apply-section,.partner-section) { padding-block: clamp(48px,6vw,88px); }
:is(.apply-list,.partner-list) li { position: relative; padding-block: 23px; }
[data-reading-steps] > li::after { content: ''; position: absolute; left: 0; top: 19px; width: 2px; height: 22px; background: var(--accent); opacity: 0; transition: opacity 200ms; }
[data-reading-steps] > li.is-reading::after { opacity: 1; }
:is(.apply-list,.partner-list) b { padding-left: 10px; }
:is(.apply-final,.partner-final) { padding: clamp(28px,4vw,54px); border-radius: 5px; background: #153c32; color: #edf4e8; }
:is(.apply-final,.partner-final) h2 { color: #edf4e8; font-weight: 450; }
:is(.apply-final,.partner-final) p { color: #d2dfd0; }
:is(.apply-final,.partner-final) :is(.apply-action,.partner-action--primary) { background: #d6edc4; color: #153c32; border-color: #d6edc4; }
.refer-close { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 30px 0; border-top: 1px solid var(--rule); }
.refer-close p { max-width: 45ch; color: var(--text); }
/* A route is a useful working page, with a compact diagram and fee facts early. */
[data-page="route"] .route-page { max-width: 1120px; }
.route-overview { display: grid; grid-template-columns: 1.55fr 1fr; gap: 60px; align-items: center; padding: 12px 0 48px; }
.route-overview .page-title { font-size: clamp(42px,4.6vw,68px); letter-spacing: -.055em; line-height: 1.08; }
.route-overview .page-title span:nth-child(2) { color: #63716a !important; }
.route-overview .page-sub { margin-top: 24px; max-width: 47ch; line-height: 1.8; }
.route-overview .button { margin-top: 24px; }
.route-itinerary { padding: 28px; background: #e9eddd; border: 1px solid #ced9c8; border-radius: 4px; }
.route-itinerary > p { font-size: 11px; color: #56675d; margin: 0 0 25px; }
.route-itinerary ol { list-style: none; margin: 0; padding: 0; }
.route-itinerary li { position: relative; padding: 0 0 30px 30px; }
.route-itinerary li:last-child { padding-bottom: 0; }
.route-itinerary li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border: 1px solid #65906f; border-radius: 50%; background: #e9eddd; z-index: 1; }
.route-itinerary li::after { content: ''; position: absolute; left: 7px; width: 1px; top: 15px; bottom: -8px; background: #a6bfa4; }
.route-itinerary li:last-child::after { display: none; }
.route-itinerary strong { display: block; font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
.route-itinerary small { display: block; color: #56675d; font-size: 11px; margin-top: 4px; }
.route-page .route-chapter { padding: 44px 0; border-bottom: 1px solid var(--rule); }
.route-chapter > h2 { font-size: clamp(26px,3vw,37px); letter-spacing: -.035em; line-height: 1.2; margin-bottom: 24px; }
.route-chapter .prose { max-width: 70ch; }
.route-chapter ol { padding-left: 22px; }
.route-chapter ol > li { padding: 8px 0 14px 8px; }
.route-chapter details { background: #fff; }
.route-chapter summary { line-height: 1.6; min-height: 28px; }
.route-alternatives { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
/* Long documents retain their text and gain a native, linkable reading index. */
:is([data-page="terms"],[data-page="exchanger-rules"]) .reading-page { max-width: 1170px; }
.reading-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 64px; margin-top: 36px; align-items: start; }
.reading-copy { min-width: 0; max-width: 72ch; }
.reading-copy > :first-child { margin-top: 0; }
.reading-nav { padding: 20px 0; border-top: 1px solid var(--rule); }
.reading-nav summary { font-weight: 550; font-size: 14px; cursor: pointer; min-height: 28px; }
.reading-nav ol { padding: 16px 0 0; margin: 0; list-style: none; }
.reading-nav li + li { margin-top: 3px; }
.reading-nav a { display: block; padding: 8px 10px; border-left: 2px solid transparent; color: #63716a; text-decoration: none; font-size: 12px; line-height: 1.5; }
.reading-nav a:hover, .reading-nav a[aria-current] { border-left-color: var(--accent); background: #e9eddd; color: var(--ink); }
/* The design system already supplies 100px of document scroll padding. */
:is(.tos-h2,.route-chapter,.data-grid,.apply-section,.partner-section,.refer-steps,.refer-rules,.apply-final,.partner-final) { scroll-margin-top: 24px; }
@media (min-width:961px) and (min-height:740px) {
  :is(.apply-section,.partner-section) > div:first-child { position: sticky; top: 126px; align-self: start; }
  .reading-nav { position: sticky; top: 108px; max-height: calc(100svh - 130px); overflow-y: auto; }
}
@media (max-width:960px) {
  .route-overview { gap: 30px; }
  .reading-layout { grid-template-columns: 190px minmax(0,1fr); gap: 30px; }
}
@media (max-width:800px) {
  .dossier { margin: 24px 15px 6px; padding: 25px; }
  .dossier-plane { inset: -8px 8px 10px -8px; }
  .dossier-plane--back { inset: -16px 0 22px 14px; }
  .page-jumps { gap: 8px 22px; padding: 14px 0; }
  .page-jumps > span { flex-basis: 100%; }
  :is(.apply-section,.partner-section) { padding-block: 42px; }
  :is(.apply-list,.partner-list) li { padding-block: 20px; }
  .refer-close { flex-direction: column; align-items: start; }
  .route-overview { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .route-overview .page-title { font-size: 43px; }
  .route-itinerary { padding: 22px; }
  .route-itinerary > p { margin-bottom: 20px; }
  .route-itinerary strong { font-size: 19px; }
  .route-itinerary li { padding-bottom: 22px; }
  .route-page .route-chapter { padding-block: 30px; }
  .route-alternatives { grid-template-columns: 1fr; }
  .reading-layout { display: block; margin-top: 26px; }
  .reading-nav { border-bottom: 1px solid var(--rule); padding: 18px 0; margin-bottom: 28px; }
  .reading-nav summary { min-height: 24px; }
}
@media (hover:hover) and (pointer:fine) {
  .popular-routes__grid > a:hover { transform: translateX(4px); }
  .exchange-invitation .button:hover { background: #e6f6db; }
  .button .icon-arrow, .text-link .icon-arrow { transition: transform 180ms; }
  :is(.button,.text-link):hover .icon-arrow { transform: translateX(3px); }
}
@media (max-width:1100px) {
  .spatial-hero h1 { font-size: clamp(52px,6.5vw,78px); }
  .hero-world { margin-left: -30px; margin-right: -12px; }
  .exchange-desk { padding-inline: 1%; gap: 6%; }
  .popular-routes { gap: 55px; }
  .people-banner { padding: 45px; }
  .hero__actions { gap: 18px; }
}
@media (min-width:801px) and (max-height:760px) {
  .spatial-hero { padding: 30px 0 38px; min-height: calc(100svh - 82px); }
  .spatial-hero h1 { font-size: clamp(52px,5.5vw,84px); }
  .spatial-hero .hero__lede { margin: 22px 0; }
  .hero-world { width: min(100%,calc(100svh - 160px)); height: calc(100svh - 160px); margin-left: auto; margin-right: 0; }
}
@media (max-width:800px) {
  .home-main { width: calc(100% - 40px); }
  .spatial-hero { min-height: auto; padding: 46px 0 35px; grid-template-columns: 1fr; }
  .spatial-hero .hero__copy { max-width: 640px; }
  .spatial-hero h1 { font-size: clamp(48px,9.8vw,78px); letter-spacing: -.06em; }
  .spatial-hero .hero__lede { margin: 22px 0; font-size: 14px; max-width: 370px; }
  .hero-world { width: min(460px,92%); height: min(430px,86vw); margin: 32px auto 0; }
  .hero-world__subject { width: 86%; left: 7%; }
  .hero-world__token--cash { width: 62px; height: 62px; left: 4%; }
  .hero-world__token--ltc { width: 72px; height: 72px; right: 0; }
  .hero-world__token--paypal { width: 44px; height: 44px; }
  .hero-world__token--cash img { width: 28px; height: 28px; }
  .hero-world__token--ltc img { width: 30px; height: 30px; }
  .exchange-desk { padding: 40px 0 48px; grid-template-columns: 1fr; gap: 30px; }
  .exchange-desk__copy h2 { font-size: 45px; }
  .exchange-desk__copy h2 br:nth-child(2) { display: none; }
  .exchange-desk__copy h2 span::before { content: ' '; }
  .exchange-desk__copy > p:not(.eyebrow) { max-width: 440px; font-size: 14px; }
  .exchange-desk__note { margin-top: 18px; }
  .exchange-desk .trade-composer { max-width: 600px; width: 100%; justify-self: center; padding: 24px; }
  .proof-bar { margin-bottom: 45px; padding: 25px 0; }
  .proof-bar > div { padding: 0 10px; }
  .proof-bar strong { font-size: 31px; }
  .proof-bar__label { font-size: 11px; }
  .proof-bar > div > span:last-child { display: none; }
  .people-banner { padding: 35px 25px 180px; min-height: 430px; margin-bottom: 56px; align-items: start; }
  .people-banner > div { width: 100%; max-width: 430px; }
  .people-banner > img { object-position: 72% bottom; mask-image: linear-gradient(transparent 20%, #000 72%); }
  .people-banner h2 { font-size: 37px; }
  .people-banner p:not(.eyebrow) { font-size: 13px; }
  .popular-routes { grid-template-columns: 1fr; gap: 26px; padding: 0 0 50px; }
  .section-head h2 { font-size: 38px; }
  .popular-routes__grid > a { padding-block: 21px; }
  .exchange-guide { grid-template-columns: 1fr; grid-template-areas: 'heading' 'photo' 'steps'; gap: 24px; padding-top: 40px; margin-bottom: 56px; }
  .guide__heading { padding: 0; }
  .guide__heading h2 { font-size: 38px; max-width: 450px; }
  .guide__heading p { font-size: 14px; max-width: 430px; }
  .guide__photo { aspect-ratio: 1.4; max-height: 420px; }
  .guide__photo img { object-position: 63% 53%; }
  .guide__instructions { padding: 0; }
  .guide__steps p { max-width: 100%; }
  .guide__steps li { padding: 20px 0; }
  .guide__steps li:first-child { border-top: 0; padding-top: 0; }
  .exchange-guide.is-photo-unavailable { grid-template-columns: 1fr; grid-template-areas: 'heading' 'steps'; }
  .method-strip { padding: 0 0 40px; margin-bottom: 45px; }
  .closing-grid { padding: 0; margin-bottom: 40px; }
  .exchanger-callout { margin: 0 0 48px; }
  .exchange-invitation { padding: 40px 26px 46px; }
  .exchange-invitation h2 { font-size: clamp(43px,10vw,68px); }
  .exchange-invitation__mark { right: -20px; top: 14%; font-size: 250px; opacity: .24; }
}
@media (max-width:380px) {
  .home-main { width: calc(100% - 32px); }
  .spatial-hero h1 { font-size: 44px; }
  .hero__actions { gap: 15px; }
  .hero__actions .button { font-size: 12px; gap: 16px; padding: 13px 15px; }
  .hero__actions .text-link { font-size: 11px; }
  .exchange-desk .trade-composer { padding: 20px; }
  .guide__heading h2 { font-size: 35px; }
}
@media (max-width:800px) and (max-height:700px) {
  .spatial-hero { padding: 24px 0 16px; }
  .spatial-hero h1 { font-size: 44px; }
  .spatial-hero .hero__lede { margin: 16px 0; font-size: 13px; line-height: 1.6; }
  .hero-world { width: 188px; height: 180px; margin-top: 10px; }
  .hero-world__token--cash { width: 39px; height: 39px; }
  .hero-world__token--ltc { width: 44px; height: 44px; }
  .hero-world__token--paypal { width: 30px; height: 30px; }
  .hero-world__token img { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto !important; }
  [data-sc-in], [data-sc-stagger] > *, .ns-enter { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-world__subject { transform: rotate(-9deg); }
  .hero-world__orbit { transform: rotate(-24deg); }
  .hero-world__token, .exchange-invitation__mark { transform: none; }
  .dossier-plane { transform: none !important; }
  [data-sc-reveal] { clip-path: none !important; }
  .guide__photo picture { transform: none; }
}
