← back to Ventura Corridor

public/chains.html

149 lines

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Ventura Boulevard · chains</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<script>(function(){try{var t=localStorage.getItem('vc-theme');document.documentElement.dataset.theme=(t==='light'||t==='dark')?t:'dark';}catch(e){document.documentElement.dataset.theme='dark';}})();</script>
<link rel="stylesheet" href="/theme.css">
<script src="/theme.js" defer></script>
<style>
  :root {
    --noir: #0a0a0c; --noir-rise: #131316; --ink: #f0ece2;
    --ink-mute: #888475; --metal: #b89968; --metal-glow: #d4b683;
    --rule: #2a2622;
    --serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
  }
  @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@200;300;400;600&family=JetBrains+Mono:wght@200;300;400&display=swap');
  html, body { margin: 0; background: var(--noir); color: var(--ink); font-family: var(--sans); font-weight: 300; }
  * { box-sizing: border-box; }
  header {
    position: sticky; top: 0; z-index: 10;
    background: linear-gradient(180deg, rgba(10,10,12,.97) 70%, rgba(10,10,12,0));
    padding: 22px 40px 16px; border-bottom: 1px solid var(--rule);
    display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  }
  header h1 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; margin: 0; }
  header h1 em { font-style: italic; color: var(--metal); }
  .sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }
  nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
  nav.tabs a { font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
    color: var(--ink-mute); text-decoration: none; padding: 6px 12px; border: 1px solid var(--rule); }
  nav.tabs a.active, nav.tabs a:hover { color: var(--metal); border-color: var(--metal); }
  .hero {
    padding: 60px 40px 40px; text-align: center;
    background: radial-gradient(ellipse at center top, rgba(184,153,104,0.08), transparent 70%);
    border-bottom: 1px solid var(--rule);
  }
  .hero h2 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 44px; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.1; }
  .hero h2 em { color: var(--metal); font-style: normal; }
  .hero p { color: var(--ink-mute); max-width: 660px; margin: 0 auto; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; }
  /* Big-stat band */
  .band { padding: 28px 40px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
  .band .stat { display: flex; flex-direction: column; gap: 6px; }
  .band .stat b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 48px; color: var(--metal); font-variant-numeric: tabular-nums; line-height: 1; }
  .band .stat span { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-mute); }
  .band .stat .sub { font-family: var(--mono); font-size: 9px; letter-spacing: .15em; color: var(--ink-mute); margin-top: 6px; }
  /* Bars */
  .bars { padding: 40px; }
  .bars h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; margin: 0 0 18px; color: var(--ink); }
  .bars h3 em { color: var(--metal); font-style: normal; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; vertical-align: middle; margin-left: 8px; }
  .bar-row { display: grid; grid-template-columns: 220px 1fr 60px; gap: 16px; align-items: center; padding: 6px 0; border-bottom: 1px dotted var(--rule); }
  .bar-row .nm { font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bar-row .meter { background: var(--noir-rise); height: 18px; position: relative; border: 1px solid var(--rule); overflow: hidden; }
  .bar-row .meter > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--rule-hot), var(--metal)); }
  .bar-row.parking .meter > i { background: linear-gradient(90deg, var(--metal), var(--metal-glow)); }
  .bar-row .ct { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--metal); text-align: right; font-variant-numeric: tabular-nums; }
  .bar-row.parking .nm { color: var(--metal-glow); }
  .bar-row .cities { font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--ink-mute); display: block; margin-top: 2px; }
  .bar-row .news-badge { display: inline-block; padding: 1px 6px; border: 1px solid var(--metal-glow); color: var(--metal-glow); font-size: 9px; letter-spacing: .12em; text-decoration: none; vertical-align: middle; margin-left: 4px; }
  .bar-row .news-badge:hover { background: var(--metal-glow); color: var(--noir); }
  footer {
    padding: 24px 40px 40px; border-top: 1px solid var(--rule);
    font-family: var(--serif); font-style: italic; color: var(--ink-mute); font-size: 12px; text-align: center;
  }
</style>
</head>
<body>

