:root {
  --paper: #f4f1ea;
  --paper-deep: #ebe6dc;
  --panel: #fbfaf7;
  --panel-blue: #edf3f9;
  --ink: #10283d;
  --ink-soft: #405365;
  --muted: #74818c;
  --line: #d9d8d2;
  --line-blue: #c9d7e5;
  --blue: #1e67b2;
  --blue-dark: #164d86;
  --blue-pale: #dceaf7;
  --positive: #1e67b2;
  --negative: #767f87;
  --shadow: 0 28px 70px -48px rgba(16, 40, 61, .5);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max-width: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(255,255,255,.9), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, #f8f7f3 58%, var(--paper) 100%);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
::selection { color: #fff; background: var(--blue); }
:focus-visible { outline: 3px solid rgba(30,103,178,.34); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 500;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.page-shell {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}
.view { display: none; }
.view.is-active { display: block; animation: view-in .32s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(16,40,61,.12);
  background: rgba(244,241,234,.88);
  backdrop-filter: blur(18px) saturate(1.2);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 40px, var(--max-width));
  min-height: 72px;
  margin-inline: auto;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  text-decoration: none;
  letter-spacing: -.2px;
}
.brand span { white-space: nowrap; }
.brand strong { font-size: 16px; font-weight: 650; }
.brand em { color: var(--muted); font-size: 15px; font-style: normal; }
.brand-mark { flex: 0 0 auto; overflow: visible; }
.brand-mark path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.3;
  stroke-linecap: round;
}
.brand-mark .mark-axis { stroke-width: 1.4; opacity: .5; }
.brand-mark circle { fill: var(--blue); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(16,40,61,.1);
  border-radius: 9px;
  background: rgba(255,255,255,.4);
}
.nav-tab {
  padding: 7px 13px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-tab:hover { color: var(--ink); }
.nav-tab.is-active { color: var(--blue-dark); background: #fff; box-shadow: 0 2px 10px rgba(16,40,61,.08); }
.header-cta { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 28px -18px rgba(30,103,178,.9);
}
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 16px 32px -18px rgba(30,103,178,.8); }
.button-quiet { border-color: var(--line); background: rgba(255,255,255,.5); }
.button-quiet:hover { border-color: var(--line-blue); background: #fff; }
.button-small { min-height: 38px; padding-inline: 15px; font-size: 12px; }
.text-link {
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 650;
  cursor: pointer;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(510px, 1.14fr);
  align-items: center;
  min-height: min(770px, calc(100dvh - 72px));
  gap: clamp(46px, 7vw, 100px);
  padding: clamp(62px, 8vw, 104px) 0 72px;
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 23px;
  color: var(--blue-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(30,103,178,.42);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(30,103,178,0); } }
.dictionary h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 7vw, 94px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .84;
}
.dictionary-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-dark);
  font-family: var(--mono);
  font-size: 12px;
}
.part-of-speech {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dictionary > p {
  max-width: 31ch;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.36;
}
.dictionary > p span { margin-right: 6px; color: var(--blue); }
.hero-pitch {
  max-width: 52ch;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.68;
}
.hero-pitch strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 10px; margin-top: 27px; }
.price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.price-line strong { color: var(--ink-soft); }

