@font-face {
  font-family: "Familjen Grotesk Atlas";
  src: url("/fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Familjen Grotesk Atlas";
  src: url("/fonts/familjen-grotesk-latin-500-italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 500;
}

@font-face {
  font-family: "Familjen Grotesk Atlas";
  src: url("/fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Familjen Grotesk Atlas";
  src: url("/fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Familjen Grotesk Atlas";
  src: url("/fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: light;
  --paper: #f1efe7;
  --paper-deep: #e6e2d7;
  --ink: #111714;
  --ink-soft: #3e4842;
  --line: rgba(17, 23, 20, 0.2);
  --line-strong: rgba(17, 23, 20, 0.68);
  --acid: #c9ff3d;
  --acid-dark: #5d7900;
  --blue: #244dff;
  --gain: #087958;
  --gain-soft: #79c6a8;
  --loss: #d8442d;
  --loss-soft: #e9a191;
  --muted: #aaa99f;
  --display: "Familjen Grotesk Atlas", "Arial Narrow", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, monospace;
  --sans: "Familjen Grotesk Atlas", "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  min-width: 320px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 14% 4%, rgba(201, 255, 61, 0.2), transparent 20rem),
    linear-gradient(90deg, transparent 0 49.9%, rgba(17, 23, 20, 0.025) 50%, transparent 50.1%),
    var(--paper);
  content: "";
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

a {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.16;
  pointer-events: none;
  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='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--acid);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 68px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(241, 239, 231, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(24vw, 320px);
  padding: 0 2.1rem;
  border-right: 1px solid var(--line-strong);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 112px;
  height: auto;
}

.brand-product {
  color: var(--blue);
  font: 700 1.25rem/1 var(--sans);
  letter-spacing: 0.05em;
}

.masthead-status {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  flex: 1;
  min-width: 0;
}

.status-unit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.status-unit:last-child {
  border-right: 0;
}

.eyebrow,
.kicker {
  margin: 0;
  font: 700 0.67rem/1 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--ink-soft);
}

.status-value {
  overflow: hidden;
  color: var(--ink);
  font: 650 0.76rem/1.15 var(--mono);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(170, 169, 159, 0.2);
}

.signal-dot.is-live {
  background: var(--gain);
  box-shadow: 0 0 0 4px rgba(8, 121, 88, 0.15);
  animation: signal 2s ease-out infinite;
}

.signal-dot.is-warn {
  background: var(--loss);
  box-shadow: 0 0 0 4px rgba(216, 68, 45, 0.14);
}

main {
  width: min(1740px, 100%);
  margin: 0 auto;
  padding: 0 2.1rem 5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 300px;
  border-bottom: 1px solid var(--line-strong);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  padding: 2.5rem 0 2.6rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-soft);
}

.kicker > span {
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font: 500 clamp(3rem, 5vw, 5.75rem)/0.88 var(--display);
  letter-spacing: -0.07em;
}

.hero h1 em {
  color: var(--blue);
  font-weight: 500;
}

.hero-deck {
  max-width: 440px;
  margin: 0;
  padding-bottom: 0.45rem;
  color: var(--ink-soft);
  font: 500 clamp(0.95rem, 1.1vw, 1.15rem)/1.45 var(--sans);
  justify-self: end;
  text-align: right;
}

.market-field,
.market-table-section {
  padding: 2.25rem 0 2.7rem;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin: 0.45rem 0 0;
  font: 500 clamp(2rem, 3.2vw, 4rem)/0.95 var(--display);
  letter-spacing: -0.055em;
}

.field-heading {
  justify-content: flex-end;
}

.as-of {
  margin: 0;
  color: var(--ink-soft);
  font: 650 0.68rem/1.4 var(--mono);
  text-align: right;
}

.change-value {
  font: 700 0.69rem/1 var(--mono);
}

.is-gain {
  color: var(--gain);
}

.is-loss {
  color: var(--loss);
}

.is-flat {
  color: var(--ink-soft);
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 2.1rem;
}

.market-main {
  min-width: 0;
}

.market-rail {
  border-left: 1px solid var(--line-strong);
}

.rail-panel {
  position: relative;
  padding: 2.2rem 0 2.2rem 2.1rem;
  border-bottom: 1px solid var(--line-strong);
}

.field-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(440px, 39vw);
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.25);
}

.search-box > span:not(.sr-only) {
  font: 1.25rem/1 var(--mono);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 0.7rem;
  color: var(--ink);
  font: 650 0.75rem/1 var(--mono);
}

.search-box input::placeholder {
  color: rgba(17, 23, 20, 0.55);
}

kbd {
  border: 1px solid var(--line);
  padding: 0.18rem 0.35rem;
  color: var(--ink-soft);
  font: 600 0.6rem/1 var(--mono);
}

.text-button {
  height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: 700 0.66rem/1 var(--mono);
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease;
}

.text-button:hover {
  background: var(--acid);
  color: var(--ink);
}

.text-button.is-loading {
  cursor: wait;
  opacity: 0.6;
}

.filter-bar {
  display: flex;
  align-items: stretch;
  margin-bottom: 1rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font: 700 0.67rem/1 var(--mono);
  text-transform: uppercase;
}

.filter-button span {
  color: var(--ink-soft);
  font-size: 0.58rem;
}

.filter-button.is-active {
  background: var(--acid);
}

.group-select-label {
  min-width: 210px;
  margin-left: auto;
  border-left: 1px solid var(--line-strong);
}

.group-select-label select {
  width: 100%;
  height: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0 2rem 0 0.8rem;
  color: var(--ink);
  font: 650 0.65rem/1 var(--mono);
}

.breadth {
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr);
  align-items: center;
  gap: 1.5rem;
  margin: 1.4rem 0;
}

.breadth-copy {
  display: flex;
  gap: 1rem;
  font: 650 0.68rem/1 var(--mono);
}

.breadth-copy b {
  font-weight: 800;
}

.breadth-bar {
  display: flex;
  height: 8px;
  background: var(--muted);
}

.breadth-bar span {
  display: block;
  min-width: 0;
  transition: width 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.advance-bar {
  background: var(--gain);
}

.flat-bar {
  background: var(--muted);
}

.decline-bar {
  background: var(--loss);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font: 650 0.57rem/1 var(--mono);
}

.heatmap-legend > span {
  margin-right: 0.4rem;
}

.heatmap-legend i {
  width: 16px;
  height: 10px;
}

.heatmap-legend .loss-strong {
  background: var(--loss);
}

.heatmap-legend .loss-soft {
  background: var(--loss-soft);
}

.heatmap-legend .flat {
  background: var(--muted);
}

.heatmap-legend .gain-soft {
  background: var(--gain-soft);
}

.heatmap-legend .gain-strong {
  background: var(--gain);
}

.asset-heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  border-top: 1px solid rgba(241, 239, 231, 0.2);
  border-left: 1px solid rgba(241, 239, 231, 0.2);
  background: var(--ink);
}

.asset-tile {
  position: relative;
  aspect-ratio: 1.25;
  min-height: 45px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(241, 239, 231, 0.22);
  border-bottom: 1px solid rgba(241, 239, 231, 0.22);
  background: var(--tile-color, var(--muted));
  color: var(--tile-ink, var(--ink));
  cursor: pointer;
  text-align: left;
  transition: filter 120ms ease, transform 120ms ease;
}

.asset-tile:hover,
.asset-tile:focus-visible {
  z-index: 2;
  filter: saturate(1.2) brightness(1.08);
  transform: scale(1.1);
}

.asset-tile.is-etf::after {
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  opacity: 0.45;
  content: "";
}

.asset-tile.is-updated {
  animation: tick 1.1s ease-out;
}

.asset-tile.is-stale {
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(17, 23, 20, 0.08) 5px 6px);
}

