/* samluetters.com v4: Private bank. Ink navy, off-white, brass hairlines.
   Libre Caslon Display (display), Libre Caslon Text (text), IBM Plex Mono (close log only).
   Contrast on --ink: paper 14.2:1, body 11:1, muted 8:1, brass-text 7.5:1, brass 5.3:1. */
:root {
  --ink: #0f1a2b;
  --ink-2: #14213a;
  --paper: #ece7dc;
  --body: #c9cdd4;
  --muted: #a9b0bc;
  --brass: #a88a52;
  --brass-text: #c2a771;
  --hair: rgba(168, 138, 82, .55);
  --line: rgba(236, 231, 220, .14);
  --dots: rgba(236, 231, 220, .28);
  --display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --text: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: 56px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0; background: var(--ink); color: var(--body);
  font-family: var(--text); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; color: var(--paper); font-weight: 400; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
q { quotes: "\201C" "\201D"; }
strong, b { font-weight: 700; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--ink); padding: 12px 16px; z-index: 100; font-size: 15px; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- primitives ---------- */
.label, .mono-meta, .role-dates, .ledger-head, .c-p, .nrow-n, .nrow-st,
.tl-doing b, .th-src, .th-doing-label, .crumb, .jump > span, .st, .role-foot .k,
.photo-blank span, .status dt, .fk, .principles-label {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 400;
}
.label { margin: 0; }
.mono-meta { margin: 0; }
.muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; color: var(--paper); letter-spacing: -.012em; line-height: 1.02; }
.h-xxl { font-size: clamp(56px, 7.2vw, 96px); line-height: .98; letter-spacing: -.015em; }
.h-xl { font-size: clamp(40px, 4.6vw, 64px); }
.rule { width: 64px; height: 1px; background: var(--brass); }

/* [SAM: ...] placeholders: discreet brass-outlined blocks, always visible */
mark.ph {
  background: transparent; color: var(--brass-text);
  border: 1px solid var(--hair); font-family: var(--text); font-size: .78em; letter-spacing: .02em;
  font-weight: 400; padding: .3em .6em; border-radius: 0; display: inline-block; max-width: 100%;
  line-height: 1.5; vertical-align: baseline;
}

/* dotted leader rows */
.leader { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.leader .k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); flex: 0 1 auto; }
.leader .dots { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted var(--dots); transform: translateY(-4px); }
.leader .v { font-size: 15px; color: var(--paper); text-align: right; flex: 0 1 auto; }
.leaders { display: grid; gap: 10px; }

/* links that act as buttons: hairline underline, never filled */
.btn-row, .links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 34px; }
.btn, .links a {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 0 3px;
  font-family: var(--text); font-size: 15px; color: var(--paper);
  border-bottom: 1px solid var(--hair); transition: border-color .2s, color .2s;
}
.btn:hover, .links a:hover { border-bottom-color: var(--paper); }
.btn--solid { border-bottom-color: var(--brass); }
.btn span[aria-hidden], .textlink span[aria-hidden] { color: var(--brass-text); }
.textlink { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; white-space: nowrap; transition: color .2s, border-color .2s; }
.textlink:hover { color: var(--paper); border-bottom-color: var(--brass); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--hair); }
.bar { display: flex; align-items: center; gap: 36px; height: 84px; }
.brand { font-family: var(--display); font-size: 22px; letter-spacing: .01em; color: var(--paper); white-space: nowrap; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 40px; }
.nav a { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--paper); border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--brass); }
.menu-btn { display: none; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 8vw, 120px); border-top: 1px solid var(--line); }
.section--flush { border-top: 0; padding-top: 0; }
.section--end { padding-bottom: clamp(96px, 11vw, 152px); }
.wrap:has(> .sec-head) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 48px; }
.wrap:has(> .sec-head) > * { grid-column: 2; }
.wrap:has(> .sec-head) > .sec-head { grid-column: 1; grid-row: 1 / span 30; align-self: start; display: grid; gap: 18px; justify-items: start; }
.wrap:has(> .sec-head) > .jump { grid-column: 1 / -1; }
.sec-head:not(:first-child) { grid-row: 2 / span 30 !important; }
.sec-title { font-family: var(--display); font-size: 32px; line-height: 1.1; letter-spacing: -.005em; color: var(--paper); }
.sec-head::before { content: ""; display: block; width: 40px; height: 1px; background: var(--brass); margin-bottom: 4px; }
.sec-intro { color: var(--body); max-width: 40em; margin: 0 0 40px; }
.sec-intro--big { font-size: clamp(22px, 2vw, 26px); line-height: 1.4; color: var(--paper); max-width: 30ch; margin-bottom: 48px; }

