:root {
  --ground:    #0A1C14;
  --ground-2:  #0D2419;
  --felt:      #112B1E;
  --felt-hi:   #163826;
  --brass:     #C4923C;
  --brass-hi:  #E9C070;
  --bronze:    #7B5A2E;
  --bone:      #EFE9D9;
  --bone-2:    rgba(239,233,217,.60);
  --bone-3:    rgba(239,233,217,.34);
  --signal:    #FF4B2B;
  --line:      rgba(196,146,60,.24);
  --line-2:    rgba(196,146,60,.13);
  --r-none: 0px;
  --r-pill: 999px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gut: 34px;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; }
body {
  margin: 0;
  background: var(--ground);
  background-image:
    radial-gradient(1100px 620px at 52% -10%, rgba(233,192,112,.075), transparent 70%),
    radial-gradient(760px 520px at 90% 18%, rgba(255,255,255,.028), transparent 70%);
  background-attachment: fixed;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .30; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 61; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 42%, rgba(3,10,7,.72) 100%);
}
.rules { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.rules i {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--line-2);
}
.rules i:nth-child(1) { left: 40px; }
.rules i:nth-child(2) { left: 50%; }
.rules i:nth-child(3) { right: 40px; }
.mono {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 500;
}
.eyebrow { color: var(--brass); margin: 0 0 14px; }
.lead { margin: 0; color: var(--bone-2); font-size: 15.5px; max-width: 46ch; }
.lead b { color: var(--bone); font-weight: 500; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 4.4vw, 66px); line-height: 1.02; margin: 0; }
h1 em { font-style: italic; color: var(--brass-hi); }
a { color: var(--brass-hi); text-underline-offset: 4px; }
.masthead {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px 16px;
  padding: 14px var(--gut);
  border-bottom: 1px solid var(--line);
  color: var(--bone-3);
}
.masthead__mid { color: var(--brass); }
.masthead__right { display: inline-flex; align-items: center; gap: 8px; }
.led {
  width: 6px; height: 6px; border-radius: var(--r-pill);
  background: var(--signal); box-shadow: 0 0 8px var(--signal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .28 } }