.tile-symbol {
  position: absolute;
  top: 0.42rem;
  left: 0.42rem;
  z-index: 1;
  font: 800 0.58rem/1 var(--mono);
  letter-spacing: -0.04em;
}

.tile-change {
  position: absolute;
  right: 0.38rem;
  bottom: 0.38rem;
  z-index: 1;
  font: 760 0.52rem/1 var(--mono);
}

.empty-state {
  padding: 5rem 1rem;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  text-align: center;
  font: 500 1.5rem/1.3 var(--display);
}

.rail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.rail-title-row > span {
  color: var(--ink-soft);
  font: 600 0.58rem/1 var(--mono);
}

.mover-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.mover-columns h3 {
  margin: 0 0 0.65rem;
  font: 600 1.2rem/1 var(--display);
}

.mover-columns ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mover-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: 700 0.62rem/1 var(--mono);
}

.provenance-panel > p:not(.kicker) {
  margin: 1.5rem 0;
  color: var(--ink-soft);
  font: 500 0.95rem/1.55 var(--sans);
}

.source-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.source-path span {
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line-strong);
  font: 750 0.58rem/1 var(--mono);
}

.source-path span.is-live {
  background: var(--acid);
}

.source-path i {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.fine-print {
  font-size: 0.71rem !important;
  line-height: 1.45 !important;
}

.table-heading {
  margin-bottom: 1rem;
}

.table-shell {
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

th:first-child,
td:first-child,
th:nth-child(4),
td:nth-child(4) {
  text-align: left;
}

th:first-child {
  width: 26%;
}

th:nth-child(2) {
  width: 15%;
}

th:nth-child(3) {
  width: 15%;
}

th:nth-child(4) {
  width: 23%;
}

th:nth-child(5) {
  width: 16%;
}

th:last-child {
  width: 5%;
}

th button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: 700 0.59rem/1 var(--mono);
  text-align: inherit;
  text-transform: uppercase;
}

.asset-row {
  cursor: pointer;
  transition: background 120ms ease;
}

.asset-row:hover {
  background: rgba(255, 255, 255, 0.46);
}

.asset-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.asset-monogram {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
  font: 800 0.57rem/1 var(--mono);
}

.asset-identity {
  min-width: 0;
}

.asset-identity strong,
.asset-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-identity strong {
  font: 800 0.73rem/1.2 var(--mono);
}

.asset-identity span {
  max-width: 280px;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font: 500 0.68rem/1.2 var(--sans);
}

.price-value {
  font: 700 0.76rem/1 var(--mono);
}

.group-value,
.observed-value {
  color: var(--ink-soft);
  font: 600 0.63rem/1.25 var(--mono);
}

.watch-button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.1rem;
}

