/* v4 — v3 spine layout + main site kinetic hero */

.v4-page .v4-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 7px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(6, 4, 3, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.v4-page .v4-ribbon strong { color: var(--copper-pale); font-weight: 500; }
.v4-page .v4-ribbon a { color: var(--copper); transition: color 0.2s; }
.v4-page .v4-ribbon a:hover { color: var(--copper-pale); }
.v4-page .v4-ribbon .sep { opacity: 0.35; }
.v4-page header nav { top: 34px; }
.v4-page.v4-home header nav { top: 0; }
.v4-page .chapter-anchor {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
  pointer-events: none;
}

.v4-page .wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 36px;
  position: relative;
  z-index: 3;
}

/* main site hero */
.v4-page .hero-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 154px 0 90px;
  flex-direction: row;
}
.v4-page.v4-home .hero-main {
  padding-top: 120px;
}
.v4-page .hero-main .hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.4;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 42%, #000 26%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 42%, #000 26%, transparent 76%);
}
.v4-page .hero-main .hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.v4-page .hero-main .pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: rgba(201, 123, 74, 0.05);
  margin-bottom: 38px;
}
.v4-page .hero-main .pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 10px var(--copper);
}
.v4-page .hero-main .pill .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.v4-page .hero-main .kinetic {
  font-size: clamp(42px, 7.6vw, 98px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.3em;
  height: 1.12em;
}
.v4-page .hero-main .kinetic .verb { color: var(--text-dim); transition: opacity 0.28s ease; }
.v4-page .hero-main .kinetic .nounwrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.12em;
}
.v4-page .hero-main .kinetic .noun {
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.v4-page .hero-main .kinetic .noun.out { transform: translateY(-115%); opacity: 0; }
.v4-page .hero-main .kinetic .noun.in-start { transform: translateY(115%); opacity: 0; transition: none; }
.v4-page .hero-main .copper-text {
  background: linear-gradient(135deg, #F0B989 0%, #D98B57 55%, #8C5530 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v4-page .hero-main .fixed-line {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 58px);
  color: var(--copper-pale);
  line-height: 1.02;
  margin-bottom: 30px;
}
.v4-page .hero-main .sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto 38px;
}
.v4-page .hero-main .sub b { color: var(--text); font-weight: 500; }
.v4-page .hero-main .rail {
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.v4-page .hero-main .chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: all 0.4s ease;
}
.v4-page .hero-main .chip .cdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-mute);
  transition: all 0.4s;
}
.v4-page .hero-main .chip .ct {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.4s;
}
.v4-page .hero-main .chip.active {
  border-color: var(--copper);
  background: linear-gradient(135deg, rgba(201, 123, 74, 0.16), rgba(201, 123, 74, 0.04));
  box-shadow: 0 0 22px rgba(201, 123, 74, 0.2);
}
.v4-page .hero-main .chip.active .cdot {
  background: var(--copper);
  box-shadow: 0 0 10px var(--copper);
}
.v4-page .hero-main .chip.active .ct { color: var(--cream); }
.v4-page .hero-main .cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.v4-page .hero-main .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 100px;
  background: linear-gradient(135deg, #F0B989 0%, #C97B4A 48%, #8C5530 100%);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 30px rgba(201, 123, 74, 0.3);
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.v4-page .hero-main .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(201, 123, 74, 0.42);
}
.v4-page .hero-main .btn svg { transition: transform 0.25s; }
.v4-page .hero-main .btn:hover svg { transform: translateX(4px); }
.v4-page .hero-main .stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  max-width: 640px;
  width: 100%;
}
.v4-page .hero-main .stat-cell {
  background: var(--bg-soft);
  padding: 18px 12px;
  text-align: center;
}
.v4-page .hero-main .stat-cell .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--cream);
  line-height: 1;
}
.v4-page .hero-main .stat-cell .lab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .v4-page .wrap { padding: 0 18px; }
  .v4-page .hero-main {
    min-height: auto;
    padding: 124px 0 56px;
    overflow-x: clip;
  }
  .v4-page.v4-home .hero-main {
    padding-top: 100px;
  }
  .v4-page .hero-main .pill { margin-bottom: 28px; }
  .v4-page .hero-main .pill .eyebrow { font-size: 10px; letter-spacing: 0.22em; }
  .v4-page .hero-main .kinetic {
    flex-direction: column;
    align-items: center;
    height: auto;
    font-size: clamp(32px, 9vw, 48px);
    gap: 0.08em;
    line-height: 1.08;
    max-width: 100%;
    padding: 0 4px;
  }
  .v4-page .hero-main .kinetic .noun {
    white-space: normal;
    text-align: center;
    max-width: 14ch;
  }
  .v4-page .hero-main .nounwrap {
    height: auto;
    text-align: center;
    max-width: 100%;
  }
  .v4-page .hero-main .fixed-line {
    font-size: clamp(22px, 6.5vw, 36px);
    padding: 0 6px;
    margin-bottom: 28px;
  }
  .v4-page .hero-main .hero-sub {
    display: none;
  }
  .v4-page .hero-main .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 36px;
  }
  .v4-page .hero-main .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    justify-content: center;
  }
  .v4-page .hero-main .stat-cell .num { font-size: 24px; }
}

