/* ============================================================
   BikeLabs — style.css (v5 "Telemetry Editorial")
   Dark carbon UI · hairline borders · mono data labels ·
   oversized italic display type. Mobile-first.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0c;
  --bg-raised: #101014;
  --bg-card: #131318;
  --bg-inset: #0d0d10;
  --accent: #ff6b00;
  --accent-hot: #ff3d00;
  --accent-soft: rgba(255, 107, 0, 0.12);
  --text: #ededf0;
  --text-dim: #b9b9c1;
  --text-muted: #82828c;
  --border: #1f1f26;
  --border-strong: #2c2c35;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-site: 1240px;
  --measure: 720px;
  --header-h: 64px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ff8a3d; }

::selection { background: var(--accent); color: #fff; }

/* ---- shared primitives ------------------------------------ */

.wrap {
  max-width: var(--max-site);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* mono micro-label — the "telemetry" voice */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: "// "; opacity: 0.6; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

/* data strip: mono key/value row separated by hairlines */
.data-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.data-strip > span {
  padding: 0 0.9rem;
  border-left: 1px solid var(--border-strong);
}
.data-strip > span:first-child { padding-left: 0; border-left: 0; }
.data-strip b, .data-strip strong { color: var(--text-dim); font-weight: 600; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.wordmark em { font-style: inherit; color: var(--accent); }
.wordmark:hover { color: var(--text); }
.wordmark-sub {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  display: none;
}
@media (min-width: 900px) { .wordmark-sub { display: inline; } }

.main-nav { display: none; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.3rem 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right 0.22s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--accent); }

/* hamburger — pure CSS */
.nav-toggle { display: none; }
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:checked ~ .main-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-raised);
  padding: 1.25rem;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 820px) {
  .hamburger { display: none; }
  .main-nav { display: flex; }
  .nav-toggle:checked ~ .main-nav { display: flex; position: static; flex-direction: row; padding: 0; border: none; }
}

/* ============================================================
   TICKER STRIP
   ============================================================ */
.ticker {
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
}
.ticker-track {
  display: inline-block;
  animation: ticker-scroll 46s linear infinite;
}
.ticker span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 1.6rem;
}
.ticker span::after { content: "+"; color: var(--accent); margin-left: 3.2rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ============================================================
   HOME — FEATURED HERO
   ============================================================ */
.feature-hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
}
.feature-hero-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.5rem;
  display: grid;
  gap: 1.75rem;
  align-items: end;
  position: relative;
}
/* faint blueprint grid behind hero text */
.feature-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 75%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 75%);
}
.feature-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.feature-media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.feature-media:hover img { transform: scale(1.025); }
.feature-media .frame-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
}
.feature-copy { position: relative; }
.feature-copy .kicker { display: block; margin-bottom: 0.9rem; }
.feature-title {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  color: var(--text);
  margin-bottom: 1rem;
}
.feature-title a { color: inherit; }
.feature-title a:hover { color: var(--accent); }
.feature-excerpt {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 1.4rem;
}
.feature-copy .data-strip { margin-bottom: 1.6rem; }

@media (min-width: 900px) {
  .feature-hero-inner {
    grid-template-columns: 7fr 5fr;
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
  }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--accent);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  min-height: 44px;
}
.btn:hover { background: var(--accent-hot); border-color: var(--accent-hot); color: #fff; }
.btn--ghost { background: transparent; color: var(--text-dim); border-color: var(--border-strong); }
.btn--ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

/* ============================================================
   SECTIONS & CARDS
   ============================================================ */
.section {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 3.25rem 1.25rem 0.5rem;
}
.section:last-of-type { padding-bottom: 3rem; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-strong);
  position: relative;
}
.section-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: var(--accent);
}
.section-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: var(--text);
}
.section-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.section-link:hover { color: var(--accent); }

/* grids */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 560px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card-grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 560px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* article card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.article-card a { color: inherit; }

.card-img-wrap {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.article-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-body { padding: 1.1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.card-tag::before { content: "// "; opacity: 0.6; }
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.28;
  letter-spacing: -0.005em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.8rem;
}

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,107,0,0.05) 14px 15px),
    var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.card-img-placeholder span {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.35;
  text-transform: uppercase;
}

/* bento: first card of a .card-grid--bento spans double */
@media (min-width: 900px) {
  .card-grid--bento { grid-template-columns: repeat(4, 1fr); }
  .card-grid--bento > .article-card:first-child { grid-column: span 2; grid-row: span 2; }
  .card-grid--bento > .article-card:first-child .card-title { font-size: 1.5rem; }
  .card-grid--bento > .article-card:first-child .card-excerpt { -webkit-line-clamp: 4; font-size: 0.92rem; }
  .card-grid--bento > .article-card { grid-column: span 2; }
  .card-grid--bento > .article-card:nth-child(n+2) { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .card-grid--bento > .article-card:nth-child(n+2) { grid-column: span 1; }
}

/* ============================================================
   THE LAB — tools
   ============================================================ */
.lab-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
  margin-top: 3.5rem;
  padding: 3.25rem 0;
}
.lab-inner { max-width: var(--max-site); margin: 0 auto; padding: 0 1.25rem; }
.lab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 1.6rem;
}
@media (min-width: 560px) { .lab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lab-grid { grid-template-columns: repeat(4, 1fr); } }

