/* ============================================================
   The Studio: page-specific styles
   ============================================================ */

.phero-art .ln-thin { stroke-width: .7; stroke: var(--ink-72); }
.phero-art .pc-t, .src-map .pc-t { font-family: var(--mono); font-size: 10px; fill: var(--ink-72); text-transform: uppercase; }
.pp-art .pc-t { font-family: var(--mono); font-size: 8px; fill: var(--ink-72); text-transform: uppercase; }
.pp-art.clay .pc-fills { filter: sepia(.85) saturate(1.5) brightness(.92); }
.pp-art .scanl { stroke: var(--accent); stroke-width: .5; opacity: .55; }
.pp-art .stamp-t { fill: var(--accent); font-size: 9px; }
.pp-art .pc-t.rev-l { font-size: 16px; fill: var(--ink); }

/* ---------- process: pinned horizontal ---------- */
.proc-pin { height: calc(100vh - var(--hdr) - 2 * var(--gut)); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.proc-bar { display: flex; justify-content: space-between; padding: 14px 26px; border-bottom: 1px solid var(--line); color: var(--ink-72); }
.proc-count b { font-weight: 400; color: var(--accent); }
.proc-hint { color: var(--ghost); }
.proc-view { overflow: hidden; position: relative; }
.proc-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.proc-intro { width: min(38vw, 560px); padding: 30px 26px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.proc-intro p { margin-top: 26px; color: var(--ink-72); font-size: var(--fs-s); max-width: 30em; }
.proc-meta { margin-top: auto; display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); }
.proc-meta dt, .proc-meta dd { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.proc-meta dt { color: var(--ink-72); }
.proc-meta dd { text-align: right; }

.proc-panel { width: min(34vw, 500px); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.pp-top { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px dashed var(--line); color: var(--ink-72); }
.pp-n { color: var(--accent); }
.pp-art { flex: 1; min-height: 0; width: 100%; padding: 12px 20px; overflow: visible;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px; }
.pp-art .ln-thin { stroke-width: .7; stroke: var(--ink-72); }
.proc-panel .h-lg { padding: 18px 20px 0; border-top: 1px solid var(--line); }
.proc-panel p { padding: 12px 20px 0; color: var(--ink-72); font-size: var(--fs-s); }
.pp-stats { display: grid; grid-template-columns: 1fr auto; margin: 16px 20px 18px; border-top: 1px solid var(--line); }
.pp-stats dt, .pp-stats dd { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.pp-stats dt { color: var(--ink-48); }
.pp-stats dd { text-align: right; }

.proc-ruler { position: relative; height: 40px; border-top: 1px solid var(--line); overflow: hidden; }
.proc-ticks { position: absolute; inset: 0 0 auto 0; height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--ink-48) 0 1px, transparent 1px 80px) top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px) top / 100% 7px no-repeat; }
.proc-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.proc-mm { position: absolute; right: 20px; bottom: 10px; color: var(--accent); }

/* ---------- designers ---------- */
.jw-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.jw-card { border-right: 1px solid var(--line); perspective: 1400px; outline: none; cursor: pointer; min-height: 520px; }
.jw-card:last-child { border-right: 0; }
.jw-card:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.jw-inner { position: relative; height: 100%; transform-style: preserve-3d; }
.jw-face { position: absolute; inset: 0; display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--bg); }
.jw-back { transform: rotateY(180deg); background: var(--ink); color: var(--bg); }
.jw-top { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px dashed var(--line); color: var(--ink-72); }
.jw-back .jw-top { border-color: #4a4a47; color: #a9a8a3; }
.jw-back .jw-top span:last-child { color: var(--accent); }
.jw-tool, .jw-mark { flex: 1; width: 100%; min-height: 0; padding: 20px; overflow: visible; }
.jw-tool .ln-thin { stroke-width: .7; stroke: var(--ink-72); }
.jw-mark .mk-frame { fill: none; stroke: var(--bg); stroke-width: 2.2; }
.jw-mark .mk-in { fill: none; stroke: #6f6e6a; stroke-width: .8; stroke-dasharray: 2 4; }
.jw-mark text { font-family: var(--sans); font-weight: 700; font-size: 64px; letter-spacing: -2px; fill: var(--bg); }
.jw-mark .mk-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; font-weight: 400; fill: #8d8c87; }
.jw-info { padding: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.jw-back .jw-info { border-color: #4a4a47; }
.jw-info .mono { color: var(--accent); }
.jw-info p { color: var(--ink-72); font-size: var(--fs-s); margin-top: 4px; }
.jw-back .jw-info p { color: #c9c8c3; }

/* ---------- materials ---------- */
.src-stage { position: relative; border-top: 1px solid var(--line); padding: 40px 26px; }
.src-map { width: 100%; height: auto; overflow: visible; display: block; }
.src-map .node rect { fill: var(--bg); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.src-map .node .nb { fill: var(--ink); }
.src-map .node text { font-family: var(--mono); font-size: 11px; fill: var(--ink); text-transform: uppercase; }
.src-map .node .nb-t { fill: var(--bg); }
.src-map .node .sub { fill: var(--ink-48); font-size: 9.5px; }
.src-map .route { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.src-map .route-ghost { fill: none; stroke: var(--line); stroke-width: 6; }
.src-map .packet { fill: var(--accent); }
.src-map .dist { font-family: var(--mono); font-size: 10px; fill: var(--accent); }
.src-map .dist-bg { fill: var(--bg); }
.src-map .bench-node rect { fill: var(--accent); stroke: var(--accent); }
.src-map .bench-node text, .src-map .bench-node .sub { fill: #fff; }
.src-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.src-stat { padding: 22px 26px; border-right: 1px solid var(--line); display: grid; gap: 10px; }
.src-stat:last-child { border-right: 0; }
.src-stat b { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.04em; line-height: .9; }
.src-stat span { color: var(--ink-72); }
.src-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.src-list li { padding: 22px 26px 30px; border-right: 1px dashed var(--line); display: grid; gap: 10px; align-content: start; }
.src-list li:last-child { border-right: 0; }
.src-list b { font-size: var(--fs-sm); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.src-list p { color: var(--ink-72); font-size: var(--fs-s); }

/* ---------- sign-off ---------- */
.hm-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hm-cell { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.hm-cell:last-child { border-right: 0; }
.hm-stamp { aspect-ratio: 5 / 4; display: grid; place-items: center; border-bottom: 1px dashed var(--line); position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--paper-2), transparent 70%); }
.hm-stamp svg { width: 70%; overflow: visible; }
.hm-stamp .st-frame { fill: var(--ink); }
.hm-stamp .st-in { fill: var(--bg); }
.hm-stamp text { font-family: var(--sans); font-weight: 700; fill: var(--ink); letter-spacing: -1px; }
.hm-stamp .st-shadow { fill: var(--ink); opacity: .08; }
.hm-stamp .st-accent .st-frame { fill: var(--accent); }
.hm-stamp .st-accent text { fill: var(--accent); }
.hm-stamp .ring-flash { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; }
.hm-txt { padding: 20px 22px 28px; display: grid; gap: 10px; }
.hm-txt p { color: var(--ink-72); font-size: var(--fs-s); }
.hm-band { border-top: 1px solid var(--line); padding: 40px 6%; }
.hm-band-svg { width: 100%; height: auto; overflow: visible; }
.hm-band-svg .band-face { fill: #fbfaf6; }
.hm-band-svg .bm-frame { fill: #3a3a38; }
.hm-band-svg .bm-in { fill: #fbfaf6; }
.hm-band-svg .bm-ini { fill: var(--ink-48); font-weight: 600; }
.hm-band-svg .bm-sig { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hm-band-svg .bm-stamp { fill: none; stroke: var(--accent); stroke-width: 2.4; }
.hm-band-svg .bm-stamp-in { stroke-width: 1; stroke-dasharray: 3 3; }
.hm-band-svg .bm-stamp-t { fill: var(--accent); }
.hm-band-svg .tb-big { font-size: 14px; fill: var(--ink); }
.hm-band-svg text { font-family: var(--sans); font-weight: 700; fill: #3a3a38; }
.hm-band-svg .pc-t { font-family: var(--mono); font-weight: 400; font-size: 10px; fill: var(--ink-72); }
.hm-band-svg .lead { fill: none; stroke: var(--ink-48); stroke-width: .7; stroke-dasharray: 3 3; }

/* ---------- cta ---------- */
.bcta { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--bg); }
.bcta .h-xl { color: var(--bg); }
.bcta .label { color: #a9a8a3; }
.bcta-l { padding: 40px 26px; }
.bcta-r { padding: 40px 26px; border-left: 1px solid #4a4a47; display: grid; gap: 24px; align-content: end; }
.bcta-r p { color: #c9c8c3; font-size: var(--fs-s); max-width: 30em; }
.bcta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.bcta .btn-line { border-color: #5a5a57; }
.bcta .btn-line::after { background: var(--bg); }
.bcta .btn-line:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1300px) and (min-width: 1101px) {
  .jw-card { min-height: 560px; }
}
@media (max-width: 1100px) {
  .jw-grid, .hm-grid, .src-list, .src-stats { grid-template-columns: 1fr 1fr; }
  .jw-card:last-child { grid-column: 1 / -1; }
  .jw-card:nth-child(2n), .hm-cell:nth-child(2n), .src-stat:nth-child(2n) { border-right: 0; }
  .jw-card, .hm-cell, .src-stat { border-bottom: 1px solid var(--line); }
  .src-list li:nth-child(2n) { border-right: 0; }
  .src-list li { border-bottom: 1px dashed var(--line); }
}
@media (max-width: 900px) {
  .proc-pin { height: auto; display: block; overflow: visible; }
  .proc-view { overflow: visible; }
  .proc-track { flex-direction: column; width: 100%; }
  .proc-intro, .proc-panel { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .proc-intro .proc-meta { margin-top: 26px; }
  .pp-art { height: 240px; flex: none; }
  .proc-hint { display: none; }
  .proc-ruler { display: none; }
  .proc-bar { position: sticky; top: var(--hdr); background: var(--bg); z-index: 3; }
  .bcta { grid-template-columns: 1fr; }
  .bcta-r { border-left: 0; border-top: 1px solid #4a4a47; }
  .src-stage { padding: 20px 10px; }
}
@media (max-width: 560px) {
  .jw-grid, .hm-grid, .src-list, .src-stats { grid-template-columns: 1fr; }
  .jw-card, .hm-cell, .src-stat, .src-list li { border-right: 0 !important; }
  .jw-card { min-height: 400px; }
  .jw-card:last-child { grid-column: auto; }
  .hm-band-svg .pc-t { font-size: 15px; }
  .hm-band-svg .tb-big { font-size: 19px; }
  .pp-art .pc-t { font-size: 10.5px; }
  .phero-art .pc-t { font-size: 14px; }
  .src-stats { grid-template-columns: 1fr 1fr; }
  .src-stat { padding: 18px 16px; }
  .src-stat:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .hm-stamp { aspect-ratio: 2 / 1; }
  .hm-stamp svg { width: 46%; }
  .hm-band { padding: 24px 0; }
  .src-map .node text { font-size: 15px; }
  .src-map .node .sub { font-size: 12px; }
  .src-map .dist { font-size: 14px; }
}
