/* Homepage, November 2026 (Nagesh chose "point of view first"; one-button and headline-proof rules).
   Selected work in tighter cards: title, decision, the easy path vs our call, a smaller picture, one link.
   The contribution and "how we knew" lines live in the case studies. The number moves into the eyebrow. */
body.pg-index #selected-work { counter-reset: sc; }
body.pg-index #selected-work .sc { counter-increment: sc; }
body.pg-index #selected-work .sc__num { display: none; }
body.pg-index #selected-work .sc__tags::before { content: counter(sc, decimal-leading-zero) " \00B7 "; font: 600 .72rem/1 var(--font-body); letter-spacing: .14em; color: var(--vermilion-deep, #A8321E); align-self: center; }
/* the evidence stays: what he noticed (sc__con) and how we knew (sc__out) */
@media (max-width: 900px) {
  body.pg-index #selected-work .sc__art { zoom: .5; }
  body.pg-index #selected-work .sc__body { order: -1; }
  body.pg-index #selected-work .sc { display: flex; flex-direction: column; }
  body.pg-index #selected-work .sc__stage { min-height: 0; }
}
@media (max-width: 900px) {
  body.pg-index #selected-work .sc__art img { max-height: 230px; width: 100%; object-fit: cover; object-position: center 30%; }
}
/* Meet Nagesh: a short written introduction right after the hero (no buttons; the work follows) */
body.pg-index .home-meet > .wrap { padding-block: clamp(32px, 5vw, 72px) clamp(16px, 3vw, 36px); }
body.pg-index .home-meet .home-meet__body p { margin: 0 0 .8em; }
body.pg-index .home-meet .home-meet__body { margin: 18px 0 0; max-width: 60ch; font: 400 clamp(1.0625rem, 1rem + .25vw, 1.2rem)/1.65 var(--font-body); color: var(--midnight); }
@media (min-width: 900px) { body.pg-index .home-meet > .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(32px, 5vw, 72px); align-items: end; } body.pg-index .home-meet .eyebrow { grid-column: 1 / -1; } body.pg-index .home-meet .home-meet__body { margin: 0; } }
/* Meet Nagesh with his watercolor and the team (moved up from the About spread), one link to his story */
body.pg-index .home-meet .home-meet__more { margin: 6px 0 0; }
body.pg-index .home-meet .home-meet__wc { margin: 18px auto 0; max-width: 210px; transform: rotate(1.5deg); }
body.pg-index .home-meet .home-meet__wc img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(12, 22, 44, .22)); }
@media (min-width: 900px) {
  body.pg-index .home-meet > .wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, .55fr); align-items: center; }
  body.pg-index .home-meet .home-meet__wc { margin: 0; grid-column: 3; grid-row: 2; }
}
/* The teaching page on its own: one open page of the journal, centered */
body.pg-index .spread__book--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
body.pg-index .spread__book--one .spread__spine { display: none; }
/* Homepage trims (full-page review, November 2026): headline proof only; the detail lives on the inner pages.
   The three-lens drawing carries the lenses here (the lens cards live on How I work); the featured essay drops its
   pull quote; card pictures stay small on phones. */
body.pg-index .method .lenses__list, body.pg-index .method .lenses__list-wrap { display: none; }
body.pg-index .wshelf .wdesk__pull { display: none; }
@media (max-width: 900px) {
  body.pg-index .wshelf .wdesk__art img { max-height: 220px; object-fit: cover; width: 100%; }
}

/* Selected work without its own heading card (Nagesh, November 2026: "remove work and introduce me and then
   work"): Meet Nagesh leads straight into the three cards, on the plain lattice (no scattered stickers). */
body.pg-index #selected-work { background: var(--cream) var(--lattice); }
body.pg-index #selected-work.scs--nohead { padding-top: clamp(28px, 4vw, 56px); }
body.pg-index .home-meet { padding-bottom: clamp(20px, 3vw, 40px); }
body.pg-index #selected-work .scs__label { margin: 0 0 clamp(18px, 2.4vw, 28px); font-size: 12.8px; letter-spacing: .16em; line-height: 1.65; }

/* Work cards lead with what the work is (Nagesh, November 2026: "this is not clear its is a AI shopping agent";
   "not clearly indicating Payments and checkout work"): the project name is the headline, and the shopper's
   question sits under it on a small mustard tag. On phones the tag stays right under the headline. */
