/* ==========================================================================
   maharshis.tech / inner pages: blog, post, side quests, case studies, 404.
   Same tokens, type and shape rules as the homepage (assets/site/site.css).
   ========================================================================== */

.page { padding: calc(var(--nav-h) + clamp(40px, 10vh, 120px)) var(--gx) 0; }
.wrap { max-width: 1440px; margin: 0 auto; }
.kicker { font-family: var(--mono); font-size: 12.5px; color: var(--accent-ink); }
.display {
  font-weight: 800; font-stretch: 118%; letter-spacing: -0.045em; line-height: .9;
  font-size: clamp(2.8rem, 9vw, 9.5rem); overflow-wrap: break-word;
}
.lede { margin-top: clamp(20px, 3vh, 32px); max-width: 46ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); letter-spacing: -0.01em; }
.back { display: inline-flex; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); margin-bottom: clamp(24px, 5vh, 48px); transition: color .3s var(--ease); }
.back:hover { color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.pill-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.section-gap { padding-top: clamp(80px, 14vh, 180px); }

/* ---------- progress bar (opt-in) ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- case study ---------- */
.cs-hero { min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-bottom: 40px; }
.cs-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cs-logo { width: 44px; height: 44px; object-fit: contain; }
.cs-logo-wide { width: 200px; height: 52px; object-fit: cover; object-position: 0 50%; margin-left: -26px; background: var(--screen); }
.cs-title { font-weight: 800; font-stretch: 125%; letter-spacing: -0.05em; line-height: .84; font-size: clamp(3.2rem, 14.5vw, 15rem); }
.cs-title > span { display: block; }
.cs-title > .accent { color: var(--accent-ink); }
.cs-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 48px; align-items: end; }
.cs-foot .lede { margin-top: 0; color: var(--ink); }
.cs-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cs-meta div { padding: 14px 12px 0 0; }
.cs-meta div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.cs-meta dt { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.cs-meta dd { margin-top: 6px; font-weight: 650; font-size: 15px; }
.cs-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.cs-intro { max-width: 1100px; }
.cs-intro p { font-size: clamp(1.4rem, 2.8vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.14; }
.cs-intro p + p { margin-top: .8em; }
.cs-intro .soft { color: var(--ink-2); }
.cs-intro mark { background: none; color: var(--accent-ink); }
.quote {
  margin-top: clamp(56px, 10vh, 120px); padding: clamp(28px, 4vw, 56px); background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-stretch: 108%; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(1.9rem, 4.6vw, 4.6rem);
}
.quote cite { display: block; margin-top: 18px; font-family: var(--mono); font-style: normal; font-weight: 400; font-size: 13px; letter-spacing: 0; }

.chapter { padding-top: clamp(90px, 16vh, 200px); }
.chapter-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: clamp(28px, 5vh, 56px); }
.chapter-head .chapter-sub { flex: 0 1 36ch; padding-bottom: .4em; }
.chapter-word { font-weight: 900; font-stretch: 125%; letter-spacing: -0.05em; line-height: .82; font-size: clamp(3.4rem, 12vw, 12.5rem); }
.chapter-word small { display: block; font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: 12.5px; letter-spacing: 0; line-height: 1.4; color: var(--accent-ink); margin-bottom: 18px; }
.chapter-sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; max-width: 36ch; letter-spacing: -0.01em; }
.shot { background: var(--screen); overflow: hidden; }
.shot img { width: 100%; height: auto; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(24px, 4vh, 40px); border-top: 1px solid var(--line); }
.stats div { padding: 18px 16px 0 0; }
.stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats b { display: block; font-weight: 750; font-stretch: 110%; letter-spacing: -0.04em; line-height: 1; font-size: clamp(1.8rem, 4vw, 3.6rem); }
.stats span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.note { margin-top: clamp(24px, 4vh, 40px); max-width: 60ch; color: var(--ink-2); font-size: 17px; }

