/* =====================================================================
   Proof: the benchmark, the people and the close.
   Competitor bars are slate, never red. Amber marks the draft state.
   ===================================================================== */

/* ------------------------------------------------------------ benchmark */
.bench { position: relative; z-index: 4; background: var(--surface); border-block: 1px solid var(--rule); padding-block: clamp(72px, 9vw, 128px); }
.b-draft { display: none; }
.bench[data-state="draft"] .b-draft { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 36px; padding: 12px 16px; border: 1px dashed var(--amber-line); border-radius: 14px; background: var(--amber-soft); color: var(--amber); font-size: 0.92rem; font-weight: 500; }
.b-draft b { color: #6b3f00; }
.b-draft code { font: 600 0.85em var(--mono); }

.b-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; gap: 16px 56px; margin-bottom: 36px; }
.b-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.b-head h2 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); line-height: 0.94; letter-spacing: -0.045em; }
.b-head h2 span { color: var(--teal-deep); }
.b-head .lede { font-size: clamp(1.02rem, 1.25vw, 1.18rem); color: var(--ink-2); padding-bottom: 0.4em; }

.b-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.b-tools .seg { background: var(--page); }
.b-tools a { font-weight: 600; color: var(--teal-deep); text-underline-offset: 4px; }

.b-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.b-chart { position: relative; overflow: hidden; background: var(--page); border-radius: 24px; padding: 28px 28px 24px; }
.b-chart h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.02em; }
.b-chart > p { margin: 4px 0 22px; font-size: 0.88rem; color: var(--ink-3); }
.bench[data-state="draft"] .b-chart h3 { padding-right: 8rem; }
.bench[data-state="draft"] .b-chart { background-image: repeating-linear-gradient(135deg, rgb(224 160 46 / 0.07) 0 12px, transparent 12px 24px); }
.bench[data-state="draft"] .b-chart::after { content: 'Illustrative'; position: absolute; top: 24px; right: 24px; padding: 5px 10px; border: 1px dashed var(--amber-line); border-radius: 999px; background: var(--amber-soft); color: var(--amber); font: 600 0.72rem/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }

.b-row { display: grid; grid-template-columns: minmax(7.5rem, 10.5rem) minmax(0, 1fr) 4.4rem; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.b-name b { display: block; font: 700 1rem/1.2 var(--display); letter-spacing: -0.01em; }
.b-name small { display: block; font: 500 0.72rem/1.35 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.b-track { position: relative; height: 14px; border-radius: 999px; background: rgb(23 34 44 / 0.08); }
.b-track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--w, 0) * 100%); border-radius: inherit; background: #8a96a1; transition: width 0.9s var(--ease); }
.b-board:not(.is-in) .b-track i { width: 0; }
.b-row.is-us .b-track i { background: linear-gradient(90deg, var(--teal-deep), var(--teal)); }
.b-row.is-zero .b-track::after { content: 'none found'; position: absolute; left: 0; top: 50%; transform: translateY(-50%); padding: 3px 9px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); font: 600 0.72rem/1 var(--mono); }
.b-val { text-align: right; font: 700 1.1rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.b-row.is-us .b-val, .b-row.is-us .b-name b { color: var(--teal-deep); }

.b-time { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; margin-top: 16px; padding: 14px 4px 0; font-size: 0.92rem; color: var(--ink-2); }
.b-time > small { font: 600 0.78rem/1 var(--sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.b-time > span { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.b-time span span { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.b-time b { font-family: var(--sans); font-weight: 600; }
.b-time .is-us { color: var(--teal-deep); }

.b-sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin: clamp(56px, 7vw, 88px) 0 18px; }
.b-sub h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; }
.b-sub p { max-width: 30rem; color: var(--ink-2); }

.b-example { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; }
.ex-cell { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.ex-cell + .ex-cell { border-left: 1px solid var(--rule); }
.ex-cell > small { font: 600 0.78rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.ex-cell:first-child { background: var(--sheet); }
.ex-line { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: baseline; padding: 10px 0; border-block: 1px dotted #d9d4c8; font-family: var(--mono); font-size: 0.9rem; }
.ex-line span:first-child { font-family: var(--sans); font-weight: 600; }
.ex-line b { font-size: 1.05rem; }
.ex-line .ex-range { grid-column: 1 / -1; color: var(--ink-3); font-size: 0.8rem; }
.ex-line .ex-range::before { content: 'printed range '; font-family: var(--sans); }
.ex-val { font: 700 2.2rem/1 var(--mono); letter-spacing: -0.03em; }
.ex-cell p { color: var(--ink-2); }
.ex-cell .ex-note { font-size: 0.92rem; }
.is-miss .ex-val { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--ink-2); }
.is-di { background: linear-gradient(180deg, var(--teal-soft), rgb(220 241 238 / 0.35)); }
.is-di .ex-val { color: var(--teal-deep); }
.cite.is-static { cursor: default; animation: none; vertical-align: 0.3em; }

.b-method { margin-top: 16px; border: 1px solid var(--rule); border-radius: 24px; background: var(--surface); }
.b-method summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 26px; cursor: pointer; list-style: none; font: 700 1.15rem/1.2 var(--display); letter-spacing: -0.01em; }
.b-method summary::-webkit-details-marker { display: none; }
.b-method summary::after { content: '+'; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--page); font: 600 1.2rem/1 var(--sans); transition: transform 0.3s var(--ease); }
.b-method[open] summary::after { transform: rotate(45deg); }
.b-method summary small { margin-left: auto; font: 500 0.85rem/1.2 var(--sans); color: var(--ink-3); }
.b-method dl { margin: 0; padding: 0 26px 18px; }
.b-method dl > div { display: grid; grid-template-columns: minmax(8rem, 0.3fr) minmax(0, 1fr); gap: 4px 28px; padding: 14px 0; border-top: 1px solid var(--rule); }
.b-method dt { font-weight: 700; }
.b-method dd { margin: 0; color: var(--ink-2); }

.b-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.b-cta p { color: var(--ink-2); max-width: 34rem; }

/* --------------------------------------------------------------- people */
.people { position: relative; z-index: 4; background: var(--page); padding-block: clamp(80px, 10vw, 140px); }
.people h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 0.98; letter-spacing: -0.04em; max-width: 16ch; margin-bottom: clamp(36px, 5vw, 56px); }
.p-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.p-list li { border-top: 2px solid var(--ink); padding-top: 22px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; align-content: start; }
.p-mark { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1.05rem/1 var(--display); padding-bottom: 2px; }
.p-list h3 { font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.15; }
.p-role { font: 600 0.78rem/1.3 var(--mono); color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.06em; }
.p-list p:not(.p-role) { grid-column: 1 / -1; margin-top: 14px; color: var(--ink-2); }
.p-foot { margin-top: clamp(36px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- close */
.close { position: relative; z-index: 4; overflow: hidden; background: var(--teal-deep); color: #fff; padding-block: clamp(88px, 11vw, 150px); }
.close::before { content: ''; position: absolute; width: 60vw; height: 60vw; right: -18vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgb(127 220 184 / 0.35), transparent 62%); pointer-events: none; }
.close-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; gap: 32px 64px; }
.close h2 { font-size: clamp(3rem, 8vw, 7.4rem); line-height: 0.96; letter-spacing: -0.05em; color: #fff; }
.close p { color: rgb(255 255 255 / 0.86); font-size: 1.1rem; margin-bottom: 24px; }
.close .actions { margin-top: 0; }
.close .btn-primary { background: #fff; color: var(--teal-deep); }
.close .btn-primary:hover { background: #e6f5f2; }
.close .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.5); }
.close .btn-ghost:hover { border-color: #fff; }
.close :focus-visible { outline-color: #fff; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .b-head, .close-inner { grid-template-columns: 1fr; }
  .b-board, .b-example, .p-list { grid-template-columns: 1fr; }
  .ex-cell + .ex-cell { border-left: 0; border-top: 1px solid var(--rule); }
  .b-chart { padding: 22px 18px 18px; border-radius: 20px; }
  .bench[data-state="draft"] .b-chart::after { top: 20px; right: 18px; }
  .b-row { grid-template-columns: minmax(0, 1fr) 4rem; gap: 8px 12px; }
  .b-track { grid-column: 1 / -1; grid-row: 2; }
  .b-method dl > div { grid-template-columns: 1fr; }
  .b-method summary small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .b-track i { transition: none; }
}
@media print {
  .nav, .world, .rail, .close::before { display: none; }
  .bench, .people, .principles, .close { break-inside: avoid; }
}
