/* jameslclark.com: structure and base design from drlinclark.com */

:root {
  --white: #ffffff;
  --light: #f4f4f2;
  --black: #0e0e0e;
  --surface-1: #161616;
  --surface-2: #1f1f1f;
  --ink: #0e0e0e;
  --ink-2: #6b6b6b;
  --ink-3: #a9aaaa;
  --off-white: #ececec;
  --hair: #d6d6d3;
  --hair-dark: #333333;
  --accent: #f98611;
  --accent-hover: #e2760a;
  --accent-ink: #0e0e0e;
  --alert: #ed3e41;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --band: clamp(80px, 10vw, 150px);

  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }
svg { display: block; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 20;
  padding: 8px 12px; background: var(--accent); color: var(--accent-ink);
  font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Buttons and links */
.btn {
  display: inline-block; white-space: nowrap;
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  color: var(--accent-ink); background: var(--accent);
  padding: 11px 20px; border-radius: 8px; text-decoration: none;
  transition: background 140ms ease;
}
.btn:hover { background: var(--accent-hover); }
.btn-small { padding: 7px 14px; font-size: 14px; }
.btn-light { background: var(--accent); color: var(--accent-ink); }
.btn-light:hover { background: var(--accent-hover); color: var(--accent-ink); }
.link {
  font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid var(--accent);
}
.link:hover { border-bottom-color: var(--ink); }
.link-light { color: var(--accent); border-bottom-color: transparent; }
.link-light:hover { border-bottom-color: var(--accent); }
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--white); border-bottom: 1px solid var(--hair);
}
.nav-row { display: flex; align-items: center; gap: 32px; height: 56px; }
.brand { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(56px, 8vw, 120px) 0 clamp(64px, 8vw, 120px); }
.kicker { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 76px); line-height: 1.04; font-weight: 600;
  letter-spacing: -0.028em; max-width: none;
}
.hero-sub { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 44ch; margin-top: 26px; }
.hero .cta-row { margin-top: 32px; }
.hero-diagram { margin-top: clamp(56px, 8vw, 110px); }

/* Bands */
.band { padding: var(--band) 0; }
.band-light { background: var(--light); }
.band-dark { background: var(--black); color: var(--off-white); }
.band h2 {
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -0.024em;
  max-width: none;
}
.band-sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 54ch; margin-top: 20px; }
.band-dark .band-sub { color: var(--ink-3); }
.band h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; }

/* Expertise domains */
.domains {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px;
}
.domains li { display: grid; grid-template-columns: 40px 1fr; column-gap: 20px; }
.domains svg { width: 40px; height: 40px; fill: none; stroke: var(--off-white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; grid-row: 1 / span 2; }
.domains p { font-size: 17px; line-height: 1.5; color: var(--ink-3); margin-top: 8px; grid-column: 2; }

/* Features with diagrams */
.feature {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px);
  align-items: center; margin-top: clamp(56px, 7vw, 100px);
}
.feature-flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.feature-text p { margin-top: 18px; color: var(--ink-2); font-size: 18px; }
.feature .diagram svg { width: 100%; height: auto; max-width: 640px; margin-inline: auto; overflow: visible; }

/* Diagram vocabulary */
.diagram { color: var(--ink); border-left: 3px solid var(--accent); padding-left: clamp(16px, 2vw, 28px); }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram figcaption { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 70ch; margin-top: 20px; }
.d-line { fill: none; stroke: currentColor; stroke-width: 1.5; }
.d-line-thin { fill: none; stroke: var(--hair); stroke-width: 1; }
.band-dark .d-line-thin { stroke: var(--hair-dark); }
.d-tick line { stroke: currentColor; stroke-width: 1.5; }
.d-measure { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.d-node circle { fill: var(--white); stroke: currentColor; stroke-width: 1.5; }
.d-band { fill: var(--light); stroke: var(--hair); stroke-width: 1; }
.d-band-accent { fill: var(--accent); opacity: 0.18; }
.d-band-label { fill: var(--ink-2); }
.d-text { fill: currentColor; }
.d-mute { fill: var(--ink-2); }
.d-accent-line { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 4; }
.d-accent-text { fill: var(--ink); font-weight: 600; }
.d-accent-dot { fill: var(--accent) !important; stroke: var(--ink) !important; }
.d-alert-dot { fill: var(--alert) !important; stroke: var(--alert) !important; }
.d-alert-text { fill: var(--alert); }
#ir text { fill: currentColor; }
#ir .d-mute, #ir .d-band-label { fill: var(--ink-2); }

/* One orchestrated moment: the hero diagram draws itself once */
@media (prefers-reduced-motion: no-preference) {
  #ir .d-draw { animation: reveal 900ms ease-out both; }
  #ir .d-draw:nth-of-type(2) { animation-delay: 250ms; }
  #ir .d-draw:nth-of-type(3) { animation-delay: 550ms; }
  @keyframes reveal { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
}

/* Split sections (why, books) */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-body p { color: var(--ink-2); }
.split-body p + p { margin-top: 20px; }
.split-body strong { color: var(--ink); }
.band-dark .split-body p { color: var(--ink-3); }
.band-dark .split-body strong { color: var(--off-white); }
.split-body .lead { font-size: clamp(20px, 1.8vw, 25px); line-height: 1.4; color: var(--off-white); }
.split-body .cta-row { margin-top: 32px; }

/* Collections */
.collections {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px;
  border-top: 1px solid var(--hair);
}
.collections li { padding: 26px 0 28px; border-bottom: 1px solid var(--hair); }
.collections p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

/* Paths */
.paths { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hair); }
.paths li {
  display: grid; grid-template-columns: 3fr 6fr auto; gap: 32px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--hair);
}
.paths h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; }
.paths p { color: var(--ink-2); font-size: 18px; }

/* Contact */
.contact .btn { margin-top: 32px; }

/* Footer */
.foot { border-top: 1px solid var(--hair); }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 980px) {
  .nav-row { flex-wrap: wrap; height: auto; padding: 12px 0 0; gap: 16px; }
  .nav nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 22px; padding: 2px 0 12px; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { white-space: nowrap; }
  .domains { grid-template-columns: 1fr; gap: 40px; }
  .feature, .feature-flip { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .feature .diagram { max-width: 560px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .collections { grid-template-columns: 1fr; }
  .paths li { grid-template-columns: 1fr; gap: 14px; align-items: start; }
}
@media (max-width: 640px) {
  :root { font-size: 17px; }
  .hero h1 { max-width: none; }
  .domains li { grid-template-columns: 32px 1fr; column-gap: 16px; }
  .domains svg { width: 32px; height: 32px; }
  .foot-row { flex-direction: column; }
}

/* Book */
.book-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.cover { position: sticky; top: 88px; width: 100%; max-width: 360px; }
.cover img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.08);
}
.kicker-light { color: var(--ink-3); }
.book-body h2 { max-width: none; }
.book-subtitle { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; color: var(--ink-3); margin-top: 8px; }
.book-body .lead { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; margin-top: 32px; color: var(--off-white); }
.book-body p + p { margin-top: 18px; }
.book-body > p:not(.lead):not(.kicker):not(.book-subtitle) { color: var(--ink-3); font-size: 18px; }
.controls {
  margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px;
  border-top: 1px solid var(--hair-dark);
}
.controls li { padding: 11px 0; border-bottom: 1px solid var(--hair-dark); font-size: 16px; color: var(--off-white); }
.book-for { margin-top: 28px; }
.book-body .cta-row { margin-top: 32px; }
@media (max-width: 980px) {
  .book-grid { grid-template-columns: 1fr; gap: 48px; }
  .cover { position: static; max-width: 300px; }
}
@media (max-width: 640px) {
  .controls { grid-template-columns: 1fr; }
}

/* Disclosure */
.more { margin-top: 28px; border-top: 1px solid var(--hair-dark); border-bottom: 1px solid var(--hair-dark); }
.more summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 17px; font-weight: 600; color: var(--off-white);
}
.more summary::-webkit-details-marker { display: none; }
.more summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.more summary .pm::before, .more summary .pm::after {
  content: ""; position: absolute; background: var(--accent); transition: transform 160ms ease;
}
.more summary .pm::before { left: 0; top: 6px; width: 14px; height: 2px; }
.more summary .pm::after { left: 6px; top: 0; width: 2px; height: 14px; }
.more[open] summary .pm::after { transform: scaleY(0); }
.more-body { padding: 4px 0 28px; }
.more-body > p:first-child { margin-top: 0; }