@media (max-width: 540px) {
  .v4-page .v4-ribbon { font-size: 9px; gap: 10px; padding: 6px 12px; }
  .v4-page .v4-ribbon .sep { display: none; }
  .v4-page .hero-main { padding-top: 118px; }
  .v4-page.v4-home .hero-main { padding-top: 96px; }
  .v4-page .hero-main .kinetic { font-size: clamp(28px, 8.5vw, 40px); }
  .v4-page .hero-main .kinetic .noun { max-width: 12ch; }
  .v4-page .hero-main .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .v4-page .hero-main .stat-cell .num { font-size: 22px; }
}

/* ---- product screenshots + mixed visuals ---- */
.v4-page .ch-vis-shot,
.v4-page .ch-vis-mixed {
  width: 100%;
}
.v4-page .ch-shot-frame {
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg-deep) 100%);
  overflow: hidden;
  box-shadow:
    0 24px 60px -28px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(201, 123, 74, 0.08);
}
.v4-page .ch-shot-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 20, 16, 0.95), rgba(13, 10, 7, 0.88));
}
.v4-page .ch-shot-logo {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.88;
  filter: sepia(0.35) saturate(1.2) brightness(1.05);
}
.v4-page .ch-shot-bar .dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.v4-page .ch-shot-bar .dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
  background: rgba(201, 123, 74, 0.22);
  border: 1px solid rgba(201, 123, 74, 0.35);
}
.v4-page .ch-shot-bar .dots i:nth-child(1) { background: rgba(201, 123, 74, 0.45); }
.v4-page .ch-shot-bar .dots i:nth-child(2) { background: rgba(240, 185, 137, 0.28); }
.v4-page .ch-shot-bar .dots i:nth-child(3) { background: rgba(140, 85, 48, 0.35); }
.v4-page .ch-shot-bar .ttl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.v4-page .ch-shot-bar .ttl::before {
  content: '●';
  color: var(--copper);
  margin-right: 8px;
  font-size: 7px;
  vertical-align: middle;
  opacity: 0.7;
}
.v4-page .ch-shot-body {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
  overflow: hidden;
}
.v4-page .ch-shot-body-short {
  aspect-ratio: 16 / 7;
}
.v4-page .ch-shot-body-invest {
  aspect-ratio: 1024 / 487;
}
.v4-page .ch-shot-body-exchange {
  aspect-ratio: 1024 / 674;
}
.v4-page .ch-shot-body-prop {
  aspect-ratio: 1024 / 611;
}
.v4-page .ch-shot-body-payments {
  aspect-ratio: 787 / 526;
}
.v4-page .ch-shot-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Bronze harmonisation — pulls off-brand UIs into Liquid Bronze palette */
.v4-page .ch-shot-body.ch-shot-grade img {
  filter: sepia(0.28) saturate(0.68) contrast(1.1) brightness(0.86) hue-rotate(-12deg);
}
.v4-page .ch-shot-body.ch-shot-grade-light img {
  filter: sepia(0.14) saturate(0.82) contrast(1.06) brightness(0.9) hue-rotate(-6deg);
}
.v4-page .ch-shot-body.ch-shot-grade-heavy img {
  filter: sepia(0.38) saturate(0.52) contrast(1.14) brightness(0.76) hue-rotate(-18deg);
}
.v4-page .ch-shot-body.ch-shot-native img {
  filter: none;
}
.v4-page .ch-shot-body.ch-shot-grade::after,
.v4-page .ch-shot-body.ch-shot-grade-light::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 10, 7, 0.42) 0%, transparent 22%, transparent 78%, rgba(6, 5, 3, 0.5) 100%),
    linear-gradient(125deg, rgba(201, 123, 74, 0.16) 0%, transparent 42%, rgba(140, 85, 48, 0.1) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
}
.v4-page .ch-shot-body.ch-shot-grade-light::after {
  background:
    linear-gradient(180deg, rgba(13, 10, 7, 0.22) 0%, transparent 18%, transparent 82%, rgba(6, 5, 3, 0.32) 100%),
    linear-gradient(125deg, rgba(201, 123, 74, 0.1) 0%, transparent 50%, rgba(140, 85, 48, 0.06) 100%);
}
.v4-page .ch-shot-body.ch-shot-grade-heavy::after {
  background:
    linear-gradient(180deg, rgba(13, 10, 7, 0.55) 0%, transparent 20%, transparent 75%, rgba(6, 5, 3, 0.62) 100%),
    linear-gradient(125deg, rgba(201, 123, 74, 0.22) 0%, transparent 40%, rgba(140, 85, 48, 0.14) 100%);
}
.v4-page .ch-shot-body.ch-shot-native::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 10, 7, 0.12) 0%, transparent 20%, transparent 85%, rgba(6, 5, 3, 0.2) 100%);
  z-index: 1;
}
.v4-page .ch-shot-body img.ch-shot-crop-mid {
  object-position: center 35%;
}
.v4-page .ch-shot-body img.ch-shot-crop-low {
  object-position: center 55%;
}

