/* lucasmiller.org — tokens, texture, type roles, page layouts. */

:root {
  --ground: rgb(250, 250, 248);
  --panel: rgb(242, 239, 232);
  --text: rgb(26, 24, 20);
  --muted: rgb(107, 103, 94);
  --rule: rgb(231, 227, 219);
  --rule-strong: rgb(26, 24, 20);
  --accent: #1f7a63;
  --accent-ink: #17604e;
  --grid-line: rgba(26, 24, 20, 0.055);

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1248px;
  --gutter: 48px;
  --measure: 640px;
  --cell: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--ground);
  /* Graph-paper ground: 24px cell, hairlines at ~5.5% */
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: -1px -1px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--text); color: var(--ground); padding: 8px 12px;
}
.skip:focus { top: 12px; }

/* Texture options, picked by "texture" in content/site.json. All stay under ~8% ink. */
body.tx-dots, body.tx-synapse {
  background-image: radial-gradient(circle at 1px 1px, rgba(26, 24, 20, 0.14) 1.1px, transparent 1.6px);
  background-size: var(--cell) var(--cell);
  background-position: -1px -1px;
}
body.tx-synapse {
  background-image: url("/tex/synapse.svg"), radial-gradient(circle at 1px 1px, rgba(26, 24, 20, 0.12) 1px, transparent 1.5px);
  background-size: 960px 960px, var(--cell) var(--cell);
  background-position: 0 0, -1px -1px;
}
body.tx-circuit {
  background-image: url("/tex/circuit.svg"),
    linear-gradient(to right, rgba(26, 24, 20, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 24, 20, 0.025) 1px, transparent 1px);
  background-size: 960px 960px, var(--cell) var(--cell), var(--cell) var(--cell);
  background-position: 0 0, -1px -1px, -1px -1px;
}

/* Latticework ground: a diagonal trellis with neurons firing along it. Fixed to the viewport and
   masked so it is dense at the edges and clears toward the content, distilling as it goes. */
body.tx-lattice { background-image: none; }
body.tx-lattice::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("/tex/lattice.svg") 0 0 / 960px 960px;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 40% 46%, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.3) 55%, #000 100%);
  mask-image: radial-gradient(ellipse 60% 62% at 40% 46%, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.3) 55%, #000 100%);
}
body.tx-lattice .network { display: none; }

/* ---------------------------------------------------------- type roles */

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.statement {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  color: var(--text);
  text-wrap: balance;
}
.statement-xl { font-size: clamp(38px, 4.7vw, 68px); line-height: 1.04; letter-spacing: -1.2px; }

h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -0.5px; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; line-height: 1.3; }

.reading {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  max-width: var(--measure);
}
.reading p + p, .reading p + ul, .reading ul + p { margin-top: 0.9em; }
.reading ul { list-style: disc; padding-left: 1.2em; }
.reading h2, .reading h3 { font-family: var(--sans); margin: 1.6em 0 0.4em; }
.reading h2 { font-size: 22px; }

.lede { font-size: 18px; color: var(--muted); max-width: 560px; margin-top: 20px; }

/* ---------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -0.4px; color: var(--text); text-decoration: none; }
.site-header nav ul { display: flex; gap: 30px; }
.site-header nav a {
  font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: 6px 0;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.2s ease;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background-size: 100% 1.5px; }
.site-header nav a[aria-current="page"] { color: var(--accent-ink); }
.site-header nav .nav-cta { margin-left: 12px; }
.site-header nav .nav-cta a { padding: 8px 14px; border: 1px solid var(--text); background-image: none; transition: background-color 0.2s ease, color 0.2s ease; }
.site-header nav .nav-cta a:hover, .site-header nav .nav-cta a[aria-current="page"] { background: var(--text); color: var(--ground); }

/* ---------------------------------------------------------- network motif */

