/* Shared layout for the individual trade pages (hub/trades/*.html).
   Each page sets its own mood with --accent / --tint / --glow on <body>, and
   draws its own animated action scene inside .stage. */
*{box-sizing:border-box}
html{background:#05070a}
body{margin:0;min-height:100vh;color:#f3ead6;font-family:Georgia,'Times New Roman',serif;overflow-x:hidden;
  --accent:#f2c76a;--tint:#1a2232;--glow:#f2c76a55;
  background:radial-gradient(ellipse 90% 70% at 72% 30%,var(--tint) 0%,#0b0f16 55%,#05070a 100%) fixed,#05070a}

nav.top{position:fixed;left:max(14px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top));z-index:20;display:flex;gap:8px}
nav.top a{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#f6ecd4;background:#05080dcc;
  border:1px solid #d9b26aaa;padding:10px 18px;border-radius:24px;font:400 14px/1.2 Georgia,serif;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
nav.top a span{color:#f6ca6e}
nav.top a:focus-visible{outline:2px solid #ffeabe;outline-offset:3px}

main{position:relative;width:min(1240px,100%);margin:0 auto;padding:78px 28px max(32px,env(safe-area-inset-bottom));overflow-x:hidden;overflow-x:clip}

/* hero: words on the left, the action scene on the right */
.hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:clamp(22px,4vw,56px);align-items:center;min-height:min(640px,calc(100vh - 120px))}
.words .crest{display:block;width:112px;height:auto;margin:0 0 14px;filter:drop-shadow(0 4px 12px #000000b0)}
.eyebrow{margin:0 0 10px;font:500 12px/1.3 Arial,sans-serif;letter-spacing:.26em;text-transform:uppercase;color:#d9b26a}
h1{margin:0;font-weight:400;font-size:clamp(34px,4.6vw,60px);line-height:1.05;letter-spacing:.06em;
  background:linear-gradient(180deg,#fff2cf 0%,#ecc77a 45%,#b98a3d 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 2px 10px #000000a0)}
.lede{margin:16px 0 0;font-size:clamp(16px,1.45vw,19px);line-height:1.55;color:#eadfc6;max-width:30em}
.lede em{color:var(--accent);font-style:italic}
/* owner request: every crew is handpicked and trusted by RUD Empire LLC */
.trusted{display:inline-flex;align-items:center;gap:9px;margin:16px 0 0;padding:7px 15px 7px 11px;border-radius:999px;
  border:1px solid #e2b86788;background:#0b0a08b3;color:#f3dfae;font-size:clamp(14px,1.2vw,16px);letter-spacing:.02em;line-height:1.3}
.trusted svg{flex:none;width:20px;height:20px;fill:#e2b86733;stroke:#e9c27a;stroke-width:1.6;stroke-linejoin:round}
.trusted .tick{fill:none;stroke:#fff2cf;stroke-width:2;stroke-linecap:round}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:999px;text-decoration:none;
  color:#1a1206;background:linear-gradient(180deg,#f8dc98,#d4a24c);font:600 14px/1 Georgia,serif;letter-spacing:.06em;box-shadow:0 6px 18px #00000080}
.ghost{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:999px;text-decoration:none;
  color:#f3d58f;border:1px solid #c99a3b80;background:#05080d80;font:500 14px/1 Georgia,serif}
.btn:focus-visible,.ghost:focus-visible{outline:2px solid #ffeabe;outline-offset:3px}

/* the gold-framed animated scene */
.stage{position:relative;margin:0;border-radius:18px;overflow:hidden;aspect-ratio:10/7;background:#070a10;
  box-shadow:0 0 0 1px #00000080,0 0 34px var(--glow),0 24px 60px #000000c0}
.stage::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:1.6px;pointer-events:none;
  background:linear-gradient(160deg,#fff0c2 0%,#e2b867 28%,#9c6f2c 55%,#e9c47a 80%,#fbe3a6 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.stage svg{display:block;width:100%;height:100%}
.stage figcaption{position:absolute;left:14px;bottom:12px;margin:0;padding:6px 12px;border-radius:999px;background:#05080dc0;
  border:1px solid #d9b26a66;font:italic 13px/1.2 Georgia,serif;color:#eadfc6}

/* what the crew handles */
.section-h{display:flex;align-items:center;gap:16px;margin:clamp(36px,6vw,64px) 0 18px;font-weight:400;font-size:13px;letter-spacing:.3em;
  text-transform:uppercase;color:#e9c77e}
.section-h::before,.section-h::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,#d9b26a00,#d9b26acc)}
.section-h::after{background:linear-gradient(90deg,#d9b26acc,#d9b26a00)}
.scope{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.scope li{position:relative;padding:18px 20px 18px 22px;border-radius:12px;
  background:linear-gradient(180deg,#121924cc 0%,#0a0f17e0 100%);box-shadow:inset 0 1px 0 #ffffff12,0 10px 24px #00000080}
.scope li::before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:2px;border-radius:2px;background:linear-gradient(180deg,var(--accent),#9c6f2c)}
.scope b{display:block;font-weight:400;font-size:17px;color:#f6e7c1;margin-bottom:6px}
.scope span{display:block;font-size:14.5px;line-height:1.5;color:#cfc4ab}

/* three steps */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;counter-reset:s}
.steps li{counter-increment:s;padding:18px 20px;border-radius:12px;border:1px solid #d9b26a40;background:#0a0e15b3}
.steps li::before{content:counter(s,decimal-leading-zero);display:block;font:500 12px/1 Arial,sans-serif;letter-spacing:.2em;color:var(--accent);margin-bottom:10px}
.steps b{display:block;font-weight:400;font-size:17px;color:#f6e7c1;margin-bottom:6px}
.steps span{display:block;font-size:14.5px;line-height:1.5;color:#cfc4ab}

/* request band */
.request{margin:clamp(36px,6vw,60px) 0 0;padding:26px 28px;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  background:linear-gradient(120deg,#141b27e6,#0a0e15f0);box-shadow:0 0 0 1px #d9b26a55,0 0 30px var(--glow)}
.request p{margin:0;font-size:clamp(17px,1.6vw,21px);color:#f2e6c8}
.request p small{display:block;margin-top:4px;font-size:14px;color:#bfb49b;font-style:italic}

/* trade-to-trade navigation (filled in by trade.js) */
.trail{display:flex;justify-content:space-between;gap:12px;margin:28px 0 0;flex-wrap:wrap}
.trail a{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;text-decoration:none;color:#f3d58f;
  border:1px solid #c99a3b66;background:#05080d99;font:400 14px/1.2 Georgia,serif}
.trail a:hover,.ghost:hover{border-color:#f2c76a;color:#fff1cc}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
.chips a{padding:7px 12px;border-radius:999px;text-decoration:none;font:400 13px/1.2 Georgia,serif;color:#d8cdb4;border:1px solid #ffffff1f;background:#ffffff08}
.chips a[aria-current="page"]{color:#1a1206;background:linear-gradient(180deg,#f8dc98,#d4a24c);border-color:transparent}
.chips a:hover{border-color:#d9b26a99;color:#fff1cc}
footer.note{margin:30px 0 0;text-align:center;font-size:12.5px;color:#8f8775}

@media (max-width:900px){
  main{padding-top:70px}
  .hero{grid-template-columns:1fr;min-height:0;gap:22px}
  .words{text-align:center}
  .words .crest{margin:0 auto 12px;width:96px}
  .lede{margin-left:auto;margin-right:auto}
  .actions{justify-content:center}
  .scope,.steps{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  main{padding:66px 14px max(24px,env(safe-area-inset-bottom))}
  .scope,.steps{grid-template-columns:1fr}
  .request{padding:20px}
  nav.top a{padding:8px 14px;font-size:13px}
}
.stage.paused *{animation-play-state:paused!important}
/* Scenes pause for visitors who ask for less motion */
@media (prefers-reduced-motion:reduce){.stage *{animation:none!important}}