/* Quiet abstract fields: ink on the dark bands, pearl on the light ones */
.band { position: relative; }
.band > .wrap { position: relative; z-index: 1; }
.field-flow::before, .field-plexus::before, .field-contour::before, .field-halftone::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-repeat: no-repeat; background-size: cover; background-position: center;
}
.field-flow::before { background-image: url("/assets/fields/field-contour-light.webp"); opacity: 0.06; transform: scaleX(-1); }
.field-plexus::before { background-image: url("/assets/fields/field-halftone-light.webp"); opacity: 0.09; background-position: right top; transform: scaleX(-1); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); }
.field-contour { background-image: linear-gradient(135deg, #f7f7f5 0%, #f2f2f0 55%, #eeeeeb 100%); }
.field-contour::before { background-image: url("/assets/fields/field-contour.webp"); opacity: 0.07; }
.field-halftone { background-image: linear-gradient(315deg, #f6f6f4 0%, #f2f2f0 50%, #ededea 100%); }
.field-halftone::before { background-image: url("/assets/fields/field-halftone.webp"); opacity: 0.07; background-position: right top; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); }
@media (max-width: 980px) {
  .field-contour::before { background-image: url("/assets/fields/field-contour-1200.webp"); }
  .field-halftone::before { background-image: url("/assets/fields/field-halftone-1200.webp"); }
  .field-flow::before { background-image: url("/assets/fields/field-contour-light-1200.webp"); }
  .field-plexus::before { background-image: url("/assets/fields/field-halftone-light-1200.webp"); }
}

/* Briefing */
.briefing-for li { padding: 14px 0; border-top: 1px solid var(--hair-dark); color: var(--ink-3); font-size: 17px; line-height: 1.5; }
.briefing-for li:last-child { border-bottom: 1px solid var(--hair-dark); }
.briefing-for strong { color: var(--off-white); }
.contact .cta-row { margin-top: 32px; }
.contact-note { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

/* Conversion pass */
.paths-inline { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--hair-dark); font-size: 16px; color: var(--ink-3); }
.feature-cta { margin-top: 20px; }
.feature-cta .link { font-size: 15px; }
.book-link { margin-top: 20px; }
.book-excerpts-head { margin-top: 28px; font-weight: 600; color: var(--off-white); }
.book-excerpts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.book-excerpts a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.book-excerpts a:hover { color: var(--accent-hover); }
.library-note { margin-top: 28px; font-size: 16px; color: var(--ink-2); }
.domains h3 a { text-decoration: none; }
.domains h3 a:hover { border-bottom: 2px solid var(--accent); }
.collections li { scroll-margin-top: 110px; }
.split-body .cta-row { margin-top: 32px; }

/* Diagrams: larger, tighter to their text, legible labels */
.feature { grid-template-columns: 4fr 7fr; gap: clamp(24px, 4vw, 56px); }
.feature .diagram svg { max-width: none; }
.feature .diagram { padding-left: clamp(12px, 1.5vw, 20px); }
.diagram .d-mute { fill: var(--ink-2); }
.d-text, .d-accent-text { fill: var(--ink); }
.d-tick line { stroke: var(--ink); }
.d-line { stroke: var(--ink); }
.band-light .d-node circle { fill: var(--light); }
.d-line-thin { stroke: var(--ink-3); }

/* Refinement pass: type scale, proportion, rhythm */
:root { font-size: 20px; }
.kicker, .kicker-light { font-size: 17px; }
.nav nav a { font-size: 15px; }
.hero-sub { font-size: clamp(20px, 1.8vw, 24px); max-width: 48ch; }
.band h2 { font-size: clamp(36px, 4.6vw, 64px); }
.band-sub { font-size: clamp(20px, 1.7vw, 24px); max-width: 56ch; }
.band h3 { font-size: 24px; }
.domains { gap: 52px 80px; }
.domains p { font-size: 18px; line-height: 1.55; }
.domains li { grid-template-columns: 44px 1fr; column-gap: 24px; }
.domains svg { width: 44px; height: 44px; }
.paths-inline { font-size: 17px; }
.paths-inline .link { font-size: 17px; }
.feature-text p, .feature-intro p { font-size: 19px; }
.diagram figcaption { font-size: 16px; max-width: 80ch; }
.split-body p { font-size: 19px; }
.collections { gap: 0 80px; }
.collections li { padding: 30px 0 32px; }
.collections h3 { font-size: 26px; }
.collections p { font-size: 18px; margin-top: 8px; }
.library-note { font-size: 18px; }
.paths p { font-size: 19px; }
.briefing-for li { font-size: 18px; }
.contact-note { font-size: 16px; }
.book-body > p:not(.lead):not(.kicker):not(.book-subtitle) { font-size: 19px; }
.controls li { font-size: 17px; }
.foot-row { font-size: 15px; }

/* How the work is done: intro column, then a full-width architecture, then the ladder */
.feature-intro { margin-top: clamp(40px, 5vw, 64px); }
.feature-intro h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.feature-intro p { margin-top: 18px; color: var(--ink-2); }
.diagram-wide { margin-top: clamp(40px, 5vw, 64px); }
.diagram-wide svg { width: 100%; height: auto; }
.d-box rect { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.d-box text { fill: var(--ink); font-family: var(--mono); font-size: 17px; }
.d-box .d-strong { font-weight: 600; }
.d-box .d-mute { fill: var(--ink-2); font-size: 14px; }
.d-box-accent { fill: var(--accent) !important; }
.d-accent-line-solid path { fill: none; stroke: var(--accent); stroke-width: 3; }
.d-accent-label { fill: var(--ink); font-weight: 600; }
.feature-flip { margin-top: clamp(72px, 9vw, 120px); grid-template-columns: 5fr 6fr; }
.feature-flip .diagram svg { max-width: none; }

/* Why: problems as a two-column grid, run-in display heads */
.problems { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 56px) clamp(40px, 5vw, 80px); }
.problem h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.2; letter-spacing: -0.014em; }
.problem p { margin-top: 12px; color: var(--ink-2); font-size: 18px; }
.problem-wide { grid-column: 1 / -1; padding-top: 32px; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 1fr 1fr; gap: 12px clamp(40px, 5vw, 80px); align-items: start; }
.problem-wide h3 { grid-column: 1; }
.problem-wide p { grid-column: 1; margin-top: 0; }
.problem-wide .cta-row { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* Book band: taller, so it reads as a destination rather than a stripe */
.book { padding: clamp(96px, 12vw, 180px) 0; }

/* Mobile */
@media (max-width: 980px) {
  .problems { grid-template-columns: 1fr; }
  .problem-wide { grid-template-columns: 1fr; }
  .problem-wide .cta-row { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .feature-flip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { font-size: 18px; }
  .collections h3 { font-size: 23px; }
}

/* Composition pass */
.expertise-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.expertise-lead { position: sticky; top: 96px; }
.expertise-lead h2 { max-width: 12ch; }
.paths-stack { flex-direction: column; align-items: flex-start; gap: 12px; border-top-color: var(--hair-dark); }
.domains-list { margin-top: 0; display: block; }
.domains-list li { padding: 28px 0; border-top: 1px solid var(--hair-dark); }
.domains-list li:last-child { border-bottom: 1px solid var(--hair-dark); }
.domains-list p { max-width: 54ch; }

.closing { padding-bottom: clamp(72px, 9vw, 120px); }
.paths-dark { border-top-color: var(--hair-dark); }
.paths-dark li { border-bottom-color: var(--hair-dark); grid-template-columns: 2fr 7fr 3fr; }
.paths-dark p { color: var(--ink-3); }
.paths-dark .link { justify-self: end; }
.briefing { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; scroll-margin-top: 80px; }
.briefing-title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.briefing-lead > p { margin-top: 18px; font-size: 19px; color: var(--ink-3); }
.briefing-lead .cta-row { margin-top: 28px; }
.briefing .briefing-for { padding-top: 10px; }

@media (max-width: 980px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-lead { position: static; }
  .expertise-lead h2 { max-width: none; }
  .paths-dark li { grid-template-columns: 1fr; }
  .paths-dark .link { justify-self: start; }
  .briefing { grid-template-columns: 1fr; }
}

/* Paths: the row is the control */
.paths-dark li { display: block; padding: 0; }
.path-row {
  display: grid; grid-template-columns: 2fr 7fr 3fr; gap: 32px; align-items: center;
  padding: 36px 0; text-decoration: none; color: inherit; position: relative;
  border-top: 2px solid transparent; margin-top: -1px;
  transition: border-color 160ms ease;
}
.path-row:hover, .path-row:focus-visible { border-top-color: var(--accent); outline: none; }
.path-row h3 { transition: transform 200ms ease; }
.path-row:hover h3 { transform: translateX(6px); }
.path-go { justify-self: end; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.path-arrow { display: inline-block; width: 0; height: 2px; background: var(--accent); position: relative; transition: width 200ms ease; }
.path-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); opacity: 0; transition: opacity 120ms ease 80ms; }
.path-row:hover .path-arrow, .path-row:focus-visible .path-arrow { width: 28px; }
.path-row:hover .path-arrow::after, .path-row:focus-visible .path-arrow::after { opacity: 1; }
@media (max-width: 980px) {
  .path-row { grid-template-columns: 1fr; gap: 14px; }
  .path-go { justify-self: start; }
  .path-row .path-arrow { width: 28px; } .path-row .path-arrow::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .path-row, .path-row h3, .path-arrow, .path-arrow::after { transition: none; } .path-row:hover h3 { transform: none; } }

/* Arrow links in the help section */
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; border-bottom: none; }
.link-arrow .path-arrow { width: 22px; }
.link-arrow .path-arrow::after { opacity: 1; }
.link-arrow:hover .path-arrow { width: 34px; }
.problem p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Playbook pass */
.hero-next { margin-top: 18px; font-size: 16px; color: var(--ink-2); max-width: 52ch; }
.ground { position: relative; z-index: 1; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hair-dark); }
.ground h3 { font-size: clamp(24px, 2.4vw, 32px); }
.ground > p { margin-top: 12px; color: var(--ink-3); font-size: 18px; max-width: 60ch; }
.ground-list { margin-top: 28px; columns: 2; column-gap: 64px; }
.ground-list li { break-inside: avoid; padding: 10px 0 10px 18px; border-left: 2px solid var(--accent); margin-bottom: 10px; color: var(--off-white); font-size: 17px; line-height: 1.45; }
.closing .band-sub { margin-top: 16px; }
@media (max-width: 980px) { .ground-list { columns: 1; } }

/* Exit popover */
.leave { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(14,14,14,0.6); }
.leave[hidden] { display: none; }
.leave-card {
  position: relative; width: min(100%, 520px); background: var(--accent); color: var(--accent-ink);
  padding: clamp(28px, 4vw, 44px); border-radius: 12px;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.6);
  animation: leave-in 220ms ease-out both;
}
@keyframes leave-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.leave-kicker { font-size: 15px; font-weight: 600; opacity: 0.75; }
.leave-card h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.06; letter-spacing: -0.024em; margin-top: 8px; max-width: none; }
.leave-card p + p, .leave-card h2 + p { margin-top: 16px; font-size: 18px; line-height: 1.5; }
.leave-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.leave-actions .btn { background: var(--ink); color: var(--off-white); }
.leave-actions .btn:hover { background: #2a2a2a; }
.leave-actions .link { background: none; border: 0; border-bottom: 2px solid var(--accent-ink); color: var(--accent-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; padding: 0 0 2px; }
.leave-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--accent-ink); cursor: pointer; padding: 4px 8px; }
.leave-close:hover { opacity: 0.7; }
body.leave-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .leave-card { animation: none; } }

/* Library hubs link to collections */
.collections h3 a { color: inherit; text-decoration: none; }
.collections h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Wide diagrams on small screens: whole-shape preview + full-size overlay */
.dia-open { display: none; margin-top: 14px; }
.dia-overlay { position: fixed; inset: 0; z-index: 60; background: var(--light); display: flex; flex-direction: column; }
.dia-overlay[hidden] { display: none; }
.dia-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--off-white); font-size: 28px; line-height: 1; cursor: pointer; }
.dia-hint { padding: 16px 64px 8px 20px; font-size: 14px; color: var(--ink-2); }
.dia-stage { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px 20px 32px; }
.dia-stage svg { height: auto; width: 1100px; max-width: none; display: block; color: var(--ink); }
@media (max-width: 980px) {
  .dia-wide .dia-frame svg { width: 100%; height: auto; min-width: 0; }
  .dia-wide .dia-frame { pointer-events: none; }
  .dia-open { display: inline-block; }
}

/* Measure rule (James): text and titles span at least 85% of their container. Full width on phones. */
.band h2, .feature-intro h3, .feature-text h3, .problem h3, .briefing-title, .book-body h2, .expertise-lead h2, .leave-card h2 { max-width: 85%; }
.hero h1 { max-width: none; } /* lines are hand-broken and each already sits at about three-quarters of the container */
/* Wrapping: titles balance their lines; subtitles and copy never leave a single word on the last line */
.hero h1, .band h2, .feature-intro h3, .feature-text h3, .problem h3, .briefing-title, .book-body h2, .expertise-lead h2, .leave-card h2, h1, h2 { text-wrap: pretty; }
.hero-sub, .band-sub, .section-lede, .feature-intro p, .feature-text p, .split-body p, .book-body > p, .book-for, .problem p, .briefing-lead > p, .ground > p, .library-note, .contact-note, .hero-next, .paths p, .domains p, .collections p, .domains-list p, p { text-wrap: pretty; }
.hero-sub, .band-sub, .section-lede, .feature-intro p, .feature-text p,
.split-body p, .book-body > p, .book-for, .problem p, .briefing-lead > p,
.ground > p, .library-note, .contact-note, .hero-next, .paths p, .domains p, .collections p, .domains-list p {
  max-width: 85%;
}
.hero-sub { max-width: 85%; }
.hero-next { max-width: 85%; }
@media (max-width: 760px) {
  .hero h1, .band h2, .feature-intro h3, .feature-text h3, .problem h3, .briefing-title, .book-body h2, .expertise-lead h2, .leave-card h2,
  .hero-sub, .band-sub, .section-lede, .feature-intro, .feature-intro p, .feature-text p,
  .split-body, .split-body p, .book-body > p, .book-for, .problem p, .briefing-lead > p,
  .ground > p, .library-note, .contact-note, .hero-next, .paths p, .domains p, .collections p, .domains-list p { max-width: none; }
}