.network { position: absolute; top: 18px; right: 0; width: 320px; height: auto; pointer-events: none; }
body.tx-synapse .network, body.tx-circuit .network { display: none; }
.net-lines path { fill: none; stroke: rgba(26, 24, 20, 0.08); stroke-width: 1; }
.net-dots circle { fill: rgba(31, 122, 99, 0.08); stroke: rgba(31, 122, 99, 0.08); }

/* ---------------------------------------------------------- home */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 96px;
  align-items: end;
  padding-top: 80px;
  padding-bottom: 56px;
}
.hero .network { top: 8px; right: calc(var(--gutter) + 300px); width: 260px; }
.hero-text .eyebrow { margin-bottom: 22px; color: var(--accent-ink); }
.hero-text .statement { max-width: 820px; }
.credential { margin-top: 26px; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 600px; }

.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-frame {
  aspect-ratio: 4 / 5; width: 100%;
  background: var(--panel);
  border: 1px solid var(--rule);
  display: flex; align-items: flex-end; padding: 14px;
}
.portrait-frame .eyebrow { color: var(--muted); }

.doors { padding-bottom: 72px; }
.doors ol { border-top: 1px solid var(--rule-strong); }
.door a {
  display: grid;
  grid-template-columns: 68px minmax(0, 380px) 1fr 32px;
  align-items: center;
  min-height: 104px;
  gap: 0 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text); text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.door-num { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; color: var(--muted); }
.door-title { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.6px; line-height: 1.15; }
.door-preview { color: var(--muted); font-size: 16px; transition: color 0.2s ease; }
.door-arrow { font-family: var(--sans); font-size: 22px; color: var(--text); justify-self: end; transition: transform 0.2s ease, color 0.2s ease; }
.door a:hover .door-arrow, .door a:focus-visible .door-arrow { color: var(--accent); transform: translateX(3px); }
.door a:hover, .door a:focus-visible { transform: translateY(-2px); }
.door a:hover .door-title, .door a:focus-visible .door-title { color: var(--accent-ink); }
.door a:hover .door-preview, .door a:focus-visible .door-preview { color: var(--text); }