/* ---- floating order chips over screenshots ---- */
.v4-page .ch-float {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.v4-page .ch-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f1e6da;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(28, 22, 17, 0.9), rgba(13, 9, 6, 0.92));
  border: 1px solid rgba(201, 123, 74, 0.4);
  box-shadow:
    0 16px 34px -14px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(240, 185, 137, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
}
.v4-page .ch-pill .d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--copper);
}
.v4-page .ch-pill .pct { color: #8fd9b0; font-weight: 700; }
.v4-page .ch-pill.buy { border-color: rgba(74, 184, 124, 0.5); }
.v4-page .ch-pill.buy .d { background: #4cc888; box-shadow: 0 0 9px rgba(76, 200, 136, 0.8); }
.v4-page .ch-pill.sell { border-color: rgba(214, 96, 74, 0.55); }
.v4-page .ch-pill.sell .d { background: #e06a50; box-shadow: 0 0 9px rgba(224, 106, 80, 0.8); }
.v4-page .ch-pill.sell .pct { color: #f0a48f; }

/* chips fade in once the shot reveals, then drift continuously */
.v4-page .ch-vis-shot.in .ch-pill {
  animation:
    v4-pill-in 0.7s ease forwards,
    v4-float 6s ease-in-out infinite;
}
.v4-page .ch-vis-shot.in .ch-pill:nth-of-type(2) {
  animation-delay: 0.18s, 1.1s;
  animation-duration: 0.7s, 7.2s;
}
.v4-page .ch-vis-shot.in .ch-pill:nth-of-type(3) {
  animation-delay: 0.34s, 0.5s;
  animation-duration: 0.7s, 5.4s;
}
@keyframes v4-pill-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes v4-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.v4-page .ch-inst-strip {
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(24, 20, 16, 0.7), rgba(10, 6, 4, 0.85));
  box-shadow: inset 0 1px 0 rgba(201, 123, 74, 0.06);
}
.v4-page .ch-inst-strip svg {
  width: 100%;
  height: auto;
  display: block;
}
.v4-page .ch-vis-shot .caption,
.v4-page .ch-vis-mixed .caption {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 8px;
}
.v4-page .ch-vis-shot .caption b,
.v4-page .ch-vis-mixed .caption b {
  color: var(--copper-pale);
  font-weight: 500;
}

/* ---- v4 readability + product rail ---- */

.v4-page .hero-main .chip {
  text-decoration: none;
  cursor: pointer;
}
.v4-page .hero-main .chip .ct {
  font-size: 13.5px;
  color: var(--text);
}
.v4-page .hero-main .chip.active .ct {
  color: var(--cream);
  font-weight: 600;
}
.v4-page .hero-main .sub {
  color: var(--text);
  font-size: 17.5px;
}
.v4-page .hero-main .sub b {
  color: var(--cream);
}
.v4-page .hero-main .stat-cell .lab {
  color: var(--text-dim);
  font-size: 10px;
}

/* spec rows — fix cramped / low-contrast values */
.v4-page .ch-specs {
  border-top-color: var(--line-strong);
}
.v4-page .spec {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 12px 20px;
  padding: 15px 6px;
}
.v4-page .spec .k {
  color: var(--cream);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}
.v4-page .spec .v {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--copper-pale);
  text-align: right;
  line-height: 1.55;
  word-break: break-word;
}

/* highlighted explore more */
.v4-page .ch-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(135deg, rgba(201, 123, 74, 0.22), rgba(201, 123, 74, 0.08));
  border: 1px solid var(--copper);
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(201, 123, 74, 0.18);
  transition: all 0.25s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.v4-page .ch-explore:hover {
  color: var(--cream);
  border-color: var(--copper-pale);
  background: linear-gradient(135deg, rgba(201, 123, 74, 0.32), rgba(201, 123, 74, 0.14));
  box-shadow: 0 0 32px rgba(201, 123, 74, 0.28);
  transform: translateY(-2px);
}
.v4-page .ch-explore svg {
  width: 14px;
  height: 14px;
  color: var(--copper-pale);
  transition: transform 0.25s ease;
}
.v4-page .ch-explore:hover svg {
  transform: translateX(4px);
}

/* chapter body copy — slightly brighter */
.v4-page .ch-body {
  color: var(--text);
  font-size: 16px;
}
.v4-page .ch-body b {
  color: var(--cream);
}
.v4-page .ch-phrase {
  color: var(--copper-pale);
}

@media (max-width: 768px) {
  .v4-page .spec {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .v4-page .spec .v {
    text-align: left;
    font-size: 14px;
  }
  .v4-page .spec .k {
    font-size: 13px;
    color: var(--copper-pale);
  }
}

/* foundation ledger — readable two-row cards */
.v4-page .found .lede {
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}
.v4-page .found .big-line {
  color: var(--cream);
}
.v4-page .ledger {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: none;
}
.v4-page .ledger-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-areas:
    "idx nm tag"
    "idx ds ds";
  gap: 8px 20px;
  align-items: start;
  padding: 22px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(22, 16, 11, 0.95), rgba(15, 10, 7, 0.98));
  transition: border-color 0.25s ease, background 0.25s ease;
}
.v4-page .ledger-row:hover {
  padding-left: 20px;
  border-color: rgba(201, 123, 74, 0.45);
  background: linear-gradient(160deg, rgba(29, 21, 14, 0.98), rgba(18, 12, 8, 1));
}
.v4-page .ledger-row .idx {
  grid-area: idx;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--copper);
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.v4-page .ledger-row .nm {
  grid-area: nm;
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.v4-page .ledger-row .ds {
  grid-area: ds;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  max-width: 62ch;
}
.v4-page .ledger-row .tg {
  grid-area: tag;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-pale);
  padding: 5px 10px;
  border: 1px solid rgba(201, 123, 74, 0.35);
  border-radius: 3px;
  background: rgba(201, 123, 74, 0.1);
  white-space: nowrap;
}

/* heritage facts — brighter */
.v4-page .her p {
  color: var(--text);
  font-size: 16px;
}
.v4-page .her .fact .k {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  max-width: 28ch;
}
.v4-page .her .fact .v {
  font-size: 28px;
  color: var(--cream);
}

/* network pulse — live social feed */
.v4-page .v4-network {
  padding: 140px 0 130px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  scroll-margin-top: 120px;
}
.v4-page .net-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.v4-page .net-title {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--cream);
  max-width: 16ch;
}
.v4-page .net-title .serif {
  color: var(--copper-pale);
  font-weight: 400;
}
.v4-page .net-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  padding: 10px 14px;
  border: 1px solid rgba(111, 197, 138, 0.35);
  border-radius: 3px;
  background: rgba(111, 197, 138, 0.08);
  white-space: nowrap;
}
.v4-page .net-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(111, 197, 138, 0.8);
  animation: v4-live-pulse 2s ease-in-out infinite;
}
@keyframes v4-live-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}
.v4-page .net-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.v4-page .net-state {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
}
.v4-page .net-state a { color: var(--copper-pale); }
.v4-page .net-card {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: linear-gradient(165deg, rgba(22, 16, 11, 0.98), rgba(12, 8, 5, 1));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 200px;
}
.v4-page .net-card:hover {
  border-color: rgba(201, 123, 74, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.v4-page .net-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.v4-page .net-av {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--copper-pale);
  background: rgba(201, 123, 74, 0.15);
  border: 1px solid rgba(201, 123, 74, 0.3);
  overflow: hidden;
}
.v4-page .net-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v4-page .net-who { min-width: 0; }
.v4-page .net-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v4-page .net-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.v4-page .net-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.v4-page .net-media {
  margin-top: 12px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 120px;
}
.v4-page .net-media img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.v4-page .net-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}
.v4-page .net-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v4-page .net-stat svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}
.v4-page .net-share {
  margin-left: auto;
  display: inline-flex;
  opacity: 0.6;
}
.v4-page .net-share svg {
  width: 15px;
  height: 15px;
}
.v4-page .net-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.v4-page .net-disc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.6;
  max-width: 52ch;
}
.v4-page .net-join {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-pale);
  transition: color 0.2s ease, gap 0.2s ease;
}
.v4-page .net-join:hover { color: var(--cream); }

