/* pickthepitch.com: the sourcing desk.
   Paper, ultramarine signature ink, a highlighter mark, ink stamps. Archivo (variable width) for display,
   IBM Plex Sans for reading, IBM Plex Mono for documents and data. Light and dark, motion that respects
   prefers-reduced-motion, phone first. */

:root {
  --paper: #eef1f0; --sheet: #ffffff; --sheet-2: #f6f8f8; --ink: #0e1b2c; --ink-2: #445063; --ink-3: #788395;
  --rule: #d4dadf; --rule-2: #e5e9ec; --blue: #2433d6; --blue-ink: #1a26a8; --blue-wash: #e6e8fc; --on-blue: #ffffff;
  --mark: #f3e24d; --mark-ink: #0e1b2c; --leaf: #2c8551; --leaf-wash: #e0f1e7; --stamp: #c4301d; --stamp-wash: #fbe6e1;
  --warn: #9a6400; --warn-wash: #fbf0d9;
  --shadow: 0 1px 0 rgba(14, 27, 44, .05), 0 18px 40px -22px rgba(14, 27, 44, .28);
  --shadow-lift: 0 1px 0 rgba(14, 27, 44, .05), 0 30px 60px -28px rgba(14, 27, 44, .38);
  --r: 14px; --r-sm: 9px; --wrap: 1220px; --gut: clamp(16px, 4vw, 40px);
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.2, 1.3, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1120; --sheet: #111a2b; --sheet-2: #0d1525; --ink: #e8edf4; --ink-2: #a6b1c2; --ink-3: #6d7a8e;
    --rule: #24324b; --rule-2: #1a2539; --blue: #8b96ff; --blue-ink: #b9c0ff; --blue-wash: #1a2252; --on-blue: #0a1120;
    --mark: #e2cf3a; --mark-ink: #0a1120; --leaf: #5cc487; --leaf-wash: #10301e; --stamp: #ff7461; --stamp-wash: #3a1611;
    --warn: #f0b64a; --warn-wash: #33260c;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .7);
    --shadow-lift: 0 1px 0 rgba(0, 0, 0, .3), 0 30px 60px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a1120; --sheet: #111a2b; --sheet-2: #0d1525; --ink: #e8edf4; --ink-2: #a6b1c2; --ink-3: #6d7a8e;
  --rule: #24324b; --rule-2: #1a2539; --blue: #8b96ff; --blue-ink: #b9c0ff; --blue-wash: #1a2252; --on-blue: #0a1120;
  --mark: #e2cf3a; --mark-ink: #0a1120; --leaf: #5cc487; --leaf-wash: #10301e; --stamp: #ff7461; --stamp-wash: #3a1611;
  --warn: #f0b64a; --warn-wash: #33260c;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .7);
  --shadow-lift: 0 1px 0 rgba(0, 0, 0, .3), 0 30px 60px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
/* the paper: a whisper of grain, so the ground reads as material, not as a flat fill */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(14, 27, 44, .035) 1px, transparent 1px); background-size: 3px 3px;
}
main, header, footer { position: relative; z-index: 1; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mark); color: var(--mark-ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sheet); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type scale ---- */
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 7.2vw, 92px); line-height: .96; font-weight: 800; font-variation-settings: "wdth" 100; }
h2 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.02; font-weight: 800; font-variation-settings: "wdth" 92; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; font-weight: 700; font-variation-settings: "wdth" 96; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); }
.eyebrow { font: 600 12.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); color: inherit; padding: 0 .06em; }

