/* THE EVENING · «Why trust the numbers» (fx «trust», e-trust.js; the owner's pick of 2026-11-26: variant C of
   trust-mix.html). The parts keep the looks he chose in trust-variants.html: the lit cards (5), the session grid (2),
   the receipt (1), the test names and the matrix (4). Green #27e0a2 for profit, red #ff6b86 for a loss, gold for
   Pulse. A coloured block gets the tone contour all the way round, never a stripe on one edge (owner, 2026-11-24).
   Where the page has its lamp, the blocks stand on the section's own colour, so the lamp's screens show only around
   them (owner, 2026-11-23), and this block's own screen shows only under its cards. */

.wt { position: relative; --mx: 50%; --my: 30%; }
/* the glow and the screen under the cards reach past the column; the section clips them (clip, not hidden: the
   lamp's sticky screens keep sticking), so a phone never scrolls sideways */
.fx-trust #trust { overflow-x: clip; }
.wt > * { position: relative; }
/* the light's glow and the grid it draws on the dark; the page's lamp does this job where it is on */
.wt::before { content: ""; position: absolute; inset: -80px -40px; background: radial-gradient(circle 440px at var(--mx) var(--my), rgba(214, 177, 92, .1), transparent 70%); pointer-events: none; }
.wt-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(circle 340px at var(--mx) var(--my), #000, transparent 75%); mask-image: radial-gradient(circle 340px at var(--mx) var(--my), #000, transparent 75%); pointer-events: none; }
.is-lamp .wt::before, .is-lamp .wt-lines { display: none; }

/* ── the three cards under the light ── */
.wt-proof { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .9fr); gap: 14px; }
.is-lamp .has-dark .wt-proof::before { content: ""; position: absolute; inset: -34px -24px; border-radius: 26px; background: var(--ed-c0, #020304); box-shadow: 0 0 14px 6px var(--ed-c0, #020304); pointer-events: none; }
.wt-under { position: absolute; inset: -34px -24px; border-radius: 26px; overflow: hidden; opacity: .5; pointer-events: none; filter: saturate(.75) brightness(.9);
  -webkit-mask-image: radial-gradient(circle 270px at var(--x, -999px) var(--y, -999px), #000 0, rgba(0, 0, 0, .5) 45%, transparent 76%); mask-image: radial-gradient(circle 270px at var(--x, -999px) var(--y, -999px), #000 0, rgba(0, 0, 0, .5) 45%, transparent 76%); }
.wt-under img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.wt-card, .wt-tile, .wt-lit { position: relative; }
.wt-card { z-index: 1; display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 32px); border-radius: 22px; background: rgba(9, 12, 15, .74); outline-offset: 4px; }
/* a contour lit near the light (1 px, all the way round), and a soft glow inside */
:is(.wt-card, .wt-tile, .wt-lit)::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(250px circle at var(--x, -999px) var(--y, -999px), rgba(243, 216, 159, .92), rgba(214, 177, 92, .27) 45%, transparent 72%), linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
:is(.wt-card, .wt-tile, .wt-lit)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--x, -999px) var(--y, -999px), rgba(214, 177, 92, .075), transparent 60%); }
.wt-card > *, .wt-tile > *, .wt-lit > * { position: relative; z-index: 1; }
.wt-card h3 { margin: 8px 0 0; font-size: 19px; }
.wt-card p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.5; }
/* the big figure: an outline, filled with gold where the light is */
.wt-big { position: relative; display: block; width: fit-content; font: 800 clamp(52px, 6.4vw, 104px)/.86 var(--font-display); letter-spacing: -.055em; }
.wt-o { color: rgba(235, 229, 216, .06); -webkit-text-stroke: 1px rgba(235, 229, 216, .34); }
.wt-f { position: absolute; left: 0; top: 0; background: linear-gradient(180deg, #fbe7bd, #e3bd6f 45%, #b07f33); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: radial-gradient(circle 210px at var(--x, -999px) var(--y, -999px), #000 12%, rgba(0, 0, 0, .35) 52%, transparent 80%); mask-image: radial-gradient(circle 210px at var(--x, -999px) var(--y, -999px), #000 12%, rgba(0, 0, 0, .35) 52%, transparent 80%); }

/* ── the tiles: the grid with its receipt, the tests ── */
.wt-bento { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.wt-tile { display: grid; gap: 14px; align-content: start; padding: clamp(18px, 2vw, 26px); border-radius: 22px; background: rgba(10, 13, 16, .8); }
.is-lamp .has-dark .wt-tile { background: linear-gradient(rgba(10, 13, 16, .8), rgba(10, 13, 16, .8)), var(--ed-c0, #020304); }
.wt-tile-h { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.wt-k { font: 650 18px/1.2 var(--font-display); }
.wt-sub, .wt-src { color: var(--text-tertiary); font: 500 11px/1.4 var(--font-mono); letter-spacing: .03em; }
.wt-src { margin: 0; }
.wt-trace { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(16px, 2.2vw, 28px); align-items: stretch; }
.wt-gridbox { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-width: 0; }
.wt-grid { display: grid; grid-template-columns: max-content repeat(5, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(44px, 1fr); gap: 5px; }
.wt-wd { padding-bottom: 3px; text-align: center; color: var(--text-tertiary); font: 600 10.5px/1 var(--font-mono); }
.wt-sn { align-self: center; padding-right: 4px; color: var(--text-tertiary); font: 500 11px/1.2 var(--font-mono); }
.wt-cell { min-width: 0; border: 0; border-radius: 8px; background: rgb(var(--tone) / var(--a)); color: #fff; font: 600 11px/1 var(--font-mono); cursor: pointer; transition: transform .18s var(--ease-out), box-shadow .18s; }
.wt-cell:hover { transform: scale(1.07); }
.wt-cell[aria-pressed="true"] { box-shadow: 0 0 0 2px #0b0e11, 0 0 0 3.5px rgb(var(--tone) / .95), 0 0 18px rgb(var(--tone) / .5); }
.wt-on .wt-cell { animation: wt-pop .5s var(--ease-out) backwards; animation-delay: calc(var(--n) * 22ms); }
@keyframes wt-pop { from { opacity: 0; transform: scale(.6); } }

/* the receipt: torn edges, trades line by line, a running total, the stamp under it */
.wt-receipt { position: relative; display: grid; grid-template-rows: minmax(0, 1fr); height: 560px; padding-block: 10px; }
.wt-paper { position: relative; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; padding: 22px 24px 20px; border-radius: 3px; background: linear-gradient(180deg, #11151a, #0c0f12); box-shadow: 0 34px 80px rgba(0, 0, 0, .6), inset 1px 0 0 rgba(255, 255, 255, .05), inset -1px 0 0 rgba(255, 255, 255, .05); font-family: var(--font-mono); transform: rotate(.6deg); }
.wt-paper::before, .wt-paper::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background-size: 16px 10px; background-repeat: repeat-x; }
.wt-paper::before { top: -9px; background-image: radial-gradient(circle at 8px 0, transparent 6px, #11151a 6.5px); }
.wt-paper::after { bottom: -9px; background-image: radial-gradient(circle at 8px 10px, transparent 6px, #0c0f12 6.5px); }
.wt-rh { display: grid; gap: 5px; padding-bottom: 14px; border-bottom: 1px dashed rgba(255, 255, 255, .16); }
.wt-acct { color: var(--text-tertiary); font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.wt-name { color: var(--text-primary); font: 700 26px/1.1 var(--font-display); letter-spacing: -.02em; }
.wt-meta { color: var(--text-tertiary); font-size: 12px; }
/* the narrower receipt keeps date, symbol and result; the lots show where it is wide */
.wt-cols, .wt-row { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, .9fr) minmax(0, .9fr); gap: 8px; }
.wt-cols span:nth-child(3), .wt-row span:nth-child(3) { display: none; }
.wt-cols { padding: 12px 0 8px; color: var(--text-tertiary); font: 600 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.wt-cols span:last-child, .wt-row span:last-child { text-align: right; }
.wt-rows { min-height: 0; overflow: auto; border-radius: 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; -webkit-mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 10px), transparent); mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 10px), transparent); }
/* the list's own mask hides its outline: the receipt around it (no mask) shows the keyboard's ring instead */
.wt-rows:focus-visible { outline: none; }
.wt-paper:has(.wt-rows:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.wt-row { padding: 6px 2px; color: var(--text-secondary); font: 500 12.5px/1 var(--font-mono); white-space: nowrap; opacity: 0; transform: translateY(5px); transition: opacity .16s, transform .16s; }
.wt-row.is-in { opacity: 1; transform: none; }
.wt-row span { overflow: hidden; text-overflow: ellipsis; }
.wt-row span:nth-child(2) { color: var(--text-primary); }
.wt-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 3px double rgba(255, 255, 255, .2); }
.wt-sum-l { color: var(--text-tertiary); font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.wt-sum-v { font: 700 30px/1 var(--font-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wt-stamp { --tone: 214 177 92; justify-self: end; display: grid; gap: 4px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(9, 11, 13, .86); color: var(--accent); font: 700 11.5px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; opacity: 0; transform: rotate(-3deg) scale(1.5);
  box-shadow: inset 0 0 0 1px rgb(var(--tone) / .46), inset 0 1px 0 rgb(var(--tone) / .74), inset 0 0 22px -12px rgb(var(--tone) / .5), 0 0 0 1px rgb(var(--tone) / .09), 0 0 18px -6px rgb(var(--tone) / .44);
  transition: opacity .15s, transform .4s cubic-bezier(.2, 1.7, .4, 1); }
.wt-stamp span { color: var(--text-secondary); font-weight: 500; font-size: 10.5px; letter-spacing: .04em; text-transform: none; }
.wt-receipt.is-done .wt-stamp { opacity: 1; transform: rotate(-3deg) scale(1); }

/* the tests: their counts by layer, and one list of their real names rising slowly; the tile takes the height of the
   one beside it */
.wt-feed { grid-template-rows: auto auto minmax(0, 1fr) auto; contain: size; }
.wt-feed-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: end; }
.wt-feed-h .wt-big { font-size: clamp(46px, 4.2vw, 72px); }
.wt-feed-h b { display: block; margin-bottom: 4px; font-size: 17px; }
.wt-feed-h p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.wt-fi--py { --tone: 125 170 255; } .wt-fi--rs { --tone: 52 211 153; } .wt-fi--ui { --tone: 214 177 92; }
.wt-feed-n { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px 0; border-block: 1px solid var(--border-faint); }
.wt-feed-n li { display: grid; gap: 3px; }
.wt-feed-n b { color: rgb(var(--tone)); font: 700 21px/1 var(--font-mono); }
.wt-feed-n span { color: var(--text-tertiary); font-size: 11.5px; line-height: 1.3; }
.wt-feed-track { min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.wt-feed-run { animation: wt-up 80s linear infinite; }
.wt-feed:hover .wt-feed-run { animation-play-state: paused; }
@keyframes wt-up { to { transform: translateY(-50%); } }
.wt-feed-run ul { list-style: none; display: grid; gap: 7px; margin: 0; padding: 0 0 7px; }
.wt-feed-run li { display: flex; gap: 9px; align-items: baseline; padding: 8px 11px; border-radius: 9px; color: var(--text-secondary); font: 500 11.5px/1.4 var(--font-mono); background: rgb(var(--tone) / .035); box-shadow: inset 0 0 0 1px rgb(var(--tone) / .17); }
.wt-feed-run li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--tone)); box-shadow: 0 0 8px rgb(var(--tone) / .7); transform: translateY(-1px); }
.wt-feed-foot { margin: 0; color: var(--text-tertiary); font: 500 11px/1.4 var(--font-mono); }
.wt-feed-foot b { color: var(--text-primary); }

/* ── what other tools leave to you: a row of glyphs per task; the open row's words below ── */
.wt-cmp-h { width: fit-content; margin: clamp(44px, 4.6vw, 68px) auto 16px; font: 650 19px/1.25 var(--font-display); letter-spacing: -.01em; text-align: center; }
.is-lamp .has-dark .wt-cmp-h { padding: 4px 14px; border-radius: 12px; background: var(--ed-c0, #020304); box-shadow: 0 0 14px 6px var(--ed-c0, #020304); }
.wt-mx { padding: 8px; border-radius: 22px; }
.wt-mx-r { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr) 22px; gap: 12px; align-items: center; padding: 14px 16px; }
.wt-mx-hd { padding-block: 12px 8px; color: var(--text-tertiary); font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.wt-mx-hd .us { color: var(--accent); }
.wt-mx-row { width: 100%; border: 0; border-radius: 14px; background: none; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s; }
.wt-mx-row:hover { background: rgba(255, 255, 255, .025); }
.wt-mx-row[aria-expanded="true"] { --tone: 214 177 92; background: rgba(214, 177, 92, .045); box-shadow: inset 0 0 0 1px rgb(var(--tone) / .36), 0 0 16px -8px rgb(var(--tone) / .4); }
.wt-job { font-size: 15px; font-weight: 600; }
.wt-g { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.wt-g svg { width: 18px; height: 18px; flex: none; }
.wt-g span { color: var(--text-secondary); }
.wt-g--hand { color: #d9b77a; }
.wt-g--none { color: var(--text-tertiary); }
.wt-g--us { color: var(--pl-pos); }
.wt-g--us span { color: var(--text-primary); font-weight: 650; }
.wt-more svg { width: 16px; height: 16px; color: var(--text-tertiary); transition: transform .25s var(--ease-out), color .2s; }
.wt-mx-row[aria-expanded="true"] .wt-more svg { transform: rotate(90deg); color: var(--accent); }
.wt-detail { display: grid; margin: 4px 8px 6px; }
.wt-d { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); border-top: 1px dashed var(--border-subtle); visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; }
.wt-d.is-on { visibility: visible; opacity: 1; transition: opacity .25s; }
.wt-d > div { padding: 16px 16px 12px; }
.wt-dk { display: block; margin-bottom: 6px; color: var(--text-tertiary); font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.wt-d p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.wt-d .us p { color: var(--text-primary); }
.wt-d .us .wt-dk { color: var(--accent); }

/* ── replay: the parts rise again each time they are shown (live-cards.js replay(#trust), .lc-anim) ── */
:is(.wt-proof > .wt-card, .wt-bento > .wt-tile, .wt-cmp-h, .wt-mx).lc-anim { opacity: 0; translate: 0 16px; transition: opacity .6s ease var(--td, 0s), translate .75s var(--ease-out) var(--td, 0s); }
.wt-proof > .wt-card.lc-anim:nth-child(3), .wt-bento > .wt-tile.lc-anim:nth-child(2) { --td: .12s; }
.wt-proof > .wt-card.lc-anim:nth-child(4) { --td: .24s; }
:is(.wt-proof > .wt-card, .wt-bento > .wt-tile, .wt-cmp-h, .wt-mx).lc-anim.is-on, .wt-card.lc-anim:focus-visible { opacity: 1; translate: none; }

@media (max-width: 1100px) { .wt-bento { grid-template-columns: minmax(0, 1fr); } .wt-feed { contain: none; height: 540px; } }
@media (min-width: 1101px) and (max-width: 1280px) { .wt-trace { grid-template-columns: minmax(0, 1fr); } .wt-receipt { height: 480px; } }
@media (max-width: 960px) { .wt-proof { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) and (max-width: 1280px) { .wt-cols, .wt-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, .55fr) minmax(0, .9fr); } .wt-cols span:nth-child(3), .wt-row span:nth-child(3) { display: block; text-align: right; } }
@media (max-width: 860px) {
  .wt-trace { grid-template-columns: minmax(0, 1fr); }
  .wt-receipt { height: 520px; }
  .wt-mx-hd { display: none; }
  .wt-mx-r { grid-template-columns: repeat(3, minmax(0, 1fr)) 18px; row-gap: 10px; }
  .wt-job { grid-column: 1 / -2; }
  .wt-more { grid-column: 4; grid-row: 1; }
  .wt-d { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wt-grid { grid-template-columns: max-content repeat(5, minmax(0, 1fr)); grid-auto-rows: minmax(40px, 1fr); gap: 4px; }
  .wt-cell { font-size: 9.5px; }
  .wt-paper { padding: 18px 16px 16px; }
  .wt-row { font-size: 11.5px; }
  .wt-sum-v { font-size: 24px; }
  .wt-mx-r { grid-template-columns: minmax(0, 1fr) 18px; }
  .wt-mx-r > span:not(.wt-job):not(.wt-more) { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wt-row, .wt-stamp, .wt-d { transition: none; }
  .wt-on .wt-cell { animation: none; }
  .wt-feed-run { animation: none; }
  .wt-feed-run ul[aria-hidden] { display: none; }
  .wt-feed-track { overflow-y: auto; }
}
