:root {
  --stone-0: #f2f0ea;
  --stone-1: #e9e6de;
  --stone-2: #dcd9d1;
  --stone-3: #c6c7c5;
  --ink: #131212;
  --ink-2: #2b2b2b;
  --muted: #6f6e6b;
  --accent: #7a6418;
  --accent-soft: #fbf1c6;
  --live: #17803f;
  --live-soft: #d8ecdf;
  --plan: #8a6a12;
  --plan-soft: #f1e6c6;
  --dark: #141416;
  --dark-2: #222226;

  --font-display: 'Switzer', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --sand: #f6e189;
  --sand-2: #f1d567;
  --sand-line: #dcc25a;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);

  --radius: 0px;
  --gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--stone-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--stone-0) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-2);
}
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 4px;
  background: linear-gradient(135deg, var(--ink) 0 50%, var(--accent) 50% 100%);
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand { align-items: baseline; }
.brand-mark { align-self: center; }
.brand-sub { font-size: var(--text-sm); color: var(--muted); font-weight: 500; white-space: nowrap; }
.footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--accent); }
.edition { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; font-weight: 500; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) 2rem; }
.eyebrow {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .16em;
  font-weight: 700; color: var(--accent); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-2xl); letter-spacing: -0.025em; max-width: 15ch;
}
.lede { margin-top: 1rem; max-width: 56ch; font-size: 1.125rem; color: var(--ink-2); }

.kpis {
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid var(--ink);
}
.kpi { padding: 1.1rem 1.1rem 1.2rem 0; border-right: 1px solid var(--stone-2); display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.kpi + .kpi { padding-left: 1.1rem; }
.kpi:last-child { border-right: 0; }
.kpi-label { font-size: var(--text-sm); color: var(--ink-2); font-weight: 500; line-height: 1.35; min-height: 2.7em; }
.kpi-value {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl);
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em;
}
.kpi-delta { font-size: var(--text-xs); color: var(--live); font-weight: 700; min-height: 1.2em; }
.kpi-src { font-size: var(--text-xs); color: var(--muted); }
.kpi-src a { color: var(--muted); }
.kpi-src a:hover { color: var(--accent); }
.kpi.is-feature .kpi-value { color: var(--accent); }