/* ---------- hero (matches the approved variant) ---------- */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 96px; align-items: start; }
.hero-name { font-family: var(--display); font-weight: 400; font-size: 104px; line-height: .98; letter-spacing: -.015em; margin: 22px 0 34px; color: var(--paper); }
.hero .rule { margin-bottom: 30px; }
.positioning { font-size: 26px; line-height: 1.4; max-width: 30ch; margin-bottom: 26px; color: var(--paper); }
.lede { color: var(--body); max-width: 58ch; }
.side { display: flex; flex-direction: column; gap: 36px; padding-top: 8px; }

/* close log: quiet, mono, between two thin rules */
.bootlog { margin-top: 52px; max-width: 520px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0 16px; }
.bootlog-head { display: flex; justify-content: space-between; align-items: center; min-height: 22px; margin: 0 0 10px; }
.skip-boot { font: inherit; font-family: var(--text); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 1px; cursor: pointer; }
.skip-boot:hover { color: var(--paper); border-bottom-color: var(--brass); }
.bootlog .leaders, .bootlog-static { gap: 0; }
.bootlog .leader .k, .bootlog .leader .v, .bootlog-static .leader .k, .bootlog-static .leader .v {
  font-family: var(--mono); font-size: 13.5px; line-height: 2; letter-spacing: 0; text-transform: none; color: var(--body);
}
.bootlog .leader .v, .bootlog-static .leader .v { color: var(--muted); }
.bootlog .leader .v.v--sam, .bootlog-static .leader .v.v--sam, .v--sam { color: var(--paper); }
.booting .bootlog li { opacity: 0; }
.booting .bootlog li .dots { transform: translateY(-4px) scaleX(0); transform-origin: left; }
.booting .bootlog li .v { opacity: 0; }
.bootlog li.on { opacity: 1; transition: opacity .2s; }
.bootlog li.on .dots { transform: translateY(-4px) scaleX(1); transition: transform .3s ease-out; }
.bootlog li.done .v { opacity: 1; transition: opacity .2s; }

/* status panel */
.status dl { margin: 0; border-top: 1px solid var(--hair); }
.status dl > div { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; border-bottom: 1px solid var(--line); }
.status dt { font-size: 11.5px; padding: 14px 0 11px; }
.status dd { margin: 0; padding: 11px 0; font-size: 15px; color: var(--paper); }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); margin-right: 9px; transform: translateY(-2px); }