/* ---- buttons, chips, inputs ---- */
.btn {
  --bg: var(--blue); --fg: var(--on-blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 12px; border: 0; background: var(--bg); color: var(--fg); font: 600 16px/1 var(--f-body);
  text-decoration: none; cursor: pointer; transition: transform .25s var(--spring), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 10px 24px -12px color-mix(in srgb, var(--blue) 70%, transparent);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 16px 30px -14px color-mix(in srgb, var(--blue) 80%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { transition: transform .3s var(--spring); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--sheet-2);
  border: 1px solid var(--rule-2); font: 500 13px/1.3 var(--f-body); color: var(--ink-2); white-space: nowrap;
}
.chip.must { background: var(--blue-wash); border-color: transparent; color: var(--blue-ink); }
.chip.ok { background: var(--leaf-wash); border-color: transparent; color: var(--leaf); }
.chip.warn { background: var(--warn-wash); border-color: transparent; color: var(--warn); }
.chip.red { background: var(--stamp-wash); border-color: transparent; color: var(--stamp); }
label { font: 600 14px/1.3 var(--f-body); color: var(--ink); display: block; }
.help { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; min-height: 50px; margin-top: 7px; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--rule);
  background: var(--sheet); color: var(--ink); font: 400 16px/1.4 var(--f-body); transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--rule-2); background: var(--sheet); transition: border-color .2s, background .2s; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.check:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--rule-2); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 500 20px/1 var(--f-display); font-variation-settings: "wdth" 100; letter-spacing: -.02em; }
.logo b { font-weight: 800; color: var(--blue); }
.logo svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 11px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font: 500 15px/1 var(--f-body); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sheet); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--rule-2); }
.langs a { font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 7px 8px; border-radius: 7px; text-decoration: none; }
.langs a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.top .btn { min-height: 42px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); cursor: pointer; }
@media (max-width: 1120px) {
  .nav, .top .langs, .top .btn.cta { display: none; }
  .burger { display: grid; place-items: center; }
  .top.open .nav { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px var(--gut) 18px; background: var(--paper); border-bottom: 1px solid var(--rule-2); box-shadow: var(--shadow); }
  .top.open .nav a { padding: 14px 12px; font-size: 17px; }
  .top.open .nav .langs { display: flex; align-self: flex-start; margin-top: 10px; }
}

/* ---- sections ---- */
section { padding: clamp(64px, 10vw, 128px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 820px; }
.sec-head p { margin: 0; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---- hero ---- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 22px 0 clamp(26px, 4vw, 44px); font-size: clamp(44px, 8.4vw, 124px); letter-spacing: -.03em; line-height: .92; }
.hero-top { margin-bottom: 4px; }
.hero h1 .line { display: block; }
.hero h1 .w { display: inline-block; font-variation-settings: "wdth" 62; opacity: 0; transform: translateY(.18em); animation: stretch 1.1s var(--ease) forwards; animation-delay: calc(var(--d) * 90ms + 120ms); }
@keyframes stretch { to { font-variation-settings: "wdth" 100; opacity: 1; transform: none; } }
.hero h1 .line.pick .w { color: var(--blue); }
.hero h1 .line.pick { position: relative; width: max-content; max-width: 100%; }
.hero h1 .line.pick::after { content: ""; position: absolute; left: -.04em; right: -.06em; bottom: .04em; height: .26em; background: var(--mark); z-index: -1; transform-origin: left; transform: scaleX(0); animation: sweep .9s var(--ease) 1.25s forwards; border-radius: 2px; }
@keyframes sweep { to { transform: scaleX(1); } }
.hero .lead { max-width: 52ch; margin-top: 4px; }

.composer { margin-top: 30px; background: var(--sheet); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lift); border: 1px solid var(--rule-2); position: relative; }
.composer label { font: 600 12.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.composer textarea { min-height: 96px; font: 500 clamp(18px, 1.8vw, 21px)/1.45 var(--f-body); border: 0; padding: 12px 2px; margin: 4px 0 6px; background: transparent; resize: none; box-shadow: none; }
.composer textarea:focus { box-shadow: none; }
.composer .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px dashed var(--rule); padding-top: 14px; }
.composer .note { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; max-width: 34ch; }
.composer .note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-wash); flex: none; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--blue); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.found { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin: 4px 0 12px; }
.found .chip { animation: pop .45s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.9); } }