.panel { background: var(--screen); color: var(--screen-ink); padding: clamp(20px, 3vw, 40px); }
.panel-head { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; color: #A09F97; padding-bottom: 16px; border-bottom: 1px solid rgba(233,232,226,.14); }
.panel-head b { color: #FF7A45; font-weight: 500; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.checks li { padding: 18px 0; border-bottom: 1px solid rgba(233,232,226,.1); }
.checks b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.checks span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; color: #A09F97; }
.trace { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; counter-reset: step; }
.trace li { position: relative; padding: 16px; border: 1px solid rgba(233,232,226,.14); }
.trace li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FF5B1F; color: #0D0E0C; font-family: var(--mono); font-size: 12px; margin-bottom: 14px; }
.trace b { display: block; font-size: 17px; }
.trace span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: #A09F97; }
.risk li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(233,232,226,.1); font-size: 17px; font-weight: 600; }
.risk em { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 400; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(233,232,226,.2); white-space: nowrap; }
.risk em.high { background: #FF5B1F; color: #0D0E0C; box-shadow: none; }

.closing { padding: clamp(100px, 18vh, 220px) 0 clamp(80px, 12vh, 140px); }
.closing .display { max-width: 12ch; }
.closing .btn { margin-top: 32px; }

@media (max-width: 860px) {
  .cs-foot { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-meta div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 14px; }
  .stats { grid-template-columns: 1fr; }
  .stats div, .stats div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .checks, .trace { grid-template-columns: 1fr; }
}

/* ---------- side quests ---------- */
.quest-list { margin-top: clamp(56px, 10vh, 120px); border-top: 1px solid var(--line); }
.quest { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 48px; padding: clamp(32px, 5vh, 56px) 0; border-bottom: 1px solid var(--line); }
.quest-name { font-weight: 800; font-stretch: 115%; letter-spacing: -0.045em; line-height: .92; font-size: clamp(2.4rem, 6vw, 6rem); transition: color .4s var(--ease), font-stretch .6s var(--ease); }
@media (hover: hover) { .quest:hover .quest-name { color: var(--accent-ink); font-stretch: 125%; } }
.quest-side { display: flex; flex-direction: column; gap: 16px; }
.quest-side p { font-size: 18px; line-height: 1.5; max-width: 52ch; }
.quest-side .dim { color: var(--ink-2); font-size: 15.5px; }
.quest .pill { align-self: flex-start; margin-bottom: 14px; }
.quest-feature { background: var(--bg-2); padding-left: clamp(16px, 2.4vw, 32px); padding-right: clamp(16px, 2.4vw, 32px); }
.next-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 860px) { .quest { grid-template-columns: 1fr; } }

/* ---------- blog index ---------- */
.pinned { margin-top: clamp(56px, 10vh, 120px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.pinned-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.pinned-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pinned:hover .pinned-media img { transform: scale(1.04); }
.pinned-title { margin-top: 14px; font-weight: 800; font-stretch: 108%; letter-spacing: -0.045em; line-height: .95; font-size: clamp(2.2rem, 4.8vw, 5rem); }
.pinned-meta { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.pinned p { margin: 16px 0 24px; color: var(--ink-2); max-width: 44ch; font-size: 17px; }
.archive { margin-top: clamp(80px, 14vh, 160px); border-top: 1px solid var(--line); padding-top: 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 48px; }
.archive h2 { font-weight: 800; font-stretch: 110%; letter-spacing: -0.04em; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1; }
.empty { padding: 28px; background: var(--bg-2); color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
@media (max-width: 860px) { .pinned, .archive { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article-head { max-width: 1100px; }
.article-title { margin-top: 18px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.05em; line-height: .92; font-size: clamp(2.8rem, 8vw, 8rem); }
.article-dek { margin-top: 24px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; max-width: 40ch; color: var(--ink-2); letter-spacing: -0.01em; }
.article-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.figure { margin-top: clamp(40px, 7vh, 80px); }
.figure img { width: 100%; max-height: 82svh; object-fit: cover; }
.figure figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.prose { max-width: 68ch; margin: clamp(48px, 8vh, 96px) auto 0; font-size: 19px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; font-weight: 800; font-stretch: 110%; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.prose h2::first-letter { text-transform: uppercase; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .85em; padding: .1em .35em; background: var(--bg-2); }
.prose .callout { padding: 22px 24px; background: var(--bg-2); border-left: 3px solid var(--accent); font-size: 17px; }
.prose .callout b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent-ink); margin-bottom: 6px; }
.prose .aside { font-weight: 700; font-stretch: 105%; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; }
.prose blockquote { margin: 1.8em 0; padding: clamp(24px, 3vw, 40px); background: var(--accent); color: var(--on-accent); }
.prose blockquote p { font-weight: 800; font-stretch: 110%; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -0.035em; }
.prose blockquote cite { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12.5px; font-style: normal; }
.prose pre { background: #0B0C10; color: #C7CAD3; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose pre .c { color: #8A8E9B; } .prose pre .k { color: #FF7A45; } .prose pre .f { color: #7FB2FF; }
.prose pre .lang { display: block; color: #8A8E9B; font-size: 11px; margin-bottom: 8px; }
.article-foot { max-width: 68ch; margin: clamp(48px, 8vh, 96px) auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.share { display: flex; gap: 8px; }
.share button, .share a { font-family: var(--mono); font-size: 12.5px; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s var(--ease), color .3s var(--ease); }
.share button:hover, .share a:hover { background: var(--ink); color: var(--bg); }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(24px, 5vh, 56px); }
.lost-num { font-weight: 900; font-stretch: 125%; letter-spacing: -0.06em; line-height: .78; font-size: min(38vw, 60svh); color: var(--accent-ink); max-width: 100%; }
.lost .display { font-size: clamp(2.2rem, 6vw, 6rem); max-width: 14ch; margin-top: 24px; }
.lost .lede { margin-top: 16px; }
.lost .cs-ctas { margin-top: 28px; }

/* ---------- motion (CSS only, progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cs-title > span, .page > .wrap > header > .display, .article-title, .lost-num {
    animation: rise 1.3s var(--ease) both;
  }
  .cs-title > span:nth-child(2) { animation-delay: .08s; }
  .cs-title > span:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(40%); } }

  /* chapter words open up from condensed to extended as they scroll in */
  @supports (animation-timeline: view()) {
    .chapter-word { animation: widen linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes widen { from { font-stretch: 62%; opacity: .2; } to { font-stretch: 125%; opacity: 1; } }
    .quest-name { animation: widen-q linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes widen-q { from { font-stretch: 75%; } to { font-stretch: 115%; } }
    .shot img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
  }
}

/* ---------- FreelanceCFO part two: working previews ---------- */
.part { padding-top: clamp(110px, 20vh, 240px); }
.part-title { margin-top: 18px; max-width: 13ch; }
.demo { background: var(--screen); color: var(--screen-ink); padding: clamp(18px, 2.6vw, 36px); }
.demo-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: #A09F97; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid rgba(233,232,226,.14); }
.demo-bar b { color: #FF7A45; font-weight: 500; }
.demo .btn-line { color: #E9E8E2; box-shadow: inset 0 0 0 1px rgba(233,232,226,.22); }
.demo .btn-line::before { background: #E9E8E2; }
.demo .btn-line:hover { color: #0B0C10; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-family: var(--mono); font-size: 11.5px; color: #A09F97; }
.demo input, .demo select {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: #F2F2EE; background: #14161D;
  border: 1px solid rgba(233,232,226,.16); padding: 12px 14px; border-radius: 0; outline: 0;
  transition: border-color .3s var(--ease);
}
.demo input:focus-visible, .demo select:focus-visible { border-color: #FF5B1F; outline: 2px solid #FF5B1F; outline-offset: 2px; }
.demo input[type="date"] { color-scheme: dark; }

.inv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.inv-form { display: flex; flex-direction: column; gap: 16px; }
.inv-form > .btn { align-self: flex-start; }
.inv-clients { font-family: var(--mono); font-size: 12px; color: #A09F97; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inv-clients button { font-family: var(--mono); font-size: 12px; color: #E9E8E2; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(233,232,226,.2); }
.inv-clients button:hover { background: rgba(233,232,226,.1); }
.inv-parsed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(233,232,226,.14); }
.inv-parsed div { padding: 12px 10px 0 0; }
.inv-parsed div + div { padding-left: 12px; border-left: 1px solid rgba(233,232,226,.14); }
.inv-parsed dt { font-family: var(--mono); font-size: 11px; color: #A09F97; }
.inv-parsed dd { margin-top: 6px; font-weight: 650; font-size: 15px; overflow-wrap: anywhere; }
.inv-row { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 12px; }
.inv-paper { position: relative; display: grid; align-content: start; }
.inv-doc { background: #F4F3EE; color: #121310; padding: 24px; font-family: var(--mono); font-size: 13px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.inv-doc.is-generated { animation: stamp .7s var(--ease); }
@keyframes stamp { 0% { transform: scale(.96); box-shadow: 0 0 0 0 rgba(255,91,31,.8); } 60% { box-shadow: 0 0 0 14px rgba(255,91,31,0); } }
.inv-doc-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed rgba(18,19,16,.3); padding-bottom: 12px; }
.inv-doc-top b { font-family: var(--sans); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.inv-chip { font-size: 11px; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(18,19,16,.3); }
.inv-chip[data-state="overdue"] { background: #C8341A; color: #fff; box-shadow: none; }
.inv-chip[data-state="paid"] { background: #1E7A45; color: #fff; box-shadow: none; }
.inv-chip[data-state="void"] { text-decoration: line-through; }
.inv-doc-client { margin: 14px 0; font-size: 12px; opacity: .7; }
.inv-doc-line { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.inv-doc-line[hidden] { display: none; }
.inv-doc-total { border-top: 1px solid rgba(18,19,16,.8); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 15px; }
.inv-doc-hint { margin-top: 14px; font-size: 12px; line-height: 1.5; }
.inv-doc-note { margin-top: 12px; font-size: 11px; opacity: .6; }
.inv-takeover {
  position: absolute; inset: -8px; z-index: 2; background: #0B0C10; border: 2px solid #FF5B1F; padding: 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; font-size: 15px; line-height: 1.5;
}
.inv-takeover[hidden] { display: none; }
.inv-take-h { font-family: var(--sans); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.1; letter-spacing: -0.02em; color: #F2F2EE; }
.inv-take-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.mail-kinds, .mail-paths { display: flex; flex-wrap: wrap; gap: 6px; }
.mail-kinds button, .mail-paths button { font-family: var(--mono); font-size: 12px; color: #C7CAD3; padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(233,232,226,.18); transition: background-color .3s var(--ease), color .3s var(--ease); }
.mail-kinds button[aria-checked="true"], .mail-paths button[aria-checked="true"] { background: #FF5B1F; color: #0B0C10; box-shadow: none; }
.mail-sheet { margin: 18px 0; background: #14161D; border: 1px solid rgba(233,232,226,.12); }
.mail-head div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(233,232,226,.1); font-size: 14px; }
.mail-head span { font-family: var(--mono); font-size: 11.5px; color: #A09F97; padding-top: 2px; }
.mail-head b { font-weight: 600; overflow-wrap: anywhere; }
.mail-body { padding: 16px; white-space: pre-wrap; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: #D9DAE0; min-height: 14em; }
.mail-why { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: #A09F97; max-width: 70ch; min-height: 3em; }

.lance-thread { min-height: 18em; display: flex; flex-direction: column; gap: 14px; }
.lance-q { align-self: flex-end; max-width: 80%; background: #FF5B1F; color: #0B0C10; padding: 12px 16px; font-weight: 600; font-size: 15px; }
.lance-reads { font-family: var(--mono); font-size: 12px; color: #A09F97; border-left: 1px solid rgba(233,232,226,.2); padding-left: 12px; display: grid; gap: 4px; }
.lance-reads li::before { content: '\2713  '; color: #3ED97E; }
.lance-a { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; max-width: 62ch; color: #F2F2EE; }
.lance-card { border: 1px solid rgba(233,232,226,.16); padding: 14px 16px; }
.lance-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.lance-card-head b { display: block; font-size: 15px; }
.lance-card-head span { display: block; margin-top: 2px; font-size: 13px; color: #A09F97; }
.lance-card .btn { height: 38px; padding: 0 16px; font-size: 13px; }
.lance-snip { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: #C7CAD3; }
.lance-draft { margin-top: 10px; white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; background: #14161D; padding: 12px; color: #D9DAE0; }
.lance-note { margin-top: 8px; font-size: 12.5px; color: #FF7A45; }
.lance-foot { font-family: var(--mono); font-size: 12px; color: #3ED97E; }
.lance-starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(233,232,226,.14); }
.lance-starters button { text-align: left; font-size: 13.5px; color: #E9E8E2; padding: 10px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(233,232,226,.2); transition: background-color .3s var(--ease); }
.lance-starters button:hover:not(:disabled) { background: rgba(233,232,226,.1); }
.lance-starters button:disabled { opacity: .45; cursor: default; }
.lance-cap { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: #8A8E9B; }

@media (max-width: 860px) {
  .inv-grid { grid-template-columns: 1fr; }
  .inv-row { grid-template-columns: 1fr 1fr; }
  .inv-row .field:first-child { grid-column: 1 / -1; }
  .inv-parsed { grid-template-columns: 1fr; }
  .inv-parsed div + div { padding-left: 0; border-left: 0; }
  .lance-q { max-width: 100%; }
}

/* case study: captioned product shots, a pair on wide screens */
.cs-shot { margin-top: clamp(32px, 5vh, 56px); }
.cs-shot figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.cs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 860px) { .cs-pair { grid-template-columns: 1fr; } }
.cs-rebuild { margin-top: clamp(80px, 14vh, 160px); }