.band { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proof-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; padding-top: 44px; padding-bottom: 48px; align-items: start; }
.proof-numbers { padding-top: 12px; }
.advised { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); }
.advised-label { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.advised-names { margin-top: 8px; font-family: var(--serif); font-size: 26px; letter-spacing: -0.3px; }
.proof-line { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15.5px; color: var(--muted); max-width: 380px; }
.proof-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
.proof-item:nth-child(odd) { padding-left: 0; border-left: 0; }
.proof-item { display: grid; grid-template-rows: auto auto; align-content: start; gap: 8px; padding: 0 24px; border-left: 1px solid var(--rule); }
.proof-item dd { grid-row: 1; font-family: var(--serif); font-size: 56px; line-height: 1; letter-spacing: -1px; }
.proof-item dt { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------- latticework diagram */

.latticework { margin: 0; }
.lw { display: block; width: 100%; height: auto; overflow: visible; }
.lw-compact { display: none; }
.lw-edge { fill: none; stroke: rgba(26, 24, 20, 0.15); stroke-width: 1; }
.lw-edge-in { fill: none; stroke: var(--accent); stroke-opacity: 0.38; stroke-width: 1; }
.lw-edge-hot { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.lw-node { fill: var(--panel); stroke: rgba(26, 24, 20, 0.45); stroke-width: 1.2; }
.lw-hot { fill: var(--accent); }
.lw-output { fill: var(--accent); }
.lw-ring { fill: none; stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 1; }
.lw-label { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; fill: var(--muted); }
.lw-label-hot { fill: var(--text); }
.lw-out { font-family: var(--sans); font-weight: 600; font-size: 17px; fill: var(--text); }
.latticework figcaption { margin-top: 16px; font-family: var(--serif); font-size: 17px; color: var(--muted); max-width: 520px; }
.latticework-about { max-width: 700px; margin-bottom: 36px; }
.latticework-about .lw-node { fill: var(--ground); }

/* ---------------------------------------------------------- interior pages */

.page-head { position: relative; padding-top: 80px; padding-bottom: 56px; }
.page-head h1 { max-width: 860px; }
.page-head h1 .eyebrow { margin-bottom: 18px; color: var(--accent-ink); }
.page-head .network { right: var(--gutter); top: 40px; }

.section { padding: 48px 0; }
.section.band { padding: 56px 0; }
.split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
.split-label .eyebrow { color: var(--muted); margin-bottom: 10px; }
.split-label h2 { font-size: 30px; }

.cta { padding-top: 48px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-note { color: var(--muted); }
.button {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  color: var(--ground); background: var(--text);
  padding: 13px 20px; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 0.2s ease;
}
.button:hover { background: var(--accent-ink); color: var(--ground); }

.link-list li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.link-list li:first-child { border-top: 1px solid var(--rule); }
.link-list a { font-weight: 600; }
.link-list span { color: var(--muted); }
.influences { font-family: var(--serif); font-size: 19px; }
.influences li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.influences li:first-child { border-top: 1px solid var(--rule); }

/* teaching */
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.course { padding: 24px 28px 28px 0; border-bottom: 1px solid var(--rule); }
.course:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--rule); }
.course h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -0.3px; margin: 10px 0 8px; }
.course h3 a { color: var(--text); }
.course .course-subtitle { margin: -2px 0 6px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }
.course p:not(.eyebrow) { color: var(--muted); }
.meta-row { display: flex; gap: 28px; margin-top: 16px; }
.meta-row dt, .project-meta dt { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.meta-row dd, .project-meta dd { font-size: 15px; }

/* speaking */
.keynotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.keynote { padding: 22px 28px 8px 0; }
.keynote + .keynote { padding-left: 28px; border-left: 1px solid var(--rule); }
.keynote-num { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; color: var(--muted); }
.keynote h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.4px; line-height: 1.15; margin: 10px 0 10px; }
.keynote p { color: var(--muted); font-size: 16px; }
.topics ul { columns: 2 280px; column-gap: 40px; border-top: 1px solid var(--rule-strong); padding-top: 8px; }
.topics li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.keynotes-note { margin-top: 20px; font-size: 15px; color: var(--muted); }
.booking-cta { margin-top: 20px; }
.booking-email { margin-top: 10px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.6px; color: var(--muted); user-select: all; }
.head-link { margin-top: 18px; }
.head-link a { font-weight: 600; color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.head-link a:hover { color: var(--accent-ink); }
.media-list { border-top: 1px solid var(--rule-strong); }
.media-list a { display: grid; grid-template-columns: 240px minmax(0, 1fr) 72px; gap: 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--text); text-decoration: none; }
.media-outlet { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.media-title { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.media-kind { justify-self: end; font-size: 14px; color: var(--muted); }
.media-list a:hover .media-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.media-list a:hover .media-kind { color: var(--accent-ink); }
.stage { padding-top: 0; padding-bottom: 24px; }
.stage img { width: 100%; height: auto; aspect-ratio: 1600 / 779; object-fit: cover; filter: saturate(0.8); }
.bio { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.about-photo { width: 100%; height: auto; }
.reel { aspect-ratio: 16 / 9; max-width: 800px; }
.reel iframe { width: 100%; height: 100%; border: 0; }
.clients { display: flex; flex-wrap: wrap; gap: 12px 40px; font-family: var(--sans); font-weight: 600; color: var(--muted); }

.archive { padding-top: 72px; padding-bottom: 96px; }
.archive-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--rule-strong); margin-bottom: 28px; }
.archive-head h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.5px; }
.archive-status { margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.count { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.filters { display: grid; gap: 10px; margin: 8px 0 28px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tabs, .city-filter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0; }
.tabs-label { width: 88px; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.tab {
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  color: rgba(26, 24, 20, 0.62);
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.tab .count { margin-left: 2px; }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { color: var(--text); text-decoration-color: var(--accent); }
.tab[data-zero] { color: rgba(26, 24, 20, 0.3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* map */
.map-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 28px; }
.map-stats div { display: grid; gap: 6px; padding-left: 20px; border-left: 1px solid var(--rule); }
.map-stats div:first-child { padding-left: 0; border-left: 0; }
.map-stats dd { grid-row: 1; font-family: var(--serif); font-size: 48px; line-height: 1; letter-spacing: -1px; }
.map-stats dt { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.map { position: relative; margin: 0 0 8px; background: var(--ground); }
.map img, .map-nodes { display: block; width: 100%; height: auto; }
.map-nodes { position: absolute; inset: 0; overflow: visible; }
.node { cursor: pointer; outline: none; }
.node-dot { fill: var(--accent); fill-opacity: 0.8; stroke: var(--ground); stroke-width: 0.8; transition: r 0.3s ease; }
.node-halo { fill: var(--accent); fill-opacity: 0.12; transition: r 0.3s ease; }
.node:hover .node-dot, .node:focus-visible .node-dot, .node.is-active .node-dot { fill-opacity: 1; }
.node:focus-visible .node-halo, .node.is-active .node-halo { fill-opacity: 0; stroke: var(--text); stroke-width: 1.5; }
.node.is-empty { pointer-events: none; }
.map-tip {
  position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 14px));
  display: grid; gap: 2px; min-width: 160px; padding: 10px 12px;
  background: var(--text); color: var(--ground); font-size: 13.5px; line-height: 1.35; pointer-events: none; white-space: nowrap;
}
.map-tip strong { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.map-tip-aud { color: rgba(250, 250, 248, 0.7); }
.archive-list { max-width: 100%; }
/* organizations */
.archive-note { margin-left: auto; font-size: 15px; color: var(--muted); }
.clients-head { display: grid; gap: 14px; margin: 36px 0 18px; }
.clients-title { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.3px; }
.clients-head .filters { margin: 0; }
/* Column-major grid: alphabetical down each column, rows aligned across columns. */
.clients-grid {
  --cols: 4;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows, 16), auto); grid-auto-flow: column;
  column-gap: 32px; border-top: 1px solid var(--rule-strong); padding-top: 14px;
}
.clients-grid li { display: flex; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .clients-grid { --cols: 3; } }
@media (max-width: 760px) { .clients-grid { --cols: 2; column-gap: 20px; } .clients-grid li { font-size: 15px; } }
.client-n { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--muted); }


.sample-note { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.year-group + .year-group { margin-top: 28px; }
.year { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.6px; padding-bottom: 6px; }
.talk { display: grid; grid-template-columns: 72px minmax(0, 1fr) 170px; gap: 20px; padding: 12px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.talk time, .talk-aud { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.talk-aud { text-align: right; }
.talk-title { font-weight: 600; }
.talk-title a { color: var(--text); }
.talk-venue { color: var(--muted); font-size: 15px; }
.empty { color: var(--muted); padding: 24px 0; }
.show-all { margin-top: 20px; font: 600 15px var(--sans); color: var(--text); background: none; border: 1px solid var(--text); padding: 11px 18px; cursor: pointer; }
.show-all:hover { background: var(--text); color: var(--ground); }

/* investing */
.principles { counter-reset: p; border-top: 1px solid var(--rule-strong); }
.principles > li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); counter-increment: p; }
.principles > li { grid-template-columns: 76px 230px minmax(0, 1fr); align-items: baseline; }
.principles > li::before { content: counter(p); font-family: var(--serif); font-size: 52px; line-height: 0.9; letter-spacing: -1px; color: var(--accent); }
.principles h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -0.3px; }
.principles p { max-width: 60ch; }
.principles ul { display: grid; gap: 6px; font-family: var(--serif); font-size: 18.5px; }
.principles ul li { display: grid; grid-template-columns: 130px minmax(0, 1fr); padding: 0; border: 0; counter-increment: none; }
.principles ul strong { font-weight: 400; color: var(--accent-ink); }
.dedication { margin-top: -16px; margin-bottom: 40px; }
.dedication blockquote { margin: 0 0 0 calc(240px + 48px); max-width: 560px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--muted); }
.dedication figcaption { margin: 8px 0 0 calc(240px + 48px); font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.dedication figcaption::before { content: "— "; }
.five-ms ul { display: grid; gap: 4px; border-top: 1px solid var(--rule-strong); }
.five-ms li { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 21px; }
.five-ms strong { font-weight: 400; color: var(--accent-ink); }
.project-card { background: var(--panel); border: 1px solid var(--rule); padding: 32px 36px 30px; max-width: 760px; }
.project-card h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.5px; line-height: 1.1; margin: 12px 0 14px; }
.project-card-line { font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.project-card .meta-row { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(26, 24, 20, 0.12); }
.fund-note { padding: 24px 0 56px; }
.fund-note .fund { font-size: 16px; color: var(--muted); margin: 0; }
.pull-section { padding: 24px 0 64px; }
.pull { margin: 0 0 0 calc(240px + 48px); max-width: 760px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -0.5px; }
.pull p { margin: 0; }
.principles p { font-family: var(--serif); font-size: 18.5px; max-width: 600px; }
.memo-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; padding: 12px 0; border-top: 1px solid rgba(26, 24, 20, 0.12); align-items: baseline; }
.memo-list time { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.memo-list a { font-family: var(--serif); font-size: 21px; color: var(--text); text-decoration: none; }
.memo-list a:hover { color: var(--accent-ink); text-decoration: underline; }
.split-body > .year:first-child { padding-top: 0; }
.memo-list + .year { margin-top: 20px; }
.tag { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.guests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.guest { font-weight: 600; }
.firm { color: var(--muted); }
.fund { font-family: var(--serif); font-size: 19px; max-width: var(--measure); margin-top: 0.9em; }

.memo-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 72px; padding-bottom: 96px; }
.memo-strip { position: sticky; top: 100px; align-self: start; display: grid; gap: 10px; }
.memo-strip .eyebrow { color: var(--muted); margin-top: 18px; }
.memo-strip .eyebrow:first-child { margin-top: 0; }
.memo-date { font-family: var(--serif); font-size: 19px; }
.memo-actions a, .memo-others a { font-size: 15px; }
.memo-actions li, .memo-others li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.memo-others a[aria-current="page"] { color: var(--text); text-decoration: none; font-weight: 600; }
.memo .statement { font-size: 44px; max-width: 760px; }
.memo .reading { margin-top: 36px; }

/* projects */
.projects { border-top: 1px solid var(--rule-strong); }
.project { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) 280px; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.project h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; letter-spacing: -0.5px; line-height: 1.15; }
.project h3 a { color: var(--text); }
.project h3 a:hover { color: var(--accent-ink); }
.project-line { color: var(--muted); }
.project-meta { display: grid; gap: 6px; align-content: start; }
.project-meta .project-role { font-size: 16px; line-height: 1.55; color: var(--text); }
.project-meta .project-status { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 96px; padding-bottom: 72px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--ground);
  border: 1px solid #c9c3b7; border-radius: 0; padding: 11px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.routing { display: grid; gap: 10px; align-content: start; padding-top: 4px; }
.routing .eyebrow { color: var(--muted); }
.routing .eyebrow + p { margin-bottom: 16px; }
.routing p { max-width: 420px; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 15px; color: var(--muted); min-height: 1.4em; }

/* ---------------------------------------------------------- icon links (Haidt-style) */

.social { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 14.5px;
  color: var(--text); text-decoration: none;
}
.social a:hover { color: var(--accent-ink); }
.social a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.icon { width: 15px; height: 15px; flex: none; color: var(--accent-ink); }
.social-hero { margin-top: 22px; }
.social-footer a { color: var(--muted); font-size: 13.5px; }
.social-footer .icon { color: var(--muted); }

/* ---------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--rule); background: var(--ground); }
.footer-inner { padding-top: 28px; padding-bottom: 36px; display: grid; gap: 18px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-id, .footer-links a { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); }
.disclaimer { font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 820px; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .project { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .project-meta { grid-column: 2; }
  .hero .network { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .header-inner { flex-direction: column; align-items: flex-start; height: auto; padding-top: 14px; padding-bottom: 10px; gap: 8px; }
  .site-header { position: static; }
  .site-header nav ul { display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .site-header nav .nav-cta { margin-left: 0; }
  .site-header nav .nav-cta a { padding: 3px 10px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .portrait { max-width: 360px; }
  .door a { grid-template-columns: 36px minmax(0, 1fr) 24px; align-items: baseline; min-height: 0; }
  .door-preview { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .door-title { font-size: 23px; }
  .proof-inner { grid-template-columns: 1fr; gap: 40px; }
  .proof-list { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .bio { grid-template-columns: 1fr; gap: 24px; }
  .about-photo { max-width: 200px; }
  .split, .archive-inner, .memo-layout, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .memo-strip { position: static; }
  .keynotes, .course-grid, .guests { grid-template-columns: 1fr; }
  .keynote + .keynote, .course:nth-child(even) { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .course { padding-right: 0; }
  .link-list li { grid-template-columns: 1fr; gap: 6px; }
  .principles > li { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; }
  .principles > li::before { grid-row: span 2; font-size: 40px; }
  .pull, .dedication blockquote, .dedication figcaption { margin-left: 0; }
  .five-ms li { grid-template-columns: 120px minmax(0, 1fr); font-size: 18px; }
  .fund-note .split > div:first-child { display: none; }
  .project-card { padding: 24px 20px; }
  .project-card h3 { font-size: 26px; }
  .project { grid-template-columns: 1fr; gap: 8px; }
  .project-meta { grid-column: auto; }
  .page-head .network { display: none; }
  .page-head { padding-top: 48px; padding-bottom: 32px; }
  .statement:not(.statement-xl) { font-size: 32px; }
  .statement-xl { font-size: 40px; line-height: 1.08; }
  .map-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .map-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .map-stats dd { font-size: 38px; }
  .door-title { font-size: 26px; }
  .site-header nav a { font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; }
  .memo .statement { font-size: 34px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .lw-full { display: none; }
  .lw-compact { display: block; }
  .talk { grid-template-columns: 56px minmax(0, 1fr); }
  .talk-aud { grid-column: 2; text-align: left; }
  .memo-list li { grid-template-columns: 56px minmax(0, 1fr); }
  .memo-list .tag { grid-column: 2; }
  .tabs-label { width: 100%; }
  .media-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .media-outlet { grid-column: 1 / -1; }
  .proof-item { padding: 0 16px; }
  .proof-item dd { font-size: 36px; }
  .archive-status { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .door a:hover, .door a:focus-visible { transform: none; }
}


/* ---------------------------------------------------------- design proposals (switched on via site.json "design") */

/* p1: dark closing band */
.p1 .cta-band, .p1 .closing { position: relative; overflow: hidden; background: #143d32; color: rgba(250, 250, 248, 0.78); border: 0; }
.p1 .cta-band { margin-top: 32px; }
.p1 .cta-band .cta { padding-top: 64px; padding-bottom: 72px; }
.p1 .cta-band::before, .p1 .closing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/tex/lattice.svg") 0 0 / 960px 960px; filter: invert(1); opacity: 0.22;
}
.p1 .cta-band > *, .p1 .closing > * { position: relative; }
.p1 .closing h2, .p1 .closing .reading { color: rgb(250, 250, 248); }
.p1 .closing .booking-email { color: rgba(250, 250, 248, 0.6); }
.p1 .cta-band .button, .p1 .closing .button { background: rgb(250, 250, 248); color: #143d32; }
.p1 .cta-band .button:hover, .p1 .closing .button:hover { background: #ffffff; color: #0e2c24; }

/* p2: live / upcoming markers */
.p2 .project-status[data-state]:not([data-state=""])::before, .p2 .meta-row dd[data-state="live"]::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px;
}
.p2 .project-status[data-state="live"] { color: var(--accent-ink); }
.p2 .project-status[data-state="live"]::before, .p2 .meta-row dd[data-state="live"]::before { background: var(--accent); }
.p2 .project-status[data-state="soon"]::before { border: 1.5px solid var(--accent); box-sizing: border-box; }

/* p3: green underlines and selection */
.p3 a { text-decoration-color: rgba(31, 122, 99, 0.55); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.p3 a:hover { text-decoration-color: var(--accent); }
.p3 ::selection { background: rgba(31, 122, 99, 0.18); }

/* p4: numbers as the accent */
.p4 .door-num, .p4 .keynote-num { color: var(--accent-ink); }
.p4 .plus { color: var(--accent); }

/* p5: recognition as a stat */
.recog-stat { display: none; }
.p5 .recog-stat { display: grid; gap: 8px; margin-bottom: 18px; }
.p5 .recog-n { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -1.5px; }
.p5 .recog-label { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

/* p6: contact panel */
.routing-net { display: none; }
.p6 .routing { background: var(--panel); padding: 32px; border: 1px solid var(--rule); }
.p6 .routing-net { display: block; width: 160px; height: auto; margin-bottom: 12px; }
.routing-net path { fill: none; stroke: rgba(26, 24, 20, 0.18); stroke-width: 1; }
.routing-net circle { fill: var(--panel); stroke: rgba(26, 24, 20, 0.4); stroke-width: 1; }
.routing-net circle.out { fill: var(--accent); stroke: none; }

/* p7: faint green on row hover */
.p7 .media-list a, .p7 .project, .p7 .clients-grid li, .p7 .door a { transition: background-color 0.12s ease; }
.p7 .media-list a:hover, .p7 .project:hover, .p7 .clients-grid li:hover, .p7 .door a:hover { background: rgba(31, 122, 99, 0.05); }

/* p8: ochre for dates and upcoming items */
.p8 .project-status[data-state="soon"], .p8 .project-card .eyebrow { color: #8a5e1a; }
.p8 .project-status[data-state="soon"]::before { border-color: #8a5e1a; }

#archive, #organizations { scroll-margin-top: 72px; }
.topics ul + p { margin-top: 18px; color: var(--muted); }
.show-all-wrap { margin-top: 24px; }
.show-all { font: inherit; font-size: 15px; color: var(--text); background: none; border: 1px solid var(--rule-strong); padding: 10px 18px; cursor: pointer; }
.show-all:hover { background: var(--panel); }

/* ---------------------------------------------------------- approved design changes (Oct 9) */

/* 2: running text in the serif */
body { font-family: var(--serif); font-size: 18px; }
.credential { font-size: 19px; }
.lede { font-size: 19px; }

/* 3: bigger home headline and photo */
.hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.hero .statement-xl { font-size: clamp(44px, 5.6vw, 84px); }
.hero .network { right: 42%; }

/* 7: Speaking opens with the headline beside the stage photo */
.speak-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.speak-hero .page-head { padding: 0; }
.stage-split { margin: 0; }
.stage-split img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.85); }

/* 8: the two talks stacked, with large green numbers */
.keynotes { grid-template-columns: 1fr; }
.keynote { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 20px; padding: 26px 0 22px; }
.keynote + .keynote { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
.keynote > :not(.keynote-num) { grid-column: 2; }
.keynote-num { grid-row: 1 / span 2; font-family: var(--serif); font-size: 36px; line-height: 1; letter-spacing: 0; color: var(--accent-ink); }
.keynote h3 { font-size: 30px; margin: 0 0 8px; }
.keynote p { font-size: 18px; color: var(--text); }

/* 9: map edge to edge, counts beside the title, top cities underneath */
body { overflow-x: clip; }
.archive .map { width: 100vw; margin-left: calc(50% - 50vw); }
.archive-head { align-items: baseline; column-gap: 28px; }
.archive-head .map-stats { display: flex; gap: 24px; margin: 0; }
.archive-head .map-stats div { display: flex; align-items: baseline; gap: 8px; padding: 0; border: 0; }
.archive-head .map-stats dd { font-size: 30px; letter-spacing: -0.5px; }
.archive-head .archive-note { flex-basis: 100%; margin: 0; }
.map-top { margin-top: 14px; font-size: 16px; color: var(--muted); }

@media (max-width: 900px) {
  .speak-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .hero { grid-template-columns: 1fr; }
  .keynote { grid-template-columns: 48px minmax(0, 1fr); }
  .keynote-num { font-size: 28px; }
  .keynote h3 { font-size: 24px; }
}

/* Latticework motion: site.js arms each diagram, then plays it once when it scrolls into view.
   Fields appear in turn, their lines travel to the hidden layer, the network converges, and the insight pulses. */
.lw-edge-in, .lw-edge-hot, .lw-label, .lw-in { transition: stroke-opacity 0.2s ease, fill 0.2s ease; }
.lw-armed .lw-edge { opacity: 0; }
.lw-armed .lw-in, .lw-armed .lw-label, .lw-armed .lw-mid, .lw-armed .lw-output, .lw-armed .lw-out { opacity: 0; }
.lw-armed .lw-ring { opacity: 0; }
.lw-armed .lw-edge-in, .lw-armed .lw-edge-hot { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.lw-play .lw-edge { opacity: 1; transition: opacity 0.8s ease; }
.lw-play .lw-in, .lw-play .lw-label { opacity: 1; transition: opacity 0.35s ease calc(var(--i) * 90ms); }
.lw-play .lw-edge-in { stroke-dashoffset: 0; transition: stroke-dashoffset 0.7s cubic-bezier(0.3, 0.6, 0.3, 1) calc(0.25s + var(--i) * 90ms); }
.lw-play .lw-mid { opacity: 1; transition: opacity 0.3s ease 1.15s; }
.lw-play .lw-edge-hot { stroke-dashoffset: 0; transition: stroke-dashoffset 0.55s ease-out calc(1.3s + var(--j) * 70ms); }
.lw-play .lw-output, .lw-play .lw-out { opacity: 1; transition: opacity 0.35s ease 1.85s; }
.lw-play .lw-ring { transform-box: fill-box; transform-origin: center; animation: lw-pulse 1.1s ease-out 1.95s both; }
@keyframes lw-pulse {
  0% { opacity: 0; transform: scale(0.6); }
  35% { opacity: 0.9; transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}
/* Hovering a field traces its paths through the network. */
.lw-focus .lw-edge-in { stroke-opacity: 0.1; }
.lw-focus .lw-edge-in.on { stroke-opacity: 1; stroke-width: 1.6; }
.lw-focus .lw-label.on { fill: var(--accent-ink); }
.lw-label[data-i], .lw-in { cursor: default; }

/* ---------------------------------------------------------- phone fixes (Oct 9) */
.lw-hit { fill: transparent; pointer-events: all; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .js-nav .header-inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; padding-top: 12px; padding-bottom: 12px; }
  .js-nav .nav-toggle {
    display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--text); background: none; border: 1px solid var(--text); padding: 7px 12px; cursor: pointer;
  }
  .js-nav .site-header nav { display: none; width: 100%; }
  .js-nav.nav-open .site-header nav { display: block; }
  .js-nav .site-header nav ul { display: block; padding: 10px 0 4px; }
  .js-nav .site-header nav li a, .js-nav .site-header nav .nav-cta a {
    display: block; padding: 13px 0; border: 0; border-top: 1px solid var(--rule); background-image: none;
    font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase;
  }
  .js-nav .site-header nav .nav-cta { margin: 0; }
  .js-nav .site-header nav .nav-cta a:hover, .js-nav .site-header nav .nav-cta a[aria-current="page"] { background: none; color: var(--accent-ink); }
  .hero { gap: 28px; padding-top: 36px; }
  .portrait { max-width: none; }
  .portrait img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
}
@media (max-width: 600px) {
  .footer-links { flex-direction: column; gap: 12px; }
  .clients-grid li { white-space: normal; overflow: visible; line-height: 1.3; }
}
