/* Pixel routing atlas. Sharp frames organize real sections; the hero is explanatory
   geometry drawn by motion.js from the --ink / --signal / --line tokens in style.css.
   Evolved 9 Sep: larger display scale, tighter hero frame, footer policy links. */
.masthead, main, footer { width: min(1280px, calc(100% - 96px)); }
nav { gap: 24px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.landing-hero { grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 54px 0 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(46px, 6.2vw, 86px); line-height: .98; letter-spacing: -.038em; font-weight: 300; text-wrap: initial; }
.hero-copy > p { max-width: 42ch; margin: 26px 0 32px; font-size: 18px; line-height: 1.55; color: var(--quiet); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .button { padding: 14px 22px; }
.hero-actions .button:first-child { background: var(--ink); color: var(--paper); }
.routing-frame { margin: 0; min-width: 0; }
#feed-art { width: 100%; height: auto; aspect-ratio: 600 / 366; display: block; object-fit: cover; }
.routing-frame figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); gap: 8px; padding-top: 10px; font-size: 12px; color: var(--quiet); }
.routing-frame button { font-size: 12px; min-height: 44px; white-space: nowrap; }
.activity-frame { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border: 1px solid var(--line); position: relative; }
.activity-intro, .activity-measure, .inventory-measure { padding: 34px 36px 32px; }
.activity-intro { background: var(--ground); }
.activity-intro h2 { font-size: 23px; line-height: 1.25; }
.activity-intro p { font-size: 14px; color: var(--quiet); margin: 10px 0 20px; }
#collection-state { display: block; font-size: 12px; color: var(--quiet); }
.coverage-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.coverage-controls button { min-height: 44px; font-size: 12px; padding-inline: 0; }
#coverage-refresh-status { font-size: 12px; color: var(--quiet); }
.activity-measure { border-inline: 1px solid var(--line); }
/* The label carries a live dot, so the colour has a partner at small size. */
.activity-measure > span:first-of-type, .inventory-measure > span:first-of-type { display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--quiet); }
.activity-measure > span:first-of-type::before, .inventory-measure > span:first-of-type::before { content: ''; width: 5px;
  height: 5px; border-radius: 50%; background: var(--live-ink); flex: none; }
/* Gold at weight 300 in a 60px figure reads as thin brown strokes, which is
   what made this panel look muddy. Weight 400 and tighter tracking let the
   colour read as a deliberate signal at the same contrast. */
.activity-measure strong, .inventory-measure strong { display: block; font-family: var(--display);
  font-size: clamp(42px, 5vw, 68px); font-weight: 400; letter-spacing: -.042em;
  font-variant-numeric: tabular-nums; line-height: 1; margin: 18px 0 22px; }
/* The four windows are nested spans of the same feed, so they read as one
   ruled scale rather than four containers. No boxes: a shared hairline across
   the top, and the selected column takes a heavier rule and ink figures. */
.window-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; margin-top: 4px; border-top: 1px solid var(--line); }
.window-picker button { position: relative; display: flex; flex-direction: column;
  align-items: flex-start; gap: 3px; min-height: 0; padding: 12px 12px 2px 0;
  background: none; border: 0; border-radius: 0; text-align: left; cursor: pointer;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.2; color: var(--quiet); transition: color .18s var(--ease-out); }
.window-picker button::before { content: ''; position: absolute; top: -1px; left: 0; right: 1px;
  height: 1px; background: transparent; transition: background .18s var(--ease-out),
  height .18s var(--ease-out); }
.window-picker button:hover { color: var(--ink); }
.window-picker button:hover::before { background: var(--line); }
.window-picker button[aria-pressed="true"] { color: var(--ink); }
.window-picker button[aria-pressed="true"]::before { height: 2px; background: var(--ink); }
.window-picker button:hover:not(:disabled) { box-shadow: none; }
.window-picker b { font-family: var(--display); font-size: 20px; font-weight: 400;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05;
  color: var(--live-ink); }