/* ---- site search ---- */
.search-page { padding-block: 2.5rem 4rem; }
.search-box { display: flex; gap: .5rem; margin-block: 1rem 1.5rem; }
.search-box input[type="search"] {
  flex: 1; font-size: 1.05rem; padding: .75rem 1rem; border: 1px solid var(--hair);
  border-radius: .4rem; background: var(--white); color: inherit;
}
.search-meta { color: var(--ink-2); font-size: .9rem; margin-bottom: 1rem; }
.search-results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.search-results li { border-bottom: 1px solid var(--hair); padding-bottom: 1.1rem; }
.search-results .sr-type {
  display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-2); margin-bottom: .2rem;
}
.search-results a { font-size: 1.08rem; font-weight: 600; text-decoration: none; }
.search-results a:hover { text-decoration: underline; }
.search-results p { margin: .25rem 0 0; color: var(--ink-2); }
.search-empty { color: var(--ink-2); padding-block: 1rem; }

/* ---- Boxing Einstein announcement banner (slides out from under the sticky menu bar) ---- */
.book-banner { background: var(--accent); color: var(--accent-ink); max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.book-banner.is-open { max-height: 48px; }
.book-banner-row { display: flex; align-items: center; justify-content: center; gap: 16px; height: 44px; position: relative; }
.book-banner-link { color: var(--accent-ink); text-decoration: none; font-size: 15px; line-height: 1.2; text-align: center; }
.book-banner-link strong { font-weight: 700; }
.book-banner-cta { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; margin-left: 4px; }
.book-banner-link:hover .book-banner-cta { text-decoration-thickness: 2.5px; }
.book-banner-close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 22px; line-height: 1; padding: 6px 8px; color: var(--accent-ink); cursor: pointer; }
@media (max-width: 760px) { .book-banner-link { font-size: 14px; padding-right: 28px; } }
@media (prefers-reduced-motion: reduce) { .book-banner { transition: none; } }