/* Ahead band */
.band { margin-block: 1rem 0; }
.ahead {
  background: var(--ink); color: var(--stone-0);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; align-items: center;
}
.ahead h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.015em; }
.ahead-copy p { margin-top: .75rem; color: #bdbab2; font-size: var(--text-sm); }
.ahead-copy p a { color: #e8e5de; }
.ahead-viz { display: flex; flex-direction: column; gap: .9rem; }
.f-row { display: grid; grid-template-columns: 9.5rem 1fr 6.5rem; gap: .9rem; align-items: center; }
.f-who { font-weight: 700; font-size: var(--text-sm); line-height: 1.25; }
.f-who span { display: block; font-weight: 400; color: #9d9a92; font-size: var(--text-xs); }
.f-track { position: relative; height: 14px; background: var(--dark-2); border-radius: 99px; }
.f-bar { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); min-width: 6px; }
.f-bar.range { background: repeating-linear-gradient(90deg, var(--accent) 0 6px, #e87b5a 6px 12px); }
.f-val { font-family: var(--font-display); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.f-val a { text-decoration: none; }
.f-scale { display: flex; justify-content: space-between; font-size: var(--text-xs); color: #8a877f; margin-left: 10.4rem; margin-right: 7.4rem; }

/* Sections */
.section { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.section-head { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.015em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.panel {
  background: #fff; border: 1px solid var(--stone-2); border-radius: var(--radius);
  padding: 1.4rem;
}
.panel-wide { margin-top: var(--gap); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.panel-head h3 { font-size: var(--text-lg); font-weight: 700; }
.src { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
.src:hover { color: var(--accent); }

.bars { display: flex; flex-direction: column; gap: .7rem; }
.bar-row { display: grid; grid-template-columns: 11rem 1fr 4.2rem; gap: .8rem; align-items: center; font-size: var(--text-sm); }
.bar-row a { text-decoration: none; }
.bar-row a:hover { color: var(--accent); }
.bar-track { height: 10px; background: var(--stone-1); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ink); border-radius: 99px; width: 0; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.bar-row:first-child .bar-fill { background: var(--accent); }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.chart-box { position: relative; height: 280px; }
.chart-foot { margin-top: .75rem; }
.chart-foot a { color: var(--muted); }

.live-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--text-xs); font-weight: 700; padding: .3rem .65rem;
  border-radius: 99px; background: var(--stone-1); color: var(--muted); white-space: nowrap;
}
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-pill.is-live { background: var(--live-soft); color: var(--live); }
.live-pill.is-live .dot { animation: pulse 1.8s ease-in-out infinite; }
.live-pill.is-snap { background: var(--plan-soft); color: var(--plan); }
.live-pill.dark { background: var(--dark-2); color: #a9a69e; }
.live-pill.dark.is-live { background: #173526; color: #7fd3a6; }
.live-pill.dark.is-snap { background: #3a3015; color: #e2c46f; }
@keyframes pulse { 50% { opacity: .35; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip {
  font: inherit; font-size: var(--text-sm); font-weight: 500;
  padding: .4rem .9rem; border-radius: 99px; cursor: pointer;
  background: transparent; border: 1px solid var(--stone-3); color: var(--ink-2);
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--stone-0); border-color: var(--ink); }
.chip:focus-visible, .btn:focus-visible, .toggle input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone-2); }
.move {
  display: grid; grid-template-columns: 7.5rem 6.5rem 13rem 1fr; gap: 1rem; align-items: baseline;
  padding: .95rem 0; border-bottom: 1px solid var(--stone-2);
}
.move-date { font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.status {
  justify-self: start; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .2rem .55rem; border-radius: 6px;
}
.status.live { background: var(--live-soft); color: var(--live); }
.status.planned { background: var(--plan-soft); color: var(--plan); }
.move-who { font-weight: 700; }
.move-who span { display: block; font-weight: 400; font-size: var(--text-xs); color: var(--muted); }
.move-what a { text-decoration: none; }
.move-what a:hover { color: var(--accent); text-decoration: underline; }
.move.is-today { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }

/* News */
.news-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: var(--text-sm); font-weight: 500; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { width: 38px; height: 22px; border-radius: 99px; background: var(--stone-3); position: relative; transition: background .2s; flex: none; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }
.internal { font-style: normal; font-size: var(--text-xs); font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: .1rem .45rem; border-radius: 5px; margin-left: .25rem; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.story {
  background: #fff; border: 1px solid var(--stone-2); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem;
}
.story.is-lead { grid-column: 1 / -1; border-color: var(--ink); }
.story-meta { display: flex; align-items: center; gap: .6rem; font-size: var(--text-xs); color: var(--muted); flex-wrap: wrap; }
.tag { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.heat { display: inline-flex; gap: 3px; margin-left: auto; align-items: center; }
.heat i { width: 6px; height: 12px; border-radius: 2px; background: var(--stone-2); display: block; }
.heat i.on { background: var(--accent); }
.story h3 { font-size: var(--text-lg); font-weight: 700; line-height: 1.25; }
.story.is-lead h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.015em; max-width: 30ch; }
.story-summary { color: var(--ink-2); font-size: var(--text-sm); }
.story-sources { font-size: var(--text-xs); color: var(--muted); display: flex; gap: .35rem .9rem; flex-wrap: wrap; }
.story-sources a { color: var(--ink-2); font-weight: 500; }
.story-sources a:hover { color: var(--accent); }

.tp { display: none; border-top: 1px dashed var(--stone-3); padding-top: .9rem; flex-direction: column; gap: .7rem; }
.show-tp .tp { display: flex; }
.tp-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); }
.tp-text { font-size: var(--text-sm); }
.tp-rules { font-size: var(--text-sm); background: var(--stone-0); border-left: 3px solid var(--ink); padding: .6rem .8rem; border-radius: 0 8px 8px 0; }
.tp-flag { font-size: var(--text-xs); color: var(--plan); font-weight: 700; }
.tp-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn {
  font: inherit; font-size: var(--text-xs); font-weight: 700; cursor: pointer;
  padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--stone-3); background: #fff; color: var(--ink);
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--stone-3); border-radius: var(--radius); }

/* Concrete */
.concrete {
  background: var(--dark); color: var(--stone-0); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.eyebrow.light { color: #f08a68; }
.concrete h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.015em; max-width: 20ch; }
.concrete-copy > p { margin-top: 1rem; color: #c9c6be; max-width: 48ch; }
.concrete-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; border-top: 1px solid #333338; padding-top: 1.25rem; }
.cs-value { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.cs-label { font-size: var(--text-xs); color: #a9a69e; }
.light-muted { color: #9d9a92; margin-top: 1rem; }
.light-muted a { color: #c9c6be; }
.concrete-side { display: flex; flex-direction: column; gap: 1rem; }
.tvl-card { background: var(--dark-2); border-radius: var(--radius); padding: 1.25rem; }
.tvl-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tvl-top .light-muted { margin: 0; }
.tvl-value { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); margin-top: .4rem; font-variant-numeric: tabular-nums; }
.spark-box { position: relative; height: 90px; margin-top: .5rem; }
.tvl-card .light-muted { margin-top: .6rem; font-size: var(--text-xs); }
.cases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cases li { padding: .8rem 0; border-bottom: 1px solid #2c2c31; font-size: var(--text-sm); color: #c9c6be; }
.cases li strong { color: var(--stone-0); display: block; font-size: var(--text-base); }
.cases .light-muted { border: 0; font-size: var(--text-xs); padding-top: .5rem; margin: 0; }

/* Method */
.method h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); margin-bottom: 1rem; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); font-size: var(--text-sm); color: var(--ink-2); }
.disclaimer { margin-top: 1.75rem; font-size: var(--text-xs); color: var(--muted); max-width: 90ch; }

.footer { margin-top: 4rem; border-top: 1px solid var(--stone-2); }
.footer-inner { display: flex; justify-content: space-between; padding-block: 1.5rem; font-size: var(--text-xs); color: var(--muted); gap: 1rem; flex-wrap: wrap; }

.toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translate(-50%, 1rem); opacity: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; font-size: var(--text-sm);
  transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(3) { border-right: 0; }
  .kpi:nth-child(4) { padding-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--stone-2); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .edition { margin-left: auto; }
  .ahead { grid-template-columns: 1fr; }
  .grid-2, .news-grid, .concrete, .method-grid { grid-template-columns: 1fr; }
  .move { grid-template-columns: 6.5rem 1fr; gap: .3rem 1rem; }
  .move-who, .move-what { grid-column: 1 / -1; }
  .move .status { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 1rem .75rem 1rem 0 !important; border-right: 0; border-top: 1px solid var(--stone-2); }
  .kpi:nth-child(odd) { padding-right: .75rem !important; border-right: 1px solid var(--stone-2); }
  .kpi:nth-child(even) { padding-left: .75rem !important; }
  .kpi:first-child { grid-column: 1 / -1; border-right: 0; border-top: 0; }
  .kpi:first-child + .kpi { padding-left: 0 !important; padding-right: .75rem !important; border-right: 1px solid var(--stone-2); }
  .kpi:first-child + .kpi + .kpi { padding-left: .75rem !important; border-right: 0; }
  .kpi:nth-child(4) { padding-left: 0 !important; border-right: 1px solid var(--stone-2); padding-right: .75rem !important; }
  .kpi:nth-child(5) { padding-left: .75rem !important; }
  .kpi-label { min-height: 0; }
  .f-row { grid-template-columns: 1fr 5.5rem; }
  .f-track { grid-column: 1 / -1; grid-row: 2; }
  .f-scale { margin: 0; }
  .bar-row { grid-template-columns: 1fr 4rem; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .concrete-stats { grid-template-columns: 1fr 1fr; }
  .chart-box { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* min-width guards for grid children */
.concrete > *, .grid-2 > *, .news-grid > *, .ahead > *, .panel, .story { min-width: 0; }
@media (max-width: 900px) {
  .grid-2, .news-grid, .concrete, .method-grid { grid-template-columns: minmax(0, 1fr); }
}

.publisher { padding-block: 2.5rem 0; }
.publisher p { border-top: 1px solid var(--stone-2); padding-top: 1.5rem; color: var(--muted); font-size: var(--text-sm); max-width: 70ch; }
.publisher strong { color: var(--ink-2); font-weight: 700; }
.publisher a { color: var(--ink-2); text-underline-offset: 2px; }
.publisher a:hover { color: var(--accent); }
.brand-name { white-space: nowrap; }
@media (max-width: 640px) { .topbar .edition { display: none; } .brand-sub { font-size: var(--text-xs); } }

/* Newsletter */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup input[type=email] { font: inherit; font-size: var(--text-base); color: var(--ink); background: #fff; border: 1px solid var(--stone-3); border-radius: 10px; padding: .75rem .9rem; min-width: 0; }
.signup input[type=email]:focus-visible, .signup button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.signup button { font: inherit; font-weight: 700; font-size: var(--text-sm); color: #fff; background: var(--ink); border: 0; border-radius: 10px; padding: .8rem 1.2rem; cursor: pointer; white-space: nowrap; transition: background .15s; }
.signup button:hover { background: var(--accent); }
.signup button[disabled] { opacity: .6; cursor: progress; }
.signup-msg { font-size: var(--text-sm); color: var(--muted); margin: 0; }
.signup.is-ok .signup-msg { color: var(--live); font-weight: 600; }
.signup.is-err .signup-msg { color: #b3261e; font-weight: 600; }
.signup.is-err input[type=email] { border-color: #b3261e; }
.signup--inline { display: grid; grid-template-columns: minmax(0, 22rem) auto; gap: .5rem; margin-top: 1.5rem; max-width: 36rem; }
.signup--inline .signup-msg { grid-column: 1 / -1; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: calc(var(--gap) * 2); align-items: start; margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.5rem, 4vw, 3rem); background: var(--stone-1); border-radius: var(--radius); }
.nl-copy h2 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; margin: .25rem 0 .75rem; }
.nl-copy > p { color: var(--ink-2); max-width: 52ch; margin: 0; }
.nl-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .6rem; }
.nl-list li { font-size: var(--text-sm); color: var(--ink-2); padding-left: 1rem; border-left: 2px solid var(--accent); }
.nl-list strong { display: block; color: var(--ink); font-size: var(--text-base); }
.nl-sample { font-size: var(--text-sm); font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.nl-sample:hover { color: var(--accent); }
.signup--card { display: grid; gap: .6rem; background: #fff; border: 1px solid var(--stone-2); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); min-width: 0; }
.signup--card label { font-size: var(--text-sm); font-weight: 600; }
.signup--card button { margin-top: .25rem; padding-block: .9rem; }
.fine { font-size: var(--text-xs); color: var(--muted); margin: 0; }
.nav a.nav-cta { color: #fff; background: var(--ink); padding: .45rem .8rem; border-radius: 8px; }
.nav a.nav-cta:hover { background: var(--accent); color: #fff; }
@media (max-width: 760px) {
  .newsletter { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .signup--inline { grid-template-columns: minmax(0, 1fr); }
}
.m-cta { display: none; }
@media (max-width: 640px) {
  .m-cta { display: inline-block; margin-left: auto; font-size: var(--text-sm); font-weight: 700; color: #fff; background: var(--ink); text-decoration: none; padding: .45rem .8rem; border-radius: 8px; }
}

/* ===== Concrete Foundation alignment ===== */
/* Wordmark: boxed letters, echoing the Foundation's lettered grid */
.brand { align-items: center; gap: .7rem; }
.wm { display: inline-flex; font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--ink); }
.wm i { font-style: normal; display: inline-grid; place-items: center; width: 15px; height: 20px; border: 1px solid var(--ink); margin-left: -1px; }
.wm i:first-child { margin-left: 0; }
.wm i.gap { width: 8px; border-left: 0; border-right: 0; }
.wm i.dot { width: 8px; background: var(--ink); }
.brand-sub { font-size: var(--text-sm); color: var(--ink-2); font-weight: 400; }
.topbar { background: color-mix(in srgb, var(--stone-0) 92%, transparent); border-bottom-color: var(--stone-3); }
.nav a { font-weight: 400; color: var(--ink-2); }
.nav a:hover, .publisher a:hover, .src:hover, .kpi-src a:hover, .story-sources a:hover, .bar-row a:hover, .move-what a:hover, .nl-sample:hover { color: var(--ink); text-decoration: underline; }
.edition { font-family: var(--font-mono); font-weight: 400; font-size: 11px; }

/* Type: medium-weight headlines, mono labels */
.hero h1 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.0; }
.section-head h2, .ahead h2, .nl-copy h2, .method h2, .story.is-lead h3 { font-weight: 500; letter-spacing: -0.02em; }
.story h3, .panel-head h3 { font-weight: 500; }
.eyebrow, .tag, .tp-label, .status, .kpi-src, .src, .move-date, .story-meta, .live-pill, .f-scale, .fine, .chart-foot {
  font-family: var(--font-mono); letter-spacing: .02em;
}
.eyebrow { color: var(--ink-2); font-weight: 400; letter-spacing: .08em; font-size: 12px; }
.tag { font-weight: 500; }
.kpis { border-top: 1px solid var(--ink); }
.kpi-value { font-weight: 500; letter-spacing: -0.02em; }
.kpi.is-feature .kpi-value { color: var(--ink); }
.kpi.is-feature { background: linear-gradient(var(--sand), var(--sand)) left top / 100% 3px no-repeat; }
.kpi-delta { font-weight: 500; }
.bar-val, .f-val, .move-who { font-weight: 500; }

/* Square, quiet surfaces */
.panel, .story, .signup--card, .empty, .tp-rules, .btn, .chip, .status, .live-pill, .toast, .internal,
.signup input[type=email], .signup button, .nav a.nav-cta, .m-cta, .bar-track, .bar-fill, .f-track, .f-bar, .heat i, .toggle-track { border-radius: 0 !important; }
.toggle-thumb { border-radius: 0; }
.panel, .story { border-color: transparent; }
.story.is-lead { border-color: var(--ink); }
.chip { border-color: var(--stone-3); font-weight: 400; }
.chip.is-on { background: var(--ink); border-color: var(--ink); }

/* Forecast band goes light, like the Foundation's white rows */
.ahead { background: #fff; color: var(--ink); }
.ahead-copy p { color: var(--ink-2); }
.ahead-copy p a { color: var(--ink); }
.f-who span, .f-scale { color: var(--muted); }
.f-track { background: var(--stone-1); }
.f-bar { background: var(--ink); }
.f-bar.range { background: repeating-linear-gradient(90deg, var(--sand-2) 0 6px, var(--sand) 6px 12px); outline: 1px solid var(--sand-line); }
.live-pill.dark { background: var(--stone-1); color: var(--muted); }
.live-pill.dark.is-live { background: var(--live-soft); color: var(--live); }
.live-pill.dark.is-snap { background: var(--plan-soft); color: var(--plan); }
.bar-row:first-child .bar-fill { background: var(--sand-2); box-shadow: inset 0 0 0 1px var(--sand-line); }
.heat i.on { background: var(--ink); }
.move.is-today { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.toggle input:checked + .toggle-track { background: var(--ink); }
.internal { color: var(--plan); background: var(--plan-soft); }
.tp-label { color: var(--plan); }

/* Buttons: sandstone primary, outline secondary (Foundation's Stake / Connect Wallet) */
.signup button { background: var(--sand); color: var(--ink); border: 1px solid var(--sand-line); font-weight: 700; }
.signup button:hover { background: var(--sand-2); }
.btn.primary { background: var(--sand); color: var(--ink); border-color: var(--sand-line); }
.nav a.nav-cta, .m-cta { background: transparent !important; color: var(--ink-2) !important; border: 1px solid var(--stone-3); font-weight: 400 !important; }
.nav a.nav-cta:hover, .m-cta:hover { border-color: var(--ink); color: var(--ink) !important; text-decoration: none; }
.signup input[type=email] { border-color: var(--stone-3); }
.signup input[type=email]:focus-visible, .signup button:focus-visible, .chip:focus-visible, .btn:focus-visible { outline-color: var(--ink); }

/* Newsletter band */
.newsletter { background: #fff; }
.nl-list li { border-left-color: var(--sand-2); }
.signup--card { background: var(--stone-0); border: 0; }
.nl-sample { font-weight: 500; }

@media (max-width: 640px) {
  .wm { font-size: 10px; }
  .wm i { width: 13px; height: 18px; }
  .wm i.gap, .wm i.dot { width: 6px; }
}
@media (max-width: 640px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand-sub { font-size: 11px; line-height: 1; }
}

.hero h1 { max-width: 19ch; }
.kpi-src { font-size: 11px; }
.chart-foot { font-size: 12px; }
.wm { font-size: 12px; }
.wm i { width: 16px; height: 22px; }
@media (max-width: 640px) { .wm { font-size: 10px; } .wm i { width: 13px; height: 18px; } }

/* Typographic wordmark (replaces boxed letters) */
.brand { align-items: baseline; gap: .6rem; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.brand-sub { font-size: var(--text-sm); color: var(--muted); font-weight: 400; }
@media (max-width: 640px) {
  .brand { flex-direction: row; align-items: baseline; gap: .45rem; }
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: 12px; line-height: 1; }
}
@media (max-width: 360px) {
  .topbar-inner { gap: .75rem; }
  .m-cta { padding: .4rem .6rem; font-size: 13px; }
  .brand-name { font-size: 1.05rem; }
}

/* Wordmark + "By [Concrete logo]" stacked */
.brand { flex-direction: column; align-items: flex-start; gap: 5px; }
.brand-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1; color: var(--ink); opacity: .55; }
.brand-logo { display: block; height: 10px; width: auto; }
.brand:hover .brand-sub { opacity: .8; }
@media (max-width: 640px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .brand-sub { font-size: 10px; }
  .brand-logo { height: 9px; }
}
.brand-sub { align-items: flex-end; }
.brand-logo { height: 11px; margin-bottom: -1px; }
@media (max-width: 640px) { .brand-logo { height: 10px; } }

/* Header: separate brand links + top-right navigation */
html { scroll-padding-top: 76px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.brand-name { text-decoration: none; }
a.brand-sub { text-decoration: none; transition: opacity .15s ease; }
a.brand-sub:hover, a.brand-sub:focus-visible { opacity: .9; }
.brand:hover .brand-sub { opacity: .55; }
.brand .brand-sub:hover { opacity: .9; }
.topbar-inner { position: relative; }
.nav { margin-left: auto; }
.nav a.is-active:not(.nav-cta) { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.eyebrow .edition { color: var(--muted); margin-left: .6rem; text-transform: none; letter-spacing: 0; }
.eyebrow .edition::before { content: "/ "; }

.menu-btn { display: none; margin-left: auto; align-items: center; gap: .6rem; background: transparent; border: 1px solid var(--stone-3); border-radius: 0; color: var(--ink); font: 400 13px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding: .55rem .7rem; cursor: pointer; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--ink); }
.menu-icon { display: inline-flex; flex-direction: column; gap: 4px; width: 14px; }
.menu-icon i { display: block; height: 1px; background: currentColor; transition: transform .2s ease; }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.m-cta { display: none !important; }

.menu-panel { border-top: 1px solid var(--stone-3); border-bottom: 1px solid var(--stone-3); background: var(--stone-0); }
.menu-panel[hidden] { display: none; }
.menu-list { display: flex; flex-direction: column; padding: .5rem 0; }
.menu-list a { display: flex; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--stone-2); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.menu-list a:last-child { border-bottom: 0; }
.menu-list a:hover, .menu-list a.is-active { background: #fff; padding-left: .5rem; margin: 0 -.5rem; padding-right: .5rem; }
.menu-num { font: 400 11px/1 var(--font-mono); color: var(--muted); width: 1.6rem; }
.menu-foot { display: flex; align-items: center; gap: .45rem; padding: .9rem 0 1.1rem; font: 400 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); opacity: .55; text-decoration: none; border-top: 1px solid var(--stone-3); }
.menu-foot img { height: 10px; width: auto; }
.menu-foot:hover { opacity: .9; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
.topbar { position: sticky; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; box-shadow: 0 12px 24px -16px rgba(19,18,18,.25); max-height: calc(100vh - 60px); overflow-y: auto; }

.kpi-foot { font-size: var(--text-xs); color: var(--muted); line-height: 1.45; margin: .35rem 0 .25rem; max-width: 34ch; }
.kpi-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.kpi-foot a:hover { color: var(--accent); }
.fn-mark { font-size: .4em; vertical-align: super; margin-left: .1em; text-decoration: none; color: var(--muted); font-family: var(--font-body, inherit); }
.footnote { margin-top: 1.25rem; max-width: 75ch; padding-top: 1rem; border-top: 1px solid var(--border, rgba(0,0,0,.1)); }
.footnote h3 { font-size: var(--text-sm, .95rem); font-weight: 600; margin: 0 0 .5rem; }
.footnote p { margin: .5rem 0 0; }