.watch-button.is-watched {
  color: var(--blue);
}

.show-more {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper-deep);
  cursor: pointer;
  font: 750 0.64rem/1 var(--mono);
  text-transform: uppercase;
}

.show-more:hover {
  background: var(--acid);
}

footer {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 2rem;
  align-items: center;
  min-height: 140px;
  padding: 2rem;
  background: var(--ink);
  color: var(--paper);
}

footer p,
footer a {
  margin: 0;
  font: 700 0.68rem/1.4 var(--mono);
  text-decoration: none;
}

footer p:nth-child(2) {
  color: rgba(241, 239, 231, 0.65);
}

.asset-dialog {
  width: min(620px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto 0 auto auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -20px 0 60px rgba(17, 23, 20, 0.18);
}

.asset-dialog[open] {
  animation: drawer-in 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.asset-dialog::backdrop {
  background: rgba(17, 23, 20, 0.62);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  width: 52px;
  height: 52px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  cursor: pointer;
  font: 300 2rem/1 var(--sans);
}

.dialog-hero {
  min-height: 270px;
  padding: 2rem;
  border-bottom: 1px solid var(--line-strong);
  background: var(--asset-accent, var(--acid));
}

.dialog-kind {
  font: 750 0.66rem/1 var(--mono);
  text-transform: uppercase;
}

.dialog-symbol {
  margin: 3.2rem 0 0;
  font: 570 clamp(4.5rem, 13vw, 7.4rem)/0.8 var(--display);
  letter-spacing: -0.08em;
}

.dialog-name {
  max-width: 420px;
  margin: 1rem 0 0;
  font: 550 1.15rem/1.3 var(--sans);
}

.dialog-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-strong);
}

.dialog-price-grid > div {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--line-strong);
}

.dialog-price-grid > div:last-child {
  border-right: 0;
}

.dialog-price-grid span,
.dialog-ledger dt {
  display: block;
  color: var(--ink-soft);
  font: 700 0.61rem/1 var(--mono);
  text-transform: uppercase;
}

.dialog-price-grid strong {
  display: block;
  margin-top: 0.75rem;
  font: 600 2.1rem/1 var(--display);
  letter-spacing: -0.05em;
}

.dialog-code {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}

.dialog-code-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.dialog-code-heading span,
.dialog-code-heading small {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
}

.dialog-code-heading span {
  font-size: 0.62rem;
  font-weight: 800;
}

