:root {
  --ink: #121212;
  --white: #ffffff;
  --muted: #686868;
  --faint: #e6e6e2;
  --line: rgba(18, 18, 18, 0.82);
  --green: #167347;
  --red: #b42318;
  --gold: #c5a059;
  --gold-deep: #ad8948;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--white); }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--mono); }
button, input { font: inherit; }
a { color: inherit; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.masthead { height: 88px; padding: 0 clamp(20px, 4.1vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); }
.wordmark { font-family: var(--serif); font-size: clamp(31px, 3vw, 43px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; text-decoration: none; }
.wordmark span { font-size: 0.7em; margin-left: 1px; }
.masthead-meta, .terminal-nav, .ticker-label, .crumb, .record-state, .eyebrow, .form-caption, .index-aside, .site-footer, .figure-label, .master-image-frame figcaption, .asset-label-row, .as-of, .chart-scale-note, .chart-footer, .legend, .listing-count, .listing-meta, .listing-action, .prototype-toast { font-size: 10px; font-weight: 500; letter-spacing: .095em; line-height: 1.35; }
.masthead-meta, .terminal-nav { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--ink); }
.nav-divider { width: 24px; height: 1px; background: var(--ink); }
.quiet-link { text-decoration: none; color: var(--ink); transition: opacity .2s ease; }
.quiet-link:hover { opacity: .55; }

/* Landing */
.ticker { height: 43px; display: grid; grid-template-columns: minmax(210px, 27vw) 1fr; border-bottom: 1px solid var(--ink); overflow: hidden; }
.ticker-label { display: flex; align-items: center; padding: 0 clamp(20px, 4.1vw, 72px); border-right: 1px solid var(--ink); white-space: nowrap; }
.ticker-label span { margin: 0 7px; }
.ticker-window { min-width: 0; overflow: hidden; position: relative; }
.ticker-window::after, .ticker-window::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 36px; pointer-events: none; }
.ticker-window::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.ticker-window::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.ticker-track { height: 100%; display: flex; width: max-content; align-items: center; animation: ticker 34s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 10px; padding: 0 26px; color: var(--ink); white-space: nowrap; border-right: 1px solid var(--faint); font-size: 10px; letter-spacing: .055em; }
.ticker-item strong { font-weight: 600; }
.ticker-name { color: var(--ink); }
.ticker-change { font-weight: 600; }.ticker-change.up { color: var(--green); } .ticker-change.down { color: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation-play-state: paused; } * { scroll-behavior: auto !important; } }
.index-main { flex: 1; min-height: min(680px, calc(100vh - 188px)); display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 850px) minmax(120px, 1fr); align-items: stretch; }
.index-aside { border-right: 1px solid var(--ink); padding: 21px clamp(15px, 2vw, 30px); color: var(--muted); display: flex; flex-direction: column; justify-content: space-between; }
.index-aside p { margin: 0; writing-mode: vertical-rl; text-orientation: mixed; }
.index-aside span { width: 1px; flex: 1; align-self: center; margin: 17px 0; background: var(--faint); }
.index-aside-right { border-right: 0; border-left: 1px solid var(--ink); transform: rotate(180deg); }
.search-stage { width: min(100%, 850px); padding: clamp(50px, 10vh, 118px) clamp(28px, 6vw, 76px) clamp(56px, 11vh, 130px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.heritage-mark { line-height: 0; }
.heritage-mark img { width: 100%; height: auto; display: block; }
.heritage-mark--compact { width: clamp(164px, 15vw, 208px); margin: 0 auto clamp(19px, 2.8vw, 27px); }
.eyebrow { margin: 0 0 13px; color: var(--muted); }
h1, h2, p { margin-top: 0; }
.search-stage h1 { max-width: 760px; margin-bottom: 16px; font-family: var(--serif); font-size: clamp(39px, 5.2vw, 69px); font-weight: 500; letter-spacing: -.065em; line-height: .99; }
.search-stage h1 em { font-style: italic; }
.hero-support { max-width: 475px; margin-bottom: clamp(34px, 5.8vw, 58px); color: var(--muted); font-family: var(--serif); font-size: 16px; font-style: italic; line-height: 1.4; }
.search-control { position: relative; width: 100%; max-width: 720px; }
.asset-search { display: grid; grid-template-columns: 1fr auto; width: 100%; border: 1px solid var(--ink); }
.asset-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; padding: 19px 19px; color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: -.025em; }
.asset-search input::placeholder { color: #737373; opacity: 1; }
.asset-search input:focus-visible, .primary-button:focus-visible, .listing-action:focus-visible, .quiet-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.primary-button { min-height: 61px; border: 0; border-left: 1px solid var(--ink); padding: 0 23px; background: var(--gold); color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .04em; transition: background-color .22s ease, transform .22s ease; white-space: nowrap; }
.primary-button:hover { background: var(--gold-deep); transform: translateY(-1px); }
.primary-button span { margin-left: 8px; font-size: 14px; }
.trending-assets { position: absolute; z-index: 10; top: calc(100% - 1px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--ink); background: var(--white); text-align: left; }
.trending-assets[hidden] { display: none; }
.trending-title { margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .11em; }
.trending-option { width: 100%; display: grid; grid-template-columns: 145px minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 0; border-bottom: 1px solid var(--faint); padding: 15px 16px; background: var(--white); color: var(--ink); cursor: pointer; font-family: var(--mono); text-align: left; transition: background-color .18s ease; }
.trending-option:last-child { border-bottom: 0; }.trending-option:hover, .trending-option:focus-visible { background: #f3f2ed; }.trending-option:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--ink); outline-offset: -2px; }
.trending-symbol { color: var(--muted); font-size: 9px; letter-spacing: .06em; }.trending-details { min-width: 0; }.trending-name { display: block; overflow: hidden; font-size: 11px; font-weight: 500; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }.trending-meta { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }.trending-quote { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.035em; white-space: nowrap; }.asset-search-empty, .asset-search-feedback { margin: 0; padding: 16px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .09em; line-height: 1.5; }.asset-search-feedback { border-top: 1px solid var(--faint); color: var(--ink); }
.form-caption { margin: 13px 0 0; color: var(--muted); }
.site-footer { min-height: 57px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4.1vw, 72px); border-top: 1px solid var(--ink); color: var(--muted); }
.site-footer p { margin: 0; }

/* Terminal */
.terminal-shell { max-width: 1540px; margin: 0 auto; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.terminal-masthead { padding-left: clamp(20px, 4vw, 56px); padding-right: clamp(20px, 4vw, 56px); }
.terminal-titlebar { min-height: 54px; padding: 0 clamp(20px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); color: var(--muted); }
.terminal-status { margin: 0; padding: 11px clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--ink); background: #f3f2ed; color: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .075em; line-height: 1.45; }.terminal-status[hidden] { display: none; }
.crumb span { margin: 0 7px; color: #9a9a9a; }.crumb strong { color: var(--ink); font-weight: 600; }.record-state { display: flex; align-items: center; gap: 7px; }
.asset-identity { display: grid; grid-template-columns: minmax(370px, 1.06fr) minmax(360px, .94fr); border-bottom: 1px solid var(--ink); }
.master-image-frame { min-height: 495px; margin: 0; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--ink); background: #fff; }
.master-image-frame img { width: 82%; height: 82%; object-fit: contain; filter: grayscale(1) contrast(1.18); mix-blend-mode: multiply; transform: scale(1.08); }
.master-image-frame.is-empty::after { content: 'LIVE IMAGE UNAVAILABLE'; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .11em; }.master-image-frame.is-empty img { display: none; }
.figure-label { position: absolute; z-index: 1; top: 20px; left: clamp(20px, 3vw, 38px); right: clamp(20px, 3vw, 38px); display: flex; justify-content: space-between; }
.master-image-frame figcaption { position: absolute; bottom: 20px; left: clamp(20px, 3vw, 38px); color: var(--muted); }
.asset-overview { padding: clamp(34px, 5vw, 67px) clamp(24px, 4.3vw, 61px); display: flex; flex-direction: column; }
.asset-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; color: var(--muted); }
.confidence-badge { border: 1px solid var(--ink); padding: 4px 7px; color: var(--ink); font-size: 9px; letter-spacing: .08em; }
.asset-overview h1 { max-width: 500px; margin-bottom: 12px; font-family: var(--serif); font-size: clamp(38px, 4vw, 59px); font-weight: 500; letter-spacing: -.065em; line-height: .98; }
.asset-descriptor { margin-bottom: clamp(35px, 5vw, 55px); color: var(--muted); font-size: 11px; letter-spacing: .035em; }
.value-block { padding: 21px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.value-block .eyebrow { margin-bottom: 9px; }.value-block .eyebrow span { float: right; }
.value-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.live-value { margin: 0; font-family: var(--serif); font-size: clamp(52px, 5vw, 72px); font-weight: 600; letter-spacing: -.07em; line-height: .9; }
.value-change { margin: 0 0 5px; font-size: 13px; letter-spacing: -.02em; white-space: nowrap; }.value-change span { font-size: 11px; }.value-change small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-align: right; }.positive { color: var(--green); }.negative { color: var(--red); }
.as-of { margin: 13px 0 0; color: var(--muted); }
.pricing-note { display: flex; gap: 10px; margin-top: auto; padding-top: 25px; color: var(--muted); }.pricing-note span { color: var(--ink); }.pricing-note p { max-width: 315px; margin: 0; font-family: var(--serif); font-size: 14px; font-style: italic; line-height: 1.42; }
.kpi-bar { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }.kpi { min-height: 145px; padding: 27px clamp(20px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; }.kpi + .kpi { border-left: 1px solid var(--ink); }.kpi-label, .kpi-detail { color: var(--muted); font-size: 10px; letter-spacing: .09em; }.kpi-value { margin: 12px 0; font-family: var(--serif); font-size: 31px; font-weight: 600; letter-spacing: -.05em; }
.trend-section, .listings-section { padding: clamp(46px, 7vw, 100px) clamp(20px, 4vw, 56px); }.trend-section { border-bottom: 1px solid var(--ink); }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 27px; }.section-heading .eyebrow { margin-bottom: 10px; }.section-heading h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(31px, 3.5vw, 46px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }.legend { display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }.legend-line { width: 25px; height: 2px; background: var(--ink); display: inline-block; }
.chart-card { position: relative; border: 1px solid var(--ink); padding: 32px 24px 17px; }.chart-scale-note { position: absolute; top: 16px; left: 24px; color: var(--muted); }.chart-mount { min-height: 330px; padding-top: 18px; }.chart-mount svg { display: block; width: 100%; height: 318px; overflow: visible; }.chart-empty { min-height: 275px; display: grid; place-items: center; margin: 0; padding: 42px; color: var(--muted); font-family: var(--serif); font-size: 18px; font-style: italic; text-align: center; }.chart-grid { stroke: #deded9; stroke-width: 1; }.chart-grid--strong { stroke: #a7a7a2; }.chart-axis-label, .chart-month-label { fill: #6b6b69; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }.chart-value-label { fill: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 600; }.chart-area { fill: url(#areaGradient); }.chart-line { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }.chart-dot { fill: var(--white); stroke: var(--ink); stroke-width: 2; }.chart-last-dot { fill: var(--ink); }.chart-tooltip { fill: var(--white); stroke: var(--ink); stroke-width: 1; }.chart-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid var(--faint); color: var(--muted); }.chart-footer span:last-child { color: var(--green); }
.listing-heading { margin-bottom: 30px; }.listing-count { margin: 0; color: var(--muted); }.listing-count strong { color: var(--ink); font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -.03em; }.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }.listing-empty { grid-column: 1 / -1; margin: 0; padding: 48px 20px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--muted); font-family: var(--serif); font-size: 18px; font-style: italic; text-align: center; }.listing-card { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }.listing-thumb { height: 230px; overflow: hidden; border-bottom: 1px solid var(--ink); background: #fff; }.listing-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; transition: transform .35s ease; }.listing-image-empty { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 9px; letter-spacing: .11em; }.listing-card:hover .listing-thumb img { transform: scale(1.035); }.listing-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }.listing-topline, .listing-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.listing-platform { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: -.03em; }.listing-condition { margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-align: right; }.listing-price { margin: 23px 0 3px; font-family: var(--serif); font-size: 33px; font-weight: 600; letter-spacing: -.055em; }.listing-delta { margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .04em; }.listing-delta.below { color: var(--green); }.listing-delta.above { color: var(--red); }.listing-meta { margin: 25px 0 0; color: var(--muted); }.listing-action { width: 100%; display: block; margin-top: 17px; padding: 12px 13px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .095em; text-align: left; text-decoration: none; transition: background .2s ease, color .2s ease; }.listing-action:hover { background: var(--ink); color: var(--white); }.listing-action--unavailable { cursor: default; opacity: .55; }.listing-action--unavailable:hover { background: transparent; color: var(--ink); }.listing-action span { float: right; }.terminal-footer { margin-top: auto; }.prototype-toast { position: fixed; z-index: 5; bottom: 20px; left: 50%; max-width: calc(100vw - 32px); padding: 12px 16px; background: var(--ink); color: var(--white); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease; }.prototype-toast.visible { opacity: 1; transform: translate(-50%, 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; }

@media (max-width: 780px) {
  .masthead { height: 74px; }
  .masthead-meta { display: none; }
  .ticker { grid-template-columns: 1fr; height: 39px; }
  .ticker-label { display: none; }
  .index-main { min-height: calc(100vh - 170px); display: block; }
  .index-aside { display: none; }
  .search-stage { min-height: calc(100vh - 170px); margin: 0 auto; padding: 52px 22px 54px; }
  .heritage-mark--compact { width: 164px; margin-bottom: 23px; }
  .search-stage h1 { font-size: clamp(41px, 11vw, 55px); }
  .hero-support { margin-bottom: 38px; font-size: 15px; }
  .asset-search { grid-template-columns: 1fr; }
  .asset-search input { min-height: 62px; padding: 17px 16px; font-size: 11px; line-height: 1.45; }
  .primary-button { min-height: 55px; border-top: 1px solid var(--ink); border-left: 0; }
  .trending-option { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 14px 15px; }.trending-symbol { grid-column: 1; grid-row: 1; }.trending-details { grid-column: 1; grid-row: 2; }.trending-quote { grid-column: 2; grid-row: 1 / 3; }
  .site-footer { min-height: 54px; padding: 14px 20px; gap: 12px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .terminal-nav { font-size: 9px; }
  .terminal-nav .nav-divider, .terminal-nav > span:last-child { display: none; }
  .terminal-titlebar { min-height: 48px; padding: 0 20px; }
  .record-state { display: none; }
  .crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .asset-identity { grid-template-columns: 1fr; }
  .master-image-frame { min-height: 370px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .master-image-frame img { width: 87%; height: 87%; }
  .asset-overview { padding: 36px 20px 31px; }
  .asset-overview h1 { font-size: 45px; }
  .asset-descriptor { margin-bottom: 36px; }
  .live-value { font-size: 58px; }
  .kpi-bar { grid-template-columns: 1fr; }
  .kpi { min-height: 110px; padding: 20px; }
  .kpi + .kpi { border-top: 1px solid var(--ink); border-left: 0; }
  .kpi-value { margin: 7px 0; }
  .trend-section, .listings-section { padding: 53px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .legend { font-size: 9px; }
  .chart-card { margin: 0 -1px; padding: 31px 10px 15px; }
  .chart-scale-note { left: 10px; }
  .chart-mount { min-height: 265px; overflow-x: auto; }
  .chart-mount svg { min-width: 610px; height: 260px; }
  .chart-footer { font-size: 9px; }
  .chart-footer span:first-child { max-width: 155px; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-thumb { height: 260px; }
  .listing-content { padding: 20px; }
  .terminal-footer { margin-top: 0; }
}

@media (min-width: 781px) and (max-width: 1040px) { .asset-identity { grid-template-columns: minmax(320px, 1fr) minmax(300px, 1fr); }.master-image-frame { min-height: 440px; }.asset-overview { padding: 43px 34px; }.listing-thumb { height: 185px; } }