/* the desk: the brief sheet + the pitches + the pick */
.desk { position: relative; min-height: 600px; padding-top: 8px; }
@media (max-width: 1040px) { .desk { min-height: 0; } }
.sheet {
  position: relative; background: var(--sheet); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 24px 22px;
  border: 1px solid var(--rule-2);
}
/* perforated tear-off top edge */
.sheet.perf { padding-top: 34px; }
.sheet.perf::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 12px; height: 8px;
  background: radial-gradient(circle at 4px 4px, var(--paper) 2.6px, transparent 3px) 0 0 / 12px 8px repeat-x;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet-head .t { font: 700 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.tag { font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--warn-wash); color: var(--warn); }
.spec { display: grid; grid-template-columns: 112px 1fr; border-top: 1px solid var(--rule-2); }
.spec > div { padding: 10px 0; border-bottom: 1px solid var(--rule-2); font-size: 15px; line-height: 1.35; }
.spec .k { font: 500 12px/1.35 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding-right: 10px; padding-top: 12px; }
.spec .v { color: var(--ink); min-height: 40px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.spec .v.empty { color: var(--ink-3); font-style: italic; }
.spec .v.flash { animation: flash 1.1s var(--ease); }
@keyframes flash { 0% { background: var(--mark); } 100% { background: transparent; } }
.sheet .title-line { font: 700 20px/1.25 var(--f-display); font-variation-settings: "wdth" 92; margin: 2px 0 14px; min-height: 1.25em; }

.pitches { display: grid; gap: 12px; margin-top: 18px; }
.pitches .label { font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.pitches .label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 50%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.pcard {
  position: relative; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; opacity: 0; transform: translateX(40px) rotate(1.5deg);
}
.pcard.in { animation: slidein .7s var(--spring) forwards; }
@keyframes slidein { to { opacity: 1; transform: none; } }
.pcard .who { font: 700 15.5px/1.2 var(--f-body); }
.pcard .price { font: 600 15px/1 var(--f-mono); text-align: right; }
.pcard .ticks { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.pcard .tick { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.pcard .tick svg { width: 15px; height: 15px; }
.pcard .tick path { stroke-dasharray: 20; stroke-dashoffset: 20; }
.pcard.in .tick path { animation: draw .5s var(--ease) forwards; animation-delay: calc(.5s + var(--t) * 140ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pcard.winner { border-color: var(--stamp); box-shadow: 0 0 0 3px var(--stamp-wash), var(--shadow-lift); }
.pcard.dim { opacity: .45 !important; filter: saturate(.4); transition: opacity .6s, filter .6s; }

/* ink stamps: rough edges via an SVG turbulence filter (defined once in the page) */
.stamp {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 2px solid currentColor; border-radius: 6px;
  font: 700 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; filter: url(#ink);
}
.stamp.signed { color: var(--leaf); }
.stamp.vouched { color: var(--blue); }
.stamp.none { color: var(--ink-3); border-style: dashed; filter: none; }
.stamp.picked { color: var(--stamp); font-size: 20px; padding: 8px 14px; border-width: 3px; letter-spacing: .14em; }
.stamp.land { animation: land .55s var(--spring) both; }
@keyframes land { 0% { opacity: 0; transform: scale(2.2) rotate(-14deg); filter: blur(4px) url(#ink); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(-7deg); } }
.pcard .stamp.picked { position: absolute; right: 14px; bottom: 12px; background: var(--sheet); }
.intro-line { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--leaf-wash); color: var(--leaf); font-size: 14.5px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.intro-line.in { opacity: 1; transform: none; }
.desk .foot-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

/* ---- live strip ---- */
.live { padding: 0 0 clamp(24px, 4vw, 40px); }
.live-box { background: var(--ink); color: var(--paper); border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1.1fr 2fr; gap: clamp(20px, 4vw, 48px); align-items: center; overflow: hidden; position: relative; }
.live-box::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--blue) 55%, transparent), transparent 70%); pointer-events: none; }
@media (max-width: 860px) { .live-box { grid-template-columns: 1fr; } }
.live-box h2 { color: var(--paper); font-size: clamp(26px, 3vw, 38px); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 560px) { .counters { grid-template-columns: 1fr; } }
.counter { background: color-mix(in srgb, var(--paper) 8%, transparent); border-radius: 14px; padding: 16px 18px; }
.counter b { display: block; font: 800 clamp(34px, 4vw, 48px)/1 var(--f-display); font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; }
.counter span { font-size: 14px; opacity: .75; }
.live-first { grid-column: 1 / -1; font-size: 15.5px; opacity: .85; margin: 0; max-width: 80ch; }
.live-box a.see { color: var(--paper); font-weight: 600; }
.ticker { grid-column: 1 / -1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker .track { display: flex; gap: 12px; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker a { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--paper) 10%, transparent); color: var(--paper); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.ticker a:hover { background: color-mix(in srgb, var(--paper) 18%, transparent); }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--sheet); border-radius: var(--r); padding: 26px; border: 1px solid var(--rule-2); position: relative; overflow: hidden; }
.step::before { counter-increment: step; content: counter(step); font: 800 72px/1 var(--f-display); font-variation-settings: "wdth" 62; color: var(--blue); opacity: .14; position: absolute; right: 16px; top: 8px; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-2); }
.step .ill { height: 120px; margin: -6px -6px 16px; border-radius: 10px; background: var(--sheet-2); display: grid; place-items: center; overflow: hidden; }

/* ---- agents ---- */
.agents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) { .agents-grid { grid-template-columns: 1fr; } }
.flow { position: relative; background: var(--sheet); border-radius: 20px; border: 1px solid var(--rule-2); padding: 20px; box-shadow: var(--shadow); }
.flow svg { width: 100%; height: auto; display: block; }
.flow .node rect { fill: var(--sheet-2); stroke: var(--rule); }
.flow .node.mid rect { fill: var(--blue); stroke: none; }
.flow .node text { font: 600 15px var(--f-body); fill: var(--ink); }
.flow .node.mid text { fill: var(--on-blue); }
.flow .node .sub { font: 500 11.5px var(--f-mono); fill: var(--ink-3); }
.flow .node.mid .sub { fill: color-mix(in srgb, var(--on-blue) 75%, transparent); }
.flow .wire { fill: none; stroke: var(--rule); stroke-width: 2; }
.flow .wire.live { stroke: var(--blue); stroke-width: 2.2; stroke-dasharray: 6 10; animation: flowdash 1.4s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -32; } }
.flow .packet rect { fill: var(--mark); }
.flow .packet text { font: 700 10.5px var(--f-mono); fill: var(--mark-ink); letter-spacing: .06em; }
.connect { display: grid; gap: 10px; margin-top: 22px; }
.conn { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 12px; }
@media (max-width: 560px) { .conn { grid-template-columns: 1fr auto; } .conn .how { grid-column: 1 / -1; order: 3; } }
.conn b { font: 700 15px/1.2 var(--f-body); }
.conn code { font: 500 13.5px/1.4 var(--f-mono); color: var(--ink); word-break: break-all; }
.conn .how { font-size: 13.5px; color: var(--ink-3); }
.copy { min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--rule); background: var(--sheet-2); color: var(--ink); font: 600 13px/1 var(--f-body); cursor: pointer; transition: background .2s, transform .2s var(--spring); }
.copy:hover { background: var(--blue-wash); }
.copy.done { background: var(--leaf-wash); color: var(--leaf); border-color: transparent; transform: scale(1.04); }
pre.code { margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--ink); color: var(--paper); font: 500 13.5px/1.6 var(--f-mono); overflow-x: auto; }
pre.code .c { opacity: .55; }

