:root {
  --ink: #1a140f;
  --cream: #f4ecdf;
  --oxblood: #7a2430;
  --gold: #c6a15b;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--ink); font-family: var(--sans); background: var(--cream);
}
.spread, .person, .ledger, .plates, .bench, .seals, .letter, .frames, .record, .stage { flex: 1; }

.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; height: auto; flex-wrap: wrap; padding: 10px 18px;
  background: #14110d; color: var(--cream);
  border-bottom: 3px solid var(--gold);
}
.brand { color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; }
.mark {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #a34454, #7a2430 58%, #3d1016);
  color: #f6efe4; font-family: var(--serif); font-size: 1.05rem; letter-spacing: -0.07em;
  box-shadow: 0 0 0 1.5px #c6a15b, 0 8px 18px rgba(0,0,0,.35);
}
.brand:hover .mark { background: var(--gold); color: #1a140f; }
.clock { margin-left: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--gold); }
.menu {
  display: none; margin-left: 8px; border: 1px solid var(--gold); background: transparent; color: var(--cream);
  border-radius: 999px; padding: 6px 12px; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--mono); font-size: 11px;
}
.top nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.top nav a, .foot a {
  color: var(--cream); text-decoration: none; border-radius: 999px;
  padding: 7px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.top svg, .icon-row svg { width: 15px; height: 15px; display: block; }
.icon-row { display: flex; gap: 6px; margin-left: 12px; }
.icon-row a {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 0; color: #1a140f; padding: 0;
  box-shadow: 0 0 0 1px rgba(246,239,228,.2);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.icon-row a[aria-label="GitHub"] { background: #f4ead7; color: #1a140f; }
.icon-row a[aria-label="LinkedIn"] { background: #0a66c2; color: #fff; }
.icon-row a[aria-label="Instagram"] { background: linear-gradient(140deg, #f7ce68, #ee4d5f 48%, #7b4b9a); color: #fff; }
.icon-row a[aria-label="WhatsApp"] { background: #25d366; color: #062e16; }
.icon-row a[aria-label="Call"] { background: #ff8a4c; color: #1a140f; }
.icon-row a[aria-label="Download CV"] { background: #7a2430; color: #f6efe4; }
.icon-row a:hover { transform: translateY(-2px); background: #fffaf3; color: #1a140f; }
.top nav a svg {
  width: 22px; height: 22px; padding: 3px; box-sizing: border-box; border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.top nav a[href="/about/"] svg { color: #fff5f0; background: #c4524a; }
.top nav a[href="/work/"] svg { color: #1a140f; background: #e7c27a; }
.top nav a[href="/projects/"] svg { color: #10261c; background: #7dcea0; }
.top nav a[href="/write/"] svg { color: #102033; background: #8eb7e8; }
.top nav a:hover svg, .top nav a.on svg { color: #1a140f; background: #fffaf3; }
.copy-mail {
  border: 0; background: var(--oxblood); color: #f6efe4; border-radius: 999px;
  padding: 8px 14px; margin-left: 8px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips a { text-decoration: none; border: 1px solid rgba(26,20,15,.25); border-radius: 999px; padding: 8px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: #241910; background: #fffaf3; }
#seals { margin-top: 28px; background: #fbf7f0; color: #241910; padding: 22px 22px 26px; }
.seal-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.seal-row a { background: #f7f1e6; color: var(--ink); text-decoration: none; border-radius: 999px; padding: 8px 12px; font-family: var(--mono); font-size: 12px; }
.cap em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #e7c27a; }
.cap em.live { color: #b7f0c8; }
.top nav a:hover, .top nav a.on, .foot a:hover, .foot a.on { background: var(--gold); color: #1a140f; }
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
  padding: 18px 22px; background: #14110e; color: var(--cream); border-top: 3px solid var(--gold);
}
.foot p { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.ribbon {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 14px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ribbon a { text-decoration: none; }
.ribbon nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.ribbon a.on { color: var(--oxblood); }

.stage {
  min-height: 100vh; position: relative; display: grid; place-items: center;
  overflow: hidden; color: var(--cream); background: #120e0b;
}
.stage-bg, .wash {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.wash {
  background: linear-gradient(180deg, rgba(12,8,6,.25), rgba(12,8,6,.55));
}
.opener {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.volume {
  position: relative; width: min(340px, 86vw); height: min(480px, 62vh);
  border: 0; padding: 0; background: transparent; perspective: 1600px;
}
.leaf {
  height: 100%; padding: 32px 24px 28px 42px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  color: var(--ink); text-align: left;
}
.leaf small { font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--oxblood); font-size: 11px; }
.leaf b { font-family: var(--serif); font-weight: 560; font-size: 1.7rem; }
.volume-pages, .volume-cover {
  position: absolute; inset: 0; border-radius: 2px 10px 10px 2px;
}
.volume-pages {
  background:
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(90,60,30,.08) 3px 4px),
    linear-gradient(90deg, #d9cbb6, #f7f1e6 12%, #fffaf2);
  transform: translate(10px, 6px);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.volume-cover {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,220,160,.18), transparent 40%),
    linear-gradient(160deg, #8a3140, #5c1822 60%, #3d1016);
  color: #f6efe4; transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem 1.3rem; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(244,234,215,.28), 8px 0 0 #4a121b;
}
.volume-cover small, .volume-cover em {
  font-family: var(--mono); letter-spacing: 0.18em; text-transform: uppercase; font-style: normal; font-size: 11px;
}
.volume-cover strong {
  font-family: var(--serif); font-weight: 560; font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 0.9; letter-spacing: -0.03em;
}
.volume.is-open .volume-cover { transform: rotateY(-158deg); }
.volume-pages { overflow: hidden; }
.film { position: absolute; inset: 0; display: flex; flex-direction: column; background: #100d0b; }
.perfs, .filmbar { flex: none; }
.perfs {
  height: 16px;
  background:
    radial-gradient(circle at 10px 8px, #1a140f 3.2px, transparent 3.6px) 0 0 / 22px 16px repeat-x,
    #c6a15b;
}
.filmbar { height: 3px; background: #2a2118; }
.filmbar i { display: block; height: 100%; width: 16%; background: #f4ead7; transition: width .6s ease; }
.screen { position: relative; flex: 1; overflow: hidden; }
.shot {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; transition: opacity .7s ease;
}
.shot.is-on { opacity: 1; }
.shot img { width: 100%; height: 58%; object-fit: cover; transform: scale(1.08); }
.shot.is-on img { animation: film-drift 3.4s ease-out both; }
@keyframes film-drift { from { transform: scale(1.14); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .shot.is-on img { animation: none; }
}
.shot .line { padding: 10px 14px 8px; color: #f6efe4; }
.shot small { font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; font-size: 10px; color: #c6a15b; }
.shot strong { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1.05; margin-top: 2px; }
.shot em { display: block; margin-top: 4px; font-style: normal; font-size: .82rem; line-height: 1.35; color: #e7d7c4; }
.play {
  position: relative; z-index: 2; margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: #c6a15b; color: #1a140f; border-radius: 999px;
  padding: 10px 16px; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px;
}
.play-mark {
  width: 0; height: 0;
  border-left: 10px solid #1a140f;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.play.is-on .play-mark {
  width: 10px; height: 12px; border: 0;
  background:
    linear-gradient(#1a140f, #1a140f) left/3px 100% no-repeat,
    linear-gradient(#1a140f, #1a140f) right/3px 100% no-repeat;
}
.hint {
  position: relative; z-index: 1; margin-top: 28px; font-family: var(--mono);
  letter-spacing: 0.2em; font-size: 12px;
}
.skip-read {
  position: relative; z-index: 1; margin-top: 10px; color: #f6efe4; font-size: 14px;
}
.reach {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 22px;
}
.sticker {
  display: flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 8px 14px 8px 8px;
  border-radius: 999px; text-decoration: none; color: #1a140f;
  background: #fffaf3; box-shadow: 0 14px 30px rgba(0,0,0,.38);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.sticker b { font-weight: 500; }
.sticker .emoji {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; font-size: 1.35rem; line-height: 1;
  animation: live-bob 2.2s ease-in-out infinite;
}
.sticker.in { border: 2px solid #0a66c2; }
.sticker.in .emoji { background: #d6e8ff; animation-delay: 0s; }
.sticker.wa { border: 2px solid #1faa59; }
.sticker.wa .emoji { background: #d8ffe8; animation-delay: .25s; }
.sticker.call { border: 2px solid #e07a2f; }
.sticker.call .emoji { background: #ffe4cc; animation-delay: .5s; }
.sticker.in b { color: #0a66c2; }
.sticker.wa b { color: #128c7e; }
.sticker.call b { color: #c2410c; }
.sticker:hover { transform: translateY(-3px); }
@keyframes live-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.chapters {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px;
  margin-top: 22px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.chapters a { color: #f6efe4; text-decoration: none; border-bottom: 1px solid rgba(246,239,228,.45); }

.spread {
  min-height: 100vh;
  background: #e7dcc8 url("/images/open-book.jpg") center/cover;
  color: var(--ink);
}
.spread .ribbon { background: rgba(244,236,223,.82); }
.gutter {
  width: min(980px, calc(100% - 32px));
  margin: 24px auto 64px;
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255,250,242,.9);
  box-shadow: 0 24px 60px rgba(60,30,10,.18);
  min-height: 70vh;
}
.page { padding: 48px 40px; }
.page + .page { border-left: 1px solid rgba(80,40,20,.15); box-shadow: inset 12px 0 20px rgba(80,40,20,.05); }
.kicker { font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; color: var(--oxblood); }
h1, h2 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; margin: 0; }
.spread h1 { font-size: clamp(3rem, 6vw, 4.6rem); line-height: 0.92; }
.toc { list-style: none; padding: 0; margin: 18px 0 0; }
.toc a {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px;
  text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(26,20,15,.12);
  font-size: 1.25rem;
}
.toc em { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--oxblood); }
.toc span:last-child { font-family: var(--mono); font-size: 12px; }

.person {
  min-height: 100vh;
  background: #0c1218 url("/images/nairobi-pexels.jpg") center 62%/cover no-repeat fixed;
}
.person .ribbon { background: rgba(12, 14, 18, 0.78); color: #f6efe4; backdrop-filter: blur(8px); }
.person .ribbon a.on { color: #e7c27a; }
.nrb {
  width: min(1080px, calc(100% - 32px));
  margin: 24px auto 40px;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  gap: 16px;
}
.nrb .copy {
  width: auto;
  margin: 0;
  color: #241910;
  background: #fbf7f0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.now {
  display: flex; align-items: center; gap: 8px; margin: 14px 0 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #7a2430;
}
.pulse {
  width: 8px; height: 8px; flex: none; border-radius: 50%; background: #1faa59;
  box-shadow: 0 0 0 0 rgba(31, 170, 89, 0.65);
  animation: ping 1.6s infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 8px rgba(31, 170, 89, 0); }
}
.bio-line { margin: 16px 0 0; font-family: var(--serif); font-size: 1.25rem; color: #7a2430; }
.live-note { margin: 10px 0 0; color: #5c4a3a; font-size: 0.95rem; line-height: 1.5; }
.seal-label { margin-top: 18px; }
.links { flex-wrap: wrap; }
@media (min-width: 900px) {
  .nrb { grid-template-columns: 1.15fr 0.85fr; }
  .nrb .story { grid-column: 1; grid-row: 1 / span 2; }
}
.nrb h2 { font-size: 2.4rem; margin-top: 6px; }
.gh-list { list-style: none; padding: 0; margin: 14px 0 0; }
.gh-list li { border-bottom: 1px solid rgba(26,20,15,.12); padding-bottom: 8px; }
.gh-list a {
  display: flex; justify-content: space-between; gap: 12px;
  text-decoration: none; padding: 10px 0 2px;
}
.gh-list .domain {
  display: inline-block; margin: 0 0 4px; color: #7a2430;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
}
.gh-list span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--oxblood); }

.record {
  min-height: 100vh; color: #f6efe4;
  background:
    radial-gradient(circle at 80% 20%, rgba(198,161,91,.18), transparent 28%),
    #100d0c url("/images/desk-night.jpg") center/cover fixed;
}
.record .ribbon { background: rgba(10,8,7,.78); color: #f6efe4; }
.record .ribbon a.on { color: #e7c27a; }
.sleeve {
  width: min(920px, calc(100% - 28px));
  margin: 28px auto 70px;
}
.sleeve h1 { font-size: clamp(3rem, 7vw, 5.2rem); }
.sleeve h1 em { font-style: italic; color: #e7c27a; }
.player {
  margin-top: 18px; background: #181410; border-radius: 12px; overflow: hidden;
}
.player iframe { width: 100%; height: 352px; border: 0; display: block; }
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.shelf iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; }
.lately { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lately span {
  border: 1px solid rgba(246,239,228,.35); border-radius: 999px;
  padding: 6px 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
}

.frames { min-height: 100vh; background: #120e12; color: #f6efe4; }
.frames .ribbon { background: #120e12; }
.frames .ribbon a.on { color: #e7c27a; }
.reel {
  width: min(880px, calc(100% - 28px));
  margin: 36px auto 70px;
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
}
.highlight {
  width: 196px; height: 196px; border-radius: 50%; padding: 5px;
  background: conic-gradient(from 200deg, #f7ce68, #e97b3c, #c13b73, #7b4b9a, #f7ce68);
}
.highlight img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #120e12; }
.reel h1 { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 8px; }
.reel h1 em { font-style: italic; color: #e7b2a4; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: calc(100vh - 52px); }
.split img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.copy { padding: 36px 32px; color: #241910; }
.copy h1 { font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: 0.9; color: #1a140f; }
.copy h1 em { font-style: italic; color: var(--oxblood); }
.copy h2, .nrb h2 { color: #1a140f; }
.lede, .page p, .slip p, .sheet p, .nrb .copy p {
  color: #2a2118;
  font-size: 1.08rem;
  line-height: 1.7;
}
.lede { max-width: 40rem; margin: 16px 0 0; }
.lede a { color: #7a2430; text-underline-offset: 3px; }
.lede + .lede { margin-top: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.facts strong, .fact strong { display: block; font-family: var(--serif); font-size: 2rem; }
.fact { color: inherit; text-decoration: none; }
.fact:hover strong, .slip:hover h2, .card:hover h2 { color: var(--oxblood); }
.nrb h2 a, .gh-list a { color: inherit; text-decoration: none; }

.ledger {
  min-height: 100vh; color: #f6efe4;
  background: #0e1210 url("/images/library-desks.jpg") center/cover fixed;
}
.ledger .ribbon { background: rgba(8,10,9,.72); color: #f6efe4; backdrop-filter: blur(8px); }
.ledger .ribbon a.on { color: #e7c27a; }
.file {
  width: min(880px, calc(100% - 32px));
  margin: 40px auto 80px;
}
.file h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.slip {
  display: block; color: inherit; text-decoration: none;
  background: #f7f1e6; color: var(--ink);
  padding: 28px 28px 24px; margin-top: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.slip:nth-child(odd) { transform: rotate(-0.6deg); }
.slip:nth-child(even) { transform: rotate(0.7deg); }
.slip h2 { font-size: 2.2rem; }
.slip .when { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oxblood); }
.slip p { margin: 10px 0 0; }

.plates { min-height: 100vh; background: #14110e; color: #f6efe4; }
.plates .ribbon { background: #14110e; }
.plates h1 { width: min(1100px, calc(100% - 32px)); margin: 28px auto 8px; font-size: clamp(3rem, 6vw, 5rem); }
.plates h1 em { font-style: italic; color: #e7b2a4; }
.rail-note { width: min(1100px, calc(100% - 32px)); margin: 0 auto 18px; color: #d9cbb8; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 640px);
  gap: 18px; overflow-x: auto; padding: 10px 4vw 48px; scroll-snap-type: x mandatory;
}
.plate { display: block; scroll-snap-align: start; color: inherit; }
.plate-shot { display: block; text-decoration: none; color: inherit; }
.plate .cap { display: block; padding: 12px 2px 0; }
.plate img { height: 360px; width: 100%; object-fit: cover; }
.plate .domain {
  display: inline-block; margin-top: 8px; color: #b7f0c8;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; text-decoration: none;
  border-bottom: 1px solid rgba(183,240,200,.55);
}
.peek {
  position: fixed; z-index: 50; width: min(460px, calc(100vw - 16px)); pointer-events: none;
  background: #fffaf3; color: #1a140f; border: 2px solid #c6a15b; border-radius: 14px;
  box-shadow: 0 22px 50px rgba(0,0,0,.45); overflow: hidden;
}
.peek p {
  margin: 0; padding: 8px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #7a2430;
}
.peek-frame { height: 280px; position: relative; background: #fff; }
.peek-frame::before {
  content: "Loading the home page";
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #fffaf3; color: #7a2430; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.peek-frame.ready::before { content: none; }
.peek iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.plate figcaption { padding: 12px 2px 0; }
.plate strong { font-family: var(--serif); font-size: 1.8rem; display: block; }
.plate small { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #e7c27a; }

.bench {
  min-height: 100vh;
  background: #efe6d4 url("/images/sketchbook.jpg") center/cover fixed;
}
.bench .ribbon { background: rgba(255,250,242,.8); }
.cards {
  width: min(1000px, calc(100% - 28px));
  margin: 20px auto 70px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card {
  display: block; color: inherit; text-decoration: none;
  background: rgba(255,250,242,.92); padding: 18px 16px 16px; min-height: 150px;
  box-shadow: 0 10px 24px rgba(40,20,10,.12);
}
.card:nth-child(2) { transform: rotate(1.2deg); }
.card:nth-child(3) { transform: rotate(-1deg); }
.card:nth-child(5) { transform: rotate(0.8deg); }
.card h2 { font-size: 1.6rem; }
.bench h1 { width: min(1000px, calc(100% - 28px)); margin: 28px auto 0; font-size: clamp(3rem, 6vw, 4.8rem); }

.seals {
  min-height: 100vh;
  background: #efe4d2 url("/images/paper-fiber.jpg") center/cover;
}
.seals .ribbon { background: rgba(255,248,238,.85); }
.seal-wrap { width: min(980px, calc(100% - 28px)); margin: 20px auto 70px; }
.seal-wrap h1 { font-size: clamp(3rem, 6vw, 5rem); }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; }
.stamp {
  aspect-ratio: 1; border: 3px solid var(--oxblood); border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 16%;
  text-transform: uppercase; text-decoration: none; color: inherit;
  background: rgba(255,250,242,.55);
}
.stamp b { font-family: var(--serif); font-size: 1.7rem; display: block; }
.stamp span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--oxblood); }
.stamp:nth-child(2) { transform: rotate(6deg); }
.stamp:nth-child(4) { transform: rotate(-5deg); }

.letter {
  min-height: 100vh; position: relative; color: var(--ink);
}
.letter .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.letter .ribbon { position: relative; z-index: 2; background: rgba(20,14,10,.72); color: #f6efe4; }
.sheet {
  position: relative; width: min(640px, calc(100% - 28px));
  margin: 36px auto 70px; background: rgba(255,250,242,.94);
  padding: 42px 36px 36px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.sheet h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); }
.mail {
  display: inline-block; margin-top: 12px; font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem); color: var(--oxblood);
}
.links { display: flex; gap: 16px; margin-top: 22px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.links a { text-decoration: none; border-bottom: 1px solid rgba(26,20,15,.3); }

@media (max-width: 800px) {
  .menu { display: inline-flex; }
  .top { flex-wrap: wrap; height: auto; min-height: 64px; padding: 12px 16px; }
  .top nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    margin: 0; padding: 12px; background: #14110e;
    flex-direction: column; border-bottom: 3px solid var(--gold);
  }
  .top nav.open { display: flex; }
  .gutter, .split, .cards, .stamps { grid-template-columns: 1fr; }
  .page + .page { border-left: 0; border-top: 1px solid rgba(80,40,20,.15); }
  .gallery { grid-auto-columns: 86vw; }
  .plate img { height: 240px; }
  .copy { padding: 32px 20px 56px; }
  .slip { transform: none; }
  .nrb .copy { margin: 0 auto; padding: 32px 20px 40px; }
  .shelf, .reel { grid-template-columns: 1fr; }
  .record { background-attachment: scroll; }
  .highlight { margin: 0 auto; }
  .person, .ledger { background-attachment: scroll; }
  .bench { background-attachment: scroll; }
}
.about-stage {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.stage-3d {
  position: relative;
  height: 500px;
  perspective: 1100px;
  display: grid;
  place-items: center;
}
.tilt {
  width: min(220px, 58vw);
  height: 280px;
  z-index: 1;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(6deg);
  box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(246,239,228,.35);
  animation: sway 8s ease-in-out infinite;
}
.tilt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tilt-face {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(12,8,6,.88));
  color: #f6efe4;
}
.tilt-face strong { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.tilt-face em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #e7c27a; }
.ring { position: absolute; inset: 10px; z-index: 2; animation: spin 32s linear infinite; pointer-events: none; }
.orb {
  position: absolute; left: 50%; top: 50%;
  width: 48px; height: 48px; margin: -24px;
  transform: rotate(calc(var(--i) * 60deg)) translateY(-188px);
  pointer-events: auto;
}
.orb-face {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fbf7f0; color: #1a140f;
  box-shadow: 0 10px 22px rgba(0,0,0,.35), 0 0 0 2px #c6a15b;
  animation: spin 32s linear infinite reverse;
}
.orb svg { width: 22px; height: 22px; display: block; }
.orb:nth-child(1) .orb-face { color: #1a140f; }
.orb:nth-child(2) .orb-face { color: #0a66c2; }
.orb:nth-child(3) .orb-face { color: #c13584; }
.orb:nth-child(4) .orb-face { color: #128c7e; }
.orb:nth-child(5) .orb-face { color: #c2410c; }
.orb:nth-child(6) .orb-face { color: #7a2430; }
.live-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.live-pill {
  display: flex; align-items: center; gap: 10px;
  background: #fbf7f0; color: #241910; text-decoration: none;
  border-radius: 16px; padding: 12px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.live-ico {
  width: 38px; height: 38px; flex: none; border-radius: 12px;
  display: grid; place-items: center; position: relative;
  background: #1a140f; color: #f4ead7;
}
.live-ico svg { width: 18px; height: 18px; }
.live-ico .dot {
  position: absolute; top: -3px; right: -3px;
  width: 9px; height: 9px; border-radius: 50%; background: #1faa59;
  box-shadow: 0 0 0 2px #fbf7f0;
  animation: ping 1.6s infinite;
}
.live-pill b { display: block; font-size: 0.95rem; line-height: 1.2; }
.live-pill small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #7a2430; }
.nrb.about-long { width: min(1120px, calc(100% - 32px)); align-content: start; }
.person section, .person aside { scroll-margin-top: 88px; }
.path-list { list-style: none; margin: 18px 0 0; padding: 0; }
.path-list li {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px;
  padding: 12px 0; border-top: 1px solid rgba(26,20,15,.12);
}
.path-list b { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #7a2430; }
.path-list strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.handle-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 16px; perspective: 900px;
}
.handle {
  display: block; text-decoration: none; color: #241910;
  background: #fffaf3; border-radius: 14px; padding: 14px 14px 16px;
  border: 1px solid rgba(122,36,48,.12);
  box-shadow: 0 10px 24px rgba(40,20,10,.08);
  transform: translateZ(0);
  transition: transform .35s ease;
}
.handle svg { width: 22px; height: 22px; color: #7a2430; }
.handle strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 1.25rem; }
.handle span { display: block; margin-top: 4px; color: #2a2118; font-size: 0.92rem; line-height: 1.45; }
.handle:hover { transform: rotateX(7deg) rotateY(-8deg) translateY(-4px); }
.ask { margin-top: 8px; }
.ask-row { display: flex; gap: 8px; margin-top: 12px; }
.ask input {
  flex: 1; border: 1px solid rgba(26,20,15,.25); border-radius: 999px;
  background: #fffaf3; color: #1a140f; padding: 12px 16px; font: inherit;
}
.ask button[type="submit"] {
  border: 0; border-radius: 999px; background: #7a2430; color: #f6efe4;
  padding: 0 16px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px;
}
.nrb .copy .ask-a {
  margin: 14px 0 0; padding: 14px 16px; border-radius: 14px;
  background: #1a140f; color: #f6efe4; min-height: 4.5rem; line-height: 1.55; font-size: 1rem;
}
.chips button {
  border: 1px solid rgba(26,20,15,.25); border-radius: 999px; padding: 8px 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: #241910; background: #fffaf3; cursor: pointer;
}
@keyframes sway {
  0%, 100% { transform: rotateY(-11deg) rotateX(6deg); }
  50% { transform: rotateY(9deg) rotateX(2deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
  .nrb.about-long { grid-template-columns: 1fr 1fr; }
  .nrb.about-long .story,
  .nrb.about-long .span { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 800px) {
  .live-row, .handle-grid { grid-template-columns: 1fr 1fr; }
  .stage-3d { height: 420px; }
  .tilt { width: min(200px, 56vw); height: 250px; }
  .orb { transform: rotate(calc(var(--i) * 60deg)) translateY(-148px); }
  .path-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .live-row, .handle-grid, .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .volume-cover { transition: none; }
  .sticker .emoji, .pulse, .live-ico .dot { animation: none; }
  .tilt, .ring, .orb-face { animation: none; }
  .handle { transition: none; }
}
