/* The homepage's stylesheet. Built from design/prototypes/homepage.html, the sibling of the firm
   page's bid board: the same dark hero, light board and components. It repeats much of board.css,
   which the firm page uses; the two should be merged once both designs have settled. Motion uses
   transform and opacity only, and none of it runs with reduced motion turned on. */
:root {
  --ink: #020617; --navy: #0F172A; --slate: #334155; --muted: #475569; --faint: #5F6C7D;
  --accent: #0369A1; --accent-ink: #024E79; --accent-wash: #EFF6FB; --sky: #38BDF8; --tint: #A9CDE3;
  --warn: #9A4B10; --warn-wash: #FDF5EC; --good: #047857; --paper: #FFFFFF; --shell: #F8FAFC; --line: #E2E8F0;
  --night-2: #111C33; --night-line: #24324D;
  --display: Newsreader, Georgia, serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wide: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(var(--wide), calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0; font: 600 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 8px; background: var(--sky); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* Hero */
.hero { position: relative; color: var(--paper); background:
  radial-gradient(60% 90% at 85% 20%, rgba(56,189,248,.18), transparent 70%),
  radial-gradient(50% 70% at 5% 100%, rgba(3,105,161,.32), transparent 70%), var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.rise-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rise { position: absolute; right: max(24px, calc((100% - var(--wide)) / 2)); top: 84px; bottom: 0; display: flex; align-items: flex-end; gap: 18px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 90%); mask-image: linear-gradient(#000 30%, transparent 90%); }
/* They grow once on load, then keep breathing slowly, each on its own beat, with a glint rising up
   each bar in turn every few seconds. Transform only, and paused whenever the hero is out of view. */
.rise i { position: relative; overflow: hidden; width: 66px; border-radius: 8px 8px 0 0; background: rgba(43,61,94,.85); transform-origin: bottom;
  animation: rise 1.1s var(--ease) both, breathe 6.5s ease-in-out 1.4s infinite; }
.rise i:nth-child(1) { height: 26%; }
.rise i:nth-child(2) { height: 44%; animation-delay: .08s, 2.1s; animation-duration: 1.1s, 7.5s; }
.rise i:nth-child(3) { height: 64%; animation-delay: .16s, 1.7s; animation-duration: 1.1s, 7s; }
.rise i:nth-child(4) { height: 100%; animation-delay: .24s, 2.6s; animation-duration: 1.1s, 8s; background: linear-gradient(rgba(56,189,248,.46), rgba(56,189,248,.08)); }
/* A glint runs up each bar in turn, left to right, so the light ripples across all four. */
.rise i::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 30%;
  background: linear-gradient(transparent, rgba(186,230,253,.24), transparent); animation: glint 5s ease-in-out 1.6s infinite; }
.rise i:nth-child(2)::after { animation-delay: 2s; }
.rise i:nth-child(3)::after { animation-delay: 2.4s; }
.rise i:nth-child(4)::after { animation-delay: 2.8s; background: linear-gradient(transparent, rgba(224,242,254,.55), transparent); }
.rise.still i, .rise.still i::after { animation-play-state: paused; }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.78); } }
@keyframes glint { 0% { transform: translateY(0); } 55%, 100% { transform: translateY(-420%); } }
.top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 var(--display); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.pill) { padding: 12px 0; text-decoration: none; color: #CBD5E1; font: 500 14px var(--sans); }
.nav a:not(.pill):hover { color: var(--paper); }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; font: 600 14px/1 var(--sans); background: var(--sky); color: var(--ink); padding: 11px 16px;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.pill:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(56,189,248,.7); }
.hero-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 72px; align-items: center; padding: 30px 0 72px; }
.hero .eyebrow { color: var(--sky); }
h1 { margin: 16px 0 0; font-weight: 400; }
.giant { display: block; font: 400 clamp(84px, 10vw, 150px)/.84 var(--display); letter-spacing: -.045em; }
.h1-rest { display: block; margin-top: 14px; max-width: 17em; font: 400 clamp(26px, 2.7vw, 38px)/1.15 var(--display); letter-spacing: -.01em; }
.h1-rest em { font-style: normal; color: var(--sky); }
.lede { margin: 16px 0 0; max-width: 32em; color: #CBD5E1; font-size: 18px; line-height: 1.5; }

/* Finding your firm */
.find { position: relative; margin-top: 26px; max-width: 580px; }
.find > label { display: block; margin-bottom: 8px; color: #E2E8F0; font: 600 14px var(--sans); }
.field { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; border-radius: 14px; background: var(--paper); color: var(--muted); box-shadow: 0 24px 48px -24px rgba(0,0,0,.7); transition: box-shadow .15s; }
.field:focus-within { box-shadow: 0 0 0 3px var(--sky), 0 24px 48px -24px rgba(0,0,0,.7); }
.field input { flex: 1; min-width: 0; height: 58px; border: 0; outline: 0; background: none; color: var(--ink); font: 500 17px var(--sans); }
.field input::placeholder { color: #64748B; }
.field input::-webkit-search-cancel-button { display: none; }
.hits { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px -24px rgba(2,6,23,.75); }
.hits[hidden] { display: none; }
.hits .cap { padding: 8px 12px 4px; color: var(--muted); font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.hits button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; cursor: pointer; }
.hits button:hover, .hits button:focus-visible { background: var(--accent-wash); outline: none; }
.hits b { display: block; font: 600 15px/1.3 var(--sans); }
.hits small { color: var(--muted); font-size: 13px; }
.state { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--sans); white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.ready { color: var(--good); }
.state.wait { color: var(--warn); }
.hits .none { padding: 12px; color: var(--slate); font-size: 15px; }
.textlink { border: 0; background: none; padding: 0; cursor: pointer; color: #E2E8F0; font: 500 15px var(--sans); text-decoration: underline; text-underline-offset: 4px; }
.textlink:hover { color: var(--paper); }
.alt { margin: 14px 0 0; }
.describe { margin-top: 14px; max-width: 580px; }
.describe textarea { width: 100%; min-height: 110px; padding: 14px 16px; border: 0; border-radius: 14px; resize: vertical; font: 400 16px/1.5 var(--sans); color: var(--ink); }
.describe .row2 { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.describe small { color: #94A3B8; font-size: 13px; }
.figs { display: flex; gap: 32px; align-items: flex-end; flex-wrap: wrap; margin-top: 34px; }
.figs div b { display: block; font: 400 36px/1 var(--display); }
.figs div:first-child b { color: var(--sky); }
.figs div span { display: block; margin-top: 4px; color: #CBD5E1; font: 500 13px var(--sans); }
.figs a { color: #E2E8F0; font: 500 14px var(--sans); text-underline-offset: 4px; }

/* The product, shown before anyone has to ask for it. Flat and square to the page, so its text
   renders crisp on every screen. Frosted rather than solid: the moving bars glow through it, blurred
   enough that they never compete with the text, which keeps at least 4.5:1 against it. */
.preview { display: block; position: relative; z-index: 1; padding: 22px 24px 16px; border-radius: 20px; color: var(--ink); text-decoration: none;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.5); box-shadow: 0 30px 60px -28px rgba(0,0,0,.75); transition: box-shadow .3s var(--ease), translate .3s var(--ease); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .preview { background: var(--paper); } }
a.preview .pr, a.preview .all { border-top-color: rgba(15,23,42,.1); }
.preview:hover { translate: 0 -3px; box-shadow: 0 36px 70px -26px rgba(0,0,0,.8); }
.preview .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.preview .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: live 2.4s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.preview .big8 { margin: 8px 0 12px; font: 400 46px/1 var(--display); letter-spacing: -.03em; }
.preview .big8 span { color: var(--accent); }
.pr { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pr .n { font: 400 32px/.9 var(--display); color: var(--tint); }
/* .pt, not .t: .t is the score bars' track, and sharing it squashed each title into an 8px grey bar. */
.pr .pt { font: 500 15px/1.3 var(--sans); }
.pr .d { margin-top: 4px; color: var(--muted); font: 500 12.5px var(--sans); }
.pr .d .soon { color: var(--warn); }
.preview .all { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--accent-ink); font: 600 14px var(--sans); }

/* Board */
section { scroll-margin-top: 16px; }
.board { padding: 64px 0 56px; }
.bhead { max-width: 820px; }
.bhead .eyebrow { color: var(--accent); }
.bhead h2 { margin: 6px 0 0; font: 400 clamp(30px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: -.02em; }
.bhead h2 span { color: var(--accent); }
.bhead p { margin: 10px 0 0; color: var(--muted); }
.fline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--muted); font: 500 14px var(--sans); }
.fline b { color: var(--ink); font: 400 22px/1 var(--display); }
.fline b.hit { color: var(--accent); }
.controls { display: flex; align-items: center; gap: 14px; margin: 26px 0 10px; }
.controls > span { color: var(--muted); font: 500 13px var(--sans); }
.sort { display: flex; gap: 4px; padding: 4px; background: var(--shell); border: 1px solid var(--line); border-radius: 999px; }
.sort button { border: 0; background: none; padding: 9px 14px; border-radius: 999px; font: 500 13px var(--sans); color: var(--slate); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.sort button:hover { color: var(--ink); }
.sort button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.row { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) 272px; grid-template-areas: "rank main side" "rank judged judged"; grid-template-rows: auto auto;
  column-gap: 40px; padding: 34px 0 36px; border-top: 1px solid var(--line); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rank { grid-area: rank; font: 400 100px/.8 var(--display); letter-spacing: -.04em; color: var(--tint); transition: color .3s; }
.row:hover .rank { color: #7FB3D3; }
.meta { grid-area: meta; display: none; }
.main { grid-area: main; min-width: 0; }
.side { grid-area: side; display: flex; flex-direction: column; gap: 12px; }
.judged { grid-area: judged; }
.row h3 { margin: 0 0 6px; font: 500 clamp(24px, 2.4vw, 32px)/1.15 var(--display); letter-spacing: -.01em; }
.facts { color: var(--slate); font: 500 15px var(--sans); }
.why { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.why li { display: flex; gap: 10px; color: var(--slate); }
.why li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' stroke='%230369A1' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.watch { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-wash); color: var(--warn); font-size: 15px; }
.when { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: var(--shell); border: 1px solid var(--line); }
.when b { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.when span { color: var(--muted); font: 500 14px var(--sans); }
.when.soon { background: var(--warn-wash); border-color: #F1D3B5; }
.when.soon b, .when.soon span { color: var(--warn); }
.fit { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-ink); font: 500 13px var(--sans); white-space: nowrap; }
.fit.good { background: var(--shell); color: var(--slate); }
.side .fit { align-self: flex-start; }
.fit .b { display: inline-flex; align-items: flex-end; gap: 2px; height: 15px; }
.fit .b i { width: 4px; border-radius: 1px; background: var(--line); transform-origin: bottom; transition: transform .45s var(--ease); }
.fit .b i:nth-child(1) { height: 5px; } .fit .b i:nth-child(2) { height: 8px; } .fit .b i:nth-child(3) { height: 11px; } .fit .b i:nth-child(4) { height: 15px; }
.fit .b i.on { background: var(--accent); }
.pending .fit .b i { transform: scaleY(0); }
.chip { display: inline-flex; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--shell); color: var(--slate); font: 500 13px var(--sans); white-space: nowrap; }
.chip.soon { border-color: var(--warn); background: var(--warn-wash); color: var(--warn); }
.read { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: var(--paper); text-decoration: none; font: 600 15px var(--sans);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; }
.read:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(3,105,161,.6); }
.read .arrow { transition: transform .15s var(--ease); }
.read:hover .arrow { transform: translateX(3px); }
.nolink { color: var(--muted); font-size: 14px; }
/* How we judged it: a quiet toggle that opens smoothly into a panel the full width of the row. */
.judged { margin-top: 18px; }
.judge { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--accent-ink); font: 600 13.5px var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.judge:hover { background: var(--accent-wash); border-color: #CFE3F1; }
.judge .chev { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.judge[aria-expanded="true"] { background: var(--accent-wash); border-color: #CFE3F1; }
.judge[aria-expanded="true"] .chev { transform: rotate(180deg); }
.jpanel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.jpanel.open { grid-template-rows: 1fr; }
.jinner { overflow: hidden; min-height: 0; }
.jgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 12px; padding: 22px 24px; border-radius: 16px; background: var(--shell); border: 1px solid var(--line);
  opacity: 0; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.jpanel.open .jgrid { opacity: 1; transform: none; transition-delay: .08s; }
.jlead { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.scores { display: grid; gap: 12px; }
.score { display: grid; grid-template-columns: 190px minmax(0, 1fr) 64px; align-items: center; gap: 16px; font-size: 14px; color: var(--slate); }
.t { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.t i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transform-origin: left; transform: scaleX(var(--w)); transition: transform .7s var(--ease); }
.jpanel:not(.open) .score .t i { transform: scaleX(0); }
.score:nth-child(2) .t i { transition-delay: .05s; } .score:nth-child(3) .t i { transition-delay: .1s; } .score:nth-child(4) .t i { transition-delay: .15s; } .score:nth-child(5) .t i { transition-delay: .2s; }
.t i.mid { background: var(--slate); } .t i.low { background: var(--warn); }
.score b { font-weight: 500; text-align: right; color: var(--accent-ink); } .score b.mid { color: var(--slate); } .score b.low { color: var(--warn); }

/* Where the work is, against where the firm is based. Desktop only. */
.jmap { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0; padding-left: 28px; border-left: 1px solid var(--line); }
.jmap svg { width: 112px; height: auto; display: block; overflow: visible; }
.jmap .land { fill: #E2E8F0; stroke: #CBD5E1; stroke-width: .5; }
.jmap .link { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 2; opacity: .7; }
.jmap .here { fill: var(--accent); stroke: var(--paper); stroke-width: 1; }
.jmap .ping { fill: none; stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: center; opacity: 0; }
.jpanel.open .jmap .ping { animation: ping 2.4s ease-out .5s infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.jmap .you { fill: var(--ink); stroke: var(--paper); stroke-width: 1; }
.jmap figcaption { display: grid; gap: 8px; font-size: 13px; color: var(--slate); line-height: 1.35; }
.jmap figcaption span { display: flex; gap: 8px; align-items: baseline; }
.jmap figcaption i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: translateY(1px); }
.jmap figcaption i.k-you { border-radius: 1px; background: var(--ink); transform: translateY(1px) rotate(45deg); }
.jmap figcaption b { font: 400 22px/1.1 var(--display); color: var(--ink); }
.jmap.none { display: flex; align-items: center; color: var(--muted); font-size: 14px; }


/* Trade examples: the same board for a firm in a trade like yours */
.trades { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.trades > span { color: var(--muted); font: 500 13px var(--sans); margin-right: 4px; }
.trades button { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--slate); font: 500 14px var(--sans); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.trades button:hover { border-color: #CFE3F1; color: var(--ink); }
.trades button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.more { margin: 30px auto 0; display: flex; justify-content: center; }
.more button { min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--accent-ink); font: 600 15px var(--sans); cursor: pointer; }
.row.hidden { display: none; }
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; }

/* Loading: the shape of what's coming, never a stale number or an empty box */
.skel { padding: 34px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 40px; }
.skel i { display: block; height: 14px; margin-bottom: 12px; border-radius: 7px; background: linear-gradient(90deg, var(--line) 30%, var(--shell) 50%, var(--line) 70%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.skel .n { width: 56px; height: 70px; border-radius: 12px; }
.skel .h { height: 26px; width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.status { margin: 20px 0 0; color: var(--slate); font: 500 15px var(--sans); }
.card { margin-top: 26px; padding: 28px 30px; border-radius: 20px; background: var(--accent-wash); }
.card h3 { margin: 0; font: 400 28px/1.2 var(--display); }
.card p { margin: 8px 0 18px; color: var(--slate); max-width: 40em; }
.card .acts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.card .textlink { color: var(--accent-ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; font: 600 15px var(--sans);
  transition: transform .15s var(--ease); }
.btn:hover { transform: translateY(-1px); }

/* Markets: open for years, so listed apart from this week's tenders */
.markets { margin-top: 40px; padding: 26px 30px; border-radius: 20px; background: var(--shell); border: 1px solid var(--line); }
.markets .eyebrow { color: var(--accent); }
.markets h3 { margin: 6px 0 4px; font: 400 26px/1.2 var(--display); }
.markets > p { margin: 0; color: var(--muted); }
.markets ul { list-style: none; margin: 14px 0 0; padding: 0; }
.markets li { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.markets li b { display: block; font: 600 15px/1.35 var(--sans); }
.markets li small { color: var(--muted); font-size: 13px; }
.markets li a { color: var(--accent-ink); font: 600 14px var(--sans); text-underline-offset: 3px; white-space: nowrap; }

/* On its own record */
.record { margin-top: 44px; padding: 28px 30px 30px; border-radius: 20px; border: 1px solid var(--line); }
.record h3 { margin: 6px 0 4px; font: 400 28px/1.2 var(--display); }
.record > p { margin: 0; color: var(--muted); }
.record .eyebrow { color: var(--accent); }
.ladder { position: relative; height: 74px; margin: 22px 0 6px; }
.ladder .l { position: absolute; left: 0; right: 0; top: 34px; height: 6px; border-radius: 3px; background: var(--line); }
.ladder .z { position: absolute; left: 0; top: 34px; height: 6px; border-radius: 3px; background: rgba(3,105,161,.35); }
.ladder .zl { position: absolute; left: 0; top: 0; color: var(--accent-ink); font: 600 12px var(--sans); }
.ladder .tick { position: absolute; top: 50px; color: var(--faint); font-size: 12px; }
.ladder .m { position: absolute; top: 25px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; border: 3px solid var(--paper); background: var(--accent); box-shadow: 0 0 0 1px var(--line);
  color: var(--paper); font: 600 10px/18px var(--sans); text-align: center; left: var(--x); transition: left 1s var(--ease); }
.ladder .m.miss { background: var(--warn); }
.pending .ladder .m, .ladder.pending .m { left: 0; }
.eps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.eps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.eps b { font: 400 26px/1 var(--display); color: var(--accent); }
.eps b.miss { color: var(--warn); }
.eps span { color: var(--slate); }
.eps small { color: var(--muted); font-size: 13px; }

/* How it works */
.how { background: var(--shell); padding: 88px 0; }
.head h2 { margin: 6px 0 0; font: 400 clamp(32px, 4.4vw, 54px)/1.06 var(--display); letter-spacing: -.02em; max-width: 18em; }
.head .eyebrow { color: var(--accent); }
.head p { margin: 10px 0 0; color: var(--muted); max-width: 44em; }
/* Three stages joined by arrows, with an icon each instead of a number: the board above is the only
   numbered list on the page. A dot runs along each join while the section is in view. */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); margin-top: 36px; }
.stage { display: flex; flex-direction: column; padding: 26px 26px 28px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.stage .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.stage .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage h3 { margin: 16px 0 6px; font: 600 19px/1.3 var(--sans); }
.stage > p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.join { position: relative; align-self: center; height: 2px; margin: 0 6px; background: linear-gradient(90deg, var(--line), #B9D6EA); }
.join::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid #B9D6EA; border-right: 0; }
.join i { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: travel 2.8s ease-in-out infinite; }
.join:nth-of-type(4) i { animation-delay: 1.4s; }
.how.still .join i { animation-play-state: paused; }
@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateX(36px); opacity: 0; } }
@keyframes travel-down { 0% { transform: translateY(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.vis { margin-top: auto; padding: 16px 18px; border-radius: 14px; background: var(--shell); font-size: 14px; color: var(--slate); }
.vis ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vis li { line-height: 1.35; }
.vis li small { display: block; color: var(--muted); }
.mini { display: grid; grid-template-columns: 1fr 70px; gap: 6px 12px; align-items: center; }
.mini .t { height: 6px; }
.vis .ttl { font: 500 18px/1.2 var(--display); color: var(--ink); }

/* Evidence */
.method { color: var(--paper); background: linear-gradient(120deg, #013A5B, var(--accent-ink) 40%, var(--accent)); padding: 88px 0; }
.method .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.big { font: 400 clamp(140px, 20vw, 290px)/.8 var(--display); letter-spacing: -.06em; }
.big span { color: var(--sky); }
.method .eyebrow { color: #E0F2FE; }
.method h2 { margin: 10px 0 0; font: 400 clamp(28px, 3vw, 38px)/1.15 var(--display); }
.method p { font-size: 17px; color: #E0F2FE; margin: 12px 0 24px; }
.vs { display: grid; gap: 18px; }
.vs .r { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.vs .r span { font: 500 15px var(--sans); }
.vs .r b { font: 400 34px/1 var(--display); }
.vs .r .t { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: rgba(2,6,23,.3); }
.vs .r .t i { border-radius: 6px; background: var(--paper); transition-duration: 1.1s; }
.vs .r.dim .t i { background: rgba(255,255,255,.5); }
.vs.pending .r .t i { transform: scaleX(0); }
.method small { display: block; margin-top: 22px; color: #E0F2FE; font-size: 14px; }

/* Monday */
.monday { padding: 80px 0; }
.monday .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: 40px 44px; border-radius: 28px; background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.monday .inner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(rgba(56,189,248,.35), transparent 70%); pointer-events: none; }
.monday h2 { margin: 0; font: 400 clamp(28px, 3.2vw, 40px)/1.1 var(--display); }
.monday p { margin: 8px 0 0; color: #CBD5E1; max-width: 36em; }
.monday .pill { padding: 16px 24px; font-size: 15px; position: relative; z-index: 1; }

footer { background: var(--ink); color: #94A3B8; padding: 34px 0 40px; font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { color: #CBD5E1; }

@media (max-width: 1040px) {
  .nav a:not(.pill) { display: none; }
  .hero-body { grid-template-columns: 1fr; gap: 48px; }
  .preview { max-width: 480px; }
  .rise { opacity: .6; }
  .flow { grid-template-columns: 1fr; }
  .join { justify-self: center; width: 2px; height: 34px; margin: 6px 0; background: linear-gradient(var(--line), #B9D6EA); }
  .join::after { right: auto; top: auto; left: -4px; bottom: -2px; border: 5px solid transparent; border-top: 7px solid #B9D6EA; border-bottom: 0; }
  .join i { left: -3px; top: 0; animation-name: travel-down; }
  .method .inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  .row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "rank meta" "main main" "side side" "judged judged"; grid-template-rows: none; column-gap: 14px; padding: 22px 0 26px; }
  .rank { font-size: 52px; align-self: center; }
  .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .main { margin-top: 12px; }
  .side { margin-top: 16px; gap: 10px; }
  .side .when, .side .fit { display: none; }
  .row h3 { font-size: 24px; }
  .skel { grid-template-columns: 1fr; gap: 0; }
  .jgrid { grid-template-columns: 1fr; padding: 18px; }
  .jmap { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .top { padding: 14px 0; }
  .brand { font-size: 22px; }
  .pill { padding: 9px 13px; font-size: 13px; }
  .rise { top: 70px; gap: 8px; opacity: .4; }
  .rise i { width: 30px; }
  .hero-body { padding: 8px 0 40px; }
  .hero .long { display: none; }
  h1 { margin-top: 12px; }
  .giant { font-size: clamp(64px, 22vw, 96px); }
  .h1-rest { font-size: 25px; margin-top: 10px; }
  .lede { font-size: 15px; margin-top: 12px; }
  .find { margin-top: 20px; }
  .field input { height: 54px; font-size: 16px; }
  .figs { gap: 22px; margin-top: 26px; }
  .figs div b { font-size: 30px; }
  .figs a { flex-basis: 100%; }
  .preview { display: none; }
  .board { padding: 40px 0 40px; }
  .bhead h2 { font-size: 28px; }
  .controls { margin: 18px 0 0; }
  .controls > span { display: none; }
  .sort { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .sort::-webkit-scrollbar { display: none; }
  .sort button { padding: 10px 13px; }
  .score { grid-template-columns: 118px minmax(0, 1fr) 50px; gap: 10px; }
  .trades > span { flex-basis: 100%; }
  .card, .record { padding: 22px 20px; }
  .eps li { grid-template-columns: 52px minmax(0, 1fr); }
  .how, .method { padding: 60px 0; }
  .monday { padding: 48px 0; }
  .monday .inner { padding: 30px 24px; border-radius: 22px; }
  .monday .pill { width: 100%; justify-content: center; }
}
/* Footer links are small text, so their tap area is padded out at every width. */
footer a { display: inline-block; padding: 10px 0; margin: -10px 0; }
/* Text-styled buttons and links get a full-height tap area at every width, without looking any bigger. */
.textlink, .figs a, .markets li a { display: inline-block; padding: 12px 0; margin: -12px 0; text-align: left; }
/* Phones: every control at least 40px tall, most 44px (Apple's guideline), and no text under 12px. */
@media (max-width: 640px) {
  .sort button, .trades button, .judge, .hits button { min-height: 44px; }
  .pill { min-height: 40px; }
  .brand { padding: 8px 0; margin: -8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* The cookie question that consent.js draws: one small bar. Kept in step with winrate.css, which
   styles it on every other page. Accept sits nearest the thumb, and Reject is the same size,
   weight and colour on purpose: refusing must be as easy as agreeing. */
.consent { position: fixed; left: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 24px;
  max-width: calc(100vw - 48px); padding: 10px 10px 10px 18px; background: var(--ink); color: #CBD5E1; border-radius: 14px;
  box-shadow: 0 16px 40px -12px rgba(2,6,23,.45); font: 500 14px/1.35 var(--sans); animation: consent-in .35s var(--ease) both; }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent .consent-title { color: var(--paper); font-weight: 600; }
.consent .consent-more, .consent .consent-now { margin-top: 2px; font-size: 13px; }
.consent .consent-now { color: #94A3B8; }
.consent .consent-now[hidden] { display: none; }
.consent a { color: #7DD3FC; text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; flex: none; gap: 8px; }
.consent-actions button { min-width: 84px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--paper);
  color: var(--ink); font: 600 15px var(--sans); cursor: pointer; transition: background .15s, transform .15s; }
.consent-actions button:hover { background: #E0F2FE; }
.consent-actions button:active { transform: scale(.97); }
.consent-actions button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } }
/* While the question is open, the dock sits 12px above it, at whatever height the bar has wrapped
   to; board.js keeps --consent-h current. */
body:has(#consent:not([hidden])) .dock { bottom: calc(var(--consent-h, 64px) + 36px); }
@media (max-width: 999px) {
  .consent { left: 0; right: 0; bottom: 0; max-width: none; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; }
  .consent-text { flex: 1; min-width: 0; }
  .consent-actions button { min-width: 0; padding: 0 11px; }
}
@media (max-width: 640px) {
  body:has(#consent:not([hidden])) .dock { bottom: calc(var(--consent-h, 64px) + 12px); }
}
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
