/* sadeqi.me, the worlds: each part of the page opens its own page. Black and white, like the top. */

.world { position: fixed; inset: 0; z-index: 30; overflow-y: auto; overflow-x: hidden; background: var(--paper); color: var(--ink); overscroll-behavior: contain; scroll-behavior: auto; }
html.world-open { overflow: hidden; }
/* a world that is replacing another stays hidden until it is ready, so the swap has no blank frame */
.world.is-swap { visibility: hidden; }
.w-error { padding: 120px 26px; font-size: 20px; }

/* ---------------------------------------------------------------- the frame */
.w-bar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 20px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink); }
.w-back { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 15px; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.w-back-arrow { font-family: var(--mono); font-weight: 500; font-size: 18px; transition: transform .2s ease; }
.w-back:hover .w-back-arrow { transform: translateX(-3px); }
.w-tabs { display: flex; gap: 2px; margin: 0 auto; }
.w-tabs a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; text-decoration: none; font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.w-tab-n { font-family: var(--mono); font-weight: 500; font-size: 10.5px; }
.w-tab-n { display: none; }
.w-tabs a { position: relative; }
.w-tabs a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: currentColor; }
.w-tabs a:not([aria-current]) { color: var(--ink-2); }
.w-tabs a:not([aria-current]):hover { color: var(--ink); }
.w-ask-btn { display: none; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; min-height: 40px; padding: 0 12px 0 8px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap; }
.w-ask-eye { position: relative; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; flex: none; }
.w-ask-eye::after { content: ''; position: absolute; left: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle, #0b0b0e 0 27%, #ff2d3a 30% 100%); }
.w-main { padding-bottom: 170px; }
.w-n { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; margin: 0 0 12px; }
.w-title { font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: clamp(54px, 9vw, 136px); line-height: .86; letter-spacing: -.01em; text-transform: uppercase; margin: 0; outline: none; }

/* ---------------------------------------------------------------- Cyborg: a light console with its own red eye */
.w-cyborg { position: fixed; left: 50%; bottom: 18px; z-index: 9; width: min(680px, calc(100% - 24px)); transform: translateX(-50%); }
.cy-log { display: flex; flex-direction: column-reverse; gap: 10px; margin-bottom: 10px; max-height: 50vh; overflow-y: auto; }
.cy-turn { position: relative; background: #fff; color: var(--ink); border: 1px solid var(--ink); padding: 14px 18px 15px 20px; box-shadow: 0 14px 34px rgba(11, 11, 14, .14); }
.cy-turn::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--ink); }
.cy-you { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.3; }
.cy-tag { margin: 0 0 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.cy-ans { margin: 0; font-size: 16.5px; line-height: 1.5; }
.cy-ans:empty { display: none; }
.cy-ans a { color: var(--ink); }
.cy-ans.is-printing::after { content: ''; display: inline-block; width: .5em; height: 1.05em; margin-left: 3px; vertical-align: -.16em; background: var(--ink); animation: cy-caret .8s steps(1) infinite; }
@keyframes cy-caret { 50% { opacity: 0; } }
.cy-form { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 8px 0 12px; background: #fff; color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 14px 34px rgba(11, 11, 14, .16); }
.cy-form:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.cy-eye { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; overflow: hidden; transition: box-shadow .3s ease; }
.cy-eye::before { content: ''; position: absolute; left: 6px; right: 6px; top: calc(50% - .75px); height: 1.5px; background: var(--ink); transition: opacity .2s ease; }
.cy-iris { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle, #0b0b0e 0 27%, #ff2d3a 30% 100%); transform: scaleY(.06); opacity: 0; transition: transform .3s var(--ease), opacity .2s ease; }
.w-cyborg.is-listening .cy-iris, .w-cyborg.is-thinking .cy-iris, .w-cyborg.is-speaking .cy-iris { transform: none; opacity: 1; }
.w-cyborg.is-listening .cy-eye::before, .w-cyborg.is-thinking .cy-eye::before, .w-cyborg.is-speaking .cy-eye::before { opacity: 0; }
.w-cyborg.is-listening .cy-eye, .w-cyborg.is-thinking .cy-eye { box-shadow: 0 0 0 4px rgba(255, 45, 58, .14); }
.w-cyborg.is-thinking .cy-iris { animation: cy-look 1.1s ease-in-out infinite alternate; }
.w-cyborg.is-speaking .cy-iris { animation: cy-speak .45s ease-in-out infinite alternate; }
@keyframes cy-look { from { translate: -6px 0; } to { translate: 6px 0; } }
@keyframes cy-speak { to { scale: 1.2; } }
.cy-mark { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.cy-q { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: 16.5px var(--body); outline: none; }
.cy-q::placeholder { color: #8b8b93; }
.cy-send { flex: none; width: 46px; height: 42px; border: 0; background: var(--ink); color: #fff; font: 600 19px var(--mono); cursor: pointer; }
.cy-send:hover { background: #2b2b31; }
/* the suggestions show while Cyborg is in use, so the console stays small while you read */
.cy-chips { display: none; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 10px 0 0; }
.w-cyborg:focus-within .cy-chips { display: flex; }
.cy-chip { border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--ink); font: 13.5px var(--body); padding: 2px 0; cursor: pointer; }
.cy-chip:hover { border-bottom-width: 2px; }
@media (prefers-reduced-motion: reduce) {
  .cy-iris, .cy-eye::before, .cy-eye { transition: none; }
  .w-cyborg .cy-iris { animation: none !important; }
  .cy-ans.is-printing::after { animation: none; }
}

/* ---------------------------------------------------------------- 04 Biography: the globe of ones and zeros */
.bio-stage { max-width: 1280px; margin: 0 auto; padding: 40px 26px 10px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 20px 56px; align-items: center; }
.globe-wrap { position: relative; order: 2; width: 100%; max-width: 700px; aspect-ratio: 1; justify-self: center; }
.globe { position: absolute; inset: 7%; width: 86%; height: 86%; display: block; cursor: grab; touch-action: none; }
.globe:active { cursor: grabbing; }
.globe-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.globe-ring text { font-family: var(--mono); font-size: 2.05px; font-weight: 500; letter-spacing: .32px; fill: var(--ink); }
.globe-ring .gr-ticks { fill: none; stroke: var(--ink); stroke-width: .9; stroke-dasharray: .14 1.06; opacity: .7; }
.globe-labels { position: absolute; inset: 7%; pointer-events: none; }
.gl-label { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: rgba(255, 255, 255, .8); padding: 0 3px; opacity: 0; transition: opacity .3s ease; }
.globe-card { position: absolute; left: 7%; top: 7%; margin: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; background: var(--paper); border-left: 2px solid var(--ink); box-shadow: 0 8px 24px rgba(11, 11, 14, .1); pointer-events: none; transition: opacity .3s ease; white-space: nowrap; }
.globe-card.is-hidden { opacity: 0; }
.gc-sym { width: 52px; height: 52px; flex: none; }
.gc-sym svg { width: 100%; height: 100%; display: block; }
.gc-text b { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 22px; line-height: 1; text-transform: uppercase; }
.gc-text i { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.gc-text i:empty { display: none; }
.bio-words { order: 1; }
.bio-lede { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -.005em; margin: 0 0 18px; max-width: 16ch; }
.bio-intro { font-size: 19px; line-height: 1.55; margin: 0 0 26px; max-width: 42ch; }
.bio-facts { margin: 0; display: grid; gap: 0; max-width: 46ch; }
.bio-facts div { padding: 13px 0 14px; border-top: 1px solid var(--ink); }
.bio-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; color: var(--ink-2); }
.bio-facts dd { margin: 0; font-size: 16.5px; line-height: 1.5; }

.bio-places { max-width: 1280px; margin: 0 auto; padding: 10px 26px 30px; }
.bio-places ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.bio-places ol::before { content: ''; position: absolute; left: 10%; right: 10%; top: 38px; border-top: 1px dashed var(--ink); }
.bio-places button { position: relative; display: grid; justify-items: center; gap: 2px; width: 100%; padding: 4px 4px 10px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; text-align: center; }
.bp-sym { width: 76px; height: 76px; display: block; background: var(--paper); border-radius: 50%; padding: 6px; transition: background .2s ease, color .2s ease; }
.bp-sym svg { width: 100%; height: 100%; display: block; }
.bio-places button[aria-pressed="true"] .bp-sym { background: var(--ink); color: var(--paper); }
.bp-n { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); margin-top: 6px; }
.bp-name { font-family: var(--display); font-stretch: 110%; font-weight: 900; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.bp-where { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); min-height: 1.2em; }
.bio-places button:hover .bp-name { text-decoration: underline; text-underline-offset: 4px; }

.bio-short { max-width: 1280px; margin: 0 auto; padding: 26px 26px 20px; }
.bio-short h2 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink-2); }
.bio-short-text { max-width: 68ch; margin: 0 0 12px; font-size: 18px; line-height: 1.6; }
.bio-copy { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 0; min-height: 36px; border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.bio-copy:hover { border-bottom-width: 2px; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 860px) {
  .w-bar { gap: 10px; padding: 0 12px; height: 54px; }
  .w-back-name { display: none; }
  .w-tabs { overflow-x: auto; scrollbar-width: none; }
  .w-tabs::-webkit-scrollbar { display: none; }
  .w-tabs a { padding: 7px 8px; font-size: 12px; }
  .w-tabs a[aria-current="page"]::after { left: 8px; right: 8px; }
  .w-ask-btn { display: inline-flex; }
  .w-tabs a { padding: 7px 7px; font-size: 11px; letter-spacing: .02em; }
  .w-ask-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .w-ask-btn { padding: 0 8px; }
  .board-title { flex-direction: column; align-items: flex-start; gap: 3px; }
  .bt-line { text-align: left; }
  .w-cyborg { display: none; }
  .world.cy-open .w-cyborg { display: block; }
  .bio-stage { grid-template-columns: 1fr; padding: 18px 14px 0; gap: 6px; }
  .globe-wrap { order: 1; max-width: 520px; }
  .bio-words { order: 2; }
  .globe-card { left: 50% !important; top: auto !important; bottom: -6px; transform: translateX(-50%) !important; }
  .bio-places { padding: 6px 8px 20px; }
  .bio-places ol::before { top: 30px; }
  .bp-sym { width: 58px; height: 58px; padding: 5px; }
  .bp-name { font-size: 12.5px; }
  .bp-where { display: none; }
  .bio-short { padding: 18px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .w-back-arrow, .bp-sym, .gl-label, .globe-card { transition: none; }
}

/* ---------------------------------------------------------------- dark worlds (Work is the inside of a fab) */
.world[data-theme="dark"] { background: #0b0b0e; color: #f2f2f4; }
.world[data-theme="dark"] .w-bar { background: rgba(11, 11, 14, .92); border-bottom-color: #f2f2f4; }
.world[data-theme="dark"] .w-back, .world[data-theme="dark"] .w-tabs a { color: #f2f2f4; }
.world[data-theme="dark"] .w-tabs a:not([aria-current]) { color: #9a9aa2; }
.world[data-theme="dark"] .w-tabs a:not([aria-current]):hover { color: #f2f2f4; }
.world[data-theme="dark"] .w-ask-btn { background: transparent; color: #f2f2f4; border-color: #f2f2f4; }
.world[data-theme="dark"] :focus-visible { outline-color: #f2f2f4; }
.world[data-theme="dark"] .cy-chip { color: #f2f2f4; }
.world[data-theme="dark"] .cy-form:focus-within { outline-color: #f2f2f4; }

/* ---------------------------------------------------------------- 02 Work: the wafer */
.wafer-etch { font-family: var(--mono); font-size: 19px; font-weight: 500; letter-spacing: 5px; fill: rgba(242, 242, 244, .8); }
.wafer-scribe { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; fill: rgba(242, 242, 244, .5); }
.wafer-note { margin: 10px auto 0; max-width: 46ch; text-align: center; font-size: 15px; line-height: 1.5; color: #a9a9b1; }
.work-stage { max-width: 1240px; margin: 0 auto; padding: 34px 26px 44px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 44px; align-items: start; }
.wafer-wrap { position: relative; }
.wafer-map { display: block; width: 100%; height: auto; max-height: 82vh; }
.wafer-disc { stroke: #f2f2f4; stroke-width: 1.4; }
.wafer-ex { fill: none; stroke: rgba(242, 242, 244, .28); stroke-width: 1; stroke-dasharray: 4 6; }
.wafer-plain { fill: #131317; stroke: #2e2e35; stroke-width: 1; }
.wafer-axis { stroke: rgba(242, 242, 244, .55); stroke-width: 1.2; }
.die-item { cursor: pointer; color: #0b0b0e; }
.die-item:focus { outline: none; }
.die-box { fill: #dcdce1; stroke: #f2f2f4; stroke-width: 1.2; transition: fill .2s ease; }
.die-item:hover .die-box, .die-item:focus-visible .die-box { fill: #ffffff; }
.die-item:focus-visible .die-box { stroke: #ffffff; stroke-width: 5; }
.die-item.is-picked .die-box { fill: #ffffff; stroke: #ffffff; stroke-width: 4; }
.die-n { font-family: var(--mono); font-size: 11px; fill: #0b0b0e; }
.die-name { font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .05em; fill: #0b0b0e; }
.wafer-tip { position: absolute; margin: 0; transform: translate(-50%, calc(-100% - 8px)); background: #f2f2f4; color: #0b0b0e; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; pointer-events: none; white-space: nowrap; }

.die-detail { position: sticky; top: 82px; padding: 16px 0 0; border-top: 2px solid #f2f2f4; }
.dd-id { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; color: #a9a9b1; }
.dd-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.dd-motif { flex: none; width: 66px; height: 66px; padding: 7px; color: #f2f2f4; border: 1px solid rgba(242, 242, 244, .4); }
.dd-name { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; margin: 2px 0 8px; outline: none; }
.dd-role { margin: 0; font-size: 17px; line-height: 1.35; }
.dd-status { margin: 5px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: #a9a9b1; }
.dd-lede { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 0 0 14px; }
.dd-photo { margin: 0 0 14px; }
.dd-photo img { display: block; width: 100%; max-height: 300px; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.die-detail > p:not(.dd-id):not(.dd-lede):not(.dd-links) { font-size: 16.5px; line-height: 1.55; margin: 0 0 10px; color: #dcdce0; }
.dd-facts { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(242, 242, 244, .25); border: 1px solid rgba(242, 242, 244, .25); }
.dd-facts div { background: #0b0b0e; padding: 10px 12px; }
.dd-facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #a9a9b1; }
.dd-facts dd { margin: 4px 0 0; font-size: 15px; }
.dd-links { margin: 16px 0 0; display: flex; gap: 16px; flex-wrap: wrap; }
.dd-links a { color: #f2f2f4; font-family: var(--mono); font-size: 13px; text-underline-offset: 4px; }

.work-list { list-style: none; margin: 0 auto; padding: 0 26px; max-width: 1240px; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); column-gap: 26px; border-top: 1px solid rgba(242, 242, 244, .3); }
.work-list a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; padding: 14px 0; text-decoration: none; color: #f2f2f4; border-bottom: 1px solid rgba(242, 242, 244, .15); }
.wl-n { grid-row: 1 / 3; padding-top: 3px; font-family: var(--mono); font-size: 11.5px; color: #a9a9b1; }
.wl-name { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; }
.wl-role { font-size: 14.5px; line-height: 1.35; color: #b9b9c0; }
.work-list a.is-picked .wl-name, .work-list a:hover .wl-name { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .work-stage { grid-template-columns: 1fr; gap: 22px; padding: 6px 14px 30px; }
  .die-detail { position: static; padding: 16px 2px 0; }
  .work-list { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { .die-box { transition: none; } }

/* ---------------------------------------------------------------- 02 Research: a paper */
.paper { max-width: 1140px; margin: 0 auto; padding: 64px 26px 40px; font-family: Georgia, 'Times New Roman', serif; }
.paper-head { max-width: 760px; margin: 0 0 34px 240px; }
.paper-run { display: flex; justify-content: space-between; margin: 0 0 26px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pt-type.is-typing::after { content: ''; display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: var(--ink); animation: cy-caret .8s steps(1) infinite; }
.paper-title { position: relative; }
.pt-ghost { visibility: hidden; }
.pt-type { position: absolute; left: 0; top: 0; right: 0; }
.paper-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-stretch: normal; text-transform: none; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.01em; margin: 4px 0 22px; }
.paper-author { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; margin: 0; }
.paper-aff { font-style: italic; color: var(--ink-2); margin: 4px 0 26px; font-size: 17px; }
.paper-abstract { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 16px 0 6px; }
.paper-abstract h2, .paper-margin span { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.paper-abstract h2 { margin: 0 0 8px; }
.paper-abstract p { font-size: 18px; line-height: 1.6; margin: 0 0 10px; }
.paper-toc ol { list-style: none; padding: 0; margin: 18px 0 0; columns: 2; column-gap: 30px; }
.paper-toc a { display: block; padding: 4px 0; font-family: var(--display); font-weight: 700; font-size: 14px; text-decoration: none; }
.paper-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.paper-toc a span { font-family: var(--mono); font-weight: 400; margin-right: 4px; }
.paper-sec { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: 20px 40px; padding: 36px 0; border-top: 1px solid var(--rule); }
.paper-margin { padding-top: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.paper-margin p { margin: 0 0 12px; }
.paper-margin span { display: block; color: var(--ink); margin-bottom: 2px; }
.paper-margin a { color: var(--ink); text-underline-offset: 3px; }
.paper-body h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
.paper-sec-n { font-family: var(--mono); font-weight: 400; font-size: 17px; margin-right: 6px; }
.paper-sub { font-style: italic; color: var(--ink-2); font-size: 18px; line-height: 1.45; margin: 0 0 14px; }
.paper-lede { font-size: 22px; line-height: 1.4; margin: 0 0 14px; }
.paper-body > p { font-size: 18.5px; line-height: 1.65; margin: 0 0 12px; }
.fig { margin: 22px 0 8px; border: 1px solid var(--ink); padding: 14px 14px 10px; }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption { margin-top: 8px; font-size: 15px; font-style: italic; }
.fig figcaption span { font-style: normal; font-weight: 700; }
.fig-node rect, .fig-gate rect, .fig-meter rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.fig-node text, .fig-gate text, .fig-q { font-family: var(--body); font-size: 16px; fill: var(--ink); }
.fig-centre { font-family: Georgia, serif; font-style: italic; font-size: 17px; fill: var(--ink-2); }
.fig-arrow, .fig-wire, .fig-meter path { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.fig marker path { fill: var(--ink); }
.fig-dot { fill: var(--ink); }
.fig-target { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.fig-note { font-family: var(--mono); font-size: 12px; fill: var(--ink-2); }
.fig-pulse { fill: var(--ink); }
.fig-node rect, .fig-node text { transition: fill .25s ease; }
.fig-node.is-lit rect { fill: var(--ink); }
.fig-node.is-lit text { fill: var(--paper); }
.fig-gate.is-lit rect, .fig-meter.is-lit rect { fill: var(--ink); }
.fig-gate.is-lit text { fill: var(--paper); }
.fig-cnot.is-lit .fig-target { fill: var(--ink); stroke: var(--ink); }
.fig-cnot.is-lit path:last-child { stroke: var(--paper); }
.fig-rule { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 4; }
.fb-sphere, .fb-eq { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.fb-eq { stroke-dasharray: 4 4; }
.fb-axis { stroke: var(--rule); stroke-width: 1; }
.fb-arrow { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.fb-tip, .fe-dot { fill: var(--ink); }
.fe-axes { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.fe-curve { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 2 3; }
@media (prefers-reduced-motion: reduce) { .fig-node rect, .fig-node text { transition: none; } .pt-type.is-typing::after { animation: none; } }
.prologue { margin-top: 18px; border-left: 2px solid var(--ink); padding-left: 18px; }
.prologue-text p { font-size: 18.5px; line-height: 1.7; margin: 0 0 14px; }
.prologue-more { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); padding: 11px 14px; cursor: pointer; }
.prologue-more:hover { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- 03 Skills: the machine, on drafting paper */
.skills { --grid: rgba(11, 11, 14, .055); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; min-height: 100%; }
.drawing { position: relative; }
.title-block { margin: 10px 0 0 auto; width: min(460px, 100%); border-collapse: collapse; background: var(--paper); border: 2px solid var(--ink); font-size: 13px; }
.title-block th, .title-block td { border: 1px solid var(--ink); padding: 6px 9px; text-align: left; vertical-align: top; }
.title-block th { width: 1%; white-space: nowrap; font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.title-block td { line-height: 1.4; }
.tb-h { margin: 0 0 2px; font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; outline: none; }
.tb-line { display: block; font-family: var(--display); font-weight: 700; font-size: 14px; }
.skills-stage { max-width: 1340px; margin: 0 auto; padding: 34px 26px 44px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.machine { position: relative; width: 100%; }
.machine .gear { z-index: 1; }
.machine .gear .gear-body { cursor: pointer; }
.machine-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.machine-lines path { fill: none; stroke: var(--rule); stroke-width: .8; stroke-dasharray: 12 3 2 3; }
.plate { position: absolute; z-index: 3; transform: translate(-50%, -50%); background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: 5px 9px; font-family: var(--display); font-weight: 800; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.plate:hover, .plate.is-on { background: var(--ink); color: var(--paper); }
.sat-label { position: absolute; z-index: 2; transform: translate(0, -50%); font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-2); white-space: nowrap; pointer-events: none; background: rgba(255, 255, 255, .85); padding: 0 3px; }
.sat-label[data-side="left"] { transform: translate(-100%, -50%); }
.sat-label[data-side="above"] { transform: translate(-50%, -100%); }
.sat-label[data-side="below"] { transform: translate(-50%, 0); }
.skill-card, .hob-card { position: sticky; top: 82px; background: var(--paper); border-top: 2px solid var(--ink); padding: 16px 0 0; }
.sk-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.sk-name, .hc-name { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; margin: 0 0 8px; outline: none; }
.sk-role, .hc-role { font-size: 17px; line-height: 1.4; margin: 0 0 12px; }
.skill-card > p:not(.sk-kicker):not(.sk-role), .hob-card > p:not(.hc-at):not(.hc-role) { font-size: 16px; line-height: 1.55; margin: 0 0 10px; }
.sk-parts { list-style: none; padding: 0; margin: 12px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.sk-parts li { border: 1px solid var(--ink); padding: 3px 8px; font-family: var(--mono); font-size: 12px; }
.sk-rel { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--ink); }
.sk-rel a { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 15px; text-transform: uppercase; }
.sk-rel a span { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .08em; color: var(--ink-2); }
.sk-rel a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sk-ask { width: 100%; min-height: 46px; border: 0; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }

/* ---------------------------------------------------------------- 05 Hobbies: the board */
.board-title { margin: 0 0 8px 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; outline: none; }
.board-title span:first-child { font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: 24px; letter-spacing: .02em; }
.bt-line { color: var(--ink-2); text-align: right; }
.board-note { margin: 34px 0 0 24px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.hob-stage { max-width: 1240px; margin: 0 auto; padding: 34px 26px 44px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.board-wrap { position: relative; max-width: 680px; }
.board-box { position: relative; padding: 0 0 24px 24px; }
.board { display: grid; grid-template-columns: repeat(8, 1fr); border: 2px solid var(--ink); }
.sq { position: relative; aspect-ratio: 1; background: var(--paper); color: var(--ink); }
.sq.dark { background: var(--ink); color: var(--paper); }
.piece { display: block; overflow: hidden; text-decoration: none; z-index: 1; }
.piece img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); transition: transform .35s ease; }
.piece:hover img, .piece.is-on img { transform: scale(1.07); }
.piece::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .2s ease; }
.piece.is-on::after { box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--ink); }
.piece:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; z-index: 3; }
.sq-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; background: rgba(11, 11, 14, .86); color: #fff; font-family: var(--display); font-stretch: 88%; font-weight: 800; font-size: clamp(8px, .95vw, 11px); letter-spacing: .01em; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.sq-at { position: absolute; top: 3px; left: 4px; font-family: var(--mono); font-size: 9.5px; color: #fff; mix-blend-mode: difference; }
.sq-draw, .hc-draw { display: grid; place-items: center; width: 100%; height: 100%; }
.sq-draw svg { width: 58%; }
.hc-draw svg { width: 120px; }
.board-path { position: absolute; left: 24px; top: 0; width: calc(100% - 24px); height: calc(100% - 24px); z-index: 2; pointer-events: none; mix-blend-mode: difference; }
.board-path path { fill: none; stroke: #fff; stroke-width: .035; stroke-dasharray: .14 .1; stroke-linejoin: round; }
.board-files, .board-ranks { position: absolute; list-style: none; margin: 0; padding: 0; display: grid; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.board-files { left: 24px; right: 0; bottom: 0; height: 24px; grid-template-columns: repeat(8, 1fr); text-align: center; align-items: center; }
.board-ranks { left: 0; top: 0; bottom: 24px; width: 24px; grid-template-rows: repeat(8, 1fr); place-items: center; }
.hc-at { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.hc-media { margin: 0 0 14px; background: #f2f2f4; }
.hc-media img, .hc-media video { display: block; width: 100%; max-height: 360px; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.hc-more { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.hc-more img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.06); }

@media (max-width: 1100px) {
  .skills-stage { grid-template-columns: 1fr; }
  .skill-card { position: static; }
}
@media (max-width: 1000px) {
  .hob-stage { grid-template-columns: 1fr; }
  .hob-card { position: static; }
}
@media (max-width: 900px) {
  .paper { padding: 40px 18px 30px; }
  .paper-head { margin-left: 0; }
  .paper-sec { grid-template-columns: 1fr; gap: 6px; padding: 28px 0; }
  .paper-margin { order: 2; }
  .paper-toc ol { columns: 1; }
  .skills-head, .hob-head { padding: 40px 18px 14px; }
  .skills-stage, .hob-stage { padding: 10px 14px 30px; gap: 20px; }
  .board-box { padding: 0 0 20px 20px; }
  .board-title { margin-left: 20px; }
  .board-title span:first-child { font-size: 20px; }
  .board-note { margin-left: 20px; }
  .board-files { left: 20px; height: 20px; }
  .board-ranks { width: 20px; bottom: 20px; }
  .board-path { left: 20px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .sq-name { display: none; }
  .piece.is-on .sq-name { display: block; font-size: 8px; padding: 2px 2px; }
  .sq-at { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .piece img, .piece::after { transition: none; }
}

/* a world that comes out of the dive starts unseen, then fades in; while it fades, its frame skips the blur */
.world.is-arriving { opacity: 0; }
.world.is-fading .w-bar { -webkit-backdrop-filter: none; backdrop-filter: none; }