.dialog-code-heading small {
  margin-top: 0.28rem;
  color: rgba(241, 239, 231, 0.52);
  font-size: 0.53rem;
  font-weight: 650;
}

.dialog-code-heading button {
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(241, 239, 231, 0.34);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font: 750 0.55rem/1 var(--mono);
  text-transform: uppercase;
}

.dialog-code-heading button:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.dialog-code pre {
  margin: 0;
}

.dialog-code code {
  color: var(--acid);
  font: 600 0.68rem/1.55 var(--mono);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.dialog-ledger {
  margin: 0;
  padding: 1.2rem 2rem 2.5rem;
}

.dialog-ledger > div {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.dialog-ledger dd {
  margin: 0;
  overflow-wrap: anywhere;
  font: 650 0.69rem/1.3 var(--mono);
  text-align: right;
}

.dialog-actions {
  display: flex;
  gap: 0.6rem;
  padding: 0 2rem 2rem;
}

.dialog-actions button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font: 750 0.62rem/1 var(--mono);
  text-transform: uppercase;
}

.dialog-actions button:first-child {
  background: var(--ink);
  color: var(--paper);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  max-width: 360px;
  padding: 0.85rem 1rem;
  background: var(--acid);
  color: var(--ink);
  font: 700 0.68rem/1.35 var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  animation: reveal 700ms cubic-bezier(0.17, 0.84, 0.34, 1) both;
}

.delay-1 {
  animation-delay: 100ms;
}

.delay-2 {
  animation-delay: 180ms;
}

.delay-3 {
  animation-delay: 260ms;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes signal {
  0% { box-shadow: 0 0 0 0 rgba(8, 121, 88, 0.34); }
  70% { box-shadow: 0 0 0 7px rgba(8, 121, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 121, 88, 0); }
}

@keyframes tick {
  0% { filter: brightness(1.75); }
  100% { filter: brightness(1); }
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1180px) {
  .hero {
    min-height: 0;
  }

  .market-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .market-rail {
    border-left: 1px solid var(--line-strong);
  }
}

@media (max-width: 900px) {
  main {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .brand {
    width: auto;
    padding: 0 1rem;
  }

  .masthead-status {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-right: 0;
  }

  .hero-deck {
    max-width: 640px;
    padding-bottom: 0;
    justify-self: start;
    text-align: left;
  }

  .market-layout {
    grid-template-columns: 1fr;
  }

  .market-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 0;
  }

  .rail-panel {
    padding: 2rem;
    border-right: 1px solid var(--line-strong);
  }

  .provenance-panel {
    grid-column: 1 / -1;
  }

  .desktop-column {
    display: none;
  }

  th:first-child {
    width: 38%;
  }

  th:nth-child(2),
  th:nth-child(3) {
    width: 26%;
  }

  th:last-child {
    width: 10%;
  }
}

@media (max-width: 640px) {
  .masthead {
    min-height: 58px;
  }

  .brand {
    width: 43%;
    gap: 0.3rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .brand-logo {
    width: 82px;
  }

  .brand-product {
    font-size: 0.95rem;
  }

  .masthead-status {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .status-unit {
    flex: 0 0 144px;
    padding: 0.55rem 0.8rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 2.75rem 0 2.4rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .hero-deck {
    font-size: 0.95rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .section-heading .as-of {
    text-align: left;
  }

  .field-tools {
    width: 100%;
  }

  .search-box {
    width: auto;
    flex: 1;
  }

  .text-button {
    padding: 0 0.7rem;
    font-size: 0.57rem;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .group-select-label {
    flex: 0 0 210px;
  }

  .breadth {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .breadth-copy {
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.59rem;
  }

  .heatmap-legend {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .asset-heatmap {
    grid-template-columns: repeat(auto-fill, minmax(51px, 1fr));
  }

  .market-rail {
    display: block;
  }

  .rail-panel {
    padding: 2rem 1.2rem;
    border-right: 0;
  }

  .asset-identity span {
    max-width: 100px;
  }

  th,
  td {
    padding: 0.72rem 0.35rem;
  }

  .asset-monogram {
    display: none;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .asset-dialog {
    width: 100vw;
    max-width: none;
    max-height: calc(100vh - 1rem);
    margin: auto 0 0;
  }

  .dialog-code {
    padding-right: 1.2rem;
    padding-left: 1.2rem;
  }
}

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