/* The wall system page (system.html). Builds on studio.css; every colour is a DESIGN.md token. */
.sys-label[hidden],.sys-tools[hidden]{display:none}

/* Intro and concept notice */
.sys-intro{display:grid;grid-template-columns:1.25fr 1fr;gap:80px;align-items:end;padding-top:100px;padding-bottom:100px}
.sys-kicker{font-size:13px;color:var(--muted)}
.sys-intro h1{margin-top:20px;font-size:clamp(52px,6.4vw,104px)}
.sys-intro .large-copy{max-width:640px}
.sys-notice{background:var(--mist);border-top:2px solid var(--ink);padding:32px 34px 34px}
.sys-notice-label{font-size:12px;color:var(--accent);font-weight:600;letter-spacing:.02em}
.sys-notice h2{font-size:26px;letter-spacing:-.025em;line-height:1.2;margin:10px 0 16px}
.sys-notice p:not(.sys-notice-label){font-size:15px}
.sys-notice p+p{margin-top:12px}

/* 3D viewer */
.sys-viewer{background:var(--mist)}
.sys-viewer-inner{max-width:1760px;margin:auto;padding:100px var(--pad) 96px}
.sys-viewer-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px}
.sys-hint{font-size:15px;color:var(--muted);max-width:360px}
.sys-layout{display:grid;grid-template-columns:1.9fr 1fr;gap:56px;margin-top:52px;align-items:start}
.sys-visual{position:relative;min-width:0}
.sys-still{width:100%;height:auto}
.sys-viewer.has-3d .sys-still{display:none}
.sys-visual-note{font-size:11px;color:var(--muted);margin-top:10px}
.sys-stage{position:relative;aspect-ratio:4/3;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none}
.sys-stage.is-dragging{cursor:grabbing}
.sys-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.sys-stage:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.sys-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.sys-label{position:absolute;left:0;top:0}
.sys-dot{position:absolute;left:-4.5px;top:-4.5px;width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--ground)}
.sys-leader{position:absolute;left:0;top:0;height:1px;background:var(--ink);transform-origin:0 50%}
.sys-tag{position:absolute;left:0;top:0;white-space:nowrap;font-size:12px;line-height:1;font-weight:500;padding:6px 9px;background:var(--ground);color:var(--ink);border-radius:2px}