<header>
  <div>
    <h1>Ventura <em>Boulevard</em> · chains</h1>
    <div class="sub">duplicate-name analysis · who has the most footprints</div>
  </div>
  <nav class="tabs">
    <a href="/">map</a>
    <a href="/3d.html">3d</a>
    <a href="/timeline.html">timeline</a>
    <a href="/pantone.html">pantone</a>
    <a href="/headlines.html">voices</a>
    <a href="/tongues.html">tongues</a>
    <a href="/chains.html" class="active">chains</a>
    <a href="/atlas.html">atlas</a>
    <a href="/eulogy.html">eulogy</a>
    <span class="theme-toggle-host" style="display:inline-flex;align-items:center;margin-left:6px"></span>
  </nav>
</header>

<section class="hero">
  <h2>Ventura is a <em>parking economy</em>.</h2>
  <p>Group every business by name; sort by location count. The pattern that emerges is unmistakable: it's not coffee, it's not retail, it's not restaurants. The boulevard's most repeated brand is the parking lot.</p>
</section>

<div class="band" id="band">
  <div class="stat"><span>parking brands</span><b id="b-pk">—</b><span class="sub">distinct operators with ≥2 lots</span></div>
  <div class="stat"><span>parking footprints</span><b id="b-pktot">—</b><span class="sub">individual licensed locations</span></div>
  <div class="stat"><span>top brand</span><b id="b-top">—</b><span class="sub" id="b-topname">—</span></div>
  <div class="stat"><span>distinct chains total</span><b id="b-all">—</b><span class="sub">≥2-location names on corridor</span></div>
</div>

<section class="bars">
  <h3>The repeat offenders <em>every chain on the corridor (≥2 locations)</em></h3>
  <div id="bars"></div>
</section>

<footer>From the LA City Business Tax Registrants — every entity that filed a license under the same name. Includes kiosks (KeyMe, Redbox), parking operators with multiple lots, and franchise chains.</footer>

<script>
function escapeHtml(s) { return String(s ?? '').replace(/[&<>"']/g, c => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c])); }
const PARK_RE = /(PARKING|VALET|ABM|LAZ|CURBSTAND|HODES|PROPARK|SP PLUS|ACCESS PARK|EXPERT VALET|UNITED VALET)/i;

fetch('/api/chains').then(r => r.json()).then(d => {
  const rows = d.rows || [];
  const parking = rows.filter(r => PARK_RE.test(r.name));
  const totalParking = parking.reduce((s, r) => s + Number(r.n_locations), 0);
  document.getElementById('b-pk').textContent = parking.length;
  document.getElementById('b-pktot').textContent = totalParking;
  document.getElementById('b-all').textContent = d.count;
  const top = rows[0];
  if (top) {
    document.getElementById('b-top').textContent = top.n_locations;
    document.getElementById('b-topname').textContent = top.name;
  }
  const max = Math.max(...rows.map(r => Number(r.n_locations)));
  const bars = document.getElementById('bars');
  bars.innerHTML = rows.map(r => {
    const isPark = PARK_RE.test(r.name);
    const w = (Number(r.n_locations) / max * 100).toFixed(1);
    const cities = (r.cities || []).slice(0, 4).map(c => c.toLowerCase().replace(/\b\w/g, m => m.toUpperCase())).join(' · ');
    const newsBadge = (r.news_count > 0)
      ? `<a href="/news.html" class="news-badge" title="${r.news_count} scraped news/blog post${r.news_count === 1 ? '' : 's'} across this chain's locations">📰 ${r.news_count}</a>`
      : '';
    return `<div class="bar-row${isPark ? ' parking' : ''}">
      <div>
        <div class="nm">${escapeHtml(r.name)} ${newsBadge}</div>
        <span class="cities">${escapeHtml(cities)}</span>
      </div>
      <div class="meter"><i style="width:${w}%"></i></div>
      <div class="ct">${r.n_locations}</div>
    </div>`;
  }).join('');
}).catch(e => {
  document.getElementById('bars').innerHTML = '<p style="color:var(--ink-mute)">failed to load chains</p>';
});
</script>
</body>
</html>