/* ---- trust ladder ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--sheet); border-radius: var(--r); padding: 24px; border: 1px solid var(--rule-2); display: grid; gap: 14px; align-content: start; position: relative; transition: transform .4s var(--spring), box-shadow .4s; }
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tier .meter { height: 6px; border-radius: 6px; background: var(--rule-2); overflow: hidden; }
.tier .meter i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 6px; transition: width 1.2s var(--ease) .2s; }
.tier.in .meter i { width: var(--w); }
.tier p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.honest { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--warn-wash); color: var(--ink); font-size: 15px; max-width: 900px; }
.honest svg { flex: none; width: 22px; height: 22px; color: var(--warn); margin-top: 1px; }

/* ---- supplier ladder ---- */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; margin-top: 10px; align-items: end; }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr; gap: 14px; } }
.rung { position: relative; }
.rung .box { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 22px; min-height: 178px; transition: transform .4s var(--spring), border-color .3s; position: relative; z-index: 1; }
.rung:nth-of-type(1) .box { min-height: 178px; } .rung:nth-of-type(2) .box { min-height: 222px; } .rung:nth-of-type(3) .box { min-height: 266px; } .rung:nth-of-type(4) .box { min-height: 310px; }
@media (max-width: 900px) { .rung:nth-of-type(n) .box { min-height: 0; } }
.rung .box:hover { transform: translateY(-4px); border-color: var(--blue); }
.rung h3 { margin: 10px 0 8px; }
.rung p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.rung .lvl { font: 700 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--blue); }
.rung.top .box { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rung.top h3 { color: var(--paper); } .rung.top p { color: color-mix(in srgb, var(--paper) 78%, transparent); } .rung.top .lvl { color: var(--mark); }
.ladder svg.climb { position: absolute; left: 0; top: -22px; width: 100%; height: 150px; pointer-events: none; overflow: visible; z-index: 0; }
@media (max-width: 900px) { .ladder svg.climb { display: none; } }
.ladder svg.climb path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 6 8; opacity: .55; }
.ladder svg.climb path.draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; opacity: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.ladder.in svg.climb path.draw { stroke-dashoffset: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---- categories ---- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cat { position: relative; display: grid; gap: 6px; padding: 20px; min-height: 132px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--rule-2); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .35s var(--spring), border-color .3s, box-shadow .35s; }
.cat:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.cat b { font: 700 18px/1.2 var(--f-display); font-variation-settings: "wdth" 92; }
.cat .n { font: 500 13px/1 var(--f-mono); color: var(--ink-3); align-self: end; }
.cat .n.has { color: var(--leaf); }
.cat.lead { grid-column: span 2; background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
@media (max-width: 520px) { .cat.lead { grid-column: auto; } }
.cat.lead b { font-size: 26px; color: var(--on-blue); } .cat.lead .n { color: color-mix(in srgb, var(--on-blue) 75%, transparent); }
.cat.lead .leaf { position: absolute; right: -10px; bottom: -20px; width: 140px; opacity: .25; transform: rotate(-18deg); transition: transform 1.2s var(--ease); }
.cat.lead:hover .leaf { transform: rotate(-4deg) scale(1.05); }
.cat .prods { display: flex; gap: 2px 12px; flex-wrap: wrap; margin-top: 4px; }
.cat .prods span { font-size: 12.5px; opacity: .8; }

/* ---- document flip ---- */
.docflip { perspective: 1600px; max-width: 760px; }
.docflip .inner { position: relative; transition: transform 1s var(--ease); transform-style: preserve-3d; min-height: 540px; }
.docflip.flipped .inner { transform: rotateY(180deg); }
.docflip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lift); }
.docflip .face.back { transform: rotateY(180deg); }
.docflip .raw { background: var(--ink); color: var(--paper); padding: 22px 22px; font: 500 12.4px/1.6 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; overflow-y: auto; overflow-x: hidden; height: 100%; }
.docflip .raw .h { color: #9fb0ff; } .docflip .raw .sig { color: #8fe0b0; } .docflip .raw .cm { opacity: .5; }
.docflip .rend { background: var(--sheet); padding: 26px; height: 100%; overflow: auto; border: 1px solid var(--rule-2); }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) { .doc-grid { grid-template-columns: 1fr; } .docflip .inner { min-height: 600px; } }
.flipbar { display: flex; gap: 8px; margin-top: 16px; }
.flipbar button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink-2); font: 600 14px/1 var(--f-body); cursor: pointer; }
.flipbar button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- faq ---- */
.faq { max-width: 880px; display: grid; gap: 10px; }
.faq details { background: var(--sheet); border-radius: 12px; border: 1px solid var(--rule-2); padding: 0 20px; transition: border-color .3s; }
.faq details[open] { border-color: var(--blue); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; font: 600 17px/1.35 var(--f-body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

/* ---- ecosystem ---- */
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .eco { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .eco { grid-template-columns: 1fr; } }
.eco a { display: grid; gap: 6px; padding: 20px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--rule-2); color: var(--ink); text-decoration: none; transition: transform .35s var(--spring), border-color .3s; }
.eco a:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--ink); }
.eco b { font: 700 17px/1.2 var(--f-display); font-variation-settings: "wdth" 96; display: flex; justify-content: space-between; gap: 10px; }
.eco b::after { content: "↗"; color: var(--blue); font-family: var(--f-body); }
.eco span { font-size: 14.5px; color: var(--ink-2); }