.terminal-wrap { min-width: 0; container-type: inline-size; }
.terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid #c6d0d9;
  border-radius: 12px;
  background: rgba(251,250,247,.95);
  box-shadow: var(--shadow);
}
.terminal::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255,255,255,.85);
  content: "";
}
.terminal-header, .terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #e9eef2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.terminal-header { min-height: 52px; padding: 9px 13px; border-bottom: 1px solid #cfd8df; }
.terminal-status, .terminal-tools { display: flex; align-items: center; gap: 10px; }
.terminal-status { color: var(--ink-soft); font-weight: 600; }
.terminal-count { color: var(--muted); }
.terminal-count strong { color: var(--blue-dark); }
.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #c4ced7;
  border-radius: 5px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.54);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  cursor: pointer;
}
.icon-button:hover { color: var(--blue-dark); border-color: #9eb9d2; background: #fff; }
.icon-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.terminal-column-heads, .terminal-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.terminal-column-heads {
  min-height: 34px;
  padding: 0 15px;
  border-bottom: 1px solid #dce1e5;
  color: #8a959d;
  background: #f5f5f2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.terminal-column-heads span:last-child { text-align: right; }
.terminal-log {
  height: clamp(330px, 46vw, 430px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(16,40,61,.025) 31px 32px);
  font-family: var(--mono);
  font-size: 10px;
}
.terminal-row {
  min-height: 38px;
  padding: 7px 15px;
  border-bottom: 1px solid rgba(16,40,61,.07);
  animation: row-in .28s ease both;
}
@keyframes row-in { from { opacity: 0; transform: translateY(-5px); } }
.terminal-row .time { color: #94a0a9; font-size: 9px; }
.terminal-row .company {
  min-width: 0;
  overflow: hidden;
  color: #65737d;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-row .decision {
  color: #8a959d;
  font-size: 8px;
  letter-spacing: .05em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}
.terminal-row.is-match { border-bottom: 0; background: linear-gradient(90deg, rgba(220,234,247,.9), rgba(220,234,247,.2)); }
.terminal-row.is-match .company, .terminal-row.is-match .decision { color: var(--blue-dark); font-weight: 600; }
.match-card {
  margin: 0 14px 11px;
  overflow: hidden;
  border: 1px solid #90b4d5;
  border-radius: 8px;
  background: #f6f9fc;
  animation: row-in .28s ease both;
}
.match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #d4e0eb;
}
.redacted {
  display: inline-flex;
  align-items: center;
  width: min(55%, 174px);
  height: 21px;
  padding: 0 8px;
  border-radius: 4px;
  color: #416b91;
  background: repeating-linear-gradient(135deg, #d9e4ee 0 6px, #e8eff5 6px 12px);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tier {
  padding: 4px 7px;
  border-radius: 4px;
  color: #fff;
  background: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.tier.notable { color: var(--blue-dark); background: var(--blue-pale); }
.match-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #d8e0e7; }
.match-stats div { padding: 10px 12px; background: #fbfcfd; }
.match-stats span { display: block; color: var(--muted); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.match-stats strong { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; font-weight: 500; }
.match-stats div:last-child strong { color: var(--blue-dark); }
.match-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 8px;
}
.match-action button { min-height: 27px; padding: 0 9px; border: 0; border-radius: 4px; color: #fff; background: var(--blue); font-family: var(--mono); font-size: 8px; font-weight: 600; cursor: pointer; }
.terminal-footer { min-height: 38px; padding: 8px 14px; border-top: 1px solid #cfd8df; color: var(--muted); }
.terminal-footer span { display: flex; align-items: center; gap: 6px; }
.terminal-footer strong { color: var(--ink-soft); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

body.terminal-expanded { overflow: hidden; }
.terminal.is-expanded {
  position: fixed;
  inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  z-index: 310;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  box-shadow: 0 40px 110px -26px rgba(5,24,41,.7);
}
.terminal.is-expanded .terminal-log { flex: 1; height: auto; }
.terminal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(9,27,43,.46);
  backdrop-filter: blur(4px);
}

.process { padding: 90px 0 42px; border-top: 1px solid var(--line); }
.section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--blue-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section-label::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.process > h2, .principle-card h2 {
  margin: 28px 0 45px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-track article { position: relative; padding: 25px 25px 30px 0; }
.process-track article + article { padding-left: 25px; border-left: 1px solid var(--line); }
.step-number { color: var(--blue); font-family: var(--mono); font-size: 9px; }
.process-track h3 { margin: 42px 0 8px; font-size: 16px; }
.process-track p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.62; }

.principle-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 8vw, 110px);
  margin: 82px 0 20px;
  padding: clamp(36px, 5vw, 65px);
  border: 1px solid var(--line-blue);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(237,243,249,.92), rgba(251,250,247,.9));
  box-shadow: var(--shadow);
}
.principle-card .eyebrow { margin-bottom: 18px; }
.principle-card h2 { margin: 0; }
.principle-card > div:last-child { align-self: end; }
.principle-card > div:last-child p { margin: 0 0 21px; color: var(--ink-soft); line-height: 1.7; }

.section-page { min-height: 70dvh; padding: 64px 0 50px; }
.section-hero { margin-bottom: 48px; }
.section-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 70px;
  margin-top: 29px;
}
.section-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 78px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .96;
}
.section-hero p { max-width: 52ch; margin: 0 0 5px; color: var(--ink-soft); line-height: 1.7; }

.metric-grid {
  display: grid;
  grid-template-columns: .7fr .7fr .7fr 1.5fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  gap: 1px;
}
.metric-grid > article { min-height: 122px; padding: 23px; background: rgba(251,250,247,.96); }
.metric-grid article > strong { display: block; font-family: var(--serif); font-size: 35px; font-weight: 500; line-height: 1; }
.metric-grid article > span, .volume-card > div:first-child { display: flex; justify-content: space-between; margin-top: 13px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.metric-grid .metric-accent > strong { color: var(--blue); }
.volume-card { display: flex; flex-direction: column; justify-content: space-between; }
.volume-card > div:first-child { margin-top: 0; }
.mini-bars { display: flex; align-items: end; height: 55px; gap: 3px; margin-top: 12px; }
.mini-bars span { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: #dbe2e8; }
.mini-bars span.is-high { background: var(--blue); }

.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 28px 0 12px; }
.segmented-control { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.4); }
.segmented-control button { padding: 8px 12px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-family: var(--mono); font-size: 9px; text-transform: uppercase; cursor: pointer; }
.segmented-control button.is-active { color: var(--blue-dark); background: #fff; box-shadow: 0 2px 8px rgba(16,40,61,.07); }
.feed-freshness { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.award-table-wrap { border: 1px solid var(--line); border-radius: 9px; background: rgba(251,250,247,.8); overflow: hidden; }
.award-table-head, .award-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.5fr) minmax(140px, .7fr) 110px;
  align-items: center;
  gap: 18px;
}
.award-table-head { min-height: 38px; padding: 0 17px; border-bottom: 1px solid var(--line); color: var(--muted); background: #ebece9; font-family: var(--mono); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.award-table-head span:last-child { text-align: right; }
.award-row { min-height: 76px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.award-row:last-child { border-bottom: 0; }
.award-row.is-material { box-shadow: inset 3px 0 var(--blue); background: rgba(237,243,249,.5); }
.award-date { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.award-company strong { display: block; font-size: 14px; font-weight: 650; }
.award-company span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.award-company .ticker { display: inline; margin-left: 6px; color: var(--blue-dark); font-family: var(--mono); font-size: 10px; }
.award-amount { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.award-amount span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 400; }
.award-tier { justify-self: end; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.award-tier.major { color: #fff; border-color: var(--blue); background: var(--blue); }
.award-tier.notable { color: var(--blue-dark); border-color: #b9cfe2; background: var(--blue-pale); }
.award-tier.minor { color: var(--ink-soft); }
.load-more { width: 100%; min-height: 45px; margin-top: 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: rgba(255,255,255,.45); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.load-more:hover { border-color: var(--line-blue); background: #fff; }
.data-note { max-width: 80ch; margin: 18px 0 0; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.65; }

.record-stats { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--line); gap: 1px; }
.record-stats article { padding: 26px 22px; background: rgba(251,250,247,.94); }
.record-stats strong { display: block; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; }
.record-stats strong.accent { color: var(--blue); }
.record-stats span { display: block; margin-top: 13px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.method-note { display: grid; grid-template-columns: 95px 1fr; gap: 20px; margin: 0 0 18px; padding: 16px 18px; border-left: 3px solid var(--blue); background: rgba(237,243,249,.55); }
.method-note > span { color: var(--blue-dark); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.method-note p { max-width: 78ch; margin: 0; color: var(--ink-soft); font-size: 13px; }
.record-list { border-top: 1px solid var(--line); }
.record-list article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 19px 3px; border-bottom: 1px solid var(--line); }
.record-list article > div:last-child { text-align: right; }
.record-list strong { display: block; font-size: 14px; }
.record-list span { display: block; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.record-list .positive { color: var(--positive); font-family: var(--mono); font-size: 17px; }
.record-list .negative { color: var(--negative); font-family: var(--mono); font-size: 17px; }
.disclosure { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.75; }
.disclosure strong { color: var(--ink-soft); text-transform: uppercase; }
.disclosure p { max-width: 100ch; margin: 6px 0 0; }

.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: rgba(251,250,247,.65); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; padding-top: 35px; padding-bottom: calc(35px + env(safe-area-inset-bottom)); }
.footer-brand { margin-bottom: 12px; }
.footer-grid p { max-width: 55ch; margin: 0; color: var(--muted); font-size: 11px; }
.footer-meta { text-align: right; }
.footer-meta .text-link { margin-top: 9px; font-size: 11px; }

.signup-dialog {
  width: min(calc(100% - 32px), 460px);
  padding: 34px;
  border: 1px solid var(--line-blue);
  border-radius: 13px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 40px 100px -25px rgba(9,27,43,.55);
}
.signup-dialog::backdrop { background: rgba(9,27,43,.45); backdrop-filter: blur(4px); }
.signup-dialog .eyebrow { margin-bottom: 15px; }
.signup-dialog h2 { margin: 0; font-family: var(--serif); font-size: 42px; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.signup-dialog > p:not(.eyebrow) { margin: 15px 0 24px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.dialog-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: #eef0ee; font-size: 21px; line-height: 1; cursor: pointer; }
.signup-dialog label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.signup-dialog input[type="email"] { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.signup-dialog form .button { width: 100%; margin-top: 10px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-status { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.toast { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 500; max-width: min(360px, calc(100% - 36px)); padding: 12px 15px; border-radius: 7px; color: #fff; background: var(--ink); box-shadow: 0 14px 35px -15px rgba(9,27,43,.65); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }

@container (max-width: 540px) {
  .terminal-count { display: none; }
  .terminal-log { height: 340px; }
  .terminal-column-heads, .terminal-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; }
  .terminal-column-heads, .terminal-row { padding-inline: 11px; }
  .match-card { margin-inline: 10px; }
}
@container (max-width: 390px) {
  .icon-button span, .terminal-footer > span:last-child { display: none; }
  .terminal-column-heads { display: none; }
  .terminal-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 42px; }
  .terminal-row .time { display: none; }
  .match-stats div { padding-inline: 8px; }
}

@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 14px; }
  .primary-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; margin-bottom: 8px; }
  .site-header .header-inner { min-height: 65px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 48px; padding-top: 60px; }
  .hero-copy { max-width: 680px; }
  .terminal-wrap { width: 100%; max-width: 760px; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .process-track article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .process-track article:nth-child(4) { border-top: 1px solid var(--line); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .volume-card { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .page-shell, .header-inner { width: min(100% - 28px, var(--max-width)); }
  .header-inner { gap: 10px; }
  .brand em { display: none; }
  .brand-mark { width: 32px; }
  .header-cta { padding-inline: 11px; }
  .primary-nav { width: 100%; }
  .nav-tab { flex: 1; }
  .hero-grid { gap: 34px; padding-top: 35px; padding-bottom: 48px; }
  .eyebrow { margin-bottom: 15px; }
  .dictionary h1 { font-size: clamp(48px, 14vw, 60px); line-height: .9; }
  .dictionary-meta { margin-top: 15px; padding-bottom: 11px; }
  .dictionary > p { margin-top: 11px; font-size: 18px; line-height: 1.32; }
  .hero-pitch { margin-top: 21px; font-size: 15px; line-height: 1.58; }
  .hero-actions { margin-top: 21px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .terminal-header { align-items: flex-start; }
  .terminal-status { max-width: 160px; }
  .process { padding-top: 64px; }
  .process > h2 { margin-bottom: 34px; }
  .process-track { grid-template-columns: 1fr; }
  .process-track article, .process-track article + article { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .process-track article:first-child { border-top: 0; }
  .process-track h3 { margin: 18px 0 6px; }
  .principle-card, .section-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .principle-card { margin-top: 58px; padding: 30px 24px; }
  .section-page { padding-top: 45px; }
  .section-hero-grid { margin-top: 22px; }
  .section-hero h1 { font-size: clamp(43px, 14vw, 62px); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid > article { min-height: 108px; padding: 18px; }
  .metric-grid > article:nth-child(3), .volume-card { grid-column: 1 / -1; }
  .award-table-head { display: none; }
  .award-row { grid-template-columns: 1fr auto; gap: 7px 12px; padding: 14px; }
  .award-date { grid-column: 2; grid-row: 1; text-align: right; }
  .award-company { grid-column: 1; grid-row: 1; }
  .award-amount { grid-column: 1; grid-row: 2; }
  .award-tier { grid-column: 2; grid-row: 2; }
  .record-stats { grid-template-columns: 1fr 1fr; }
  .method-note { grid-template-columns: 1fr; gap: 7px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (orientation: landscape) and (max-height: 620px) and (min-width: 640px) {
  .site-header { position: relative; }
  .header-inner { grid-template-columns: 1fr auto auto; min-height: 54px; gap: 12px; }
  .primary-nav { grid-row: 1; grid-column: 2; margin: 0; }
  .header-cta { grid-row: 1; grid-column: 3; }
  .hero-grid {
    grid-template-columns: minmax(280px, .8fr) minmax(390px, 1.2fr);
    align-items: start;
    min-height: 0;
    gap: 32px;
    padding: 34px 0 44px;
  }
  .dictionary h1 { font-size: clamp(48px, 7vw, 72px); }
  .dictionary > p { font-size: 18px; }
  .hero-pitch { margin-top: 18px; font-size: 13px; }
  .hero-actions { margin-top: 18px; }
  .price-line { display: none; }
  .terminal-log { height: min(56dvh, 310px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
