/* ---------- Graphical "blueprint" sections (How it works page, home page tabs) ----------
   Dark panels with a faint grid, gold line drawings, dashed frames with corner marks,
   monospace headings on dark highlight blocks, big live numbers. Used with assets/gfx.js. */
.gx { --gx-line: rgba(230,205,138,.55); --gx-faint: rgba(230,205,138,.12); --gx-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  position: relative; padding: 72px 0; color: #efe7d2; background-color: #0b0b0e;
  background-image: linear-gradient(var(--gx-faint) 1px, transparent 1px), linear-gradient(90deg, var(--gx-faint) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
.gx::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 0%, rgba(179,38,58,.18), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(47,95,179,.16), transparent 55%); }
.gx .wrap { position: relative; }
.gx a { color: var(--gold-light); }

/* small label chip, like a tab on a drawing */
.gx-tag { display: inline-block; font: 500 .78rem var(--gx-mono); letter-spacing: .06em; text-transform: uppercase; color: #c9b88a;
  border: 1px dashed var(--gx-line); padding: 5px 10px; margin: 0 0 18px; }
/* monospace headline on a dark highlight block */
.gx-h { font: 600 clamp(1.5rem, 3.2vw, 2.3rem)/1.35 var(--gx-mono); letter-spacing: -.01em; margin: 0 0 14px; color: #fff4d2; }
.gx-h::after { display: none !important; }
.gx-h mark { background: #1d1a12; color: #fff4d2; padding: 2px 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: inset 0 -3px 0 var(--gold); }
.gx-lead { color: #cfc6ae; max-width: 62ch; font-size: 1.12rem; margin: 0 0 30px; }

/* corner marks on any framed block */
.gx-frame, .gx-stats, .gx-card { position: relative; }
.gx-frame::before, .gx-frame::after, .gx-stats::before, .gx-stats::after, .gx-card::before, .gx-card::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--gold); pointer-events: none; }
.gx-frame::before, .gx-stats::before, .gx-card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.gx-frame::after, .gx-stats::after, .gx-card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* big live numbers */
.gx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px dashed var(--gx-line); margin: 0 0 56px; background: rgba(11,11,14,.6); }
.gx-stat { padding: 22px 20px; border-left: 1px dashed var(--gx-faint); }
.gx-stat:first-child { border-left: 0; }
.gx-stat b { display: block; font: 600 clamp(1.4rem, 3vw, 2.1rem) var(--gx-mono); color: #fff4d2; font-variant-numeric: tabular-nums; }
.gx-stat span { display: block; margin-top: 6px; color: #b9b09a; font-size: .98rem; }
.gx-stat.bad b { color: #f0a3ad; } .gx-stat.mid b { color: #f1d98f; } .gx-stat.good b { color: #9fe0bf; }

/* how it works: steps on the left, a turning wireframe on the right */
.gx-how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; margin-bottom: 60px; }
.gx-steps { list-style: none; margin: 0; padding: 0; }
.gx-steps li { border-bottom: 1px dashed var(--gx-faint); }
.gx-steps button { all: unset; display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 16px 0 14px; cursor: pointer; }
.gx-steps button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.gx-n { font: 500 .85rem var(--gx-mono); color: #8d846d; }
.gx-steps b { font: 600 clamp(1.15rem, 2.2vw, 1.55rem) var(--gx-mono); color: #8d846d; transition: color .2s; }
.gx-steps li.on b { color: #0b0b0e; background: var(--gold-light); padding: 1px 8px; }
.gx-steps li.on .gx-n { color: var(--gold-light); }
.gx-steps p { margin: 0 0 18px 40px; color: #cfc6ae; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s, opacity .35s; }
.gx-steps li.on p { max-height: 12em; opacity: 1; }
.gx-steps .gx-more { display: inline-block; margin: 0 0 18px 40px; font: 500 .85rem var(--gx-mono); }
.gx-steps li:not(.on) .gx-more { display: none; }
.gx-frame { border: 1px dashed var(--gx-faint); aspect-ratio: 4 / 3; }
.gx-wire { display: block; width: 100%; height: 100%; }

/* cards with line drawings */
.gx-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gx-card { display: flex; flex-direction: column; border: 1px dashed var(--gx-line); background: rgba(11,11,14,.72); padding: 18px 20px 20px; text-decoration: none; color: inherit; transition: background .2s, border-color .2s; }
a.gx-card:hover { background: rgba(29,26,18,.9); border-color: var(--gold); }
.gx-card.wide { grid-column: span 2; }
.gx-card svg { width: 100%; height: 150px; margin-bottom: 10px; }
.gx-card svg * { fill: none; stroke: var(--gold-light); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gx-card svg .d { stroke-dasharray: 3 4; opacity: .8; }
.gx-card svg .dot { fill: var(--gold-light); stroke: none; }
.gx-card h3 { font: 600 1.1rem var(--gx-mono); color: #fff4d2; margin: 0 0 6px; }
.gx-card p { margin: 0; color: #b9b09a; font-size: 1rem; }
.gx-card .gx-go { margin-top: auto; padding-top: 12px; font: 500 .82rem var(--gx-mono); color: var(--gold-light); }

/* tool cards on the home page's Tools tab get the same frame */
.tools .tool { position: relative; border: 1px dashed rgba(230,205,138,.45); }
.tools .tool::before, .tools .tool::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--gold); }
.tools .tool::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.tools .tool::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.tools .tool h3 { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; }

@media (max-width: 960px) {
  .gx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-stat:nth-child(3) { border-left: 0; }
  .gx-stat:nth-child(n+3) { border-top: 1px dashed var(--gx-faint); }
  .gx-how { grid-template-columns: 1fr; gap: 24px; }
  .gx-frame { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .gx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .gx { padding: 52px 0; }
  .gx-bento { grid-template-columns: 1fr; }
  .gx-card.wide { grid-column: auto; }
}