/* ---- footer ---- */
footer.site { padding: 56px 0 30px; border-top: 1px solid var(--rule-2); background: var(--sheet-2); }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }
.fgrid p { font-size: 14.5px; color: var(--ink-2); margin-top: 14px; }
.fgrid h4 { font: 700 13px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 14px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fgrid a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.fgrid a:hover { color: var(--blue); }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule-2); font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.legal a { color: var(--ink-3); }
.agentline { margin-top: 10px; font: 500 12.5px/1.6 var(--f-mono); color: var(--ink-3); }
.agentline a { color: var(--ink-3); }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; display: flex; gap: 14px; align-items: center; padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: var(--shadow-lift); }
.cookie a { color: var(--paper); }
.cookie button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--paper); color: var(--ink); font: 700 14px/1 var(--f-body); cursor: pointer; }

/* ---- generic pages ---- */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 68px); margin: 16px 0 18px; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.two > * { min-width: 0; }
@media (max-width: 960px) { .two { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; } }
.card { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 16px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.fields { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.fields.cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fields.cols3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr); }
@media (max-width: 640px) { .fields.cols, .fields.cols3 { grid-template-columns: minmax(0, 1fr); } }
.fields > * { min-width: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: 700 13px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; padding: 0; }
.sticky { position: sticky; top: 88px; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: 15px; margin-top: 14px; }
.alert.err { background: var(--stamp-wash); color: var(--stamp); }
.alert.ok { background: var(--leaf-wash); color: var(--leaf); }
.done { text-align: left; }
.done .big { font: 800 clamp(28px, 3vw, 40px)/1.05 var(--f-display); font-variation-settings: "wdth" 88; margin: 8px 0 12px; }
.envelope { width: 120px; height: 90px; margin-bottom: 10px; }
.envelope .flap { transform-origin: 60px 10px; animation: flap 1s var(--ease) .2s both; }
@keyframes flap { from { transform: rotateX(0); } to { transform: rotateX(180deg); } }
.envelope .letter { animation: rise 1s var(--ease) .7s both; }
@keyframes rise { from { transform: translateY(26px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* request list (board, buy pages, request page "similar") */
.reqs { display: grid; gap: 12px; }
.req { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--rule-2); text-decoration: none; color: var(--ink); transition: transform .3s var(--spring), border-color .3s, box-shadow .3s; }
.req:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.req .t { font: 700 17.5px/1.3 var(--f-body); }
.req .meta { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.req .side { text-align: right; font: 500 13px/1.35 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.req .side b { display: block; font: 800 22px/1 var(--f-display); color: var(--ink); font-variation-settings: "wdth" 80; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filters .chip { cursor: pointer; font-size: 14px; padding: 8px 13px; }
.filters .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters input[type="search"] { max-width: 280px; margin: 0; min-height: 42px; }
.filters select { max-width: 200px; margin: 0; min-height: 42px; }
.empty-state { padding: 34px 26px; border-radius: 16px; border: 2px dashed var(--rule); text-align: left; color: var(--ink-2); background: color-mix(in srgb, var(--sheet) 60%, transparent); }
.empty-state p { margin: 0 0 14px; }
.skeleton { height: 86px; border-radius: 14px; background: linear-gradient(90deg, var(--sheet) 0%, var(--sheet-2) 50%, var(--sheet) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* request page */
.rq-head { display: grid; gap: 14px; }
.status { display: inline-flex; gap: 8px; align-items: center; font: 600 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 11px; border-radius: 8px; width: max-content; }
.status.open { background: var(--leaf-wash); color: var(--leaf); }
.status.open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
.status.picked { background: var(--stamp-wash); color: var(--stamp); }
.status.closed, .status.expired { background: var(--sheet-2); color: var(--ink-3); }
.answer-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--rule-2); background: var(--sheet-2); }
.seg { display: inline-flex; border-radius: 10px; border: 1.5px solid var(--rule); overflow: hidden; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 9px 14px; font: 600 14px/1 var(--f-body); color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -3px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.kv > div { padding: 11px 0; border-bottom: 1px solid var(--rule-2); font-size: 15.5px; }
.kv .k { color: var(--ink-3); font: 500 12.5px/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; padding-right: 12px; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv .k { border-bottom: 0; padding-bottom: 0; } }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* manage page */
.mp { display: grid; gap: 14px; }
.mp-card { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 16px; padding: 20px; display: grid; gap: 12px; transition: border-color .3s, box-shadow .3s; }
.mp-card.shortlisted { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.mp-card.picked { border-color: var(--stamp); box-shadow: 0 0 0 3px var(--stamp-wash); }
.mp-card.declined { opacity: .55; }
.mp-card .top-row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.mp-card .co { font: 800 21px/1.15 var(--f-display); font-variation-settings: "wdth" 90; }
.mp-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ans { display: grid; gap: 6px; }
.ans div { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; }
.ans .y { color: var(--leaf); font-weight: 700; } .ans .n { color: var(--stamp); font-weight: 700; } .ans .p { color: var(--warn); font-weight: 700; } .ans .u { color: var(--ink-3); font-weight: 700; }

/* buy pages */
.buy-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
@media (max-width: 960px) { .buy-hero { grid-template-columns: 1fr; } }
.states { display: grid; gap: 0; }
.states li { list-style: none; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--rule-2); position: relative; }
.states li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--blue); background: linear-gradient(var(--blue), var(--blue)) center / 6px 6px no-repeat; }
.states { padding: 0; margin: 0; }
.related { display: flex; gap: 8px; flex-wrap: wrap; }
.related a { text-decoration: none; }

/* desk */
.desk-body { background: var(--paper); }

html.still *, html.still *::before, html.still *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
html.still [data-reveal] { opacity: 1; transform: none; }
html.still { scroll-behavior: auto; }
html.still .ticker .track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .w { opacity: 1; transform: none; font-variation-settings: "wdth" 100; }
  .hero h1 .line.pick::after { transform: scaleX(1); }
  .ticker .track { animation: none; }
  .pcard { opacity: 1; transform: none; }
}