.lab-cell {
  background: var(--bg);
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text);
  transition: background 0.18s;
  position: relative;
}
.lab-cell:hover { background: var(--bg-card); color: var(--text); }
.lab-cell::after {
  content: "→";
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  color: var(--border-strong);
  font-size: 0.95rem;
  transition: color 0.18s, transform 0.18s;
}
.lab-cell:hover::after { color: var(--accent); transform: translateX(3px); }
.lab-cell-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.lab-cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.lab-cell p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   ARTICLE PAGE — single, focused column
   ============================================================ */
.post {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-strong); }

.post-header { margin-bottom: 2rem; }
.post-header .kicker { display: block; margin-bottom: 0.9rem; }
.post-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-size: clamp(1.75rem, 5vw, 2.9rem);
  margin-bottom: 1.25rem;
}
.post-header .data-strip {
  padding-top: 1rem;
  border-top: 1px solid var(--border-strong);
}

.post-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-strong);
  margin-bottom: 2.25rem;
}

.affiliate-disclosure {
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  padding: 0.8rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.article-body { font-size: 1.02rem; color: var(--text-dim); }
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 2.75rem 0 1rem;
  color: var(--text);
  position: relative;
  padding-left: 1.1rem;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  background: var(--accent);
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.08rem, 2.5vw, 1.28rem);
  margin: 2rem 0 0.7rem;
  color: var(--text);
}
.article-body p { margin-bottom: 1.3rem; }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 1.4rem; line-height: 1.7; }
.article-body li { margin-bottom: 0.45rem; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body hr { border: 0; border-top: 1px solid var(--border-strong); margin: 2.5rem 0; }
.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.9rem 1.3rem;
  margin: 1.75rem 0;
  background: var(--bg-card);
  color: var(--text-dim);
}
.article-body img { border: 1px solid var(--border-strong); margin: 1.75rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.9rem; }
.article-body th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--accent);
  background: var(--bg-card);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-strong);
}
.article-body td { padding: 0.6rem 0.9rem; border: 1px solid var(--border); color: var(--text-dim); }

/* byline / author box */
.byline-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  padding: 1.25rem 1.4rem;
  margin-top: 3rem;
}
.byline-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  padding-top: 0.15rem;
}
.byline-box h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.byline-box p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }
.byline-box a { color: var(--accent); }

/* reading progress */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  z-index: 200;
}

/* related */
.related-articles { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-strong); }
.related-articles > h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

/* wide related grid escapes the narrow post column */
.post .related-articles .card-grid { grid-template-columns: 1fr; }
@media (min-width: 560px) { .post .related-articles .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .post .related-articles .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   LISTING PAGES (/reviews/ /bikes/ /culture/ /how-to/ /tools/)
   ============================================================ */
.listing {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}
.listing-hero {
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.listing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 80%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 80%);
}
.listing-hero-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  position: relative;
}
.listing-hero .kicker { display: block; margin-bottom: 0.8rem; }
.listing-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
}
.listing-desc {
  color: var(--text-muted);
  margin-top: 0.9rem;
  max-width: 62ch;
  font-size: 0.98rem;
}
.listing-hero .data-strip { margin-top: 1.4rem; }

/* ============================================================
   STATIC PAGES (about / how-we-test / privacy)
   ============================================================ */
.page-hero {
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
  padding: 3.25rem 1.25rem 2.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}
.page-hero__content { max-width: 760px; margin: 0 auto; position: relative; }
.page-hero .kicker { display: block; margin-bottom: 0.8rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 0.9rem;
}
.page-hero__lead { font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); }

.prose-section { padding: 3.25rem 1.25rem 4rem; }
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--text);
  margin: 2.75rem 0 1rem;
  position: relative;
  padding-left: 1.1rem;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  background: var(--accent);
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin: 1.75rem 0 0.6rem;
}
.prose p { color: var(--text-dim); line-height: 1.75; margin-bottom: 1.2rem; }
.prose ul, .prose ol { color: var(--text-dim); line-height: 1.75; padding-left: 1.4rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.6rem; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }

/* ============================================================
   SHOP / PICKS
   ============================================================ */
.picks-note {
  max-width: var(--measure);
  margin: 0 auto 2.5rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  padding: 1.1rem 1.3rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.picks-note strong { color: var(--text-dim); }

/* ============================================================
   404
   ============================================================ */
.error-page { text-align: center; padding: 5rem 1.25rem; max-width: 640px; margin: 0 auto; }
.error-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(4.5rem, 15vw, 7rem);
  color: var(--accent);
  line-height: 1;
}
.error-page h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 0.75rem 0 1rem;
}
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-inset);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  gap: 2.25rem;
}
.footer-brand .wordmark { font-size: 1.6rem; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.7rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.footer-col nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  color: var(--text-dim);
  font-size: 0.86rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.footer-legal p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.5rem;
  max-width: 90ch;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1rem !important;
}

@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* legacy hooks kept for tool/calculator pages (inline styles) */
.category-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.category-tag::before { content: "// "; opacity: 0.6; }