.band {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 40px; align-items: end;
  padding: 46px var(--gut) 30px;
}
.stage {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 22px;
  min-height: min(82vh, 780px);
  margin: 0 var(--gut) 96px;
  padding: 22px;
  background:
    linear-gradient(178deg, rgba(22,56,38,.72), rgba(10,28,20,.30) 60%),
    var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--r-none);
}
.stage__frame { position: absolute; inset: 8px; pointer-events: none; }
.stage__frame i { position: absolute; width: 16px; height: 16px; border: 1px solid var(--brass); opacity: .8; }
.stage__frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.stage__frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.stage__frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.stage__frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.index { min-width: 0; }
.index__head {
  display: flex; justify-content: space-between; gap: 8px;
  color: var(--bone); padding-bottom: 9px; margin: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.index__head span { color: var(--bone-3); }
.index__group { margin: 16px 0 6px; color: var(--bone-3); font-size: 10px; }
.index__group .hl { color: var(--brass-hi); }
.index__group .dim { color: var(--bronze); }
.index__group .tick { color: var(--brass); }
.index__list { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px; background: var(--line-2); }
.idx {
  width: 100%; display: grid; grid-template-columns: 26px 1fr 8px;
  align-items: center; gap: 10px;
  background: rgba(10,28,20,.55); border: 0; border-radius: var(--r-none);
  padding: 8px 10px; cursor: pointer; text-align: left;
  color: var(--bone-2); font-family: var(--sans); font-size: 13.5px;
  transition: background .16s ease, color .16s ease, padding-left .16s ease;
}
.idx:hover { background: var(--felt-hi); color: var(--bone); padding-left: 15px; }
.idx:focus-visible { outline: 1px solid var(--brass-hi); outline-offset: -1px; }
.idx__n { font-family: var(--mono); font-size: 10.5px; color: var(--bronze); font-weight: 700; }
.idx__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idx__dot { width: 7px; height: 7px; border-radius: var(--r-pill); display: block; }
.is-live  { background: var(--brass-hi); box-shadow: 0 0 7px rgba(233,192,112,.65); }
.is-play  { background: var(--brass); }
.is-build { background: transparent; border: 1px solid var(--bronze); }
.is-cap   { background: var(--bone); }
.idx.is-on { background: var(--signal); color: #150703; padding-left: 15px; }
.idx.is-on .idx__n { color: rgba(21,7,3,.72); }
.idx.is-on .idx__dot { background: #150703; border-color: #150703; box-shadow: none; }
.object { position: relative; min-width: 0; }
#solid { display: block; width: 100%; height: 660px; touch-action: none; cursor: grab; }
#solid:active { cursor: grabbing; }
#solid:focus-visible { outline: 1px solid var(--brass-hi); outline-offset: 4px; }
.callouts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.co { fill: none; stroke: var(--brass-hi); stroke-width: 1.1; opacity: .82; }
.dia { fill: var(--ground-2); stroke: var(--signal); stroke-width: 1.4; }
.tag {
  position: absolute; left: 4px; bottom: 66px; margin: 0;
  color: var(--bone-2); line-height: 1.5;
}
.tag b { color: var(--signal); font-size: 15px; }
.tag span { color: var(--bone-3); }
.hint {
  position: absolute; left: 0; right: 0; bottom: 6px; margin: 0;
  text-align: center; color: var(--bone-3); font-size: 10px;
}
.hint kbd {
  font-family: var(--mono); font-size: 9.5px; color: var(--brass);
  border: 1px solid var(--line); padding: 1px 4px; margin: 0 1px;
  border-radius: var(--r-none);
}
.dossier { position: relative; min-width: 0; border-left: 1px solid var(--line); padding-left: 22px;
           display: flex; flex-direction: column; }
.legend { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.legend p { display: flex; align-items: center; gap: 9px; margin: 0 0 7px; color: var(--bone-3); }
.legend__hd { display: block !important; color: var(--brass); margin-bottom: 12px !important; }
.legend .mono { font-size: 9.5px; }
.is-sig { background: var(--signal); box-shadow: 0 0 7px rgba(255,75,43,.7); }
.dossier__hd { color: var(--bone-3); margin: 0 0 18px; }
.dos { display: none; }
.dos.is-on { display: block; animation: dosIn .22s ease both; }
@keyframes dosIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.dos__k { color: var(--brass); margin: 0 0 10px; }
.dos h2 { font-size: clamp(28px, 2.3vw, 38px); line-height: 1.04; margin: 0 0 12px; }
.dos__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--bone-2); margin: 0 0 14px;
  border: 1px solid var(--line); padding: 5px 10px; border-radius: var(--r-pill);
}
.dos__body { margin: 0 0 16px; color: var(--bone-2); font-size: 14.5px; }
.dos__body em { color: var(--brass-hi); font-style: italic; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; }
.chips li {
  font-size: 9.5px; color: var(--brass); border: 1px solid var(--line);
  padding: 4px 8px; border-radius: var(--r-none); background: rgba(196,146,60,.06);
}
.dos__fig { margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.dos__fig b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 40px; line-height: 1; color: var(--brass-hi);
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}
.dos__fig span {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bone-3); margin-top: 6px;
}
.dos__fig--split { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.dos__fig--split .qty { display: block; }
.dos__fig--split b { font-size: 26px; }
.dos__fig--split span { margin-top: 3px; font-size: 8.5px; }
.dos__mail { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.off { position: relative; z-index: 3; padding: 0 var(--gut) 90px; }
.off__head { max-width: 720px; margin: 0 0 34px; }
.off__head h2 { font-size: clamp(30px, 3.2vw, 48px); margin: 0 0 14px; line-height: 1.05; }
.drumwrap {
  position: relative; padding: 18px 18px 40px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,56,38,.55), rgba(10,28,20,.2));
  margin-bottom: 30px;
}
#drum { display: block; width: 100%; height: 440px; touch-action: pan-y; cursor: grab; }
#drum:active { cursor: grabbing; }
#drum:focus-visible { outline: 1px solid var(--brass-hi); outline-offset: 4px; }
.drum__bar { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; gap: 16px; align-items: start;
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.stepper {
  height: 40px; background: rgba(10,28,20,.6); border: 1px solid var(--line);
  color: var(--brass-hi); cursor: pointer; border-radius: var(--r-none); font-size: 13px;
  transition: background .15s ease, transform .1s ease;
}
.stepper:hover { background: var(--felt-hi); }
.stepper:active { transform: translateY(2px); }
.stepper:focus-visible { outline: 1px solid var(--brass-hi); outline-offset: 2px; }
.drum__cap { min-width: 0; }
.cap { display: none; margin: 0; }
.cap.is-on { display: block; animation: dosIn .22s ease both; }
.cap b {
  display: block; font-family: var(--serif); font-weight: 400; font-size: 26px;
  line-height: 1.1; margin-bottom: 6px; color: var(--bone);
}
.cap span { display: block; color: var(--bone-2); font-size: 14.5px; max-width: 66ch; }
.drumwrap .hint { bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-bottom: 30px; }
.stat { background: var(--felt); padding: 22px 20px 20px; }
.stat b {
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1; color: var(--brass-hi); text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.stat .unit { color: var(--brass); font-size: 13px; margin-left: 5px; }
.stat .stat__l { display: block; margin-top: 12px; color: var(--bone-3); line-height: 1.7; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); }
.lrow { background: var(--ground-2); padding: 15px 18px; display: grid; gap: 4px; }
.lrow span { color: var(--brass); }
.lrow b { font-weight: 400; color: var(--bone-2); font-size: 14px; }
.close { position: relative; z-index: 3; padding: 0 var(--gut) 80px; text-align: center; }
.close__line {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 46px); line-height: 1.14;
  margin: 0 0 26px; color: var(--bone);
}
.close__mail { margin: 0 0 22px; font-family: var(--mono); font-size: clamp(14px, 1.7vw, 20px); letter-spacing: .04em; }
.ghost {
  background: transparent; border: 1px solid var(--brass); color: var(--brass-hi);
  padding: 11px 20px; cursor: pointer; border-radius: var(--r-none);
  transition: background .16s ease, color .16s ease;
}
.ghost:hover { background: var(--brass); color: #150703; }
.ghost:focus-visible { outline: 1px solid var(--brass-hi); outline-offset: 3px; }
.foot {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px var(--gut); border-top: 1px solid var(--line); color: var(--bone-3);
}
@media (max-width: 1180px) {
  .stage { grid-template-columns: 220px minmax(0, 1fr); }
  .dossier { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line);
             padding-left: 0; padding-top: 20px; }
  .callouts { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --gut: 18px; }
  .rules i:nth-child(1) { left: 16px; } .rules i:nth-child(3) { right: 16px; }
  .band { grid-template-columns: 1fr; gap: 22px; padding-top: 34px; }
  .masthead__mid { display: none; }
  .masthead .mono { font-size: 9px; letter-spacing: .07em; }
  .stage { grid-template-columns: 1fr; margin-bottom: 64px; padding: 16px; }
  .object { order: -1; }
  #solid { height: 345px; }
  .index__list { grid-template-columns: 1fr 1fr; }
  .index__group { margin-top: 12px; }
  .tag { bottom: 60px; font-size: 9.5px; }
  #drum { height: 320px; }
  .drum__bar { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 10px; }
  .cap b { font-size: 21px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .foot { font-size: 9.5px; }
}
@media (max-width: 520px) {
  .index__list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .dos__fig--split { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .led { animation: none; }
  .dos.is-on, .cap.is-on { animation: none; }
}
.facetcount{
  position: absolute; left: 22px; top: 22px; z-index: 4;
  display: flex; align-items: baseline; gap: 4px; pointer-events: none;
}
.facetcount b{ font-size: 34px; color: var(--vermilion); font-weight: 400; line-height: 1 }
.facetcount span{ font-size: 13px; color: var(--bone-2); opacity: .5 }
.facetcount__ring{
  display: block; width: 46px; height: 1px; margin-left: 12px;
  background: linear-gradient(90deg, var(--vermilion), transparent);
  align-self: center;
}
.stage__canvaswrap, .stage canvas{ height: 100% }
.stage canvas{ width: 100%; display: block }
.plates{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 28px;
}
.plate{
  position: relative; padding: 18px 18px 16px;
  background: linear-gradient(158deg, rgba(200,154,63,.16), rgba(200,154,63,.05) 52%, rgba(0,0,0,.14));
  border: 1px solid rgba(200,154,63,.28);
  box-shadow: inset 0 1px 0 rgba(255,232,180,.22), inset 0 -1px 0 rgba(0,0,0,.35);
}
.plate::before, .plate::after{
  content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #E9D6A6, #8A6C2C 62%, #4A3812);
  box-shadow: 0 1px 0 rgba(255,255,255,.12);
}
.plate::before{ left: 8px; top: 8px }
.plate::after{ right: 8px; bottom: 8px }
.plate__k{
  display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); opacity: .8; margin-bottom: 8px;
}
.plate b{
  display: block; font-weight: 400; font-size: 17px; color: var(--bone);
  letter-spacing: .01em; text-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.plate em{
  display: block; font-style: normal; font-size: 10.5px; letter-spacing: .05em;
  color: var(--bone-2); opacity: .62; margin-top: 5px;
}
@media (max-width: 940px){
  .plates{ grid-template-columns: 1fr 1fr }
  .stage{ grid-template-columns: minmax(0,1fr) !important; min-height: 0 }
  .facetcount{ left: 14px; top: 14px }
}
@media (max-width: 560px){ .plates{ grid-template-columns: 1fr } }
