/* Shared by the five sub-pages: hero, chapter heads, the closing band. Same language as the
   homepage: paper, ink, Inter, monads, gold for Chip. */

.nav-link.is-here { color: var(--ink); position: relative; }
.nav-link.is-here::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.fin__dot[data-gold] { background: var(--gold); box-shadow: 0 0 0.12em rgba(201, 166, 97, 0.5); }
.fn.is-here .fn__orb { box-shadow: 0 0 0 2px var(--c), 0 0 0 8px color-mix(in srgb, var(--c) 14%, transparent); }

/* Hero: copy on the left, the page's own instrument on the right. */
.sh { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 4vw; padding: 120px var(--gutter) 60px; max-width: 1480px; margin: 0 auto; }
.sh__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--grey-2); font-size: 12px; }
.sh__mark { width: 30px; height: 30px; color: var(--ink); }
.sh__mark .monad-svg { width: 30px; height: 30px; }
.sh__h { margin: 22px 0 0; font-size: clamp(46px, 5.4vw, 92px); line-height: 0.96; letter-spacing: -0.05em; }
.sh .lede { margin-top: 24px; font-size: clamp(16px, 1.3vw, 19px); max-width: 40ch; }
.sh__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; font: 600 15.5px var(--sans); letter-spacing: -0.01em; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; margin-right: -8px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); transition: background-color 200ms, color 200ms, transform 250ms var(--ease-out); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline-strong); background: rgba(255, 255, 255, 0.6); }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover i { background: var(--gold); color: var(--ink); transform: translateX(3px); }
  .btn--line:hover { background: #fff; }
}
.sh__stage { position: relative; min-width: 0; }

/* A chapter: a head, then whatever the chapter shows. */
.ch { position: relative; padding: 16vh var(--gutter); max-width: 1480px; margin: 0 auto; }
.ch__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; gap: 32px; margin-bottom: 56px; }
.ch__head .h { font-size: clamp(36px, 4.4vw, 72px); }
.ch__head .lede { justify-self: end; }
.ch__k { display: block; margin-bottom: 18px; color: #7a6231; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 11px var(--mono); background: #f3f2ed; color: var(--grey-1); white-space: nowrap; }
.tag--gold { background: rgba(201, 166, 97, 0.16); color: #7a6231; }
.tag--soon { background: var(--ink); color: #f1f0eb; }

/* The closing band on every sub-page. */
.band { position: relative; margin: 6vh var(--gutter) 0; padding: clamp(40px, 7vw, 96px); border-radius: 36px; background: var(--night); color: var(--night-text); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.band::before { content: ''; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201, 166, 97, 0.28), transparent 65%); pointer-events: none; }
.band .h { font-size: clamp(40px, 5.4vw, 92px); }
.band p { margin: 18px 0 0; color: var(--night-dim); max-width: 40ch; font-size: 16px; line-height: 1.5; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.band .btn--ink { background: var(--night-text); color: var(--night); }
.band .btn--ink i { background: rgba(10, 10, 10, 0.08); }
.band .btn--line { color: var(--night-text); background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

@media (max-width: 900px) {
  .sh { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 112px var(--gutter) 40px; gap: 40px; }
  .sh__h { font-size: clamp(44px, 13vw, 72px); }
  .ch { padding: 12vh var(--gutter); }
  .ch__head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 36px; }
  .ch__head .lede { justify-self: start; }
  .band { grid-template-columns: minmax(0, 1fr); margin: 4vh 12px 0; border-radius: 28px; padding: 40px 24px; }
  .band__actions .btn { flex: 1 1 auto; justify-content: center; }
}
