/* project pages: same quiet system as work.html */
.page { max-width: 820px; margin: 0 auto; padding: 24px 24px 96px; display: flex; flex-direction: column; gap: 64px; }
header.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.name { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
header nav { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
header nav a { padding: 10px 12px; text-decoration: none; color: var(--muted); }

.intro { display: flex; flex-direction: column; gap: 18px; }
.intro h1 { margin: 0; font-size: 34px; font-weight: 600; line-height: 1.3; }
.answer { margin: 0; font-size: 18px; line-height: 1.6; max-width: 660px; }
.answer strong { font-weight: 600; }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.sec-head span { font-size: 13px; color: var(--soft); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.fact { border: 1px solid var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.fact b { font-size: 24px; font-weight: 600; }
.fact span { font-size: 13px; color: var(--muted); line-height: 1.5; }

.prose { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); max-width: 680px; }

figure.chart { margin: 0; display: flex; flex-direction: column; gap: 16px; }
figure.chart h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
figure.chart figcaption { font-size: 13px; line-height: 1.6; color: var(--soft); }

/* horizontal bars */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 210px) 1fr; gap: 12px; align-items: center; font-size: 14px; }
.bar-track { position: relative; height: 30px; border: 1px solid var(--ink); }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar-fill.soft { background: #b0b5dc; } /* her highlighter's lavender, as a flat fill */
.bar-val { position: absolute; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* vertical bars */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; height: 260px; border-bottom: 1px solid var(--ink); padding: 0 4px; }
.col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.col .v { font-size: 14px; font-weight: 600; }
.col .b { width: 100%; max-width: 90px; background: var(--ink); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.col-labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 8px 4px 0; font-size: 12px; color: var(--muted); text-align: center; }

.toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle button { font-size: 13px; padding: 9px 12px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* positioning map */
.map { position: relative; height: 380px; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 8px 0 28px 28px; }
.map .mid-x, .map .mid-y { position: absolute; border: 0 dashed var(--soft); }
.map .mid-x { top: 0; bottom: 0; border-left-width: 1px; }
.map .mid-y { left: 0; right: 0; border-top-width: 1px; }
.map .quad { position: absolute; font-size: 12px; color: var(--soft); }
.map .axis-x { position: absolute; left: 0; right: 0; bottom: -26px; text-align: center; font-size: 12px; color: var(--muted); }
.map .axis-y { position: absolute; left: -30px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left top; font-size: 12px; color: var(--muted); white-space: nowrap; }
.dot { position: absolute; transform: translate(-50%, 50%); display: flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.dot i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); display: inline-block; flex: none; }
.dot.left { flex-direction: row-reverse; }
.dot[aria-pressed="true"] span { background: url("../assets/highlight.png") center / 100% 100% no-repeat; padding: 0 4px; }
.map-note { min-height: 48px; font-size: 14px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 12px; }

.limits { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.65; color: var(--ink); }

.links { display: flex; flex-wrap: wrap; gap: 12px; }
.next { border-top: 1px solid var(--ink); padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; }

@media (max-width: 560px) {
  .intro h1 { font-size: 26px; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .cols { height: 200px; gap: 8px; }
  .col-labels { gap: 8px; }
  .map { height: 300px; }
  .dot { font-size: 12px; }
}