body.pg-index #selected-work .sc__q--ask { display: inline-block; margin: 6px 0 14px; padding: 6px 14px 8px; background: #F2C557; color: var(--midnight); font: italic 400 1.12rem/1.35 'Literata', Georgia, serif; text-transform: none; letter-spacing: 0; transform: rotate(-1.2deg); box-shadow: 3px 3px 0 var(--midnight); }
body.pg-index #selected-work .sc__q-k { display: block; margin-bottom: 2px; font: 600 .68rem/1.3 var(--font-body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: rgba(15, 27, 61, .75); }
@media (max-width: 900px) { body.pg-index #selected-work .sc__q--ask { order: -1; justify-self: start; align-self: flex-start; } }

/* Homepage teaching band, "index + map" (Nagesh, November 2026). Midnight band (from .spread); words and a clean
   course index on the left, the Product basics course map on a pinned white sheet on the right. */
body.pg-index .hm-teach__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
body.pg-index main .hm-teach h2.hm-teach__h, body.pg-index main .hm-teach h2.hm-teach__h .it { color: #FFFBF2; }
body.pg-index main .hm-teach h2.hm-teach__h { margin: 0 0 12px; font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); }
body.pg-index .hm-teach__lead { max-width: 46ch; margin: 0; color: #E6E9F2; font-size: 1.08rem; line-height: 1.6; }
body.pg-index .hm-teach__list { list-style: none; margin: 26px 0 22px; padding: 0; border-top: 1px solid rgba(255, 251, 242, .2); }
body.pg-index .hm-teach__list li { margin: 0; border-bottom: 1px solid rgba(255, 251, 242, .2); }
body.pg-index .hm-teach__list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; min-height: 48px; padding: 14px 2px; color: #FFFBF2; text-decoration: none; }
body.pg-index .hm-teach__list b { font: 600 1.2rem/1.3 var(--font-body); }
body.pg-index .hm-teach__list span { grid-column: 1; color: #C9D0E2; font-size: .92rem; }
body.pg-index .hm-teach__list svg { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 18px; height: 18px; color: var(--mustard); transition: transform .2s; }
body.pg-index .hm-teach__list a:hover b { text-decoration: underline; text-decoration-color: var(--vermilion); text-underline-offset: 4px; }
body.pg-index .hm-teach__list a:hover svg { transform: translateX(3px); }
body.pg-index .hm-teach__all { margin: 0; }
body.pg-index .hm-teach__all .textlink { color: #FFFBF2; }
body.pg-index .hm-teach__sheet { position: relative; margin: 0; background: #FFFFFF; padding: 16px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .6); transform: rotate(-1.4deg); }
body.pg-index .hm-teach__sheet::before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--vermilion); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); }
body.pg-index .hm-teach__art { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 12px; background: #F7F0E1; overflow: hidden; }
body.pg-index .hm-teach__art > * { width: 100%; max-height: 100%; }
body.pg-index .hm-teach__sheet figcaption { margin: 10px 4px 0; font: italic 400 1rem/1.4 'Literata', Georgia, serif; color: var(--ink-soft); }
@media (max-width: 900px) { body.pg-index .hm-teach__in { grid-template-columns: minmax(0, 1fr); } body.pg-index .hm-teach__sheet { max-width: 560px; transform: rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { body.pg-index .hm-teach__list svg { transition: none; } }

/* Judge panel fixes (November 2026). The decision line is a full sentence, so it uses Inter (Literata italic
   is kept for the one accent word, quotes, and notes), on every screen size. On phones the story reads in one
   piece: project, question, decision, his paragraph, then the picture with the easy path and our call. */
body.pg-index #selected-work .sc__dec { font-family: var(--font-body); font-style: normal; font-weight: 600; }
@media (max-width: 900px) { body.pg-index #selected-work .sc__con { order: -1; } }

/* Writing shelf shows every published piece (Nagesh, November 2026: "where are all my writings?"): the featured
   essay plus the other four across the navy panel, on the plain lattice (no scattered stickers). */
body.pg-index main .wshelf { background: var(--cream) var(--lattice); }
/* Thumbnails keep the cover's own 12:7 shape (they were stretched taller, which cropped the titles printed on them) */
body.pg-index main .wshelf__thumb { display: block; align-self: start; }
body.pg-index main .wshelf__thumb img { height: auto; aspect-ratio: 12 / 7; }
/* Card text starts right under the cover, so the four cards line up */
body.pg-index main .wshelf__link { align-content: start; }
body.pg-index main .wshelf__txt { justify-content: flex-start; }
/* Phones: compact rows (small cover left, words right) so five pieces don't make a 3,000px stack */
@media (max-width: 639px) {
  body.pg-index main .wshelf__list { gap: 10px; }
  body.pg-index main .wshelf__row { padding: 10px; border-radius: 10px; }
  body.pg-index main .wshelf__link { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
  body.pg-index main .wshelf__sum { display: none; }
  body.pg-index main .wshelf__t { font-size: 1rem; line-height: 1.3; }
}