/* ---- language menu (round flag in the nav) ---- */
.lang { position: relative; display: flex; align-items: center; }
.lang-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--hair); border-radius: 50%; background: var(--white); cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--ink); }
.lang-btn img, .lang-menu img { width: 22px; height: 22px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; list-style: none; margin: 0; padding: 6px; min-width: 210px; max-height: 70vh; overflow-y: auto; background: var(--white); border: 1px solid var(--hair); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 15px; color: var(--ink); text-decoration: none; }
.lang-menu a:hover { background: #f3f3f1; }
.lang-menu a[aria-current="true"] { font-weight: 600; }
@media (max-width: 760px) { .lang-menu { right: auto; left: 0; } }

/* footer language list */
.foot .foot-lang { flex-basis: 100%; display: block; padding-top: 24px; border-top: 1px solid var(--hair); }
.foot-lh { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.foot-lang ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 24px; }
.foot-lang a, .foot-lang .off { font-size: 15px; line-height: 1.3; color: var(--ink-2); text-decoration: none; }
.foot-lang a:hover { color: var(--ink); }
.foot-lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.foot-lang .off { opacity: .5; cursor: default; }
@media (max-width: 900px) { .foot-lang ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-lang ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==== jameslclark.com additions ============================================ */
/* No drop shadows anywhere (house rule). */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
html { scrollbar-color: #4f6179 transparent; overflow-x: clip; }
body { overflow-x: clip; }

/* Hero: words on the left, a photo on the right */
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.hero-photo figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.hero .hero-sub { max-width: none; }

/* Expertise icons are line drawings, like the diagrams */
.domains svg { stroke: var(--off-white); }

/* Studio stages: five real stages of one painting */
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: end; }
.stages figure { margin: 0; }
.stages img { display: block; width: 100%; aspect-ratio: 297 / 210; object-fit: cover; border: 1px solid var(--hair); background: var(--white); }
.stages figcaption { margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.stages figure:last-child figcaption { color: var(--ink); font-weight: 600; }

/* Gallery strip above the collections */
.strip { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.strip img { display: block; width: 100%; aspect-ratio: 297 / 210; object-fit: cover; }
.strip figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.strip figure { margin: 0; }

/* Book band uses a photo as its cover */
.cover img { border-radius: 2px; }
.numbers { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--hair-dark); padding-top: 20px; }
.numbers dt { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.numbers dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-3); }

/* Contact form (not connected yet) */
.msg { display: grid; gap: 14px; }
.msg label { display: grid; gap: 6px; font-size: 15px; color: var(--ink-3); }
.msg input, .msg textarea, .msg select { font: inherit; font-size: 17px; color: var(--off-white); background: var(--surface-1); border: 1px solid var(--hair-dark); border-radius: 8px; padding: 12px 14px; }
.msg textarea { min-height: 140px; resize: vertical; }
.msg input:focus, .msg textarea:focus, .msg select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.msg-note { font-size: 14px; color: var(--ink-3); }
.msg .btn { justify-self: start; border: 0; cursor: pointer; }

/* Protection: discourage casual saving of art and photos */
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .stages { grid-template-columns: 1fr 1fr; }
  .numbers { grid-template-columns: 1fr; }
}

/* ---- Colour: pure black and pure white. No grey or cream backgrounds. ---- */
:root {
  --white: #ffffff;
  --light: #ffffff;
  --black: #000000;
  --surface-1: #000000;
  --surface-2: #000000;
  --ink: #000000;
  --ink-2: #555555;
  --ink-3: #b3b3b3;
  --off-white: #ffffff;
  --hair: #dddddd;
  --hair-dark: #2e2e2e;
}
.band-dark { background: #000; color: #fff; }
.band-light { background: #fff; border-top: 1px solid var(--hair); }
.field-contour, .field-halftone { background-image: none; }
/* the faint patterns read as grey on black: off the black bands */
.field-flow::before, .field-plexus::before { display: none; }
.d-band { fill: #fff; stroke: var(--ink); }
.band-light .d-node circle { fill: #fff; }
.msg input, .msg textarea, .msg select { background: #000; border-color: #444; color: #fff; }
.nav, .foot { background: #fff; }

/* ---- Crisp: only pure black, pure white and the orange. No mid-greys anywhere. ---- */
:root {
  --ink-2: #000000;        /* secondary text on white: black, set lighter by size and weight, not by grey */
  --ink-3: #ffffff;        /* secondary text on black: white */
  --hair: #000000;         /* lines on white: black */
  --hair-dark: #ffffff;    /* lines on black: white */
  --accent-ink: #000000;
}
.field-contour::before, .field-halftone::before { display: none; }   /* the faint patterns read as grey */
.band-light { border-top: 1px solid #000; }
.hero-sub, .band-sub, .feature-intro p, .feature-text p, .problem p, .domains p, .collections p, .paths p,
.split-body p, .ground > p, .library-note, .contact-note, .kicker, .hero-next, .diagram figcaption,
.strip figcaption, .hero-photo figcaption, .stages figcaption, .numbers dd, .msg label, .msg-note, .foot-row { opacity: 1; }
.d-mute, .d-band-label, .diagram .d-mute { fill: #000; }
.band-dark .d-mute { fill: #fff; }
.d-box-accent + text, .d-box .d-box-accent ~ text { fill: #000; }
.d-line-thin, .d-measure { stroke: #000; }
.stages img { border-color: #000; }
.msg input, .msg textarea, .msg select { border-color: #fff; }
.book-subtitle, .kicker-light { color: #fff; }
.foot { border-top: 1px solid #000; }
.foot-row, .foot nav a { color: #000; }
.d-band-accent { fill: var(--accent); opacity: 1; }

/* ---- Palette: pure black and white, no accent colour ---------------------- */
:root { --accent: #000000; --accent-hover: #333333; --accent-ink: #ffffff; }
/* on white: black buttons, black underlines */
.btn { background: #000; color: #fff; }
.btn:hover { background: #fff; color: #000; box-shadow: inset 0 0 0 2px #000 !important; }
.link { border-bottom-color: #000; }
.link:hover { border-bottom-color: transparent; }
.path-arrow, .path-arrow::after { background: currentColor; border-color: currentColor; }
.link-arrow { color: #000; }
/* on black: everything flips to white */
.band-dark .btn, .btn-light { background: #fff; color: #000; }
.band-dark .btn:hover, .btn-light:hover { background: #000; color: #fff; box-shadow: inset 0 0 0 2px #fff !important; }
.band-dark .link-light, .band-dark .path-go, .band-dark .paths-inline .link { color: #fff; border-bottom-color: #fff; }
.band-dark .link-light:hover { border-bottom-color: transparent; }
.band-dark .path-row:hover, .band-dark .path-row:focus-visible { border-top-color: #fff; }
.band-dark .path-arrow, .band-dark .path-arrow::after { background: #fff; border-color: #fff; }
.ground-list li { border-left-color: #fff; }
.numbers dt { color: #fff; }
.more summary .pm::before, .more summary .pm::after { background: #fff; }
.band-dark :focus-visible { outline-color: #fff; }
/* the top bar: black, white type */
.book-banner { background: #000; }
.book-banner-link, .book-banner-close { color: #fff; }
/* diagrams: black marks on white, white type inside black */
.diagram { border-left-color: #000; }
.d-band-accent { fill: #000; }
.d-accent-line { stroke: #000; }
.d-accent-dot { fill: #000 !important; stroke: #000 !important; }
.d-accent-line-solid path { stroke: #000; }
.d-box-accent { fill: #000 !important; }

/* ---- Reading bar across the top (from Veldrin) -------------------------- */
.prog { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1000; pointer-events: none; mix-blend-mode: difference; }
.prog i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }

/* ---- TL;DR (from Veldrin), in black and white ----------------------------- */
.tldr { background: #fff; border-bottom: 2px solid #000; overflow: hidden; animation: tl-pop .5s ease-out both; }
@keyframes tl-pop { from { max-height: 0; opacity: 0; } to { max-height: 60rem; opacity: 1; } }
.tldr > summary { list-style: none; display: flex; align-items: center; gap: 0.9rem; cursor: pointer; padding-block: 0.65rem; }
.tldr > summary::-webkit-details-marker { display: none; }
.tldr > summary::after { content: ""; margin-left: auto; width: 0.55rem; height: 0.55rem; border-right: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(45deg); transition: transform .15s; flex: 0 0 auto; }
.tldr[open] > summary::after { transform: rotate(-135deg); }
.tldr[open] > summary { border-bottom: 1px solid #000; }
.tl-k { font: 800 .72rem/1 var(--mono); letter-spacing: .1em; color: #fff; background: #000; padding: .4rem .55rem; flex: 0 0 auto; }
.tl-ask { font-size: 16px; font-weight: 600; }
.tl-body { padding-block: 0.9rem 1.1rem; }
.tl-g { margin: 0; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1rem 2.5rem; }
.tl-g dt { font: 800 .75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; }
.tl-g dd { margin: 0; font-size: 16px; line-height: 1.45; }
@media (max-width: 820px) { .tl-g { grid-template-columns: 1fr; gap: .8rem; } }
@media (prefers-reduced-motion: reduce) { .tldr { animation: none; } }

/* ---- On this page: hideable drawer from the left edge, arrow tab --------- */
.toc { position: fixed; z-index: 40; top: 50%; left: 0; width: 15rem; max-width: 80vw; max-height: 80vh; overflow-y: auto;
  transform: translate(-100%, -50%); transition: transform .28s ease, visibility 0s linear .28s; visibility: hidden;
  background: #fff; color: #000; border: 2px solid #000; border-left: 0; padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
.toc-open .toc { transform: translate(0, -50%); visibility: visible; transition: transform .28s ease, visibility 0s; }
.toc-t { font: 700 .62rem var(--mono); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .9rem; }
.toc ul { display: grid; gap: .6rem; font-size: 15px; line-height: 1.3; list-style: none; margin: 0; padding: 0; }
.toc a { color: #000; text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.toc a.on { font-weight: 800; }
.toc a.on::before { content: ""; display: inline-block; width: 10px; height: 2px; background: #000; vertical-align: middle; margin: 0 6px 2px -16px; }
.toc-tab { position: fixed; z-index: 41; top: 50%; left: 0; transform: translateY(-50%); transition: left .28s ease;
  width: 28px; height: 64px; padding: 0; border: 2px solid #000; border-left: 0; background: #fff; color: #000; cursor: pointer;
  font: 700 22px/1 var(--sans, system-ui); display: flex; align-items: center; justify-content: center; }
.toc-tab span { display: inline-block; transition: transform .28s ease; }
.toc-open .toc-tab { left: min(15rem, 80vw); }
.toc-open .toc-tab span { transform: rotate(180deg); }
.toc-tab:hover, .toc-tab:focus-visible { background: #000; color: #fff; outline: none; }
@media (prefers-reduced-motion: reduce) { .toc, .toc-tab, .toc-tab span { transition: none; } }

/* Humanitarian section on the home page */
.hum-diagram { margin-top: clamp(40px, 5vw, 64px); }
#humanitarian .feature-cta { margin-top: 28px; }

/* Photo grid: same-size squares, fits the container exactly */
.photo-grid { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.photo-grid li { margin: 0; padding: 0; min-width: 0; }
.pg-item { display: block; width: 100%; padding: 0; margin: 0; border: .5px solid #000; background: #fff; cursor: zoom-in; aspect-ratio: 1 / 1; overflow: hidden; }
.pg-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, filter .25s ease; }

.pg-item:hover img, .pg-item:focus-visible img { transform: scale(1.04); }
.pg-item:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.band-dark .pg-item { border-color: #fff; background: #000; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } }

/* Photo viewer: 65%, X to close, watermark only here */
.pv { padding: 0; border: .5px solid #fff; background: #000; max-width: none; max-height: none; overflow: visible; }
.pv::backdrop { background: rgba(0,0,0,.92); }
.pv-fig { position: relative; margin: 0; line-height: 0; }
.pv-img { display: block; max-width: 65vw; max-height: 65vh; width: auto; height: auto; user-select: none; -webkit-user-drag: none; }
.pv-mark { position: absolute; right: 12px; bottom: 10px; line-height: 1.2; font: 600 12px var(--mono, monospace); letter-spacing: .04em;
  color: #fff; mix-blend-mode: difference; pointer-events: none; user-select: none; }
.pv-x { position: absolute; top: -18px; right: -18px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #000;
  background: #fff; color: #000; font: 700 24px/1 system-ui, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.pv-x:hover, .pv-x:focus-visible { background: #000; color: #fff; border-color: #fff; outline: none; }

/* Links in text: bold, underline on hover */
main p a:not([class]), main li > p a:not([class]), .tldr dd a:not([class]) { font-weight: 700; color: inherit; text-decoration: none; }
main p a:not([class]):hover, main p a:not([class]):focus-visible, .tldr dd a:not([class]):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Photo rollover: black and white, colour on hover (site-wide rule) */
.ph { position: relative; display: block; overflow: hidden; }
.pg-item .ph { width: 100%; height: 100%; }
.ph > img { display: block; }
.ph-c { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .25s ease; pointer-events: none; }
.ph:hover .ph-c, .pg-item:hover .ph-c, .pg-item:focus-visible .ph-c, .ph.is-c .ph-c { opacity: 1; }
.pg-item:hover .ph-c, .pg-item:focus-visible .ph-c { transform: scale(1.04); }
.hero-photo .ph { border-radius: 4px; }
.pv-fig.ph { overflow: visible; cursor: pointer; }
.pv-fig .pv-img-c { object-fit: contain; }
.pv-mark { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .ph-c { transition: none; } }

/* Pencil-thin border on every photo (site-wide) */
.ph { border: .5px solid #000; }
.band-dark .ph, .pv .ph { border-color: #fff; }
.pg-item .ph, .pv-fig.ph { border: 0; }  /* the button / dialog already carries the line */
/* Subtle rounded corners on every photo (site-wide) */
:root { --photo-r: 4px; }
.ph, .ph > img, .ph-c, .pg-item, .hero-photo img { border-radius: var(--photo-r); }
.pg-item .ph, .pg-item img { border-radius: calc(var(--photo-r) - .5px); }
.pv { border-radius: var(--photo-r); }
.pv-img, .pv-fig .pv-img-c { border-radius: calc(var(--photo-r) - .5px); }
/* Art on the home page uses the same photo frame: no second border */
.stages .ph > img, .strip .ph > img { border: 0; }

/* Sub text rule (James, site-wide): text under a title spans 90% of its container. Full width on phones. */
.hero .hero-sub, .hero-sub, .band-sub, .section-lede, .feature-intro p, .feature-text p, .split-body p,
.book-body > p, .problem p, .briefing-lead > p, .ground > p, .paths p, .domains p, .domains-list p,
.expertise-lead p, .hero-next, main h1 + p, main h2 + p, main h3 + p {
  max-width: 90%;
}
@media (max-width: 760px) {
  .hero .hero-sub, .hero-sub, .band-sub, .section-lede, .feature-intro p, .feature-text p, .split-body p,
  .book-body > p, .problem p, .briefing-lead > p, .ground > p, .paths p, .domains p, .domains-list p,
  .expertise-lead p, .hero-next, main h1 + p, main h2 + p, main h3 + p { max-width: none; }
}
/* Captions under diagrams follow the same 90% rule */
.diagram figcaption { max-width: 90%; }
@media (max-width: 760px) { .diagram figcaption { max-width: none; } }
/* Small line above a diagram */
.diagram-over { font: 500 14px/1.4 var(--mono); letter-spacing: .02em; margin: 0 0 14px; color: currentColor; max-width: 90%; }
/* Toggle under a diagram: closed by default */
.story { margin: 0; }
.story summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px;
  border: .5px solid currentColor; border-radius: 4px; user-select: none; }
.story summary::-webkit-details-marker { display: none; }
.story summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.story[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.story summary:hover, .story summary:focus-visible { background: #000; color: #fff; outline: none; }
.band-dark .story summary:hover, .band-dark .story summary:focus-visible { background: #fff; color: #000; }
.story > p { margin: 14px 0 0; font-size: 16px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .story summary::after { transition: none; } }
/* Hero: headline lines up with the top of the photo */
.hero-grid { align-items: start; }
.hero h1 { margin-top: -0.17em; }   /* pulls the cap height, not the line box, level with the photo */
/* No stacked lines: the last card drops its bottom rule; the section separator below is the line */
.domains-list li:last-child { border-bottom: 0; }
/* A second paragraph under a title, spaced as its own thought */
.band-sub + .band-sub-next { margin-top: 1.4em; }

/* ---- Speaker page ---- */
.photo-slot { aspect-ratio: 3 / 2; border: .5px solid #000; border-radius: var(--photo-r, 4px); display: grid; place-items: center; text-align: center;
  font: 500 14px/1.5 var(--mono); letter-spacing: .04em; color: #000; background: #fff; }
/* Topic toggles */
.topics { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid #000; }
.topic { border-bottom: 1px solid #000; }
.topic summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 6px; padding: 24px 0; }
.topic summary::-webkit-details-marker { display: none; }
.topic summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 400 32px/1 var(--sans, system-ui); transition: transform .2s ease; }
.topic[open] summary::after { transform: rotate(45deg); }
.topic-t { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.topic-l { font-size: 17px; line-height: 1.45; }
.topic summary:hover .topic-t, .topic summary:focus-visible .topic-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.topic summary:focus-visible { outline: none; }
.topic-body { padding: 0 0 28px; max-width: 90%; }
.topic-body ul { margin: 0 0 16px; padding-left: 1.1em; display: grid; gap: 8px; font-size: 17px; line-height: 1.5; }
.topic-body p { font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.topic-pack { font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
/* Formats */
.formats { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid #fff; }
.formats li { padding: 24px 24px 8px 0; }
.formats li + li { padding-left: 24px; border-left: 1px solid #fff; }
.formats h3 { font-size: 20px; margin-bottom: 8px; }
.formats p { font-size: 16px; line-height: 1.5; max-width: none; }
@media (max-width: 900px) { .formats { grid-template-columns: 1fr 1fr; } .formats li:nth-child(3) { border-left: 0; padding-left: 0; } .formats li:nth-child(n+3) { border-top: 1px solid #fff; } }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } .formats li, .formats li + li { border-left: 0; padding-left: 0; } .formats li + li { border-top: 1px solid #fff; } }
/* Credentials list on a white band */
.ground-list-light li { color: #000; border-left-color: #000; }
#book .briefing { margin-top: 0; }
#book .briefing-lead h2 { margin-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .topic summary::after { transition: none; } }
.topic-body ul { list-style: disc; } .topic-body li::marker { color: currentColor; }
#what .what-more { margin-top: clamp(32px, 4vw, 48px); }

/* Toggle buttons (site-wide): solid first, invert on hover */
.story summary { background: #000; color: #fff; border: .5px solid #000; }
.story summary:hover, .story summary:focus-visible { background: #fff; color: #000; border-color: #000; }
.band-dark .story summary { background: #fff; color: #000; border-color: #fff; }
.band-dark .story summary:hover, .band-dark .story summary:focus-visible { background: #000; color: #fff; border-color: #fff; }

/* ---- Home: bands alternate white / black ---- */
.band-dark .strip figcaption { color: #fff; }
.band-dark .band-sub { color: #fff; }
/* Contact on white */
.band-light .msg label, .band-light .msg-note, .band-light .contact-note { color: #000; }
.band-light .msg input, .band-light .msg textarea, .band-light .msg select { background: #fff; color: #000; border: .5px solid #000; border-radius: 4px; }
.band-light .msg input:focus, .band-light .msg textarea:focus, .band-light .msg select:focus { outline: 2px solid #000; outline-offset: 1px; }
.band-light .msg .btn-light { background: #000; color: #fff; border: .5px solid #000; }
.band-light .msg .btn-light:hover, .band-light .msg .btn-light:focus-visible { background: #fff; color: #000; }
#contact .briefing { margin-top: 0; }
#contact .briefing-lead h2 { margin-bottom: 16px; }

/* ==========================================================================
   CARET LINKS  ("› Learn More", "› See More")  site-wide
   The caret sits OUTSIDE the link, so the underline starts at the first letter.
   Edit these four values to change it everywhere:
   ========================================================================== */
:root {
  --caret-char: "\203A";   /* the caret: \203A is ›  (use ">" or "\2192" for →) */
  --caret-gap: .45em;      /* space between caret and first letter */
  --caret-width: .5em;     /* width reserved for the caret itself */
  --caret-weight: 700;     /* caret boldness */
}
.feature-cta .link, .book-banner-cta { position: relative; margin-left: calc(var(--caret-width) + var(--caret-gap)); }
.feature-cta .link::before, .book-banner-cta::before {
  content: var(--caret-char); position: absolute; top: 0; left: calc(-1 * (var(--caret-width) + var(--caret-gap)));
  width: var(--caret-width); font-weight: var(--caret-weight); text-decoration: none; border: 0;
}

/* ---- Art page ---- */
.art-page .hero-photo img.art-hero { border: .5px solid #000; border-radius: var(--photo-r); }
.art-place { font: 700 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: clamp(28px, 3vw, 40px) 0 14px; }
.band-sub + .art-grid, h2 + .art-grid { margin-top: clamp(28px, 3vw, 40px); }
.art-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }
.art-grid li { margin: 0; min-width: 0; }
.art-grid .pg-item { aspect-ratio: 297 / 210; border: .5px solid #000; border-radius: var(--photo-r); background: #fff; }
.band-dark .art-grid .pg-item { border-color: #fff; }
.art-grid .pg-item img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--photo-r) - .5px); }
.art-grid .art-contain img { object-fit: contain; }
.art-cap { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; }
.band-dark .art-cap { color: #fff; }
@media (max-width: 900px) { .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Components that now sit on either colour ---- */
/* Timeline on black */
.band-dark #ir .d-band { fill: #000; stroke: #fff; }
.band-dark #ir .d-band-label { fill: #fff; }
.band-dark #ir .d-band-accent { fill: #fff; }
.band-dark #ir .d-band-accent + text { fill: #000 !important; }
.band-dark #ir .d-accent-line { stroke: #fff; }
.band-dark #ir .d-accent-dot { fill: #fff !important; stroke: #fff !important; }
.band-dark #ir .d-line, .band-dark #ir .d-tick line { stroke: #fff; }
.band-dark #ir .d-text, .band-dark #ir .d-accent-text, .band-dark #ir .d-mute { fill: #fff; }
.band-dark #ir marker path { fill: #fff; }
.band-dark .story > p, .band-dark .diagram figcaption { color: #fff; }
/* Topic toggles and formats follow the band colour */
.band-dark .topics, .band-dark .topic { border-color: #fff; }
.formats { border-top-color: currentColor; }
.formats li + li { border-left-color: currentColor; }
@media (max-width: 900px) { .formats li:nth-child(n+3) { border-top-color: currentColor; } }
@media (max-width: 560px) { .formats li + li { border-top-color: currentColor; } }
.band-light .formats, .band-light .formats li { color: #000; }

/* ---- Universal page header (based on the home page) ---- */
.hero-photo img, .hero-photo .ph, .hero-photo .photo-slot { aspect-ratio: 3 / 2; width: 100%; height: auto; }
.hero-photo img { object-fit: cover; }
.hero-photo .ph > img { height: 100%; }
.hero .hero-grid { min-height: clamp(300px, 30vw, 420px); }
/* A second heading inside one section */
.sub-h2 { margin-top: clamp(72px, 9vw, 120px); scroll-margin-top: 80px; }

/* Pop-up viewer: the close button always sits above the image (site-wide) */
.pv { position: fixed; }
.pv-fig { z-index: 1; }
.pv-x { z-index: 10; }

/* Art page: places with a single piece share one row (2-3 across, filling the column) */
.art-cluster { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 18px 12px; }
.art-cluster .art-grid:not([style]) { grid-template-columns: 1fr; }
@media (max-width: 560px) { .art-cluster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   JUMP MENU  (section links at the bottom of a page's header section)
   ========================================================================== */
.jump { margin-top: clamp(28px, 3vw, 40px); }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 8px 14px; border: .5px solid #000; border-radius: var(--photo-r, 4px);
  font: 600 13px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #000; text-decoration: none; }
.jump a:hover, .jump a:focus-visible { background: #000; color: #fff; outline: none; }

/* ---- Mentoring page ---- */
.prose { margin-top: clamp(24px, 3vw, 36px); max-width: 90%; display: grid; gap: 1.1em; }
.prose p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; }
.band-dark .prose p { color: #fff; }
.mentors { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.mentor-photo { aspect-ratio: 4 / 5; margin-bottom: 18px; }
.mentor h3 { font-size: 22px; line-height: 1.2; }
.mentor-role { font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 12px; }
.mentor p:not(.mentor-role) { font-size: 16px; line-height: 1.55; }
.lessons { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.lessons li { border-top: 1px solid currentColor; padding-top: 18px; }
.lessons h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.lessons p { font-size: 16px; line-height: 1.55; }
.band-dark .lessons, .band-dark .lessons p { color: #fff; }
@media (max-width: 900px) { .mentors, .lessons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mentors, .lessons { grid-template-columns: 1fr; } .prose { max-width: none; } }

/* ==========================================================================
   LINKED CARD TITLES  ("What I do" cards: Humanitarian, Artist, Keynote Speaker, Mentor)
   Underline in the text's own colour on hover, so it shows on black or white.
   ========================================================================== */
:root {
  --title-link-line: 2px;     /* underline thickness on hover */
  --title-link-offset: 5px;   /* gap between text and underline */
}
.domains h3 a { color: inherit; text-decoration: none; border-bottom: 0; cursor: pointer; transition: text-decoration-color .15s ease; }
.domains h3 a:hover, .domains h3 a:focus-visible {
  border-bottom: 0; text-decoration: underline; text-decoration-color: currentColor;
  text-decoration-thickness: var(--title-link-line); text-underline-offset: var(--title-link-offset); outline: none;
}

/* ==========================================================================
   SPACE ABOVE BUTTON / LINK ROWS  (site-wide)
   "Get in touch" buttons, "› Learn More" / "› See More" links, etc.
   One value controls the gap between the text above and the row.
   ========================================================================== */
:root { --cta-gap: 32px; }
html body main .cta-row,
html body main .feature-cta { margin-top: var(--cta-gap); }
#humanitarian .feature-cta, #what .what-more { margin-top: var(--cta-gap); }

/* ---- Mentoring: one section per mentor ---- */
.mentor-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.mentor-row .mentor-photo, .mentor-figure { margin: 0; }
.mentor-figure .ph, .mentor-figure img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; }
.mentor-figure .ph > img { height: 100%; }
.mentor-body > p:not(.mentor-role):not(.band-sub) { margin-top: 18px; font-size: clamp(17px, 1.3vw, 18px); line-height: 1.6; max-width: 90%; }
.mentor-body .mentor-role { margin: 0 0 10px; }
.band-dark .mentor-body p { color: #fff; }
.bio { margin-top: var(--cta-gap, 32px); }
.bio-body { margin-top: 18px; }
.bio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bio-list li { font-size: 16px; line-height: 1.55; padding-left: 0; }
.bio-list b { display: inline-block; min-width: 7.5em; font: 700 13px/1.5 var(--mono); letter-spacing: .04em; }
.refs-t { font: 700 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 24px 0 8px; }
.refs { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.refs a { color: inherit; font-weight: 700; text-decoration: none; }
.refs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.band-dark .bio-list li, .band-dark .refs { color: #fff; }
.sub-h3 { font: 700 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: clamp(48px, 6vw, 72px) 0 16px; }
/* Book tiles: all the same size */
.books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.book-tile { aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 12px;
  border: .5px solid currentColor; border-radius: var(--photo-r, 4px); color: inherit; text-decoration: none; transition: background .15s ease, color .15s ease; }
.book-t { font-size: 17px; font-weight: 700; line-height: 1.15; }
.book-a, .book-y { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.band-dark .book-tile { color: #fff; border-color: #fff; }
.band-dark .book-tile:hover, .band-dark .book-tile:focus-visible { background: #fff; color: #000; outline: none; }
.band-light .book-tile:hover, .band-light .book-tile:focus-visible { background: #000; color: #fff; outline: none; }
.tv-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tv-links a { display: inline-block; padding: 8px 14px; border: .5px solid currentColor; border-radius: var(--photo-r, 4px);
  font: 600 13px/1.2 var(--mono); letter-spacing: .04em; color: inherit; text-decoration: none; }
.band-dark .tv-links a { color: #fff; }
.band-dark .tv-links a:hover, .band-dark .tv-links a:focus-visible { background: #fff; color: #000; outline: none; }
.tv-links a::before { content: "\25B6"; font-size: .8em; margin-right: .5em; }
@media (max-width: 1000px) { .books { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .mentor-row { grid-template-columns: 1fr; } .mentor-row .mentor-photo, .mentor-figure { max-width: 320px; } .books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.book-t { font-size: clamp(13px, 1.25vw, 17px); overflow-wrap: anywhere; hyphens: auto; }
.books-many { row-gap: 12px; }
.book-t { overflow-wrap: normal; word-break: normal; -webkit-hyphens: auto; hyphens: auto; font-size: clamp(12px, 1.15vw, 16px); }
/* Biography toggle spans the full container, under the photo/heading row */
.bio-wrap .bio { margin-top: var(--cta-gap, 32px); }
.bio-wrap .bio-body { columns: 1; max-width: none; }
.bio-wrap .bio-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
@media (max-width: 800px) { .bio-wrap .bio-list { grid-template-columns: 1fr; } }
.refs-wide { columns: 2; column-gap: 48px; display: block; padding-left: 1.3em; }
.refs-wide li { break-inside: avoid; margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
.band-dark .refs-wide { color: #fff; }
@media (max-width: 800px) { .refs-wide { columns: 1; } }

/* Small photos under a mentor's text (no pop-up). About two inches each. */
:root { --mini-photo-cols: 3; }
.mini-photos { list-style: none; margin: var(--cta-gap, 32px) 0 0; padding: 0; max-width: 90%;
  display: grid; grid-template-columns: repeat(var(--mini-photo-cols), minmax(0, 1fr)); gap: 10px; }
.mini-photos li { margin: 0; min-width: 0; }
.mini-photos .ph, .mini-photos img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; }
.mini-photos .ph > img { height: 100%; }
@media (max-width: 700px) { .mini-photos { max-width: none; } }

/* Static photo rows (no pop-up): same even grid as every other gallery */
.photo-grid-static li .ph, .photo-grid-static li > img { aspect-ratio: 1 / 1; width: 100%; height: auto; }
.photo-grid-static li .ph > img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid-static li img { object-fit: cover; display: block; }

/* ==========================================================================
   VIDEO CARDS + POP-UP PLAYER  (click an image, the video opens over the page)
   ========================================================================== */
.vids { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vids li { margin: 0; min-width: 0; }
.vid { position: relative; display: block; width: 100%; padding: 0; border: .5px solid currentColor; border-radius: var(--photo-r, 4px);
  background: #000; cursor: pointer; overflow: hidden; aspect-ratio: 16 / 9; color: inherit; }
.band-dark .vid { border-color: #fff; }
.vid .ph, .vid img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: 0; }
.vid-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: #fff; z-index: 3; transition: transform .2s ease; }
.vid-play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #000; }
.vid:hover .vid-play, .vid:focus-visible .vid-play { transform: scale(1.08); }
.vid:hover .ph-c, .vid:focus-visible .ph-c { opacity: 1; }
.vid:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vid-t { margin-top: 10px; font: 600 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.band-dark .vid-t { color: #fff; }
.vv { padding: 0; border: .5px solid #fff; border-radius: var(--photo-r, 4px); background: #000; width: min(90vw, 1100px); max-width: none; overflow: visible; position: fixed; }
.vv::backdrop { background: rgba(0,0,0,.92); }
.vv-frame { aspect-ratio: 16 / 9; width: 100%; }
.vv-frame iframe { width: 100%; height: 100%; border: 0; display: block; border-radius: calc(var(--photo-r, 4px) - .5px); }
.vv-x { z-index: 10; }
@media (max-width: 700px) { .vids { grid-template-columns: 1fr; } }
.mentor-body > p:not(.mentor-role):not(.band-sub) { margin-top: 14px; }
@media (min-width: 701px) and (max-width: 1200px) { .mentor-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ==========================================================================
   BOOK COVERS  (cover image fills the tile; title text stays for screen readers
   and shows if a cover fails to load). Black and white, colour on hover.
   ========================================================================== */
.book-tile { position: relative; overflow: hidden; }
.book-tile.has-cover { padding: 0; background: #fff; }
.book-tile.has-cover .book-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05); transition: filter .35s ease; }
.book-tile.has-cover:hover .book-cover, .book-tile.has-cover:focus-visible .book-cover { filter: none; }
.book-tile.has-cover .book-t, .book-tile.has-cover .book-a, .book-tile.has-cover .book-y {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.band-dark .book-tile.has-cover:hover, .band-light .book-tile.has-cover:hover { background: #fff; }
.cover-credit { margin-top: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.band-dark .cover-credit { color: #fff; }
/* Bibliography inside a biography toggle */
.bib-note { font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
.bib { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 48px; font-size: 14px; line-height: 1.5; }
.bib li { break-inside: avoid; margin-bottom: 4px; }
.band-dark .bib, .band-dark .bib-note { color: #fff; }
@media (max-width: 800px) { .bib { columns: 1; } }

/* ==========================================================================
   BIOGRAPHY TABLE  (date / topic column + description, thin rule per row)
   ========================================================================== */
:root { --bio-key-width: 8.5em; }
.bio-wrap .bio-list { display: block; margin: 0; padding: 0; border-bottom: .5px solid currentColor; }
.bio-wrap .bio-list li { display: grid; grid-template-columns: var(--bio-key-width) minmax(0, 1fr); column-gap: 20px; align-items: baseline;
  padding: 12px 0; border-top: .5px solid currentColor; font-size: 16px; line-height: 1.5; }
.bio-wrap .bio-list li b { min-width: 0; display: block; font: 700 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.band-dark .bio-wrap .bio-list, .band-dark .bio-wrap .bio-list li { border-color: #fff; }
@media (max-width: 600px) { .bio-wrap .bio-list li { grid-template-columns: 1fr; row-gap: 2px; } }
/* Book titles in the full lists are links */
.bib a { color: inherit; text-decoration: none; }
.bib a:hover, .bib a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   MEDIA / TV BUTTON ROW  (works on black or white sections; buttons and links match)
   ========================================================================== */
.tv-links button { display: inline-block; padding: 8px 14px; border: .5px solid currentColor; border-radius: var(--photo-r, 4px);
  font: 600 13px/1.2 var(--mono); letter-spacing: .04em; color: inherit; background: transparent; cursor: pointer; }
.tv-links button::before { content: "\25B6"; font-size: .8em; margin-right: .5em; }
.band-dark .tv-links button { color: #fff; }
.band-dark .tv-links button:hover, .band-dark .tv-links button:focus-visible { background: #fff; color: #000; outline: none; }
.tv-links a, .tv-links button { color: inherit; }
:not(.band-dark) > .wrap > .tv-links a:hover, :not(.band-dark) > .wrap > .tv-links a:focus-visible,
:not(.band-dark) > .wrap > .tv-links button:hover, :not(.band-dark) > .wrap > .tv-links button:focus-visible { background: #000; color: #fff; outline: none; }
.media-links a::before { content: "\2197"; font-size: .9em; margin-right: .5em; }
.media-links a[href^="/"]::before { content: "\203A"; }
.lessons-more { margin-top: var(--cta-gap, 32px); }

/* ===== WIDE PHOTO (one landscape photo inside a section, e.g. /robotics "Why I judge") =====
   --wide-photo-max: how wide the photo runs inside its section. */
:root { --wide-photo-max: none; } /* retired 2026-12-01: single photos span the container */
.wide-photo { max-width: none; width: 100%; margin-top: var(--cta-gap, 32px); } /* A photo on its own spans its section (James, 2026-12-01) */
.wide-photo + .cta-row { margin-top: var(--cta-gap, 32px); }

/* ===== TWO-COLUMN CARDS (e.g. /scuba Dive Mentor) ===== */
.lessons-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lessons-2 p { max-width: 90%; }
@media (max-width: 600px) { .lessons-2 { grid-template-columns: 1fr; } }
.lessons h3 a { color: inherit; text-decoration: none; }
.lessons h3 a:hover, .lessons h3 a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* ===== DOWNLOAD CARD (e.g. /scuba Stop the Bleed) =====
   The slide cover keeps its 16:9 shape instead of the 4:5 mentor crop. */
.stb-figure .ph, .stb-figure img { aspect-ratio: 16 / 9; }
.dl-note { margin-top: 12px; font: 12px/1.4 var(--mono); letter-spacing: .06em; opacity: .8; }

/* ===== CERTIFICATION PHOTOS (two side by side on /scuba) ===== */
.cert-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: var(--cta-gap, 32px); }
@media (max-width: 600px) { .cert-photos { grid-template-columns: 1fr; } }

/* ===== COURSE LIST (inside /scuba Overview of Qualifications) =====
   --course-cols: how many columns the course list uses on wide screens. */
:root { --course-cols: 3; }
.course-list { list-style: none; margin: 8px 0 0; padding: 0; columns: var(--course-cols); column-gap: 32px; font-size: 15px; line-height: 1.5; }
.course-list li { break-inside: avoid; padding: 3px 0 3px 1em; position: relative; }
.course-list li::before { content: "\203A"; position: absolute; left: 0; }
@media (max-width: 800px) { .course-list { columns: 2; } }
@media (max-width: 500px) { .course-list { columns: 1; } }
.course-note { margin-top: 16px; }
.abridged { margin-top: 28px; }

/* ===== COURSE GROUPS (by agency, inside /scuba Overview of Qualifications) ===== */
.course-group { margin-top: 28px; padding-top: 20px; border-top: .5px solid currentColor; }
.course-group:first-of-type { margin-top: 12px; }
.course-agency { font-size: 22px; font-weight: 700; line-height: 1.2; }
.course-agency span { font-size: 15px; font-weight: 400; margin-left: .4em; opacity: .75; }
.course-cat { font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 18px 0 4px; opacity: .8; }
.course-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.refs-t .refs-aside { font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: .4em; }

/* ===== COURSE HEADING BAR (the "Courses I Can Teach" row on /scuba) =====
   Only this one row is black with white text, to mark the start of the course table.
   --course-bar-pad: side padding inside the black bar. */
:root { --course-bar-pad: 12px; }
.course-panel .refs-t { background: #000; color: #fff; margin: 28px 0 0; padding: 12px var(--course-bar-pad); border-top: .5px solid #000;
  font: 700 12px/24px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.course-panel .refs-t + .bio-list > li:first-child { border-top: 0; }

/* ===== SPEAKER PHOTOS (two square photos under Formats on /speaker) ===== */
.speaker-photos figure { margin: 0; }
.speaker-photos .ph, .speaker-photos img { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; }
.speaker-photos .ph > img { height: 100%; object-fit: cover; }
.band-dark .speaker-photos .ph { border-color: #fff; }
.art-grid-square .pg-item { aspect-ratio: 1 / 1; }
.cert-photos.photos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .cert-photos.photos-3 { grid-template-columns: 1fr; } }
.band-sub + .cert-photos, h2 + .cert-photos { margin-top: clamp(28px, 3vw, 40px); }

/* ===== EXTRA MENTOR PHOTO (a second photo under the main one, e.g. Richard) =====
   --mentor-extra-gap: space between the main photo and the extra one. */
:root { --mentor-extra-gap: 16px; }
.mentor-photos { min-width: 0; }
.mentor-extra { margin: var(--mentor-extra-gap) 0 0; }
.mentor-extra .ph, .mentor-extra img { width: 100%; height: auto; aspect-ratio: 3 / 4; display: block; }
.mentor-extra .ph > img { height: 100%; object-fit: cover; }
.mentor-extra figcaption, .speaker-photos figcaption { margin-top: 8px; font-size: 14px; }
@media (max-width: 700px) { .mentor-photos { max-width: 320px; } }
.headed-in { margin-bottom: 32px; max-width: none; width: 100%; }
.headed-in figcaption { max-width: 60ch; font-size: 15px; line-height: 1.5; }
.headed-pair { margin-top: 0; margin-bottom: clamp(40px, 5vw, 64px); }
.headed-in + .headed-pair { margin-top: -16px; }

/* ===== GALLERY REVEAL (photos appear in batches as you scroll, /humanitarian) ===== */
.pg-sentinel { height: 1px; }
/* --reveal-space: room left under the gallery while more photos load in. */
:root { --reveal-space: clamp(80px, 12vw, 160px); }
.pg-reveal { margin-bottom: 0; }
/* Loader shown in the space under the gallery while the next photos load. --loader-dot: dot size. */
:root { --loader-dot: 8px; }
.pg-loader { height: var(--reveal-space); display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity .3s ease; }
.pg-loader.is-on { opacity: 1; }
.pg-loader span { width: var(--loader-dot); height: var(--loader-dot); border-radius: 50%; background: currentColor; animation: pg-dot 1s ease-in-out infinite; }
.pg-loader span:nth-child(2) { animation-delay: .15s; }
.pg-loader span:nth-child(3) { animation-delay: .3s; }
.pg-loader em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes pg-dot { 0%, 80%, 100% { transform: scale(.5); opacity: .3; } 40% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pg-loader span { animation: none; opacity: .6; } }
.pg-reveal li.pg-in { animation: pg-fade .8s ease both; }
@keyframes pg-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pg-reveal li.pg-in { animation: none; } }
.pg-reveal li[hidden] { display: none; }
.headed-text { margin-bottom: clamp(24px, 3vw, 36px); }

/* ===== BOOKSHELF (/books) =====
   --shelf-cols: books per row on wide screens. --shelf-cover: cover width in each card. */
:root { --shelf-cols: 3; --shelf-cover: 140px; }
.hero-text .wrap > * { max-width: 90%; }
.shelf { list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--shelf-cols), minmax(0, 1fr)); gap: 40px 32px; }
.shelf-item { display: grid; grid-template-columns: var(--shelf-cover) minmax(0, 1fr); gap: 20px; align-items: start; }
.shelf-item .book-tile { width: var(--shelf-cover); border-radius: var(--photo-r, 4px); }
.shelf-body h3 { font-size: 20px; line-height: 1.25; margin: 0 0 6px; }
.shelf-body h3 a { color: inherit; text-decoration: none; }
.shelf-body h3 a:hover, .shelf-body h3 a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.shelf-meta { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin: 0 0 10px; }
.shelf-body p { font-size: 15px; line-height: 1.5; }
@media (max-width: 1100px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .shelf { grid-template-columns: 1fr; } }

/* ===== DIAGRAM TEXT ON BLACK BOXES (SVG diagrams on home and /humanitarian) ===== */
#ir text.d-on-dark, .d-box text.d-on-dark, .d-box .d-box-accent ~ text.d-on-dark { fill: #fff; }
.d-box text.d-small { font-size: 14px; }

/* ===== PODCASTS (/podcasts/, show pages, episode pages) =====
   Cover art keeps its original colours (approved show art, not a photo).
   --podcast-cover-lg: hero cover size. --podcast-cover-sm: episode-list thumbnail. */
:root { --podcast-cover-lg: 360px; --podcast-cover-sm: 88px; }
.podcast-hero-grid { display: grid; grid-template-columns: var(--podcast-cover-lg) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.podcast-cover { display: block; margin: 0; border: .5px solid currentColor; border-radius: var(--photo-r, 4px); overflow: hidden; aspect-ratio: 1 / 1; }
.podcast-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.podcast-kicker, .podcast-meta { font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin: 0 0 10px; }
.podcast-kicker a { color: inherit; }
.podcast-hero h1 { margin: 0 0 8px; }
.podcast-subscribe { list-style: none; padding: 0; margin: var(--cta-gap, 32px) 0 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.podcast-player { display: block; width: 100%; max-width: 640px; margin: 20px 0; }
.podcast-shows { list-style: none; padding: 0; margin: clamp(28px, 3vw, 40px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.podcast-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
.podcast-card h3 a, .podcast-latest h3 a, .podcast-row h3 a { color: inherit; text-decoration: none; }
.podcast-card h3 a:hover, .podcast-latest h3 a:hover, .podcast-row h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.podcast-latest { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px; }
.podcast-episodes { list-style: none; padding: 0; margin: 24px 0 0; }
.podcast-row { display: grid; grid-template-columns: var(--podcast-cover-sm) minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: .5px solid currentColor; }
.podcast-row h3 { margin: 0 0 6px; font-size: 20px; }
.podcast-row p { margin: 0; }
.podcast-notes { max-width: 70ch; }
@media (max-width: 800px) {
  .podcast-hero-grid, .podcast-latest { grid-template-columns: 1fr; }
  .podcast-cover-lg { max-width: 320px; }
  .podcast-latest .podcast-cover { max-width: 240px; }
  .podcast-shows { grid-template-columns: 1fr; }
}
@media (max-width: 500px) { .podcast-card { grid-template-columns: 120px minmax(0, 1fr); } }
/* Apple Podcasts badge: Apple's official badge, served by Apple (do not redraw or recolour). */
.podcast-badge { display: inline-block; line-height: 0; }
.podcast-badge img { height: 48px; width: auto; }
.podcast-subscribe-one { margin: 16px 0 0; }
/* Phone menu: five links fit without sideways scrolling. */
@media (max-width: 480px) { .nav nav { justify-content: space-between; gap: 10px; } .nav nav a { font-size: 14px; } }
@media (max-width: 360px) { .nav nav a { font-size: 13px; } }

/* ===== PODCAST PAGE SECTIONS (/podcasts/) =====
   --podcast-quote-size: size of the pull quote. */
:root { --podcast-quote-size: clamp(28px, 4vw, 44px); }
.podcast-prose { margin-top: 8px; }
.podcast-quote { margin: clamp(32px, 4vw, 48px) 0 0; padding: 24px 0 0; border-top: .5px solid currentColor; }
.podcast-quote p { font-size: var(--podcast-quote-size); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; max-width: 22ch; }
.podcast-for { list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.podcast-for li { padding: 16px 0 16px 28px; border-top: .5px solid currentColor; position: relative; font-size: 17px; line-height: 1.5; }
.podcast-for li::before { content: "\203A"; position: absolute; left: 4px; top: 15px; font-weight: 700; }
.podcast-host { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.podcast-host .hero-photo { margin: 0; }
.podcast-originals { list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.podcast-originals li { border: .5px solid currentColor; border-radius: var(--photo-r, 4px); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.podcast-num { font: 500 12px/1 var(--mono); letter-spacing: .1em; opacity: .8; }
.podcast-ttl { font-size: 22px; font-weight: 600; line-height: 1.2; }
.podcast-next { margin-top: var(--cta-gap, 32px); font-size: 18px; max-width: 60ch; }
.podcast-badge-row { margin-top: 16px; }
@media (max-width: 900px) { .podcast-originals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .podcast-host, .podcast-for { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .podcast-originals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Podcast hero: Apple badge bottom lines up exactly with the bottom of the cover. */
.podcast-hero-grid { align-items: stretch; }
.podcast-hero-grid > div { display: flex; flex-direction: column; justify-content: center; }
.podcast-hero-grid .podcast-subscribe { margin-top: auto; margin-bottom: 0; padding-top: var(--cta-gap, 32px); }
.podcast-hero-grid .podcast-kicker { margin-top: 0; }
.podcast-listen { margin-top: clamp(32px, 4vw, 48px); }
.podcast-ep-links a::before { content: "\203A"; }
.podcast-ep-links button[aria-pressed="true"] { background: #000; color: #fff; }
.podcast-now { margin-top: 16px; }
.podcast-now .podcast-player { margin: 6px 0 0; }
@media (max-width: 800px) { .podcast-hero-grid .podcast-subscribe { margin-top: 0; } }
.podcast-badge, .podcast-badge img { display: block; }
.podcast-subscribe { align-items: flex-end; }

/* ===== TERMINAL (code-style hero on /hacker) =====
   Real text, black and white only. --terminal-size: code font size. */
:root { --terminal-size: clamp(12px, 1.25vw, 15px); }
.terminal { margin: 0; border: .5px solid #000; border-radius: var(--photo-r, 4px); background: #000; color: #fff; overflow: hidden; }
.terminal-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: .5px solid #fff; }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; }
.terminal pre { margin: 0; padding: 18px 18px 22px; overflow-x: auto; font: 500 var(--terminal-size)/1.6 var(--mono); white-space: pre; }
.terminal figcaption { padding: 10px 18px 12px; border-top: .5px solid #fff; font-size: 13px; color: #fff; }
.terminal-cursor { animation: term-blink 1s steps(1) infinite; }
@keyframes term-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .terminal-cursor { animation: none; } }
.un-photo { max-width: none; width: 100%; }
.community-sub { max-width: 60ch; margin: 8px 0 20px; font-size: 17px; line-height: 1.5; }
/* Small even galleries: 2 or 3 tiles fill the row at every width */
.photo-grid.pg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid.pg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-grid.pg-2 .pg-item { aspect-ratio: 4 / 3; }
/* Graphic medical photos: closed by default, behind a warning */
.photo-grid.pg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 600px) { .photo-grid.pg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.story.graphic .photo-grid { margin-top: 16px; }
.graphic-warn { width: 90%; margin: 20px 0 0; font-size: 17px; line-height: 1.5; }
/* Top menu on phones: wrap onto a second line so every link is visible */
@media (max-width: 600px) { .nav nav { flex-wrap: wrap; overflow-x: visible; row-gap: 8px; column-gap: 20px; } }
.photo-grid.pg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 600px) { .photo-grid.pg-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.black-belts { margin-top: clamp(40px, 5vw, 64px); }
.cert-wide { max-width: none; width: 100%; }
#consulting .lessons + .cta-row { margin-top: var(--cta-gap, 32px); }
/* "What I do" hamburger menu */
.nav-row { position: relative; }
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 36px; padding: 0 8px;
  background: #000; border: .5px solid #000; border-radius: 4px; cursor: pointer; flex: none; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
.menu-btn:hover, .menu-btn:focus-visible, .menu-btn.on { background: #fff; }
.menu-btn:hover span, .menu-btn:focus-visible span, .menu-btn.on span { background: #000; }
.menu-btn.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.on span:nth-child(2) { opacity: 0; }
.menu-btn.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.do-menu { position: absolute; top: calc(100% + 1px); right: 0; z-index: 20; width: min(300px, 90vw); max-height: calc(100vh - 80px); overflow-y: auto;
  background: #fff; border: .5px solid #000; border-radius: 4px; padding: 14px 0 8px; }
.do-menu[hidden] { display: none; }
.do-menu-t { margin: 0 20px 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.do-menu ul { list-style: none; margin: 0; padding: 0; }
.do-menu a { display: block; padding: 9px 20px; font-size: 16px; font-weight: 600; color: #000; text-decoration: none; }
.do-menu a:hover, .do-menu a:focus-visible { background: #000; color: #fff; outline: none; }
@media (max-width: 600px) { .nav-row { gap: 12px; } .do-menu { right: 0; } }
#how-it-started .band-sub + .band-sub { margin-top: 16px; }
#how-it-started .cert-photos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
.full-span { max-width: none; width: 100%; } .full-span + .photo-grid { margin-top: var(--cta-gap, 32px); }
/* POLYGLOT PAGE: numbered fellowship cards and the APA reference drawer */
.fellow-list li p + p { margin-top: 10px; }
.refs-box { margin-top: clamp(28px, 3vw, 40px); }
.refs-box .refs { margin-top: 16px; }

/* Inline links in running prose (polyglot and later pages) */
.prose p a, a.inline { text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 3px; }
.prose p a:hover, a.inline:hover { text-decoration-thickness: 1.5px; }
.hero-prose { margin-top: 22px; }
.hero-prose p + p { margin-top: 14px; }
.hero-span { margin-top: clamp(28px, 3.5vw, 48px); }
#top .hero-grid { min-height: 0; align-items: center; }
.hero-span p { max-width: none; }
.hero-span .cta-row { margin-top: 24px; }

/* ===== SITE-WIDE WIDTH AND INDENT RULES (owner order 2026-12-01) =====
   Titles 85% of container; subtitles 75%; body text and all other elements 100%.
   No hanging indents anywhere: lists sit flush, markers inside. */
main :is(p, li, ul, ol, dl, dd, figcaption, blockquote, .prose, .topic-body, .mini-photos, .diagram-over) { max-width: none !important; }
main :is(h1, h2) { max-width: 85% !important; }
main :is(.hero-sub, .band-sub, .section-lede) { max-width: 75% !important; }
main :is(ul, ol, .refs, .refs-wide, .bib, .topic-body ul) { padding-left: 0 !important; text-indent: 0 !important; list-style-position: inside; }
main ul.refs { list-style-type: disc; }
main blockquote, main dd { margin-left: 0; }
/* Read more: only where a block runs past three paragraphs */
.read-more { display: grid; gap: 1.1em; }
.read-more > summary { margin-bottom: 0; }
.read-more:not([open]) > summary::before { content: none; }
/* Text links (.link): one clean line only, never underline + border */
a.link, .prose a.link, .cta-row a.link { text-decoration: none !important; border-bottom-width: 1px; padding-bottom: 1px; }
/* Read more toggle sits at the start edge (left in LTR, right in RTL), never full width */
.read-more > summary { justify-self: start; width: auto; }
/* Magazine-style hero: title top left, figure floated top right, text wraps beside it then runs full width */
.hero-flow::after { content: ""; display: block; clear: both; }
.hero-flow > .terminal { float: right; width: 40%; margin: 0 0 clamp(20px, 2vw, 28px) clamp(28px, 3.5vw, 48px); }
.hero-flow > h1 { margin-top: -0.12em; }
.hero-flow > .hero-sub { margin-top: 18px; }
.hero-flow > p:not(.hero-sub) { margin-top: 18px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; }
.hero-flow > .cta-row { clear: both; margin-top: 28px; }
#top.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); }
@media (max-width: 760px) {
  .hero-flow > .terminal { float: none; width: 100%; margin: 24px 0; }
  .hero-flow { display: flex; flex-direction: column; }
  .hero-flow > .terminal { order: 3; }
  .hero-flow > h1 { order: 1; } .hero-flow > .hero-sub { order: 2; }
  .hero-flow > p:not(.hero-sub) { order: 4; } .hero-flow > .cta-row { order: 5; }
}
/* Book shelf with covers: three across, every cover the same size and shape, text below */
.shelf.shelf-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.shelf-covers .shelf-item { grid-template-columns: 1fr; gap: 16px; }
.shelf-covers .shelf-item .book-tile { width: 100%; aspect-ratio: 7 / 10; }
.shelf-covers .book-tile:not(.has-cover) .book-t { font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }
.shelf-covers .shelf-body h3 { font-size: clamp(19px, 1.6vw, 22px); }
@media (max-width: 760px) { .shelf.shelf-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
/* Covers keep their real proportions: each sits on a common shelf line at the bottom of an equal cover area */
.shelf-covers .book-tile.has-cover { background: transparent !important; border: 0; border-radius: 0; overflow: visible; }
.shelf-covers .book-tile.has-cover .book-cover { object-fit: contain; object-position: center bottom; }
.hero-text .hero-body { margin-top: 18px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; }
/* Hairline frame around each book cover (white on dark sections, black on light) */
.shelf-covers .book-tile.has-cover .book-cover { inset: auto; left: 50%; bottom: 0; transform: translateX(-50%); width: auto; height: auto; max-width: 100%; max-height: 100%; border: .25px solid currentColor; box-sizing: border-box; }
.band .band-body { margin-top: 18px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; }
/* Covers sit flush left so titles line up with the cover's left edge */
.shelf-covers .book-tile.has-cover .book-cover { left: 0; transform: none; }
[dir="rtl"] .shelf-covers .book-tile.has-cover .book-cover { left: auto; right: 0; }
.shelf-covers .shelf-item { align-content: start; grid-template-rows: auto auto; }
/* Screenshot galleries: portrait tiles showing the top of each page */
.pg-shots .pg-item { aspect-ratio: 3 / 4; }
.pg-shots .pg-item img { object-position: center top; }
/* Magazine pages: wide tiles sized for two-page spreads; covers and single pages show their top */
.photo-grid.pg-2.pg-print .pg-item { aspect-ratio: 1600 / 1035; }
.pg-print .pg-item img { object-position: center top; }
/* Text links stay visible on dark sections */
.band-dark a.link { color: #fff; border-bottom-color: #fff; }
.band-dark a.link:hover { border-bottom-color: transparent; }
/* Plain bulleted list in body copy: flush, no hanging indent */
.band ul.bullets { list-style: disc inside; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; }
/* Full-span images that must keep their own proportions (logos, emblems) */
.hero-photo.natural img { aspect-ratio: auto !important; height: auto !important; object-fit: contain; }
.hero-photo.natural a { display: block; }
.hero-photo.natural .ph { aspect-ratio: auto !important; height: auto !important; display: block; }
/* Two side-by-side columns inside one section (stacks on phones) */
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.two-up-col h2 { max-width: none !important; }
.two-up-col .band-sub { max-width: none !important; }
.two-up-col .hero-photo { margin-top: 24px; }
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }
/* No outline around emblem and logo images */
.hero-photo.no-frame, .hero-photo.no-frame .ph, .hero-photo.no-frame img { border: 0 !important; outline: 0 !important; box-shadow: none !important; }
/* Third-party brand logos: shown exactly as supplied (no filter, outline or colour change) */
.brand-logo { margin: 24px 0 0; }
.brand-logo img { display: block; width: 100%; max-width: 420px; height: auto; filter: none !important; border: 0; }
/* ADDY and IMDb side by side: identical image boxes (same width and height) */
.two-up .hero-photo.natural img, .two-up .brand-logo img { width: 100%; max-width: none; aspect-ratio: 660 / 370 !important; height: auto !important; }
.two-up .hero-photo.natural img { object-fit: cover; }
.two-up .brand-logo img { object-fit: contain; }
.two-up .brand-logo, .two-up .hero-photo { margin-top: 24px; }
/* Larger call-to-action button */
.btn.btn-large { font-size: clamp(17px, 1.4vw, 20px); padding: 16px 30px; }
/* Contact form: optional parts */
.msg .event-fields { border: .5px solid currentColor; border-radius: var(--photo-r, 4px); padding: 14px 16px 6px; margin: 0; display: grid; gap: inherit; }
.msg .event-fields legend { padding: 0 6px; font-size: 14px; }
.msg [hidden] { display: none !important; }
/* Contact page form on a light section: black text, white fields, hairline borders */
#contact-form { margin-top: clamp(32px, 4vw, 56px); }
#contact-form .briefing-lead > p, #contact-form .contact-note, #contact-form .msg label, #contact-form .msg-note, #contact-form legend { color: #000; }
#contact-form .msg input, #contact-form .msg textarea, #contact-form .msg select { background: #fff; color: #000; border: .5px solid #000; border-radius: var(--photo-r, 4px); }
#contact-form .msg input:focus, #contact-form .msg textarea:focus, #contact-form .msg select:focus { outline: 2px solid #000; outline-offset: 1px; }
#contact-form .msg .btn { background: #000; color: #fff; }
/* Hosted video in the shared player */
.vv-frame video { width: 100%; height: 100%; display: block; background: #000; border-radius: calc(var(--photo-r, 4px) - .5px); }
.vv-frame.is-portrait { aspect-ratio: 9 / 16; width: auto; height: min(85vh, 1100px); margin: 0 auto; }
.vv:has(.is-portrait) { width: auto; }
.vids.vids-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .vids.vids-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vids.vids-3 { grid-template-columns: 1fr; } }
.vv.vv-portrait { width: fit-content; }
/* Contact form details */
#contact-form .req { color: #000; }
#contact-form .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
#contact-form .field-err { font-size: 14px; color: #000; font-weight: 600; }
#contact-form [aria-invalid="true"] { border-width: 2px !important; }
#contact-form .msg-privacy { font-size: 14px; color: #000; margin: 0; }
#contact-form button[disabled] { opacity: .6; cursor: wait; }
/* Magazine spreads keep their full two-page shape (no cropping) */
.photo-grid.pg-2.pg-spreads .pg-item { aspect-ratio: 1800 / 1210; }
.pg-spreads .pg-item img { object-position: center; }
/* Magazine covers: a row of four, full cover visible */
.photo-grid.pg-4.pg-covers .pg-item { aspect-ratio: 1177 / 1600; }
.pg-covers .pg-item img { object-position: center top; }
@media (max-width: 900px) { .photo-grid.pg-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Podcast hero: the square cover sizes from its column width, never from the text column's height */
.podcast-hero-grid > .podcast-cover { align-self: center; width: 100%; height: auto; }
/* A mentor photo shown whole, in its own landscape shape */
.mentor-figure.mentor-figure-wide .ph, .mentor-figure.mentor-figure-wide img { aspect-ratio: 4 / 3; }

/* Martial arts: landscape teaching pair; small competition series */
#teaching .speaker-photos .ph, #teaching .speaker-photos img { aspect-ratio: 5 / 4; }
#teaching .speaker-photos img[src*="ma-kids"], #teaching .speaker-photos .ph > img[src*="ma-kids"] { object-position: 50% 0%; }
.photo-grid.pg-2.pg-comp { width: 100%; gap: 12px; }
.photo-grid.pg-2.pg-comp .pg-item { aspect-ratio: 360 / 430; }
.pg-caption { margin-top: 8px; font-size: 14px; }

.vids.vids-1 { grid-template-columns: 1fr; }
.two-up-col .vids { margin-top: 24px; }

/* Veteran gallery: small, no pop-over, equal-height rows by orientation */
.vet-row { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0 !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.vet-row li { margin: 0; flex: var(--ar) 1 calc(var(--ar) * 170px); max-width: calc(var(--ar) * 200px) !important; }
.vet-row .ph, .vet-row img { display: block; width: 100%; height: auto; }
.hero-grid .hero-sub + .hero-body { margin-top: 16px; }
/* Magazine-wrap hero photo (magic) */
.hero-flow > .flow-photo { float: right; width: 34%; margin: 0 0 clamp(20px, 2vw, 28px) clamp(28px, 3.5vw, 48px); }
.hero-flow > .jump { clear: both; }
@media (max-width: 760px) {
  .hero-flow > .flow-photo { float: none; width: 100%; max-width: 420px; margin: 24px 0; order: 3; }
  .hero-flow > .jump { order: 6; }
}
.dynamo-photo { margin-top: 28px; max-width: 520px; }
.photo-row li { flex-basis: calc(var(--ar) * 260px); max-width: calc(var(--ar) * 320px) !important; }
.hero-flow > .flow-hero { margin: clamp(24px, 3vw, 40px) 0 clamp(28px, 3vw, 40px); width: 100%; max-width: none !important; }
@media (max-width: 760px) { .hero-flow > .flow-hero { order: 3; margin: 24px 0 0; } }
.hum-hero-wide, .wide-hero { margin-top: clamp(32px, 4vw, 56px); width: 100%; max-width: none !important; }
/* Body-length text written as a subtitle spans the full width, like body text */
main .sub-body { max-width: none !important; }
main .graphic-warn { width: auto; max-width: none !important; }