@media (max-width: 1024px) {
  .v4-page .net-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .v4-page .v4-network { padding: 100px 0 90px; }
  .v4-page .net-grid { grid-template-columns: 1fr; }
  .v4-page .net-head { margin-bottom: 32px; }
  .v4-page .net-title { max-width: none; }
  .v4-page .net-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 820px) {
  .v4-page .ledger-row {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "idx tag"
      "nm nm"
      "ds ds";
    gap: 10px 14px;
    padding: 18px 16px;
  }
  .v4-page .ledger-row .tg {
    justify-self: end;
  }
  .v4-page .ledger-row .nm {
    font-size: 17px;
  }
  .v4-page .ledger-row .ds {
    font-size: 14.5px;
  }
}

/* ---- v4 mobile (extends home-v3 chapter breakpoints) ---- */
.v4-page {
  scroll-padding-top: 108px;
}

@media (max-width: 920px) {
  .v4-page .ch-title { max-width: none; }
  .v4-page .ch-phrase { margin-bottom: 24px; }
  .v4-page .ch-body { max-width: none; }
  .v4-page .ch-vis-shot,
  .v4-page .ch-vis-mixed { margin-top: 4px; }
}

@media (max-width: 880px) {
  .v4-page .ch-numeral {
    font-size: clamp(100px, 28vw, 160px);
    top: 20px;
    right: -16px;
  }
  .v4-page .chapter.alt .ch-numeral {
    left: -16px;
    right: auto;
  }
  .v4-page .ch-kicker {
    letter-spacing: 0.18em;
    gap: 12px;
  }
  .v4-page .ch-kicker .st {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .v4-page { scroll-padding-top: 96px; }
  .v4-page .chapter { scroll-margin-top: 96px; }
  .v4-page .found,
  .v4-page .v4-network,
  .v4-page .close { scroll-margin-top: 96px; }
  .v4-page .chapter { padding: 100px 0 80px; }
  .v4-page .found {
    padding: 100px 0 90px;
  }
  .v4-page .found .big-line {
    max-width: none;
    font-size: clamp(28px, 7.5vw, 44px);
  }
  .v4-page .found .lede {
    font-size: 15.5px;
    margin-bottom: 40px;
  }
  .v4-page .her {
    padding: 100px 0 90px;
  }
  .v4-page .her .y2000 {
    font-size: clamp(88px, 24vw, 140px);
    margin-bottom: 20px;
  }
  .v4-page .her .fact {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 0;
  }
  .v4-page .her .fact .k {
    max-width: none;
    font-size: 14px;
  }
  .v4-page .her .fact .v {
    font-size: 24px;
  }
  .v4-page .ch-explore {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  .v4-page .ch-shot-frame {
    box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.55);
  }
  .v4-page .ch-shot-bar {
    padding: 9px 12px;
    gap: 8px;
  }
  .v4-page .ch-shot-bar .ttl {
    font-size: 8.5px;
    letter-spacing: 0.08em;
  }
  .v4-page .ch-vis-shot .caption,
  .v4-page .ch-vis-mixed .caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 9px;
  }
  .v4-page .net-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }
  .v4-page .net-title {
    max-width: none;
    font-size: clamp(26px, 7vw, 36px);
  }
  .v4-page .close .row {
    flex-direction: column;
    align-items: stretch;
  }
  .v4-page .close .row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .v4-page .close .line {
    max-width: none;
    font-size: clamp(36px, 10vw, 64px);
    margin-bottom: 32px;
  }
}

