/* Home page projects section: the view switcher, and the narrative view ("My journey"; no scroll reveal, Dan 2026-10-30).
   The cards view is the existing grid (p2029.css). Approved layout: content/plans/home-ia/v8-answers-first.html.
   The narrative is one grid of a third and two thirds with shared rows, so each left group lines up with
   the question beside it. It uses Inter Tight: its line breaks were designed in it. */

/* ---- the switcher ---- */
body[data-era="2029"] .work-head{display:flex;align-items:center;justify-content:flex-start;gap:16px;flex-wrap:wrap}
/* the picker takes the heading's place; "Projects" stays for screen readers only */
body[data-era="2029"] .work-head .section-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.views{display:inline-flex;gap:2px;padding:3px;border:1px solid rgba(23,23,21,.12);border-radius:999px;background:#fbfaf7}
.views button{font-family:"JetBrains Mono",monospace;font-size:11.5px;color:#4a4942;padding:7px 14px;border-radius:999px;transition:background .18s,color .18s}
.views button:hover{color:#171715}
.views button[aria-selected="true"]{background:#171715;color:#f6f5f1}
.views button:focus-visible{outline:2px solid #3f6b48;outline-offset:2px}
.view[hidden]{display:none}

/* ---- the narrative view ---- */
.nv{--ink:#171715;--mid:#4a4942;--soft:#77766c;--rule:rgba(23,23,21,.13);--green:#3f6b48;--tint:#dce6d6;
  font-family:"Inter Tight","Inter",system-ui,sans-serif;color:var(--ink);margin-top:28px}
.nv a{color:inherit;text-decoration:none}
.nv a:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:8px}

.nv-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);column-gap:28px;row-gap:34px;
  grid-template-areas:"hL hR" "L R"}
.nv-hL{grid-area:hL} .nv-hR{grid-area:hR} .nv-colL{grid-area:L} .nv-colR{grid-area:R}
/* each column stacks on its own, so neither stretches to match the other */
.nv-colL,.nv-colR{display:flex;flex-direction:column;gap:34px;min-width:0}
.nv-colL>*,.nv-colR>*{flex:0 0 auto}
.nv-hL,.nv-hR{padding-bottom:14px}   /* the H1s sit close to the columns they introduce */
.nv .nv-h{margin:0;font-size:30px;line-height:1.1;letter-spacing:-.03em;font-weight:600;text-wrap:balance;text-align:left}
.nv-lead,.nv-say{margin:0;font-size:18px;line-height:1.3;letter-spacing:-.01em;font-weight:600}
.nv-lead{margin-top:12px}
.nv-grp{display:flex;flex-direction:column;gap:14px;min-width:0}

/* cards hold projects; every project row is its own link */
.nv-card{flex:1;display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--rule);border-radius:10px;overflow:hidden}
.nv-q h4{margin:0;padding:18px 16px 10px;font-size:18px;line-height:1.3;letter-spacing:-.01em;font-weight:600;color:var(--green)}
.nv-item{position:relative;flex:1;display:block;padding:18px 16px;transition:background .18s}
.nv-item + .nv-item{border-top:1px solid var(--rule)}
.nv-item:hover{background:#f8f7f3}
.nv-tx{position:relative;z-index:1;display:grid;gap:3px;min-width:0}
.nv-tx b{font-size:14px;line-height:1.35;font-weight:600}
.nv-d{font-size:14px;line-height:1.45;color:var(--soft)}
.nv-go{position:absolute;z-index:2;right:12px;top:50%;width:22px;height:22px;margin-top:-11px;display:grid;place-items:center;
  border-radius:999px;background:#fff;color:var(--ink);font-size:12px;box-shadow:0 3px 10px -5px rgba(23,23,21,.45);
  opacity:0;transform:translateX(-4px);transition:opacity .18s,transform .18s}
.nv-item:hover .nv-go,.nv-item:focus-visible .nv-go{opacity:1;transform:none}

/* the platform: text, then a quiet sketch of the product */
.nv-plat{display:grid;align-content:start;row-gap:14px}
.nv-plat .nv-tx b{font-size:15px;letter-spacing:-.01em}
.nv-sketch{display:block;width:100%;height:auto;padding-top:4px}

/* talks: under the platform, the same weight as its title, with a small photo from the NYC talk */
.nv-talk{display:grid;grid-template-columns:minmax(0,1fr) 96px;column-gap:16px;align-items:center}
.nv-talk .nv-tx b{font-size:15px;letter-spacing:-.01em}
.nv-photo{display:block;width:96px;height:64px;object-fit:cover;object-position:70% 40%;border-radius:6px}

/* right-hand rows: text, then a fine-line diagram of the project (the same quiet style as the platform's) */
.nv-q .nv-item{display:grid;grid-template-columns:minmax(0,1fr) 160px;column-gap:24px;align-items:center}
.nv-side{display:block}
.nv-side img{display:block;width:100%;height:auto}
.nv-q .nv-go{display:none}

/* the third question: articles, a reading list beside the talks */
.nv-art{display:grid;align-content:start;row-gap:14px;min-width:0}
.nv-art h4{margin:0;font-size:18px;line-height:1.3;font-weight:600;color:var(--green)}
.nv-alist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.nv-a{display:grid;gap:4px}
.nv-ak{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--soft)}
.nv-at{font-size:16px;line-height:1.35;font-weight:500;text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:4px;transition:text-decoration-color .18s}
.nv-a:hover .nv-at{text-decoration-color:var(--ink)}

@media (prefers-reduced-motion: reduce){ .nv *{transition:none !important} }

/* ---- phone: the story in order, one column ---- */
@media (max-width:760px){
  .nv-grid{grid-template-columns:minmax(0,1fr);row-gap:12px;grid-template-areas:"hL" "L" "hR" "R"}
  .nv-hR{margin-top:28px}
  .nv .nv-h{font-size:27px}
  .nv .nv-h br{display:none}
  .nv-lead,.nv-say{font-size:16.5px}
  .nv-q .nv-item{grid-template-columns:minmax(0,1fr) 110px;column-gap:14px}
  .nv-alist{grid-template-columns:minmax(0,1fr);gap:18px}
}
