:root {
  --black: #0b0d0c;
  --panel: #131714;
  --text: #edf1ed;
  --muted: #a9b2aa;
  --line: #374139;
  --green: #1ed760;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --circuit-progress: 0%;
  --header-height: 125px;
  --inspiration-height: 100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { padding-bottom: var(--inspiration-height); margin: 0; color: var(--text); background: var(--black); font-family: var(--body); font-size: 17px; line-height: 1.7; }
a { color: inherit; }
.masthead, footer { max-width: 1240px; margin: 0 auto; }
.masthead { position: sticky; top: 0; z-index: 5; background: var(--black); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 26px; border-bottom: 1px solid var(--line); }
.site-identity { display: flex; align-items: center; flex: 1; min-width: 0; gap: 18px; }
.site-identity > .site-title { flex-shrink: 0; white-space: nowrap; }
.site-identity > .quote-carousel { min-width: 0; }
.masthead.is-compact { padding-top: 7px; padding-bottom: 7px; }
.masthead.is-compact .site-title { font-size: .9rem; }
.site-title { color: var(--green); font-size: clamp(1.15rem, 3.2vw, 1.85rem); font-weight: 500; letter-spacing: .055em; line-height: 1.3; text-decoration: none; }
.quote-carousel { display: inline-grid; grid-template-columns: auto minmax(0, max-content) auto; align-items: center; justify-content: start; gap: 4px; min-width: 0; max-width: 100%; }
.site-maxim { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .02em; line-height: 1.5; overflow-wrap: anywhere; transition: opacity .24s ease; }
.site-maxim [data-quote-text] { font-style: italic; }
.site-maxim.is-changing { opacity: 0; }
.quote-attribution { color: #7f9585; }
.quote-carousel > button { align-self: center; min-height: 30px; min-width: 24px; padding: 2px 5px; color: var(--muted); background: none; border: 0; font: inherit; font-size: .85rem; cursor: pointer; }
.quote-carousel > button:hover { color: var(--green); }
.inspiration-bar { position: fixed; z-index: 5; bottom: 0; left: 0; width: 100%; max-width: none; padding: 6px 26px calc(6px + env(safe-area-inset-bottom)); background: var(--black); border-top: 1px solid var(--line); }
.inspiration-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; max-width: 1188px; margin: 0 auto; }
.inspiration-content .social-links { flex-shrink: 0; }
.social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.social-links a { display: grid; width: 36px; height: 36px; padding: 7px; place-items: center; text-decoration: none; opacity: .82; transition: opacity .15s ease, transform .15s ease; }
.social-links a:hover { opacity: 1; transform: translateY(-1px) scale(1.08); }
.social-links img { display: block; width: 100%; height: 100%; }

.site-layout { display: grid; grid-template-columns: 210px minmax(0, 1030px); max-width: 1240px; margin: 0 auto; }
main { min-width: 0; }
.section-index { position: relative; align-self: start; margin-top: 26px; padding: 0 16px 8px 26px; }
.section-index::before, .section-index::after { position: absolute; top: 30px; bottom: 0; left: 32px; width: 1px; content: ""; }
.section-index::before { background: var(--line); }
.section-index::after { bottom: auto; height: var(--circuit-progress); max-height: calc(100% - 30px); background: var(--green); box-shadow: 0 0 12px rgb(30 215 96 / 55%); transition: height .1s linear; }
.section-index p { margin: 0 0 12px; color: var(--green); font-size: .65rem; letter-spacing: .06em; line-height: 1.35; }
.section-index nav, .mobile-index nav { display: grid; gap: 8px; }
.section-index a, .mobile-index a { position: relative; display: grid; grid-template-columns: 25px 1fr; gap: 6px; align-items: center; color: var(--muted); font-size: .76rem; letter-spacing: .035em; line-height: 1.28; text-decoration: none; transition: color .16s ease; }
.section-index a::before { position: absolute; top: 3px; left: 3px; width: 7px; height: 7px; border: 1px solid var(--line); border-radius: 50%; background: var(--black); content: ""; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.section-index a:hover, .section-index a.is-active, .mobile-index a.is-active { color: var(--text); }
.section-index a.is-active::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px rgb(30 215 96 / 14%), 0 0 10px rgb(30 215 96 / 60%); }
.section-index .index-number, .mobile-index .index-number { color: var(--green); font-size: .61rem; }
.index-symbol { color: var(--green); }
.section-index a[data-section-link] { padding-left: 20px; }
.section-index a small { display: none; grid-column: 2; color: var(--green); font-size: .46rem; letter-spacing: .055em; line-height: 1.25; }
.section-index a.is-active small { display: block; }
.mobile-index a small { display: none; }
.mobile-index { display: none; }
.index-group { min-width: 0; }
.index-children { display: grid; gap: 7px; margin: 8px 0 5px 51px; padding: 0; list-style: none; }
.section-index .index-children a, .mobile-index .index-children a { display: block; font-size: .75rem; line-height: 1.45; letter-spacing: 0; }
.section-index .index-children a::before { display: none; }
.section-index .index-children a.is-active, .mobile-index .index-children a.is-active { color: var(--green); }
#top, [data-sitemap-target] { scroll-margin-top: calc(var(--header-height) + 18px); }


.intro { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; padding: 30px 26px; border-bottom: 1px solid var(--line); }
.intro > h2 { grid-column: 1 / -1; margin: 0 0 -14px; }
.overview { grid-column: 1 / -1; }
.overview h2 { margin-bottom: 12px; }
.overview-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.overview-projects a { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.4; text-decoration: none; }
.overview-projects a:hover strong { color: var(--green); }
.overview-projects span { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.overview-interests { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.portrait { width: 180px; aspect-ratio: 1; margin: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.kicker, h2, .pending-link { color: var(--green); font-size: .69rem; font-weight: 500; letter-spacing: .055em; line-height: 1.3; }
.kicker { margin: 0 0 12px; }
.intro-copy { max-width: 720px; }
.intro-copy p { margin: 0; color: var(--muted); }
.intro-copy .opening { margin-top: 0; margin-bottom: 10px; color: var(--text); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.5; letter-spacing: -.025em; }
.intro-copy .thread-question { max-width: 660px; color: var(--green); font-size: .72rem; font-weight: 500; line-height: 1.5; letter-spacing: -.015em; }
.page-section { padding: 27px 26px 31px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + 18px); }
h2 { margin: 0 0 17px; }
.section-symbol { display: inline-block; width: 1.3em; margin-right: 5px; color: var(--green); font-size: 1rem; font-weight: 700; text-align: center; }
h3, p { margin-top: 0; }
h3 { margin-bottom: 8px; font-size: 1.35rem; line-height: 1.3; letter-spacing: -.025em; }
.project-list { display: grid; gap: 22px; }
.project { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 168px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.project-minimal { grid-template-columns: 1fr; min-height: 0; }
.project-visual { position: relative; min-height: 150px; }
.logo-panel { display: grid; place-items: center; padding: 10px; background: var(--green); }
.logo-panel img { width: min(100%, 220px); max-height: 104px; object-fit: contain; }
.project-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 19px 22px; }
.project-copy > p { max-width: 680px; margin-bottom: 12px; color: var(--muted); }
.project-copy .project-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; font-size: .61rem; line-height: 1.4; letter-spacing: .035em; text-transform: uppercase; }
.project-meta span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 2px; }
.project-meta .free-label { color: var(--green); border-color: #28773d; background: rgb(30 215 96 / 8%); font-weight: 700; }
.project-copy .text-link, .project-copy .pending-link { margin-top: auto; }
.project-question { color: var(--green) !important; font-size: .72rem; font-weight: 500; line-height: 1.48; letter-spacing: -.025em; }
.project-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; }
.project-links .text-link { margin-top: 0; }
.text-link { color: var(--text); font-size: .8rem; font-weight: 600; text-underline-offset: 4px; }
.text-link:hover, .interest-list a:hover { color: var(--green); }
.pending-link { color: var(--muted); }
.book-panel { overflow: hidden; padding: 16px; background: #344039; }
.book-panel span { position: relative; z-index: 1; font-size: .65rem; letter-spacing: .05em; }
.book-panel i { position: absolute; right: -10px; bottom: -82px; width: 170px; height: 170px; border: 1px solid var(--green); border-radius: 50%; box-shadow: 0 0 0 28px rgb(30 215 96 / 14%), 0 0 0 56px rgb(30 215 96 / 8%); }
.project-app { display: flex; flex-direction: column; }
.project-app .project-copy > p { max-width: 70ch; }
.project-copy .fiction-label { margin-bottom: 7px; color: var(--green); }
.app-gallery { min-width: 0; margin: 0; padding: 16px; background: #0e120f; border-top: 1px solid var(--line); }
.gallery-image { display: block; text-decoration: none; }
.gallery-image img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.gallery-stage, .dialog-stage { position: relative; min-width: 0; }
.gallery-toolbar { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; align-items: center; gap: 8px; padding-top: 13px; color: var(--muted); font-size: .75rem; }
.gallery-caption-wrap { display: grid; gap: 3px; grid-column: 2; text-align: center; }
.gallery-count { color: var(--muted); font-size: .64rem; }
.enlarge-link { grid-column: 3; justify-self: end; }
.enlarge-link, .dialog-toolbar button { padding: 6px 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: .7rem; line-height: 1.4; cursor: pointer; text-decoration: none; }
.gallery-arrow { position: absolute; z-index: 1; top: 50%; display: grid; width: 52px; height: 64px; place-items: center; transform: translateY(-50%); padding: 0 0 5px; border: 1px solid #526057; background: rgb(11 13 12 / 90%); color: var(--text); font: inherit; font-size: 2.6rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 12px rgb(0 0 0 / 45%); }
.gallery-arrow-prev { left: 8px; }
.gallery-arrow-next { right: 8px; }
.gallery-arrow:hover, .enlarge-link:hover, .dialog-toolbar button:hover { color: var(--green); border-color: var(--green); }
.gallery-open { overflow: hidden; }
.gallery-dialog { width: min(1500px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 18px; border: 1px solid var(--line); background: var(--black); color: var(--text); }
.gallery-dialog::backdrop { background: rgb(0 0 0 / 88%); }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-toolbar { margin-bottom: 14px; }
.dialog-toolbar h2, .dialog-footer p { margin: 0; }
.dialog-image { display: block; width: 100%; max-height: calc(100dvh - 175px); object-fit: contain; }
.dialog-footer { display: grid; justify-items: center; gap: 3px; margin-top: 14px; color: var(--muted); font-size: .75rem; text-align: center; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
.value-list { border-top: 1px solid var(--line); }
.value-list article { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1fr); gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.value-list h3, .value-list p { margin: 0; }
.value-list p { max-width: 640px; color: var(--muted); }
.question-list { margin: 0; padding: 0; list-style: none; counter-reset: question; border-top: 1px solid var(--line); }
.question-list li { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: clamp(.94rem, 1.55vw, 1.1rem); font-weight: 500; line-height: 1.5; letter-spacing: -.035em; }
.question-list li::before { content: "0" counter(question); counter-increment: question; padding-top: 3px; color: var(--green); font-size: .66rem; letter-spacing: .04em; }
.interest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.interest-card { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.interest-photo { display: grid; width: 100%; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; background: #252525; border-bottom: 1px solid var(--line); }
.interest-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.interest-gallery { margin: 0; min-width: 0; }
.interest-gallery .gallery-toolbar { padding: 10px; grid-template-columns: 54px minmax(0, 1fr) 66px; }
.gallery-autoplay { grid-column: 1; grid-row: 2; justify-self: start; padding: 6px 10px; min-height: 40px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: .7rem; cursor: pointer; }
.gallery-autoplay:hover { color: var(--green); border-color: var(--green); }
.interest-gallery .gallery-autoplay { grid-row: 1; padding: 6px; }
.interest-copy { display: block; padding: 16px; }
.interest-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: .75rem; }
.practice-art { color: var(--green); background: radial-gradient(circle at center, #26382b, #131714 70%); }
.practice-art svg { width: 60%; max-width: 260px; }
.interest-list strong { color: var(--text); }
.interest-list a { text-underline-offset: 3px; }


.motion-ready .intro, .motion-ready .page-section { opacity: .62; transform: translateY(8px); transition: opacity .34s ease, transform .34s ease; }
.motion-ready .intro.is-visible, .motion-ready .page-section.is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .masthead, footer { max-width: 1080px; }
  .site-layout { display: block; max-width: 1080px; }
  .section-index { display: none; }
  .mobile-index { display: block; margin: 0; padding: 0 26px; border-bottom: 1px solid var(--line); }
  .mobile-index summary { padding: 12px 0; color: var(--green); cursor: pointer; font-size: .63rem; letter-spacing: .055em; }
  .mobile-index .index-children { margin-left: 31px; }
  .mobile-index nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 0 13px; }
}

@media (max-width: 660px) {
  .masthead, .intro, .page-section, footer, .mobile-index { padding-left: 18px; padding-right: 18px; }
  .masthead { flex-wrap: wrap; gap: 9px 18px; }
  .site-identity { flex-basis: 100%; gap: 8px; }
  .site-identity > .site-title, .masthead.is-compact .site-title { font-size: .75rem; }
  .site-identity > .site-title { max-width: 80px; white-space: normal; }
  .quote-carousel > button { min-width: 28px; min-height: 32px; }
  .inspiration-bar { padding-left: 18px; padding-right: 18px; }
  .inspiration-content { flex-direction: column; align-items: flex-start; gap: 4px; }
  .inspiration-content .social-links { align-self: flex-end; gap: 6px; }
  .inspiration-content .social-links a { width: 36px; height: 36px; padding: 9px; }
  .intro { grid-template-columns: 100px minmax(0, 1fr); gap: 18px; padding-top: 24px; padding-bottom: 24px; }
  .portrait { width: 100px; }
  .intro-copy .opening { font-size: 1.4rem; }
  .project { grid-template-columns: 1fr; min-height: 0; }
  .project-visual { min-height: 120px; }
  .logo-panel img { max-height: 80px; }
  .app-gallery { padding: 10px; }
  .gallery-arrow { width: 44px; height: 54px; font-size: 2.2rem; }
  .gallery-arrow-prev { left: 0; }
  .gallery-arrow-next { right: 0; }
  .gallery-toolbar { grid-template-columns: 66px minmax(0, 1fr) 66px; }
  .enlarge-link { padding: 6px; font-size: .65rem; }
  .gallery-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 10px; }
  .dialog-toolbar { gap: 8px; }
  .dialog-image { max-height: calc(100dvh - 140px); }
  .dialog-footer { gap: 8px; }
  .project-copy { padding: 16px; }
  .project-copy > p { font-size: 1rem; line-height: 1.65; }
  .value-list article { grid-template-columns: 1fr; gap: 5px; }
  .interest-list { grid-template-columns: 1fr; }
  .mobile-index .index-children { margin-left: 31px; }
  .mobile-index nav { grid-template-columns: 1fr; gap: 15px; }
}

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

/* Readable prose, with the system-map character kept in the interface. */
.masthead, .inspiration-bar, .section-index, .mobile-index, .mobile-shortcuts, h2, .kicker, .project-meta, .pending-link, .gallery-toolbar, .dialog-toolbar, .dialog-footer { font-family: var(--mono); }
.project-copy .project-lead { color: var(--text); font-size: 1.3rem; font-weight: 600; line-height: 1.45; letter-spacing: -.015em; }
.project-notes { width: 100%; max-width: 70ch; margin: 0 0 18px; }
.project-notes summary { color: var(--muted); cursor: pointer; font-size: .9rem; padding: 8px 0; text-underline-offset: 4px; }
.project-notes summary:hover { color: var(--green); }
.project-notes p { margin: 10px 0 0; color: var(--muted); }
.project-notes .project-question { font-size: 1rem; line-height: 1.6; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 12px; padding: 10px 16px; background: var(--green); color: var(--black); transform: translateY(-180%); font-weight: 700; }
.skip-link:focus { transform: none; }
.mobile-shortcuts { display: none; }
.preview-toggle { padding: 8px 10px; min-height: 36px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: .72rem; cursor: pointer; }
.preview-toggle:hover, .preview-toggle[aria-pressed="true"] { color: var(--green); border-color: var(--green); }
.gallery-toolbar > .preview-toggle { grid-column: 1; grid-row: 1; justify-self: start; }
.gallery-caption-wrap, .enlarge-link { grid-row: 1; }
.gallery-detail .gallery-image { height: 380px; overflow: hidden; }
.gallery-detail .gallery-image img { width: 160%; max-width: none; max-height: none; transform: translate(-18%, -15%); }
.gallery-detail .gallery-image[data-detail="quest"] img { transform: translate(0, -30%); }
.dialog-image-viewport { min-width: 0; overflow: auto; overscroll-behavior: contain; max-height: calc(100dvh - 240px); }
.dialog-image { max-height: calc(100dvh - 240px); }
.gallery-dialog.is-zoomed .dialog-image { width: 100%; min-width: 1100px; max-height: none; }
.dialog-hint { font-size: .72rem; }
@media (max-width: 860px) {
  .mobile-shortcuts { position: sticky; top: var(--header-height); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 18px; background: var(--black); border-bottom: 1px solid var(--line); }
  .mobile-shortcuts a { display: grid; min-height: 36px; align-items: center; color: var(--muted); text-decoration: none; font-size: .7rem; }
  .mobile-shortcuts a:hover { color: var(--green); }
  #top, [data-sitemap-target], .page-section { scroll-margin-top: calc(var(--header-height) + 78px); }
  .site-identity > .site-title { letter-spacing: .025em; }
}
@media (max-width: 660px) {
  .intro { grid-template-columns: 1fr; gap: 16px; }
  .intro > h2 { margin-bottom: 0; }
  .portrait { width: 110px; }
  .intro-copy .thread-question { font-size: .85rem; }
  .overview-projects { grid-template-columns: 1fr; gap: 2px; }
  .project-copy .project-lead { font-size: 1.2rem; }
  .gallery-stage, .dialog-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-slides, .dialog-image-viewport { grid-column: 1 / -1; grid-row: 1; }
  .gallery-stage > .gallery-arrow, .dialog-stage > .gallery-arrow { position: static; transform: none; width: 48px; height: 44px; grid-row: 2; box-shadow: none; }
  .gallery-arrow-prev { justify-self: start; }
  .gallery-arrow-next { justify-self: end; }
  .gallery-toolbar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-toolbar .gallery-caption-wrap { grid-column: 1 / -1; grid-row: 1; }
  .gallery-toolbar > .preview-toggle { grid-column: 1; grid-row: 2; }
  .gallery-toolbar .enlarge-link { grid-column: 2; grid-row: 2; }
  .gallery-caption-wrap { font-size: .75rem; }
  .gallery-detail .gallery-image { height: 250px; }
  .gallery-detail .gallery-image img { width: 250%; transform: translate(-24%, -12%); }
  .gallery-detail .gallery-image[data-detail="quest"] img { transform: translate(0, -29%); }
  .dialog-image-viewport, .dialog-image { max-height: calc(100dvh - 270px); }
  .dialog-footer { gap: 5px; }
  .inspiration-content { gap: 0; }
  .site-maxim { font-size: .75rem; }
  .gallery-toolbar .preview-toggle, .enlarge-link { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 10px; white-space: nowrap; }
}
@media (max-width: 350px) {
  .masthead, .intro, .page-section, .mobile-index { padding-left: 14px; padding-right: 14px; }
  .mobile-shortcuts { gap: 5px; padding-left: 14px; padding-right: 14px; }
  .mobile-shortcuts a { font-size: .65rem; }
}
.app-gallery { scroll-margin-top: calc(var(--header-height) + 18px); }
.project-shelves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shelf-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.shelf-card:hover, .shelf-card:focus-within { border-color: #56715d; transform: translateY(-2px); }
.shelf-image { display: block; height: 120px; overflow: hidden; position: relative; background: var(--black); text-decoration: none; }
.shelf-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; transition: transform .3s ease; }
.shelf-card:hover .shelf-image img { transform: scale(1.025); }
.shelf-image.logo-panel { display: grid; padding: 22px; background: var(--green); }
.shelf-image.logo-panel img { width: 100%; max-height: 76px; object-fit: contain; }
.shelf-image.book-panel { background: #344039; padding: 22px; }
.shelf-image.book-panel span { font-family: var(--mono); font-size: .8rem; line-height: 1.6; }
.shelf-image.book-panel i { bottom: -97px; right: -18px; }
.shelf-usage-image img { object-fit: contain; object-position: center; background: #152c29; }
.shelf-copy { display: flex; flex-direction: column; flex: 1; padding: 15px; }
.shelf-copy h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 11px; }
.shelf-copy .project-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 12px; font-size: .64rem; line-height: 1.4; text-transform: uppercase; }
.shelf-description { font-size: .9rem; line-height: 1.55; margin: 0 0 16px; color: var(--muted); }
.shelf-links { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: auto; }
.shelf-links a { font-size: .78rem; line-height: 1.5; font-weight: 600; text-underline-offset: 4px; }
.shelf-links a:hover { color: var(--green); }
.shelf-status { margin: 12px 0 0; color: var(--muted); font: .65rem/1.5 var(--mono); }
@media (max-width: 1000px) and (min-width: 861px) { .project-shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) { .project-shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .shelf-image { height: 110px; } .shelf-copy { padding: 13px; } .shelf-links a { min-height: 36px; display: inline-flex; align-items: center; } }
@media (max-width: 480px) { .project-shelves { grid-template-columns: 1fr; } .shelf-image { height: 150px; } .shelf-copy { padding: 17px; } .shelf-copy h3 { font-size: 1.25rem; } .shelf-description { font-size: 1rem; } }
@media (max-width: 860px) { .app-gallery { scroll-margin-top: calc(var(--header-height) + 78px); } }
@media (max-width: 660px) {
  .gallery-toolbar, .interest-gallery .gallery-toolbar { grid-template-columns: 1fr auto 1fr; }
  .gallery-toolbar .gallery-autoplay { grid-column: 2; grid-row: 2; justify-self: center; }
  .gallery-toolbar .enlarge-link { grid-column: 3; grid-row: 2; }
  .interest-gallery .gallery-autoplay { grid-column: 1; justify-self: start; }
}

/* One overview with project notes available on demand. */
.project-to-interests { margin: 20px 0 0; }
.project-dialog { width: min(1000px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #53675a; background: var(--black); color: var(--text); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #53675a var(--black); }
.project-dialog::backdrop { background: rgb(0 0 0 / 78%); backdrop-filter: blur(5px); }
.project-dialog-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: var(--black); border-bottom: 1px solid var(--line); }
.project-dialog-header h2 { margin: 0; font-size: 1.1rem; }
.project-dialog-header button { padding: 7px 12px; border: 1px solid var(--line); color: var(--text); background: var(--panel); font: .8rem var(--mono); cursor: pointer; }
.project-dialog-header button:hover { border-color: var(--green); color: var(--green); }
.project-detail .project { border: 0; }
.project-detail .project-copy > h3 { display: none; }
.project-detail .project-copy { padding: 24px; }
.project-detail .app-gallery { padding: 20px; }
.project-detail .gallery-image img { max-height: 300px; }
.project-detail .project-visual { min-height: 230px; }
.project-detail .book-panel { min-height: 230px; }
.shelf-card { position: relative; cursor: pointer; }
.shelf-open { color: inherit; text-decoration: none; }
.shelf-open::after { position: absolute; inset: 0; z-index: 1; content: ''; }
.shelf-card:focus-within { outline: 1px solid var(--green); outline-offset: 2px; }
.shelf-links a { position: relative; z-index: 3; }
.shelf-image::after { position: absolute; bottom: 10px; right: 10px; z-index: 2; padding: 5px 8px; border: 1px solid #759781; background: rgb(10 16 12 / 90%); color: var(--text); content: 'View project ↗'; font: .62rem var(--mono); opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.shelf-card:hover .shelf-image::after, .shelf-card:focus-within .shelf-image::after { opacity: 1; transform: none; }
.shelf-copy .project-meta { font-size: .55rem; gap: 4px; letter-spacing: 0; }
.shelf-copy .project-meta span { padding: 2px 5px; white-space: nowrap; }
.shelf-image[data-carousel] img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease, transform .3s ease; }
.shelf-image[data-carousel] img.is-current { opacity: 1; }
.shelf-pause { position: absolute; right: 9px; top: 9px; z-index: 4; width: 28px; height: 28px; padding: 0; border: 1px solid #6f8777; background: rgb(10 16 12 / 85%); color: var(--text); font: 1rem var(--mono); cursor: pointer; opacity: 0; transition: opacity .18s ease; }
.shelf-card:hover .shelf-pause, .shelf-card:focus-within .shelf-pause, .shelf-pause:focus-visible { opacity: 1; }
.gallery-image { position: relative; cursor: zoom-in; }
.gallery-image::after { content: '⤢'; position: absolute; bottom: 10px; right: 10px; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; background: rgb(10 16 12 / 85%); border: 1px solid #759781; color: white; font-size: 1.25rem; opacity: 0; transition: opacity .18s ease; pointer-events: none; }
.gallery-image:hover::after, .gallery-image:focus-visible::after { opacity: 1; }
.interest-gallery { position: relative; }
.interest-gallery .gallery-toolbar { position: absolute; bottom: 9px; right: 9px; z-index: 2; display: flex; gap: 7px; padding: 0; }
.interest-gallery .gallery-count, .interest-gallery .gallery-autoplay { padding: 3px 7px; border: 1px solid #526057; background: rgb(10 16 12 / 85%); color: var(--text); font-size: .6rem; }
.interest-gallery .gallery-stage { display: block; }
.interest-gallery .gallery-arrow { position: absolute; width: 32px; height: 38px; top: 50%; font-size: 1.7rem; padding: 0; }
.interest-gallery .gallery-arrow-prev { left: 7px; }
.interest-gallery .gallery-arrow-next { right: 7px; }
.interest-gallery .gallery-image::after { top: 10px; bottom: auto; }
.app-gallery .gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-gallery .gallery-caption-wrap { flex: 1; text-align: left; }
@media (hover: none) { .shelf-image::after, .shelf-pause, .gallery-image::after { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .shelf-image[data-carousel] img, .shelf-image::after, .gallery-image::after { transition: none; } .shelf-card:hover .shelf-image img { transform: none; } }
@media (max-width: 660px) {
  .project-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
  .project-dialog-header { padding: 14px 16px; }
  .project-dialog-header h2 { font-size: .92rem; }
  .project-detail .project-copy { padding: 18px; }
  .project-detail .app-gallery { padding: 10px; }
}