@media (max-width: 540px) {
  .v4-page .col {
    padding-left: calc(var(--spine-x) + 16px);
    padding-right: 16px;
  }
  .v4-page .ch-title {
    font-size: clamp(26px, 7.5vw, 38px);
    margin-bottom: 16px;
  }
  .v4-page .ch-phrase {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 20px;
  }
  .v4-page .ch-body {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .v4-page .spec {
    padding: 12px 0;
    gap: 4px;
  }
  .v4-page .spec .k { font-size: 13px; }
  .v4-page .spec .v {
    font-size: 13px;
    text-align: left;
  }
  .v4-page .ch-shot-bar .dots { display: none; }
  .v4-page .ch-shot-bar .ttl::before { display: none; }
  .v4-page .ch-shot-logo {
    width: 12px;
    height: 12px;
  }
  .v4-page .ledger-row {
    padding: 16px 14px;
  }
  .v4-page .ledger-row .nm { font-size: 16px; }
  .v4-page .ledger-row .ds { font-size: 14px; }
  .v4-page .net-card {
    min-height: 0;
    padding: 16px 14px 14px;
  }
  .v4-page .net-body {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }
  .v4-page .net-disc {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 480px) {
  .v4-page #spine { display: none; }
  .v4-page .col {
    padding-left: 18px;
    padding-right: 18px;
  }
  .v4-page .ch-numeral { opacity: 0.45; }
  .v4-page header nav { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .v4-page .net-live .dot { animation: none; }
  .v4-page .hero-main .kinetic .noun { transition: none; }
  .v4-page .ch-vis-shot.in .ch-pill {
    animation: v4-pill-in 0.4s ease forwards;
    transform: none;
  }
}
