/* Redesign layer (brand kit, Nagesh, November 2026).
   Sitewide (approved for every page): the frosted glass menu and the inset navy footer.
   Everything else applies only to pages that opt in with body.rd, migrated one at a time in funnel order.
   Heroes, photos, and approved paper objects (notebook, lenses, fork notes, spread) keep their own styles. */

/* ---------- Sitewide: frosted glass menu once the page scrolls (see-through over heroes, as before) ---------- */
.site-header.is-scrolled,
.theme-sky .site-header.is-scrolled,
.site-header:has(.is-open),
.theme-sky .site-header:has(.is-open) {
  background: rgba(255, 251, 242, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(15, 27, 61, .14);
}
@media (max-width: 860px) {
  .js .site-nav {
    background: rgba(255, 251, 242, .82);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    backdrop-filter: blur(22px) saturate(1.5);
    border-top: 1px solid rgba(15, 27, 61, .14);
    border-bottom: 1px solid rgba(15, 27, 61, .14);
    box-shadow: 0 18px 30px -18px rgba(15, 27, 61, .35);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled, .site-header:has(.is-open), .js .site-nav { background: var(--paper); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .site-header:has(.is-open), .js .site-nav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Sitewide: inset navy footer with breadcrumb ---------- */
.fn-stage { background: var(--cream) var(--lattice); padding: clamp(28px, 4vw, 48px) clamp(12px, 3vw, 44px) 0; overflow-x: clip; }
.site-footer.fn { position: relative; max-width: 1280px; margin: 0 auto; background: var(--midnight); color: #FFFBF2; padding: clamp(24px, 4vw, 44px) clamp(20px, 4.5vw, 64px) 24px; border: 0; }
.fn a { color: inherit; }
.fn__crumbs { padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid rgba(245, 236, 217, .22); }
.fn__crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9rem; color: var(--on-dark); }
.fn__crumbs li { display: inline-flex; align-items: center; }
.fn__crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 12px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); opacity: .7; }
.fn__crumbs a { text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.fn__lead { padding: 22px 0 28px; border-bottom: 1px solid rgba(245, 236, 217, .22); display: grid; gap: 12px; }
.fn__principle { margin: 0; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1.2; color: #FFFBF2; }
.fn__principle .ft-mark { font-family: 'Literata', Georgia, serif; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.12em; position: relative; white-space: nowrap; }
.fn__principle .ft-circle { position: absolute; left: -8%; top: -24%; width: 116%; height: 150%; overflow: visible; pointer-events: none; }
.fn__note { margin: 0; color: var(--on-dark); max-width: 46ch; }
.fn__acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.fn__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font: 600 12.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; background: #FFFBF2; color: var(--midnight) !important; border: 1px solid #FFFBF2; }
.fn__btn--ghost { background: transparent; color: #FFFBF2 !important; }
.fn__btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: #FFFBF2 !important; }
.fn__cols { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(245, 236, 217, .22); align-items: end; }
.fn__cols nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fn__h { margin: 0 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #F7A391; }
.fn__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fn__cols li a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; color: var(--on-dark); text-decoration: none; }
.fn__cols li a:hover { color: #FFFBF2; text-decoration: underline; }
.fn__cols .nv-lock { width: 13px; height: 13px; }
.fn__brand { justify-self: start; display: inline-flex; align-items: baseline; gap: 4px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); color: #FFFBF2; }
.fn__base { padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .85rem; color: #C9D0E2; }
.fn__base p { margin: 0; }
.fn__top { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; display: grid; place-items: center; background: #FFFBF2; color: var(--midnight) !important; box-shadow: var(--plate-shadow); }
.fn__top svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .fn__cols { grid-template-columns: 1fr 1fr 1.2fr; }
  .fn__cols nav { grid-column: 1 / 3; }
  .fn__brand { justify-self: end; }
  .fn__lead { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; }
  .fn__lead .fn__acts { grid-column: 2; }
  .fn__lead .fn__note { grid-column: 2; grid-row: 1; }
  .fn__top { right: 0; bottom: 64px; transform: translateX(50%); }
}

/* ---------- Opt-in pages (body.rd): the brand kit below the hero ---------- */
/* Headline voice: headings with a marked word show in capitals; the italic word in Literata. */
.rd main :is(h2, h3):has(.it) { font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; line-height: 1.14; color: var(--midnight); text-wrap: balance; }
.rd main h2:has(.it) { font-size: clamp(1.55rem, 1rem + 2.3vw, 2.6rem); }
.rd main h3:has(.it) { font-size: clamp(1.15rem, .95rem + 1vw, 1.55rem); }
.rd main .it { font-family: 'Literata', Georgia, serif; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.12em; }
.rd main .tail { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .72em; line-height: 1.2; color: var(--ink-soft); }
.rd main .eyebrow { letter-spacing: .16em; }

/* Grounds: cream lattice; paper desk at section openings */
.rd main .band--paper, .rd main .band--cream { background-color: var(--cream); background-image: var(--lattice); }
.rd #selected-work { background: var(--cream) var(--lattice); background-size: 120px 200px; }
.rd main .wshelf { background: var(--cream) var(--lattice); background-size: 120px 200px; }
@media (max-width: 720px) { .rd #selected-work, .rd main .wshelf { background: var(--cream) var(--lattice); } }

/* Section openings sit on a plate where a paper-desk ground runs behind them */
.rd #selected-work .section-head, .rd .wshelf .section-head { background: var(--fringe, #FFFBF2); box-shadow: var(--plate-shadow); padding: clamp(22px, 3.4vw, 40px); }

/* Selected work: no midnight, no black, no pink (Nagesh, October 2026). Words on plates, cobalt headings. */
.rd #selected-work .section-head :is(h2, h3), .rd #selected-work .section-head .it { color: var(--cobalt-deep); }
@media (min-width: 901px) { .rd #selected-work .sc__h { color: var(--cobalt-deep); } }
.rd #selected-work .sc__h { font-family: var(--font-display); text-transform: none; letter-spacing: 0; }
.rd #selected-work .sc__live { border-radius: 0; }
.rd #selected-work .sc__out { background: #EAF2FB; }

/* Film: the player sits in a white mat */
.rd .home-film .vid__frame { background: #FFFBF2; padding: clamp(8px, 1.2vw, 14px); box-shadow: var(--plate-shadow); border-radius: 0; }

/* About and teaching spread: the open journal on midnight */
.rd main .spread { background: var(--midnight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='200' viewBox='0 0 120 200'%3E%3Cpath d='M0 0L120 200M120 0L0 200' stroke='%23F5ECD9' stroke-width='1' fill='none' opacity='.12'/%3E%3C/svg%3E"); }

/* Writing: headings in midnight on the paper desk */
.rd .wshelf .eyebrow { color: #B02E18; }

/* Buttons below the hero: square midnight, ghost, and light on dark bands; heroes keep their rounded buttons */
.rd main > section:not(.hero) .btn { border-radius: 0; box-shadow: none; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; min-height: 48px; padding: 0 22px; }
.rd main > section:not(.hero):not(.band--cobalt) .btn--primary { background: var(--midnight); color: #FFFBF2; border: 1px solid var(--midnight); }
.rd main > section:not(.hero):not(.band--cobalt) .btn--secondary { background: transparent; color: var(--midnight); border: 1px solid var(--midnight); }
.rd main > section:not(.hero):not(.band--cobalt) .btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #FFFBF2; }
.rd main > .band--cobalt .btn--primary { background: #FFFBF2; color: var(--midnight); border: 1px solid #FFFBF2; }
.rd main > .band--cobalt .btn--light { background: transparent; color: #FFFBF2; border: 1px solid #FFFBF2; }

/* Text links: tracked capitals with an underline */
.rd main > section:not(.hero) .textlink { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; }

/* Say hello: the heading on cobalt in cream */
.rd main .closing :is(h2, h3):has(.it), .rd main .closing .it { color: #FFFBF2; }

/* Selected work on wider screens: the words sit on a white plate with dark text. On phones the card keeps
   its own colored panel (the text panel dissolves there so the question leads), so its original colors stay. */
@media (min-width: 901px) {
.rd #selected-work .sc__body { background: #FFFBF2; box-shadow: var(--plate-shadow); padding: clamp(20px, 2.8vw, 34px); }
.rd #selected-work .sc__body { color: var(--ink-soft); }
.rd #selected-work .sc__kind { color: #6E1B0D; }
.rd #selected-work .sc__dec { color: var(--cobalt-deep); font-family: 'Literata', Georgia, serif; font-style: italic; }
.rd #selected-work .sc__con { color: var(--ink-soft); }
.rd #selected-work .sc__live { background: var(--cobalt); color: #fff; }
.rd #selected-work .sc__out, .rd #selected-work .sc__out .sc__out-k { color: var(--cobalt-deep); border-left-color: var(--vermilion); }
.rd #selected-work .lock-note, .rd #selected-work .textlink { color: var(--cobalt-deep); }
}

/* Judge panel fixes (November 2026) */
/* Proof line on phones: the card keeps its own colors there, so no pale panel behind light text */
@media (max-width: 900px) { .rd #selected-work .sc__out { background: transparent; } }
@media (min-width: 901px) { .rd #selected-work .sc__out { background: #EAF2FB; } }
/* Footer: centred labels, red dot everywhere, back to top inside the panel, no torn edge above */
.fn__btn { align-items: center; line-height: 1; padding-block: 0; }
.fn__brand .brand__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--vermilion); }
.fn__top { right: 14px; bottom: 14px; transform: none; }
@media (min-width: 900px) { .fn__top { right: 18px; bottom: 18px; transform: none; } .fn__base { padding-right: 70px; } }
.fn-stage { position: relative; z-index: 2; }
/* Buttons below the hero: the copy button and course starts follow the square style */
.rd main > section:not(.hero) .copy { border-radius: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; min-height: 40px; }
.rd .tsyl__go, .rd .tsyl__start { border-radius: 0 !important; box-shadow: none !important; }
/* Scroll hint readable on navy */
.rd .fnote-track.is-on .fnote__hint { color: rgba(255, 251, 242, .8); }
/* Spread headings: shorter, so About and Learn read in two or three lines */
.rd main .spread h2:has(.it) { font-size: clamp(1.35rem, 1rem + 1.2vw, 2.05rem); }
/* Keep the access-code note clear of the paper desk */
.rd #selected-work .hw__foot { position: relative; z-index: 1; background: #FFFBF2; padding: 14px 18px; box-shadow: var(--plate-shadow); }
.site-footer.fn::before, .site-footer.fn::after { display: none !important; content: none !important; }

/* ---------- Homepage, completing the approved mock-up (November 2026) ---------- */
/* Selected work: no colored panels. Each story is a framed picture with its words on a white plate that overlaps it. */
.rd #selected-work .sc::before, .rd #selected-work .sc::after { display: none; }
.rd #selected-work .sc { padding: 0; color: var(--ink-soft); gap: 0; margin-bottom: clamp(64px, 8vw, 110px); }
@media (min-width: 901px) { .rd #selected-work .sc__stage { padding-bottom: 72px; } }
.rd #selected-work .sc__art .illus img { border-color: #FFFBF2; transform: none; }
.rd #selected-work .sc__art--order { background: var(--cobalt) var(--paper-cobalt) 0 0 / 512px; padding: 36px 20px 28px; box-shadow: var(--plate-shadow); }
.rd #selected-work .sc__art--order figcaption { color: #F6CF5C; }
.rd #selected-work .sc__num { color: transparent; -webkit-text-stroke: 1.5px var(--vermilion); z-index: 3; }
.rd #selected-work .sc__h, .rd #selected-work .sc__dec { color: var(--cobalt-deep); }
.rd #selected-work .sc__kind { color: #6E1B0D; }
.rd #selected-work .sc__con, .rd #selected-work .sc__body { color: var(--ink-soft); }
.rd #selected-work .sc__live { background: var(--cobalt); color: #fff; border-radius: 0; }
.rd #selected-work .sc__out, .rd #selected-work .sc__out .sc__out-k { color: var(--cobalt-deep); border-left-color: var(--vermilion); }
.rd #selected-work .lock-note, .rd #selected-work .textlink { color: var(--cobalt-deep); }
@media (min-width: 901px) {
  .rd #selected-work .sc { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .rd #selected-work .sc__body { position: relative; z-index: 2; margin-left: -72px; max-width: 560px; }
  .rd #selected-work .sc--1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .rd #selected-work .sc--1 .sc__body { margin-left: 0; margin-right: -72px; justify-self: end; }
}
@media (max-width: 900px) {
  .rd #selected-work .sc { background: #FFFBF2; box-shadow: var(--plate-shadow); padding: 20px 16px 22px; }
  .rd #selected-work .sc__out { background: #EAF2FB; padding: 10px 12px; }
}

/* Film: heading on the left, the film in its white mat on the right */
@media (min-width: 901px) {
  .rd .home-film > .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
  .rd .home-film .section-head { margin: 0; }
  .rd .home-film .section-head .h, .rd .home-film .section-head h2 { max-width: 20ch; }
}

/* About and teaching spread: the watercolor of Nagesh closes the About page */
.spread__wc { margin: 18px 0 0; }
.spread__wc img { display: block; width: min(320px, 82%); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(15, 27, 61, .2)); }
@media (min-width: 901px) { .rd .spread__page--l { display: flex; flex-direction: column; } .rd .spread__wc { margin-top: auto; padding-top: 24px; } }
.spread:not(.rd *) .spread__wc { display: none; }

/* Writing: featured essay as a plate over its picture; the rest as gallery cards on a midnight band; press on a plate */
.rd .wshelf__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.rd .wshelf__feature { position: relative; }
.rd .wshelf__feature .wdesk__link { display: grid; text-decoration: none; color: inherit; }
.rd .wshelf__feature .wdesk__art img { display: block; width: 100%; height: auto; box-shadow: var(--plate-shadow); border-radius: 0; transform: none; }
.rd .wshelf__feature .wdesk__body { position: relative; z-index: 2; background: #FFFBF2; box-shadow: var(--plate-shadow); padding: clamp(20px, 3vw, 38px); margin: -40px 14px 0; transform: none; }
.rd .wshelf__feature .wdesk__title { color: var(--midnight); }
.rd .wshelf__feature .wdesk__new { background: var(--vermilion-deep); color: #fff; border-radius: 0; }
.rd .wshelf__side { background: var(--midnight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='200' viewBox='0 0 120 200'%3E%3Cpath d='M0 0L120 200M120 0L0 200' stroke='%23F5ECD9' stroke-width='1' fill='none' opacity='.12'/%3E%3C/svg%3E"); padding: clamp(16px, 2.6vw, 28px); }
.rd .wshelf__k { color: #F7C6B9; margin: 0 0 14px; }
.rd .wshelf__list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rd .wshelf__row { background: #FFFBF2; border-radius: 14px; padding: 12px; border: 0; margin: 0; }
.rd .wshelf__link { display: grid; grid-template-columns: 1fr; gap: 8px; color: var(--ink); text-decoration: none; }
.rd .wshelf__thumb { width: 100%; height: auto; flex: none; }
.rd .wshelf__thumb img { width: 100%; height: auto; min-height: 0; aspect-ratio: 12 / 7; object-fit: cover; object-position: center; transform: none !important; box-shadow: none !important; border: 0 !important; }
.rd .wshelf__t { font-family: 'Literata', Georgia, serif; font-style: italic; font-size: 1.15rem; line-height: 1.25; color: var(--midnight); }
.rd .wshelf__press { background: #FFFBF2; box-shadow: var(--plate-shadow); border-radius: 0; transform: none; margin-top: 28px; }
.rd .wshelf__press::before, .rd .wshelf__press::after { display: none; }
@media (min-width: 640px) { .rd .wshelf__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 901px) {
  .rd .wshelf__feature .wdesk__link { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
  .rd .wshelf__feature .wdesk__body { margin: 0 0 0 -72px; }
  .rd .wshelf__list { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 901px) { .rd #selected-work .sc__stage .fk { z-index: 1; } .rd #selected-work .sc--2 .sc__body { margin-left: -40px; } }

/* Brand kit grading fixes (November 2026) */
/* Lattice keeps its own tile size on cream bands (the old 512px paper size stretched it) */
.rd main .band--paper, .rd main .band--cream { background-size: 120px 200px; background-repeat: repeat; }
/* Selected work: no midnight; fork notes and labels in deep cobalt */
.rd #selected-work { --navy: var(--cobalt-deep); }
/* Contrast: the piece count on midnight */
.rd .wshelf__k span { color: #F7C6B9; }
/* "More on this site" reads as an eyebrow, not handwriting */
.rd .wshelf__k { font-family: var(--font-body); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #F7C6B9; }
/* Tap targets: 44px for links and small buttons, gained from padding */
.rd main > section:not(.hero) .textlink { display: inline-flex; align-items: center; min-height: 44px; }
.rd main .copy { min-height: 44px; }
.fn__cols li a, .fn__crumbs a { min-height: 44px; }
/* Course starts in the Learn spread: tracked-caps text links, the colored numerals stay the accent */
.rd .tsyl__start { background: transparent !important; color: var(--midnight) !important; border: 0 !important; border-bottom: 2px solid var(--vermilion) !important; padding: 0 !important; min-height: 44px; font: 600 .74rem/1.3 var(--font-body) !important; letter-spacing: .12em; text-transform: uppercase; }
.rd .tsyl__start:hover { color: var(--cobalt) !important; transform: none !important; }
/* Links that read the essay or interview: tracked caps like every other text link */
.rd .wdesk__more { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
/* Square corners: Selected work cards on phones */
.rd #selected-work .sc { border-radius: 0; }
/* Motion to spec: plates rise 12px and fade over 420ms */
.js .rd .reveal { transform: translateY(12px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.js .rd .reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rd .reveal { transform: none; transition: none; } }
/* Featured essay (Nagesh, November 2026: "my image is cut off"): the plate sits beside its picture, never over it,
   so the whole cover shows (the covers put him at the right edge). It drops a little lower for the layered look. */
@media (min-width: 901px) { .rd .wshelf__feature .wdesk__body { margin: 56px 0 0 0; } }
/* Phone body text at 17px */
@media (max-width: 720px) { .rd { --fs-body: 1.0625rem; } }
/* Footer on phones: labels centred, the circle clear of the line above */
.fn__btn { line-height: 1; height: 48px; padding-top: 0; padding-bottom: 0; }
.fn__principle .ft-mark { margin-left: .3em; padding: 0 .15em; }
.rd main .email-line .copy, .rd main button.copy { min-height: 44px; }
.rd .fnote__next { display: inline-flex; align-items: center; min-height: 44px; }
body.rd .closing .email-line .copy { min-height: 44px; }
.fn__base a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer.fn .fn__acts .fn__btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; line-height: 1; }

/* Re-grade fixes: underlines sit under the words, not at the bottom of the 44px box */
.rd main > section:not(.hero) .textlink, .rd .tsyl__start, .rd .wdesk__more { border-bottom: 0 !important; background-image: none; text-decoration: underline 2px var(--vermilion); text-underline-offset: 6px; }
.rd main > section:not(.hero) .textlink::after, .rd .wdesk__more::after { display: none; }
/* Footer base row stays on one line */
.fn__base { align-items: center; } .fn__base p { display: flex; align-items: center; min-height: 44px; }
/* Say hello eyebrow in cream on cobalt */
.rd main .closing .eyebrow { color: #FFFBF2; }
/* Phones: the tall journal spread shows its pages on arrival instead of waiting to fade in */
@media (max-width: 900px) { .js .rd .spread__book[data-draw] .spread__page { opacity: 1 !important; translate: none !important; } }

/* How I work: watercolor scenes in the storybook float as cut-outs, no photo frame */
.rd .story-wc { object-fit: contain; background: transparent; border: 0 !important; box-shadow: none !important; filter: drop-shadow(0 12px 16px rgba(15, 27, 61, .25)); }

/* 404: the torn-map watercolor below the hero */
.nf-band { padding-block: clamp(40px, 6vw, 72px); }
.nf-band__art { margin: 0 auto; width: min(360px, 78%); }
.nf-band__art img { width: 100%; height: auto; filter: drop-shadow(0 12px 16px rgba(15, 27, 61, .2)); transform: rotate(-2deg); }

/* Acceptance fix (November 2026): the open phone menu was see-through over the hero, so the page
   showed through the menu items. The open menu and its bar are now nearly solid paper; the glass
   stays only on the scrolled bar, where nothing sits behind its text. */
.site-header:has(.is-open), .theme-sky .site-header:has(.is-open) { background: rgba(251, 246, 234, .97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
@media (max-width: 860px) {
  .js .site-nav.is-open { background: rgba(251, 246, 234, .97); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); min-height: calc(100dvh - 72px); box-shadow: none; }
}
/* Open phone menu: solid paper, nothing shows through */
@media (max-width: 860px) {
  .js .site-nav.is-open { background: #FBF6EA !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .site-header:has(.is-open), .theme-sky .site-header:has(.is-open) { background: #FBF6EA !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* Acceptance fixes, footer on phones (November 2026): buttons stack instead of overlapping; the bottom row
   keeps the right corner clear for the chat button; back to top sits in the row; the circle clears the line above. */
@media (max-width: 899px) {
  .site-footer.fn .fn__acts { flex-direction: column; align-items: stretch; gap: 12px; }
  .site-footer.fn .fn__acts .fn__btn { width: auto; }
  .fn__base { flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 84px; }
  .fn__base p { min-height: 0; } .fn__base a { overflow-wrap: anywhere; }
  .fn__top { position: static; transform: none; margin-top: 14px; }
  .fn__principle { line-height: 1.4; }
  .fn__principle .ft-circle { top: -6%; height: 112%; }
  .site-footer.fn { padding-bottom: 28px; }
}
/* The new footer's links are already 44px or taller, so the old phone tap-area trick (negative margin) is reset here */
.site-footer.fn a, .site-footer.fn button { margin-top: 0 !important; margin-bottom: 0 !important; }
.fn__cols ul { gap: 0; }
@media (min-width: 900px) { .fn__top { top: 18px; bottom: auto; right: 18px; } .fn__crumbs { padding-right: 72px; } .fn__base { padding-right: 0; } }

/* Site grading fixes (November 2026) */
/* Headings on cobalt bands read in cream (About's experience band was midnight on cobalt) */
.rd main .band--cobalt :is(h2, h3):has(.it), .rd main .band--cobalt :is(h2, h3) .it { color: #FFFBF2; }
/* Contact: the postcard keeps its own ink and button, as approved */
.rd main .postcard :is(h2, h3), .rd main .postcard :is(h2, h3) .it { color: var(--midnight) !important; }
.rd main > .band--cobalt .postcard .btn--primary { background: var(--midnight); color: #FFFBF2; border-color: var(--midnight); }
/* About: square tags, midnight tools panel, italic restored */
.rd .kit__tags li, .rd .nw__state { border-radius: 0; }
.rd .nw__tools { background: var(--midnight); color: #FFFBF2; }
.rd .nw__tools h3, .rd .nw__tools span { color: #F7C6B9; }
.rd main h2 .it, .rd main h3 .it { font-family: 'Literata', Georgia, serif !important; font-style: italic !important; }
/* Prioritization tool: square controls, midnight primary actions */
.rd .pz-ex button, .rd .pz-tabs button, .rd .pz-tools button, .rd .pz-seg button, .rd #pz-add, .rd #pz-suggest, .rd #pz-copy-note { border-radius: 0; border-color: var(--midnight); }
.rd .pz-tabs button[aria-selected="true"], .rd .pz-seg button[aria-pressed="true"], .rd #pz-suggest { background: var(--midnight); color: #FFFBF2; }
/* How I work: the loop lead clears the arc label */
.rd .method .loop { margin-top: 28px; }
/* Selected work, mirrored story: its notes sit at the picture's left edge, so the plate does not overlap there */
@media (min-width: 901px) { .rd #selected-work .sc--1 .sc__body { margin-right: 0; } .rd #selected-work .sc--1 .sc__stage { margin-left: 24px; } }

/* Section joins (acceptance fix, November 2026): restyled bands tear in their own color. The old paper-edge
   images were made for the old textures, so on the lattice and on navy they read as a grey smear. */
.rd main .band--tear.band--paper::before, .rd main .band--tear.band--cream::before, .rd main .band--tear.spread::before {
  background: var(--cream); background-image: none; opacity: 1; height: 22px; top: -14px; clip-path: var(--torn-fringe); filter: none; box-shadow: none;
}
.rd main .band--tear.spread::before { background: var(--midnight); }

/* Acceptance fix (November 2026): tracked-caps links that wrap kept a tight line height, so each underline ran
   into the next line. Wrapped links get room between lines and the underline sits closer to its own words. */
.rd main > section:not(.hero) .textlink, .rd .tsyl__start, .rd .wdesk__more, .rd main .hw__foot a {
  line-height: 1.95 !important; text-underline-offset: 4px; text-decoration-thickness: 2px; padding-block: 6px; display: inline-block; min-height: 44px;
}
.rd .tsyl__start { display: inline-block !important; }
.nobr { white-space: nowrap; }
.nobr > svg { display: inline-block !important; vertical-align: -3px; }
/* Section joins: the blue notebook panel sits on the paper with a soft shadow, not a dark haze */
.rd .practice { box-shadow: 0 1px 2px rgba(15, 27, 61, .12), 0 18px 30px -22px rgba(15, 27, 61, .35); }

/* Page QA fixes: field guide and tool (November 2026) */
/* Square buttons below headers, everywhere: guide start, diagram controls, mark complete, transcript */
.rd .gl-go .btn, .rd .cg button, .rd .gl-mark, .rd .vid__more, .rd .vid__tbtn, .rd button.vid__tx { border-radius: 0 !important; }
.rd .gl-go .btn { white-space: normal; text-align: left; }
.rd .gl-markrow { align-items: center; }
/* Grids that wrapped with a lone item: columns that fit the item count */
@media (min-width: 1000px) {
  .rd .pz-guide { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .rd .bench > .form { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; align-items: end; }
}
@media (min-width: 900px) {
  .rd .cg .truths { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .rd .cg .cast { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
/* Tool: score fields line up at the bottom of each row */
.rd .pz-idea__f { align-items: end; }
.rd .pz-idea__f > label, .rd .pz-idea__f > div { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.rd .pz-idea__f select { min-width: 0; max-width: 100%; }
/* Footer circle clears the line above on every width */
.fn__principle { line-height: 1.45; }
.rd .pz-privacy { margin-top: 14px; }
/* Guide meta line: items never start a line with an orphaned dot; each item stays whole */
.rd .gl-meta li { white-space: nowrap; }
.rd .gl-meta li + li::before { content: none; }
.rd .gl-meta li:not(:last-child)::after { content: ""; display: inline-block; vertical-align: middle; width: 5px; height: 5px; margin: 0 4px 2px 12px; border-radius: 50%; background: var(--vermilion-deep); }

/* Page QA: wide tables on phones show that they scroll (a fade at the edge and a swipe hint, only when they overflow) */
.pb-table.is-wide { position: relative; background:
  linear-gradient(90deg, #FFFDF7 30%, rgba(255,253,247,0)) left center / 28px 100% no-repeat local,
  linear-gradient(270deg, #FFFDF7 30%, rgba(255,253,247,0)) right center / 28px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(15,27,61,.22), transparent) left center / 12px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(15,27,61,.22), transparent) right center / 12px 100% no-repeat scroll; }
.pb-table.is-wide table { background: transparent; }
.pb-swipe { margin: -8px 0 var(--s-4); font-size: .82rem; color: var(--muted); }
.pb-swipe::after { content: " \2192"; }
/* Footer circle clears the line above at every width */
.fn__principle .ft-circle { top: -6% !important; height: 112% !important; }
/* Page QA: ruled cards. Rules follow each text block's own line height, so they sit under the words instead of through them */
.rd :is(.cards > .card, .build, .bet):nth-child(5n+1)::after { background: #FFFDF7 var(--paper-light) 0 0 / 512px; }
.rd :is(.cards > .card, .build, .bet):nth-child(5n+1) :is(h3, p:not(.card__tag)) {
  background-image: linear-gradient(transparent calc(100% - 1px), rgba(103, 183, 229, .38) calc(100% - 1px));
  background-size: 100% 1lh; background-repeat: repeat-y; }
/* Contact hero: Copy email matches the rounded hero buttons */
body.rd main :is(.hero, .page-hero, .contact) .email-line .copy { border-radius: 999px !important; padding-inline: 16px; }

/* ===== Page QA pass, November 2026: main pages and writing ===== */
/* Home, Selected work: the outline number gets room above the tags; the "easy path" note wraps evenly */
@media (max-width: 760px) { .rd .sc__tags { margin-top: 14px; } }
.rd .fk__t { text-wrap: balance; }
/* How I work, phone swipe cards: each card is as tall as its own story, pictures share one shape */
@media (max-width: 860px) {
  .rd .story-flip__steps { align-items: flex-start; }
  .rd .story-step__img > * { width: 100%; height: 100%; }
}
/* How I work: room between the lens intro and the loop drawing */
.rd .lenses + .loop { margin-top: var(--s-7, 64px); }
/* Writing: the embedded prototype stays inside the article column at every width */
.rd article .prose .demo { margin-left: 0 !important; margin-right: 0 !important; border-radius: 8px; }
.rd .demo__bar { flex-wrap: wrap; row-gap: 6px; }
.rd .demo__label { white-space: nowrap; }
/* Footer breadcrumb and article meta: separators end a line instead of starting one */
.rd .fn__crumbs ol { display: block; }
.rd .fn__crumbs li { display: inline; }
.rd .fn__crumbs li + li::before { content: none; }
.rd .fn__crumbs li:not(:last-child)::after { content: ""; display: inline-block; vertical-align: middle; width: 6px; height: 6px; margin: -2px 14px 0 10px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); opacity: .7; }
.rd .article-head__meta span + span::before { content: none; }
.rd .article-head__meta span:not(:last-child)::after { content: "\00B7"; margin-left: var(--s-3); color: var(--ink-soft); font-weight: 700; }
/* Essays: the closing note after the sources has room and matches their size */
.rd .sources ul + p, .rd .essay-sources ul + p { margin-top: var(--s-5); font-size: .92rem; font-style: italic; }
/* Essay films: one set of controls at a time; the play pill sits in the corner, off the drawing */
.rd .vid.is-started:not(.is-playing):not(.show-bar):not(:focus-within) .vid__bar { opacity: 0; pointer-events: none; }
.rd #essay-film .vid__big { left: 20px; top: auto; bottom: 20px; transform: none; }
.rd #essay-film .vid__big:hover { transform: translateY(-2px); }
.rd #essay-film.is-playing .vid__big { transform: translateY(6px); }
@media (max-width: 760px) { .rd #essay-film .vid__big { left: 10px; bottom: 10px; } }
/* Essays: the closing question is a margin note on paper, clearly set apart */
.rd .ask { background: #FFFDF7 var(--paper-light) 0 0 / 512px; border-left: 3px solid var(--vermilion); padding: 18px 22px; box-shadow: var(--plate-shadow, 0 10px 24px -14px rgba(12, 22, 44, .45)); font-family: var(--font-display); font-style: italic; }
/* Writing: the notebook's lead story sits centered on its page beside the longer contents list */
@media (min-width: 761px) { .rd .nbook__l { align-self: center; } }
/* Essay films: a round play button (its label stays for screen readers), low in the empty left column */
.rd #essay-film .vid__big { left: 8%; bottom: 17%; padding: 6px; gap: 0; }
.rd #essay-film .vid__big-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd #essay-film .vid__big-ic { width: 56px; height: 56px; }
@media (max-width: 760px) { .rd #essay-film .vid__big { left: 9%; bottom: 15%; padding: 3px; } .rd #essay-film .vid__big-ic { width: 34px; height: 34px; } }

/* ===== Watercolor set (November 2026): painted scenes in course and guide part headers ===== */
.wcset { margin: 0; }
.wcset img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 12px rgba(12, 22, 44, .22)); }
.rd .ptrail__wc { margin: 14px auto 0; max-width: 220px; transform: rotate(1.5deg); }
.rd .ptrail__part:nth-child(even) .ptrail__wc { transform: rotate(-1.5deg); }
.rd .aiq__head { position: relative; padding-right: 170px; min-height: 190px; align-content: end; }
.rd .aiq__wc { position: absolute; right: 0; bottom: -14px; width: 140px; transform: rotate(2deg); }
@media (max-width: 760px) {
  .rd .ptrail__wc { max-width: 180px; }
  .rd .aiq__head { padding-right: 104px; min-height: 150px; }
  .rd .aiq__wc { width: 96px; bottom: -10px; }
}
/* Watercolor beside a section heading (Nagesh's own pages): floats right of the heading and its lead */
.rd .wcset--aside { float: right; width: clamp(150px, 20vw, 240px); margin: -12px 0 12px 28px; transform: rotate(1.5deg); shape-outside: margin-box; }
@media (max-width: 760px) { .rd .wcset--aside { width: 120px; margin: -6px -4px 8px 14px; } }
/* Watercolor in a closing band (Learn and the tool) */
.rd .closing__wc { max-width: 340px; margin: 0 auto; transform: rotate(-1.5deg); }
.rd .closing__wc img { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }
.rd :has(> .wcset--aside) { display: flow-root; }
.rd .ex__body .wcset--aside { width: clamp(120px, 12vw, 160px); margin-left: 18px; }

/* ===== Type audit (Nagesh, November 2026): card and sub-headings follow the kit, Fraunces 700 in Midnight =====
   The old journal styles mixed 600, 700, 800, and 900 in near-black and navy. One weight, one ink. Dark bands keep their light ink. */
body.rd main :is(h3, h4, .learn-card__t, .wdesk__dh, .card__title, .ecard__title, .fnote__t, .tsyl__t, .ptrail__h, .ptrail__t, .aiq__ph, .sc__h, .pb-step__h, .method__h, .pb-sub, .pb-tpl__t, .opm__h) { font-weight: 700; }
body.rd main :is(h3, h4, .learn-card__t, .wdesk__dh, .card__title, .ecard__title, .fnote__t, .tsyl__t, .method__h, .pb-sub, .opm__h):not(:is(.band--cobalt, .band--midnight, .closing, .spread, .capability--b, .ptrail__part--0, .nw__tools, [class*="on-dark"], .fn) *) { color: var(--midnight); }
body.rd main :is(.vid__title, .tsyl__t, .ptrail__t, .pb-tpl__t, .kit h3) { color: var(--midnight); }

/* ===== Two voices (Nagesh, November 2026: "too many different fonts create chaos") =====
   Kit revision, after the LVMH reference: Inter is the one voice for headlines (capitals), card titles,
   leads, body, labels, and buttons. Literata italic is the accent: the one marked word, pull quotes, and
   the margin notes that used a handwriting font. Literata upright stays only for long essay reading.
   Exceptions: the name mark and the parked heroes keep Fraunces; code keeps a monospace face;
   product mock-ups keep the fonts of the thing they show. */
body.rd { --font-display: var(--font-body); }
body.rd :is(.brand, .hero h1, .hero .strip, .page-hero h1) { --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif; font-family: var(--font-display); }
body.rd main :is(h3, h4, .learn-card__t, .wdesk__dh, .card__title, .ecard__title, .fnote__t, .tsyl__t, .ptrail__h, .ptrail__t, .aiq__ph, .sc__h, .pb-step__h, .method__h, .pb-sub, .pb-tpl__t, .opm__h, summary) { font-weight: 600; letter-spacing: -.005em; }
/* bold serif titles become the sans title */
body.rd .wdesk__title,
body.rd .wdesk__ntitle,
body.rd .wdesk__st,
body.rd .nbook__title,
body.rd .nbook__t,
body.rd .wshelf__t { font-family: var(--font-body); font-weight: 600; font-style: normal; letter-spacing: -.01em; }
/* handwritten notes become the italic accent, in their own color, sized to read like the notes they replace */
body.rd .wdesk__tag,
body.rd .nbook__margin,
body.rd .ab-card__k,
body.rd .ab-drawn__k,
body.rd .fnote__note span,
body.rd .fnote__fig figcaption,
body.rd .fnote__next,
body.rd .fnote__again,
body.rd .opm__phases em,
body.rd .opm__teams i,
body.rd .ex__q,
body.rd .st__here,
body.rd .story-step__work span,
body.rd .fk__k,
body.rd .sc__q,
body.rd .pb-ex__k,
body.rd .pb-note .pb-note__k,
body.rd .pb-hook .pb-hook__k,
body.rd .pb-mine__k,
body.rd .pbd-h,
body.rd .pb-head__tock,
body.rd .ft__card-k,
body.rd .fnote-track.is-on .fnote__hint,
body.rd .so__src,
body.rd .wshelf__k,
body.rd .learn-receipt__k,
body.rd .tcov__words i,
body.rd .guide-toc li.is-here a::after,
body.rd .gl-note__k,
body.rd .pz-col h4 { font-family: 'Literata', Georgia, serif; font-style: italic; font-weight: 400; font-size-adjust: 0.42; letter-spacing: 0; }
/* The field guide follows the same two voices (its own scoped variables) */
body.rd .cg { --display: var(--font-body); --body: var(--font-body); }
body.rd :is(.wdesk__sum, .nbook__sum, .ab-text p) { font-family: var(--font-body); }
/* Buttons and form controls take the site's voice instead of the browser default */
body.rd :is(button, input, select, textarea) { font-family: var(--font-body); }
/* Phone menu: the original list in Fraunces (Nagesh's navigation decision), an exception beside the name mark */
@media (max-width: 900px) { body.rd .site-nav.is-open .site-nav__list a { font-family: 'Fraunces', 'Georgia', 'Times New Roman', serif; font-weight: 800; } }

/* ===== Consistency pass (kit audit, November 2026) =====
   One button below the heroes: square, 48px, Inter 600 caps at 12.8px, tracked. Media controls (film and listen pills) stay round. */
body.rd main :is(.pb-ask .btn, .gl-go .btn, .pb-kit__copy, .essay-rail__share .copy, .pz-tools button, .pz-ex button, .pz-row > button, .pz-primary) {
  border-radius: 0 !important; min-height: 44px; padding-inline: 18px; font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
body.rd main .gl-go .btn, body.rd main .pb-ask .btn { min-height: 48px; }
body.rd main .pz-seg button { min-height: 44px; }
body.rd main .pz-primary { background: var(--midnight); color: #FBF6EA; border-color: var(--midnight); }
/* Hover: every button answers the pointer. Filled buttons darken to deep cobalt; outlined ones fill */
body.rd main .btn--primary:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #FBF6EA; }
body.rd main .btn--secondary:hover { background: var(--midnight); border-color: var(--midnight); color: #FBF6EA; }
body.rd main .btn--light:hover { background: #FBF6EA; border-color: #FBF6EA; color: var(--midnight); }
/* Focus: one ring. Cobalt on light grounds, mustard on dark bands */
body.rd :focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; box-shadow: none; }
body.rd :is(.band--cobalt, .band--midnight, .closing, .spread, .site-footer, .fn, .nw__tools) :focus-visible { outline-color: var(--mustard); }


/* ===== Calls to action (UX rules, November 2026): one button per section; one contact ask per page ===== */
body.rd .closing__alt { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 500 .95rem/1.4 var(--font-body); color: rgba(251, 246, 234, .86); }
body.rd .closing__alt .email-line { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
body.rd .closing__alt .textlink { color: #FBF6EA; }
body.rd main .closing .copy--text, body.rd .copy--text { min-height: 44px; padding: 0 4px; border: 0 !important; background: none !important; color: #FBF6EA; font: 600 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; border-radius: 0 !important; }
body.rd .closing .actions .btn { width: auto; }

body.rd .fn__acts--text { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 600 .82rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
body.rd .fn__acts--text a { color: #FBF6EA; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 5px; }
body.rd .about-end__more { margin: 16px 0 0; }
body.rd .site-footer .fn__acts.fn__acts--text { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 4px 28px; }
body.rd .closing__alt { column-gap: 28px; }

/* ===== Buttons fit their words, at every width (Nagesh, November 2026: "you don't need long rectangular CTAs") =====
   Below the heroes, buttons size to their label (at least 48px tall, comfortable side padding) instead of spanning
   the screen on phones. Secondary actions may be round icon buttons with a spoken label. */
@media (max-width: 480px) { body.rd main .btn { width: auto; } }
body.rd main .btn { padding-inline: 28px; }
body.rd .closing__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
body.rd .icon-acts { display: inline-flex; align-items: center; gap: 12px; position: relative; }
body.rd .icon-act { width: 48px; height: 48px; display: inline-grid; place-items: center; padding: 0; border: 1.5px solid rgba(251, 246, 234, .72); border-radius: 50%; background: transparent; color: #FBF6EA; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
body.rd .icon-act svg { width: 20px; height: 20px; }
body.rd .icon-act:hover { background: #FBF6EA; color: var(--midnight); border-color: #FBF6EA; }
body.rd .icon-acts .copy-status { position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap; font: 600 .82rem/1.3 var(--font-body); color: #FBF6EA; }
body.rd .icon-acts .copy-status:empty { display: none; }
@media (max-width: 380px) { body.rd .icon-acts .copy-status { white-space: normal; width: 70vw; } }

/* Access page (Work, the case studies, Now): ask with name and email, then enter the code. */
body.rd .gate-form__label--next { margin-top: var(--s-4); }
body.rd .gate-form__opt { font-weight: 400; color: var(--ink-soft, #4a5568); }
body.rd .gate-form__field input { min-height: 48px; }
body.rd .gate-form__send { margin-top: var(--s-5); }
body.rd .gate-form__fine { margin: 12px 0 0; font-size: .85rem; line-height: 1.5; color: var(--ink-soft); }
body.rd .gate-form__fine a { color: var(--midnight); text-decoration: underline 1px var(--vermilion); text-underline-offset: 3px; }
body.rd .gate-form .btn { width: auto; }
body.rd .gate-form .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
body.rd .gate-sent { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); background: var(--paper, #fbf8f1); border-left: 3px solid var(--cobalt); max-width: 560px; }
body.rd .gate-sent:focus { outline: none; }
body.rd .gate-help .gate-form__toggle { padding-left: 0; }
body.rd .gate-help--quiet { margin-top: var(--s-3); font-size: .95rem; }

/* Footer card width (Nagesh, November 2026: "it does bother me" about the 1280px cap; "fixed padding like
   20 or 25"): the navy card keeps a fixed 24px margin to the screen edges (12px on phones) at every width,
   instead of stopping at 1280px. Its text stays on the page column, so it lines up with the menu above. */
.fn-stage { --fn-gap: 24px; padding-left: var(--fn-gap); padding-right: var(--fn-gap); }
.site-footer.fn { max-width: none; padding-left: max(clamp(20px, 4.5vw, 64px), calc((100% - var(--wrap)) / 2 + var(--gutter))); padding-right: max(clamp(20px, 4.5vw, 64px), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
@media (max-width: 600px) { .fn-stage { --fn-gap: 12px; } }

/* Teaching pages: one quiet legal line after the sources (November 2026). */
.legal-note { max-width: 760px; margin: 22px auto 0; font-size: .88rem; line-height: 1.55; color: var(--ink-soft); }
.legal-note a { color: var(--midnight); text-decoration: underline 1px var(--vermilion); text-underline-offset: 3px; }


/* Contact hero: Email me (primary) and LinkedIn (secondary) stay on one row on phones (no stacked buttons);
   the visible label shortens to "LinkedIn", the spoken label stays "Connect on LinkedIn". */
@media (max-width: 560px) {
  body.rd main .contact__acts { flex-wrap: nowrap; }
  body.rd main .contact__acts .btn__more { display: none; }
}

/* Carousels (Nagesh, November 2026: "this can easily be smart carousel"): the homepage "More on this site" row and the Writing
   page "In this notebook" row. One row that scrolls sideways with scroll snap and a peek of the next card; square buttons
   and a mustard progress line on midnight; no autoplay. Script: CAROUSEL_JS in build.mjs. */
.rd .car-bar, body.pg-writing .nbook__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.rd .car-bar > p, body.pg-writing .nbook__bar > p { margin: 0 !important; }
.rd .car-nav { display: flex; gap: 8px; flex: none; }
.rd .car-nav[hidden] { display: none; }
.rd .car-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--fringe); border-radius: 0; background: transparent; color: var(--fringe); cursor: pointer; transition: background .2s, color .2s; }
.rd .car-btn svg { width: 18px; height: 18px; }
.rd .car-btn[data-car-btn="-1"] svg { transform: rotate(180deg); }
@media (hover: hover) { .rd .car-btn:hover:not(:disabled) { background: var(--fringe); color: var(--midnight); } }
.rd .car-btn:disabled { opacity: .35; cursor: default; }
.rd .car-btn:focus-visible, .rd .car-track:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; }
.rd .car-track, .rd .car-track[class] { display: grid; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: calc((100% - 3 * 20px) / 3.35);
  gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 10px 2px 8px; margin: -10px -2px 0; scrollbar-width: none; }
.rd .car-track::-webkit-scrollbar { display: none; }
.rd .car-track > li { scroll-snap-align: start; transform: none !important; }
.rd .car-prog { display: block; height: 3px; margin-top: 18px; background: rgba(245, 236, 217, .18); }
.rd .car-prog i { display: block; height: 100%; width: 100%; background: var(--mustard); transition: margin-left .2s, width .2s; }
.rd [data-car]:not(.is-scroll) .car-prog { display: none; }
.rd .wshelf__k { color: var(--mustard); }
@media (max-width: 900px) { .rd .car-track[class] { grid-auto-columns: calc((100% - 12px) / 1.9); gap: 12px; } }
@media (max-width: 560px) { .rd .car-track[class] { grid-auto-columns: 78%; } }
/* Phones: the row runs to the panel's edge, so the next card peeks off the screen edge, not short of it (Nagesh, November 2026) */
@media (max-width: 560px) {
  .rd .nbook__r .car-track[class] { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .rd .wshelf__side .car-track[class] { margin-right: -16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .rd .car-prog i { transition: none; } }
.rd [data-car] { min-width: 0; }
.rd .wshelf__grid > * { min-width: 0; max-width: 100%; }
/* Inside the carousel every card stacks (cover above the words) at every width, and the label stays an Inter eyebrow */
body.rd .car-track .wshelf__link { display: grid !important; grid-template-columns: 1fr !important; gap: 8px; }
body.rd .car-track .wshelf__thumb, body.rd .car-track .wshelf__thumb img { width: 100% !important; max-width: none !important; height: auto; }
body.rd .car-bar .wshelf__k { font: 600 12px/1.4 var(--font-body) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--mustard); }