/* Controls and sequence */
.sys-tools{margin-bottom:38px}
.sys-range-label{display:flex;justify-content:space-between;font-size:14px;font-weight:500;margin-bottom:8px}
.sys-range-label output{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:400}
.sys-tools input[type=range]{accent-color:var(--accent);height:24px}
.sys-help{font-size:12px;color:var(--muted);margin-top:4px}
.sys-reset{padding:10px 0 6px;border-bottom:1px solid var(--ink);font-size:13px;margin-top:18px}
.sys-reset:hover{color:var(--accent);border-color:var(--accent)}
.sys-sequence-title{font-size:14px;font-weight:500;letter-spacing:0;margin-bottom:12px}
.sys-sequence{list-style:none;margin:0;padding:0;border-top:1px solid #b4beb6}
.sys-sequence li{border-bottom:1px solid #b4beb6;padding:14px 0}
.sys-sequence h4{margin:0;font-size:17px;font-weight:500;letter-spacing:-.01em;line-height:1.35}
.sys-n{display:inline-block;min-width:30px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.sys-sequence p{font-size:14px;color:var(--muted);margin-top:8px;max-width:440px}
.has-3d .sys-sequence li{padding:0}
.has-3d .sys-sequence li:not(.is-active) p{display:none}
.has-3d .sys-sequence li.is-active p{padding:0 0 16px 30px}
.sys-step{display:block;width:100%;text-align:left;padding:13px 0;font-weight:inherit;line-height:inherit;transition:color .3s}
.sys-step:hover{color:var(--accent)}
.sys-step:focus-visible{outline-offset:2px}
.sys-step[aria-pressed=true]{font-weight:600}
.sys-step[aria-pressed=true] .sys-n{color:var(--accent)}

/* How one clip works */
.sys-clip-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:40px}
.sys-clip-heading p{font-size:15px;color:var(--muted);max-width:520px}
.sys-clip-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:72px;margin-top:56px;align-items:center}
.sys-figure{margin:0;min-width:0}
.sys-section{display:block;width:100%;height:auto}
.sys-s-tile{fill:var(--mist);stroke:var(--muted);stroke-width:1.4;stroke-linejoin:round}
.sys-s-beam{fill:var(--muted)}
.sys-s-clip{fill:var(--accent)}
.sys-s-block{fill:none;stroke:var(--ink);stroke-width:2;stroke-dasharray:7 5}
.sys-s-axis path{fill:none;stroke:var(--muted);stroke-width:1.5}
.sys-s-axis text{font-size:15px;fill:var(--muted)}
.sys-s-marks path{fill:none;stroke:var(--ink);stroke-width:1.3}
.sys-s-marks circle{fill:var(--ink)}
.sys-s-marks text{fill:#fff;font-size:18px;font-weight:600;text-anchor:middle}
.sys-legend{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:12px;color:var(--muted);margin-top:18px}
.sys-legend span{display:inline-flex;align-items:center;gap:8px}
.sys-key{display:inline-block;width:16px;height:10px}
.sys-key-clip{background:var(--accent)}.sys-key-beam{background:var(--muted)}.sys-key-tile{background:var(--mist);border:1px solid var(--muted)}.sys-key-block{border:1.5px dashed var(--ink)}
.sys-notes{list-style:none;margin:0;padding:0;counter-reset:note}
.sys-notes li{counter-increment:note;display:grid;grid-template-columns:44px 1fr;padding:18px 0;border-bottom:1px solid #bec8bf}
.sys-notes li:first-child{padding-top:0}
.sys-notes li:before{content:counter(note);grid-row:span 2;width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;font-size:13px;font-weight:600;display:grid;place-items:center}
.sys-notes h3{font-size:19px;line-height:1.3}
.sys-notes h3 span{color:var(--accent);font-weight:600;margin-left:6px;white-space:nowrap}
.sys-notes p{font-size:14px;color:var(--muted);margin-top:6px}

/* What is not designed yet */
.sys-open{border-top:1px solid #bec8bf;display:grid;grid-template-columns:1fr 1.2fr;gap:110px}
.sys-open .body-copy{max-width:420px}
.sys-open-list{list-style:none;margin:0;padding:0}
.sys-open-list li{padding:14px 0;border-bottom:1px solid #bec8bf;font-size:15px;color:var(--muted)}
.sys-open-list li:first-child{padding-top:0}
.sys-open-list strong{color:var(--ink);font-weight:600}
.sys-cta{margin-top:48px}
.sys-cta p{font-size:17px;max-width:460px;margin-bottom:24px}

@media(max-width:1000px){.sys-intro{gap:40px;grid-template-columns:1fr 1fr}.sys-layout{grid-template-columns:1.5fr 1fr;gap:32px}.sys-clip-layout{gap:40px}.sys-open{gap:50px}}
@media(max-width:700px){
  .sys-intro{display:block;padding-top:56px;padding-bottom:64px}
  .sys-intro h1{font-size:clamp(46px,12vw,64px);margin-top:14px}
  .sys-notice{margin-top:40px;padding:24px 22px 26px}
  .sys-notice h2{font-size:22px}
  .sys-notice p:not(.sys-notice-label){font-size:14px}
  .sys-viewer-inner{padding:64px 24px 60px}
  .sys-viewer-heading{display:block}
  .sys-hint{margin-top:18px;font-size:14px;max-width:none}
  .sys-layout{display:block;margin-top:28px}
  .sys-visual{margin:0 -24px}
  .sys-visual-note{padding:0 24px}
  .sys-stage{aspect-ratio:1/1.04}
  .sys-tag{font-size:11px;padding:5px 7px}
  .sys-controls{margin-top:30px}
  .sys-clip-heading{display:block}
  .sys-clip-heading p{margin-top:18px;font-size:14px}
  .sys-clip-layout{display:block;margin-top:32px}
  .sys-figure{margin:0 -10px}
  .sys-notes{margin-top:40px}
  .sys-notes h3{font-size:17px}
  .sys-open{display:block}
  .sys-open-list{margin-top:32px}
  .sys-open-list li{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.sys-step{transition:none}}