.window-picker button[aria-pressed="true"] b { color: var(--ink); }
.activity-note { grid-column: 1 / -1; max-width: none; border-top: 1px solid var(--line); margin: 0; padding: 14px 36px; font-size: 11.5px; color: var(--quiet); min-height: 44px; }
/* One tile is 100 boards. The number 8,519 means nothing until it has a shape. */
.sources { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 88px 0 24px; }
.sources h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.0; letter-spacing: -.035em; font-weight: 300; }
.sources-copy > p { max-width: 38ch; margin: 18px 0 0; font-size: 16px; color: var(--quiet); }
.source-legend { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.source-legend li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--quiet); }
.source-legend i { width: 12px; height: 12px; flex: none; }
.legend-all i { background: var(--ink); }
.legend-read i { background: var(--signal); }
.legend-held i { background: var(--quiet); }
.source-legend b { font-family: var(--display); font-size: 19px; font-weight: 400; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 4.5ch; }
#pass-note { margin-top: 20px; max-width: 46ch; font-size: 13px; }
.sources-frame { margin: 0; min-width: 0; }
#source-art { width: 100%; height: auto; aspect-ratio: 600 / 372; display: block; object-fit: cover; }
.benefits { padding: 72px 0 80px; }
.benefits > h2 { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.0; letter-spacing: -.035em; font-weight: 300; margin-bottom: 44px; }
.benefit-grid { display: grid; grid-template-columns: 1.15fr 1fr; }
.benefit-tile { min-width: 0; padding: 28px 36px 32px; border: 1px solid var(--line); }
.benefit-tile:nth-child(even) { border-left: 0; }
.benefit-tile:nth-child(n+3) { border-top: 0; }
.benefit-tile h3 { font-family: var(--display); font-size: 25px; font-weight: 300; letter-spacing: -.032em; max-width: 25ch; line-height: 1.25; }
.benefit-tile p { font-size: 15px; color: var(--quiet); max-width: 43ch; margin: 14px 0 22px; }
.benefit-tile > a { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.connection-tile { background: var(--ground); }
.ownership-tile { background: var(--paper); color: var(--signal-ink); }
.ownership-tile p, .ownership-tile a { color: var(--signal-ink); }
.tile-graphic { height: 118px; margin-bottom: 24px; display: flex; align-items: center; position: relative; overflow: hidden; }
.source-pixels, .target-pixels { display: block; width: 12px; height: 12px; background: var(--ink); box-shadow: 20px 0 var(--ink), 0 20px var(--ink), 20px 20px var(--ink), 40px 20px var(--ink), 20px 40px var(--ink), 40px 40px var(--ink); margin: 0 56px 40px 12px; }
.connector-line { height: 1px; flex: 1; background: var(--quiet); position: relative; margin-right: 22px; }
.connector-line::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--accent); right: 0; top: -3px; }
.target-pixels { margin: 0 54px 40px 0; box-shadow: 16px 0 var(--ink), 32px 0 var(--ink), 0 16px var(--ink), 16px 16px var(--ink), 32px 16px var(--ink), 0 32px var(--ink), 16px 32px var(--ink), 32px 32px var(--ink); }
.filter-graphic { gap: 12px; align-items: flex-end; padding: 12px 0; }
.filter-graphic span { height: 76px; width: 38px; border: 1px solid var(--line); background: var(--ground); position: relative; }
.filter-graphic span::after { content: ""; position: absolute; inset: 12px 8px auto; height: 4px; background: var(--line); box-shadow: 0 9px var(--line), 0 18px var(--line); }
.filter-graphic span:nth-child(2) { height: 94px; }
.filter-graphic span:nth-child(3) { height: 68px; background: var(--signal); border-color: var(--quiet); }
.filter-graphic span:nth-child(4) { height: 84px; }
.repeat-graphic { font-family: ui-monospace, monospace; font-size: 17px; gap: 24px; }
.repeat-graphic > span:not(.repeat-line) { border: 1px solid var(--line); padding: 15px 12px; white-space: nowrap; }
.repeat-line { height: 1px; background: var(--quiet); flex: 1; }
.ownership-graphic { font-family: var(--display); font-weight: 300; font-size: 24px; line-height: 1.15; letter-spacing: -.03em; gap: 32px; }
.pixel-corner { width: 16px; height: 16px; background: var(--signal-ink); margin: 0 35px 35px 0; box-shadow: 20px 0 var(--signal-ink), 40px 0 var(--signal-ink), 40px 20px var(--signal-ink), 40px 40px var(--signal-ink); }
.offer { background: var(--ground); color: var(--ink); border: 1px solid var(--line); padding: 30px 32px; }
.offer strong { font-size: 44px; font-weight: 600; letter-spacing: -.03em; }
.offer-detail { font-size: 14px; }
.offer .button { background: var(--ink); color: var(--paper); }
.offer .button:hover { background: var(--accent); color: var(--paper); }
.workspace { padding-top: 66px; }
aside { border-top: 1px solid var(--line); }
.job-title { color: var(--ink); font-size: 18px; }
.job-dates { line-height: 1.7; }
.section-top h2 { font-size: 28px; }
footer { margin-top: 20px; }
@media (hover: hover) and (pointer: fine) {
  .hero-actions .button:first-child:hover { background: var(--accent); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: hero-arrive 500ms var(--ease-out); }
  .hero-actions .button { transition: transform 160ms var(--ease-out); }
  .hero-actions .button:active { transform: scale(.97); }
  /* Keep text at full contrast throughout the entrance. */
  @keyframes hero-arrive { from { transform: translateY(12px); } to { transform: translateY(0); } }
}
@media (max-width: 1100px) {
  .masthead, main, footer { width: calc(100% - 48px); }
  nav { gap: 16px; }
  .hero-copy h1 { font-size: 52px; }
  .activity-intro, .activity-measure, .inventory-measure { padding: 24px 20px; }
  .offer-detail { display: block; margin-left: 0; }
}
@media (max-width: 1024px) {
  .window-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; padding: 40px 0 32px; gap: 24px; }
  .routing-frame, .sources-frame { max-width: 520px; width: 100%; margin-inline: auto; }
  .sources { grid-template-columns: 1fr; gap: 28px; padding: 56px 0 0; }
  .activity-frame { grid-template-columns: 1fr 1fr; }
  .activity-intro { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .activity-measure { border-left: 0; }
  .hero-actions { align-items: center; }
}
@media (max-width: 767px) {
  .masthead, main, footer { width: calc(100% - 36px); }
  .masthead { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 0; }
  nav { gap: 10px 20px; }
  nav a { font-size: 12px; min-height: 30px; display: inline-flex; align-items: center; }
  .landing-hero { grid-template-columns: 1fr; padding: 40px 0 32px; gap: 20px; }
  .hero-copy h1 { font-size: clamp(42px, 9vw, 60px); }
  .hero-copy > p { font-size: 16px; margin: 24px 0; }
  .hero-actions .button { padding: 12px 16px; }
  .routing-frame { max-width: 500px; width: 100%; margin-inline: auto; }
  .activity-intro { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .activity-intro p { margin-bottom: 12px; }
  .activity-measure { border-left: 0; }
  .activity-measure, .inventory-measure { padding: 22px 14px; }
  .activity-measure strong, .inventory-measure strong { font-size: 36px; }
  .activity-note { padding: 14px; }
  .sources { grid-template-columns: 1fr; gap: 28px; padding: 56px 0 0; }
  .sources-frame { max-width: 500px; width: 100%; margin-inline: auto; }
  .benefits { padding: 56px 0; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-tile { padding: 24px; }
  .benefit-tile:nth-child(even) { border-left: 1px solid var(--line); }
  .benefit-tile:not(:first-child) { border-top: 0; }
  .tile-graphic { height: 100px; }
  .offer { padding: 24px; flex-direction: column; align-items: flex-start; }
  .workspace { grid-template-columns: 1fr; padding-top: 48px; }
}
.ownership-tile :focus-visible { outline-color: var(--signal-ink); }

/* Policy links live with the source note, not as a separate band. */
footer nav { display: flex; gap: 20px; margin-top: 10px; }
footer nav a { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* Below this the three measures stop being columns and become stacked rows. */
@media (max-width: 560px) {
  .activity-frame { grid-template-columns: 1fr; }
  .activity-measure { border-inline: 0; border-top: 1px solid var(--line); }
  .inventory-measure { border-top: 1px solid var(--line); }
}

.waitlist-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start;
  border: 1px solid var(--line); padding: 36px 40px; margin: 28px 0 8px; position: relative; }
.waitlist-copy h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; letter-spacing: -.035em; margin: 0 0 14px; }
.waitlist-copy p { max-width: 42ch; margin: 0 0 16px; font-size: 16px; color: var(--quiet); }
.waitlist-copy ol { margin: 0; padding: 0 0 0 18px; max-width: 46ch; }
.waitlist-copy li { margin: 0 0 8px; font-size: 15px; }
#waitlist-form { display: grid; gap: 14px; }
#waitlist-form label { font-size: 13px; font-weight: 600; }
#waitlist-status { margin: 0; font-size: 14px; color: var(--quiet); }
#waitlist-status.error { color: var(--danger); }
@media (max-width: 900px) {
  .waitlist-band { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
}

/* ── the offer: the one poured surface on the page ─────────────────────────── */
.offer { position: relative; isolation: isolate; overflow: hidden; background: #0d0d0d;
  border: 0; color: #fff; padding: 64px 48px; margin-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.offer > *:not(.field):not(.mark) { position: relative; z-index: 1; }
.offer p { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0; }
.offer strong { font-family: var(--display); font-size: clamp(50px, 6.6vw, 88px);
  font-weight: 300; letter-spacing: -.04em; line-height: .92; color: #fff; }
.offer p > span { font-size: 15px; color: rgba(255, 255, 255, .78); }
.offer .offer-detail { font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .66); margin-left: 14px; }
.offer .chip { font-size: 14px; padding: 13px 20px; }
.offer > i.mark { border-color: rgba(255, 255, 255, .5); }

/* ── the lit card and the account panel: one dithered cover each ───────────── */
.benefit-tile.lit { padding-top: 0; overflow: hidden; }
.benefit-tile.lit .cover { margin: 0 -36px 24px; }
.benefit-tile.lit .tile-graphic { display: none; }
.panel { border: 1px solid var(--line); padding: 0 26px 26px; }
.panel .cover { margin: 0 -26px 24px; height: 92px; }
.panel > h2 { margin-top: 0; }

/* ── the feed reads as records, not as a list ──────────────────────────────── */
.job-list li { padding: 15px 0; border-bottom: 1px solid var(--line);
  transition: background-color .2s var(--ease-out); }
.job-list li:hover { background: #fbfbfa; box-shadow: 0 0 0 14px #fbfbfa; }
.job-dates { font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--quiet); }
#sample-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--quiet); }

@media (max-width: 650px) {
  .offer { padding: 26px 22px; }
  .benefit-tile.lit .cover { margin-inline: -24px; }
}

.chip.solid { background: #fff; border-color: #fff; color: var(--ink); }
.chip.solid:hover { background: #fff; border-color: #fff; transform: translateY(-1px); }

/* The supporting lines under a measure are sentences, not labels. */
#board-count, #rate-note { display: block; margin-top: 4px; font-family: var(--body-stack);
  font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--quiet); }
#board-count::before, #rate-note::before { content: none; }

/* Open roles by country. Bars are proportional to the largest, and the note
   says how many rows could not be placed, so the numbers stay accountable. */
.countries { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.country-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.country-list li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 4.5rem;
  align-items: center; gap: 14px; }
.country-name { font-size: 14px; }
.country-bar { display: block; height: 6px; border-radius: 999px; background: #f1f1ee; overflow: hidden; }
.country-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ink);
  transition: width .6s var(--ease-out); }
.country-list li:nth-child(1) .country-bar i { background: var(--signal); }
.country-list b { font-family: var(--display); font-weight: 400; font-size: 16px;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right; }
#country-note { margin-top: 16px; font-size: 12.5px; max-width: 60ch; }
@media (max-width: 560px) {
  .country-list li { grid-template-columns: 7rem minmax(0, 1fr) 3.6rem; gap: 10px; }
  .country-name { font-size: 13px; }
}

/* One moving part per tile, on the same beat as the diagrams: the motion
   runs, then the tile holds for two seconds before it runs again. Each one
   animates the thing the tile is actually about. */
@media (prefers-reduced-motion: no-preference) {
  /* The packet travels the connection. */
  .connector-line::after { animation: run-connector 5s var(--ease-out) infinite; }
  @keyframes run-connector {
    0% { right: 100%; opacity: 0; }
    8% { opacity: 1; }
    52% { right: 0; opacity: 1; }
    60%, 100% { right: 0; opacity: 0; }
  }
  /* The filter picks a different row out of the set. */
  .filter-graphic span:nth-child(3) { animation: hold-pick 5s steps(1, end) infinite; }
  .filter-graphic span:nth-child(5) { animation: pass-pick 5s steps(1, end) infinite; }
  @keyframes hold-pick { 0%, 44% { background: var(--signal); border-color: var(--quiet); }
    45%, 100% { background: var(--ground); border-color: var(--line); } }
  @keyframes pass-pick { 0%, 44% { background: var(--ground); border-color: var(--line); }
    45%, 92% { background: var(--signal); border-color: var(--quiet); }
    93%, 100% { background: var(--ground); border-color: var(--line); } }
  /* The same job is read again, and the line between the two draws each time. */
  .repeat-line { transform-origin: left center; animation: draw-repeat 5s var(--ease-out) infinite; }
  @keyframes draw-repeat { 0% { transform: scaleX(0); } 46%, 100% { transform: scaleX(1); } }
  /* The corner assembles itself, one block at a time. */
  .pixel-corner { animation: build-corner 5s steps(1, end) infinite; }
  @keyframes build-corner {
    0% { box-shadow: none; }
    12% { box-shadow: 20px 0 var(--signal-ink); }
    24% { box-shadow: 20px 0 var(--signal-ink), 40px 0 var(--signal-ink); }
    36% { box-shadow: 20px 0 var(--signal-ink), 40px 0 var(--signal-ink), 40px 20px var(--signal-ink); }
    48%, 100% { box-shadow: 20px 0 var(--signal-ink), 40px 0 var(--signal-ink),
      40px 20px var(--signal-ink), 40px 40px var(--signal-ink); }
  }
}