/* photo slots: a tall quiet panel until the real photo lands */
.photo-slot { margin: 0; }
.photo-slot img, .photo-blank { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.photo-slot img { display: block; height: auto; filter: grayscale(1) contrast(1.02); }
.photo-blank { position: relative; background: var(--ink-2); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 16px; }
.photo-blank::after { content: ""; position: absolute; left: 16px; right: 16px; top: 16px; height: 1px; background: var(--hair); }

/* ---------- thesis list (home) ---------- */
.thesis-list { border-top: 1px solid var(--hair); }
.tl { border-bottom: 1px solid var(--line); }
.tl a { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 6px 40px; align-items: baseline; padding: 24px 0 25px; color: var(--paper); }
.tl h3 { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; transition: color .2s; }
.tl a:hover h3 { color: var(--brass-text); }
.tl-doing { font-size: 15px; color: var(--body); line-height: 1.5; text-align: left; }
.tl-doing b { display: block; font-size: 11px; margin-bottom: 2px; }
.tl--cta { border-bottom: 0; }
.tl--cta a { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
.tl--cta h3 { font-family: var(--text); font-size: 15px; color: var(--paper); display: inline; border-bottom: 1px solid var(--hair); padding-bottom: 3px; justify-self: start; }
.tl--cta h3 span { color: var(--brass-text); }
.tl--cta .tl-doing { color: var(--muted); margin-top: 8px; }

/* ---------- thesis page ---------- */
.contents { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 48px; padding: 28px 0 32px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.contents .label { padding-top: 4px; }
.contents ol { columns: 2; column-gap: 48px; }
.contents li { break-inside: avoid; padding: 5px 0; }
.contents a { font-size: 15.5px; color: var(--body); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.contents a:hover { color: var(--paper); border-bottom-color: var(--brass); }
.th { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px 72px; padding: clamp(48px, 5.5vw, 72px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 104px; align-items: start; }
.th h2 { font-family: var(--display); font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 22px; max-width: 18em; }
.th-body p { color: var(--body); font-size: 17.5px; line-height: 1.7; max-width: 36em; }
.th-body q { color: var(--paper); }
.th-body .th-src { display: block; margin: -6px 0 24px; font-size: 11.5px; line-height: 1.4; }
.th-doing { border-top: 1px solid var(--hair); padding: 18px 0 0; margin-top: 12px; }
.th-doing-label { display: block; font-size: 11.5px; line-height: 1.6; margin-bottom: 12px; }
.th-doing p { font-size: 16px; line-height: 1.6; color: var(--body); margin: 0 0 16px; }

/* ---------- home: track record ---------- */
.ledger-head, .lrow { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) 150px; gap: 32px; align-items: baseline; }
.ledger-head { padding: 0 0 12px; border-bottom: 1px solid var(--hair); font-size: 11.5px; }
.ledger-head span:last-child, .c-p { text-align: right; }
.lrow { padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--paper); }
.lrow:hover .ent { color: var(--brass-text); }
.c-e { display: grid; gap: 6px; }
.ent { font-family: var(--display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; transition: color .2s; }
.line { color: var(--body); font-size: 16px; line-height: 1.5; }
.c-r { font-size: 15px; color: var(--body); line-height: 1.45; }
.c-p { white-space: nowrap; font-size: 11.5px; }

/* ---------- systems ---------- */
.systems { border-top: 1px solid var(--hair); }
.sys { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 10px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.sys-main h3 { font-family: var(--display); font-size: clamp(22px, 2vw, 27px); line-height: 1.2; }
.sys-where { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.sys-what { color: var(--body); font-size: 16.5px; margin: 12px 0 0; max-width: 42em; }
.stack { display: block; padding-top: 6px; font-size: 14px; line-height: 1.8; color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; }
.stack li { display: block; }

/* pull quote */
.pullquote { margin: 0; max-width: 960px; border-top: 1px solid var(--hair); padding-top: 28px; }
.pullquote blockquote { margin: 0; }
.pullquote p { font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 22px; color: var(--paper); }
.pullquote figcaption { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bio .pullquote { margin: 56px 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.bio .pullquote p { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--paper); }

/* teaser */
.teaser { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 32px; border-top: 1px solid var(--hair); padding-top: 28px; }
.teaser .mono-meta { padding-top: 12px; }
.teaser-title { font-family: var(--display); font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 24px; max-width: 18em; }
.teaser-title a:hover { color: var(--brass-text); }
.teaser p { color: var(--body); max-width: 40em; }

/* komod */
.komod { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 24px 72px; }
.komod .h-xl { font-size: clamp(48px, 5.4vw, 76px); line-height: 1; }
.traction { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; margin-top: 26px; color: var(--paper); max-width: 18em; }
.komod .body > p { color: var(--body); }
.flow { margin: 32px 0 32px; border-top: 1px solid var(--hair); }
.flow li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.fk { font-size: 11.5px; }
.fv { font-size: 15.5px; color: var(--paper); }
.facts { margin-top: 8px; gap: 0; border-top: 1px solid var(--hair); }
.facts .leader { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts .leader .dots { display: none; }
.facts .leader .k { font-size: 11.5px; }
.facts .leader .v { text-align: left; font-size: 15.5px; }

/* ---------- page heads ---------- */
.page-head { padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 6vw, 88px); }
.page-head .rule, .article-head .rule { margin-top: 34px; }
.crumb { margin-bottom: 30px; display: flex; gap: 12px; }
.crumb a { color: var(--muted); border-bottom: 1px solid var(--line); }
.crumb a:hover { color: var(--paper); border-bottom-color: var(--brass); }
.intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 48px; margin-top: 30px; }
.intro .mono-meta { padding-top: 8px; }
.intro > p:last-child, .intro > div > p:first-child { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.45; color: var(--paper); max-width: 34em; }

/* ---------- work ---------- */
.jump { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding: 16px 0; border-block: 1px solid var(--line); margin-bottom: 64px; }
.jump span { color: var(--muted); }
.jump a { font-size: 15px; color: var(--body); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.jump a:hover { color: var(--paper); border-bottom-color: var(--brass); }
.role { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 104px; }
.role:first-of-type { padding-top: 0; }
.role-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: baseline; margin-bottom: 30px; }
.role-id h2 { font-family: var(--display); font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.01em; }
.role-title { font-size: 17px; color: var(--paper); margin: 14px 0 2px; }
.role-sub { color: var(--muted); margin: 0; font-size: 15.5px; }
.role-dates { white-space: nowrap; margin: 0; font-size: 11.5px; }
.role-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; border-top: 1px solid var(--hair); padding-top: 22px; }
.col .label { margin-bottom: 14px; font-size: 11.5px; }
.col ul { display: grid; gap: 10px; }
.col li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.6; color: var(--body); }
.col li::before { content: ""; position: absolute; left: 0; top: .82em; width: 10px; height: 1px; background: var(--brass); }
.col--result p { font-size: 18px; line-height: 1.55; margin: 0; color: var(--paper); }
.role-foot { margin: 24px 0 0; }
.role-foot .k { font-size: 11px; }
.st { font-size: 11px; white-space: nowrap; }
.st--ok { color: var(--muted); }
.st--ok span { color: var(--brass-text); }
.st--open { color: var(--brass-text); }

.earlier { border-top: 1px solid var(--hair); }
.erow { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); }
.erow-top .k { color: var(--paper); text-transform: none; letter-spacing: 0; }
.erow-top .ent { font-size: clamp(22px, 2vw, 28px); }
.erow-top .v { white-space: nowrap; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.erow-title { font-size: 16px; color: var(--paper); margin: 8px 0 0; }
.erow-body { color: var(--body); max-width: 46em; margin: 10px 0 0; font-size: 16.5px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px 96px; align-items: start; }
.about-side { position: sticky; top: 116px; display: grid; gap: 32px; }
.facts--compact .leader { grid-template-columns: 96px minmax(0, 1fr); }
.prose { max-width: 680px; }
.prose p { font-size: 18px; line-height: 1.72; color: var(--body); }
.prose .bio-lead { font-size: clamp(22px, 2.1vw, 27px); line-height: 1.42; color: var(--paper); margin-bottom: 1.2em; }
.how-h { margin: 64px 0 18px; }
.principles { border-top: 1px solid var(--hair); }
.principles li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.55; color: var(--paper); }

/* ---------- writing ---------- */
.notes { border-top: 1px solid var(--hair); }
.nrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); color: var(--paper); align-items: baseline; }
a.nrow:hover h2 { color: var(--brass-text); }
.nrow h2, .nrow h3 { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 12px; transition: color .2s; }
.nrow p { color: var(--body); margin: 0; max-width: 40em; font-size: 16.5px; }
.nrow-st { text-align: right; font-size: 11.5px; }
.nrow-st--go { color: var(--paper); }
.nrow-st--go span { color: var(--brass-text); }
.nrow--planned h3 { color: var(--body); }
.nrow .nrow-ph { margin-top: 12px; }

/* ---------- essay ---------- */
.article-head { padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--hair); margin-bottom: clamp(48px, 5vw, 80px); }
.article-head h1 { max-width: 15em; }
.dek { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.45; color: var(--paper); max-width: 32em; margin: 30px 0 34px; }
.byline { max-width: 460px; }
.essay { margin: 0 0 0 calc((100% + 48px) * 3 / 12); padding-bottom: clamp(96px, 11vw, 152px); }
.essay p { font-size: 18px; }
.essay h2 { font-family: var(--display); font-size: clamp(27px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.005em; margin: 2.2em 0 .7em; }
.essay strong { color: var(--paper); }
.essay a { color: var(--paper); border-bottom: 1px solid var(--hair); }
.essay a:hover { border-bottom-color: var(--paper); }
.essay .closing { font-family: var(--display); font-size: clamp(24px, 2.4vw, 31px); line-height: 1.3; color: var(--paper); border-top: 1px solid var(--hair); padding-top: 24px; margin: 2.2em 0; }
.essay-end { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 48px; }
.essay .essay-end a { border-bottom: 1px solid var(--line); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px 96px; align-items: start; }
.contact .positioning { max-width: 28ch; margin-bottom: 44px; }
.contact-rows { max-width: 620px; gap: 0; border-top: 1px solid var(--hair); }
.contact-rows .leader { padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-rows .dots { visibility: hidden; }
.contact-rows .v { font-size: 16px; }
.contact-rows .v a { color: var(--paper); border-bottom: 1px solid var(--hair); }
.contact-rows .v a:hover { border-bottom-color: var(--paper); }
.bootlog-static { max-width: 420px; margin-bottom: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding: clamp(64px, 7vw, 96px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px 48px; }
.footer-name { font-family: var(--display); font-size: clamp(36px, 3.6vw, 48px); line-height: 1; margin-bottom: 18px; color: var(--paper); }
.footer-pos { color: var(--muted); max-width: 26em; font-size: 15.5px; }
.site-footer .label { margin-bottom: 16px; font-size: 11.5px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer li a { font-size: 15.5px; color: var(--body); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-footer li a:hover { color: var(--paper); border-bottom-color: var(--brass); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
  .hero-name { font-size: 84px; }
  .nav ul { gap: 28px; }
  .about { grid-template-columns: 300px minmax(0, 1fr); gap: 24px 64px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .side { flex-direction: row; align-items: flex-start; }
  .side .photo-slot { width: 240px; flex: none; }
  .side .status { flex: 1; }
  .th { grid-template-columns: minmax(0, 1fr); }
  .th-doing { max-width: 40em; }
}
@media (max-width: 900px) {
  .wrap:has(> .sec-head) { display: block; }
  .essay { margin-left: 0; }
  .sec-head { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 16px; margin-bottom: 32px; }
  .sec-head::before { flex-basis: 100%; }
  .tl a { grid-template-columns: minmax(0, 1fr); }
  .ledger-head { display: none; }
  .lrow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .c-p { text-align: left; }
  .sys { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stack { border-left: 0; padding-left: 0; }
  .stack li { display: inline; }
  .stack li:not(:last-child)::after { content: ",\00a0 "; }
  .komod, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .about-side { position: static; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: start; gap: 32px; }
  .contact .photo-slot { max-width: 300px; }
  .role-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .role-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .teaser, .intro, .contents { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .teaser .mono-meta, .intro .mono-meta { padding-top: 0; }
  .nrow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .nrow-st { text-align: left; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .bar { gap: 16px; }
  .menu-btn {
    display: inline-block; margin-left: auto; padding: 12px 0 4px;
    font-family: var(--text); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
    background: none; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; cursor: pointer;
  }
  .nav { position: fixed; inset: 64px 0 0 0; background: var(--ink); display: none; padding: 16px var(--pad) 32px; margin: 0; overflow-y: auto; border-top: 1px solid var(--hair); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { font-family: var(--display); font-size: 34px; letter-spacing: 0; text-transform: none; color: var(--paper); padding: 14px 0; border: 0; display: block; }
  .nav a[aria-current="page"] { color: var(--brass-text); }
  .bar { height: 64px; }
  .brand { font-size: 19px; }
  .about-side, .site-header { top: 0; }
}
@media (max-width: 640px) {
  :root { --pad: 22px; }
  body { font-size: 16px; }
  .hero { padding: 44px 0 64px; }
  .hero-grid { gap: 44px; }
  .hero-name { font-size: 60px; margin: 16px 0 24px; }
  .positioning { font-size: 21px; }
  .links { gap: 14px 24px; }
  .bootlog { margin-top: 40px; }
  .bootlog .leader .k, .bootlog .leader .v { font-size: 12.5px; }
  .side { flex-direction: column; align-items: stretch; }
  .side .photo-slot { width: 100%; }
  .side .photo-blank { aspect-ratio: 1 / 1; }
  .status dl > div { grid-template-columns: 84px 1fr; }
  .about-side { grid-template-columns: minmax(0, 1fr); }
  .contents ol { columns: 1; }
  .sec-intro--big { font-size: 21px; }
  .th-body p { font-size: 16.5px; }
  .flow li { grid-template-columns: 100px minmax(0, 1fr); }
  .contact-rows .leader, .erow-top { flex-wrap: wrap; row-gap: 4px; }
  .erow-top .dots { display: none; }
  .contact-rows .leader .k { width: 100%; }
  .contact-rows .leader .dots { display: none; }
  .contact-rows .leader .v { text-align: left; }
  .erow-top .k { width: 100%; }
  .erow-top .v { text-align: left; }
  .essay p, .prose p { font-size: 17px; }
  .essay-end { flex-direction: column; }
  .footer-base { flex-direction: column; }
  .role-foot .k { display: none; }
  .nrow h2, .nrow h3 { font-size: 27px; }
  .pullquote p { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
