/* Shared room art, fluid exhibits, and three navigable gallery pages. */
html:has(.gallery-page) { background: #10101c; }
.gallery-page { min-height: 100svh; overflow: hidden; }
.gallery-page::before { display: none; }
.gallery-header { position: fixed; z-index: 3; inset: 0 0 auto; display: flex; justify-content: center; align-items: center; gap: 24px; min-height: 96px; padding: 18px 4%; background: linear-gradient(#080a16bf, transparent); pointer-events: none; }
.gallery-header > * { pointer-events: auto; }
.gallery-nav { display: flex; align-items: center; padding: 5px 8px; border: 1px solid #a7d6e438; border-radius: 40px; background: linear-gradient(120deg, #191a2cee, #111a29e8); box-shadow: inset 0 1px 0 #ffffff0c, 0 10px 34px #0309193b; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.gallery-zones { display: flex; }
.gallery-nav button { position: relative; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 30px; background: none; font-size: 14px; font-weight: 600; color: #c7cadb; }
.gallery-nav [aria-pressed='true'] { color: #effcff; }
.gallery-nav [aria-pressed='true']::after { content: ''; position: absolute; bottom: 2px; width: 26px; height: 2px; left: calc(50% - 13px); background: #9bedff; box-shadow: 0 0 10px #67d8fa; }
.gallery-nav #gallery-books-tab[aria-pressed='true']::after { background: #ffd0e8; box-shadow: 0 0 10px #dd8fca; }
.gallery-nav button:hover { color: white; background: #ffffff07; }
.gallery-nav .room-nav-number { margin-right: 6px; color: #91a5b5; font-size: 10px; font-weight: 400; }
.gallery-nav [aria-pressed='true'] .room-nav-number { color: #9bedff; }
.gallery-viewport { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #91d9e866 transparent; }
.gallery-stage { position: relative; isolation: isolate; min-height: var(--stage-height, 100svh); overflow: hidden; }
.room-backdrop { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; background: #11111e; }
.room-picture { position: absolute; top: var(--scene-offset, 0); left: 50%; width: var(--scene-width, 100%); transform: translateX(-50%); }
.room-art { display: block; width: 100%; height: auto; user-select: none; }
.products-room, #hobby-room, .about-room { position: absolute; top: var(--wall-top); left: 50%; width: var(--wall-width); transform: translateX(-50%); }
.gallery-stage > .room-inactive { visibility: hidden; pointer-events: none; }
#hobby-room { top: var(--shelf-top); }
.about-room { top: var(--banner-top); }
.wall-skills { position: absolute; top: var(--skills-top); left: 50%; width: var(--wall-width); transform: translateX(-50%); display: flex; align-items: center; padding: 7px 6px 7px 12px; border: 1px solid #a7d6e43d; border-radius: 3px; background: linear-gradient(110deg, #26202ee8, #131c29ed); box-shadow: 1px 3px 3px #0008, inset 0 1px #ffffff12; }
.skills-window { min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
.skills-window::-webkit-scrollbar { display: none; }
.skills-track { display: flex; width: max-content; animation: wall-skills-drift 65s linear infinite; }
.wall-skills-list { display: flex; flex-shrink: 0; gap: 24px; margin: 0; padding: 0 24px 0 0; list-style: none; }
.wall-skills-list li { display: grid; justify-items: center; gap: 4px; min-width: 58px; color: #eeeaf5; font-size: 10px; line-height: 1.2; }
.wall-skills-list img { width: 30px; height: 30px; object-fit: contain; }
.wall-skills-list .skill-wordmark { width: 54px; filter: brightness(1.7); }
.wall-skills-list .skill-monochrome { filter: brightness(0) invert(1); }
.wall-skills-list .skill-inverted { filter: invert(1); }
.skills-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; margin-left: 4px; border: 0; border-left: 1px solid #a7d6e426; border-radius: 0; background: none; color: #9bedff; font-size: 17px; }
.wall-skills.is-paused .skills-track, .skills-window:hover .skills-track, .skills-window:focus-within .skills-track { animation-play-state: paused; }
@keyframes wall-skills-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .skills-track { animation: none; }
  .skills-track > [aria-hidden='true'], .skills-toggle { display: none; }
}
.project-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.products-room .github-activity { width: 100%; margin: 0 0 18px; padding: 12px 20px; border-radius: 3px; background: linear-gradient(120deg, #242033f5, #13212bf5); box-shadow: 1px 3px 4px #0008; }
.products-room .activity-header { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.products-room .activity-header h2 { font-size: 22px; }
.products-room .activity-header p { margin-top: 5px; font-size: 12px; line-height: 1.4; min-height: 1.4em; }
/* Reserve the chart while it loads so live activity cannot move the camera. */
.products-room .activity-calendar { display: block; height: auto; aspect-ratio: 400 / 124; max-width: 420px; min-height: 93px; margin: 0 auto; padding-bottom: 0; }
.products-room .activity-calendar[hidden] { display: block !important; visibility: hidden; }
.products-room .activity-calendar svg { min-width: 300px; max-width: 420px; }
.products-room .activity-period { font-size: 10px; }
.products-room #github-activity-range { line-height: 1.4; min-height: 1.4em; }
.products-room .activity-footer { margin-top: 4px; gap: 8px; font-size: 10px; }
.products-room #github-activity-note { display: none; }
.wall-frame { --frame-glow: #ffac92; position: relative; display: flex; flex-direction: column; width: 100%; height: var(--frame-height); min-width: 0; padding: 0; border: 3px solid #35323b; border-radius: 3px; background: #14111a; box-shadow: 0 0 0 1px #d7b7a877, inset 0 0 0 1px #ffffff22, 1px 3px 3px #0009; text-align: left; transition: border-color .2s; }
.wall-frame::before { content: ''; position: absolute; top: -10px; left: 24%; right: 24%; height: 7px; border-left: 2px solid #27232c; border-right: 2px solid #27232c; box-shadow: 1px 0 1px #ffffff22; }
.wall-frame:nth-child(3n + 2) { --frame-glow: #87eaff; }
.wall-frame:nth-child(3n) { --frame-glow: #f5a5e1; }
.wall-frame:hover, .wall-frame:focus-visible { border-color: #7c8a9a; }
.wall-frame:focus-visible, .table-book:focus-visible { outline: 2px solid #a9efff; outline-offset: 3px; }
.frame-art { min-height: 0; flex: 1; display: flex; align-items: flex-start; padding: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--frame-glow) 17%, transparent), transparent 85%); }
.frame-image { display: block; width: auto; max-width: 100%; height: 100%; max-height: 64px; object-fit: contain; object-position: left top; }
.wall-frame[data-brand='ProsPix'] .frame-image { filter: invert(1); }
.wall-frame[data-brand='LuxShades Workspace'] .frame-image { width: 140px; filter: brightness(1.6); }
.wall-frame[data-brand='AdaBudget'] .frame-image { border-radius: 9px; }
.wall-frame .product-mark { width: auto; height: 100%; max-height: 64px; aspect-ratio: 1; font-size: 30px; }
.wall-frame[data-brand='AdaHome'] .product-mark { font-size: 32px; }
.wall-frame[data-brand='AdaPay'] .product-mark { width: auto; max-width: 100%; aspect-ratio: auto; align-self: flex-start; justify-content: flex-start; font-size: clamp(16px, 2vw, 30px); }
.frame-caption { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 10px; border-top: 1px solid #ffffff18; background: #090c17; color: #fff; font: 600 clamp(16px, 1.5vw, 22px)/1.25 var(--heading); }
.frame-number { color: var(--frame-glow); font-size: 10px; font-weight: 500; }
.frame-title { min-width: 0; overflow-wrap: anywhere; }
.hobby-room-intro { text-align: center; color: #fbeafa; text-shadow: 0 1px 2px #000a; }
.room-eyebrow { color: #e7b8d8; font: 500 9px/1.4 var(--heading); letter-spacing: 2px; }
.hobby-room-intro h2 { margin: 4px 0; font: 600 clamp(24px, 2.6vw, 36px)/1.1 var(--heading); letter-spacing: -1px; }
.hobby-room-intro h2 span { color: #8eebf7; }
.hobby-room-intro > p:last-child { font: 400 14px/1.4 var(--heading); color: #e8d5e4; }
.wall-shelf { position: relative; margin-top: 14px; }
.book-table { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 12px; }
.shelf-edge { position: absolute; z-index: 2; left: 0; right: 0; top: var(--book-size); height: 9px; border: 1px solid #779bab; border-top: 2px solid #bbdce6; border-radius: 1px; background: linear-gradient(#384553, #151a24); box-shadow: 0 4px 3px #0009; pointer-events: none; }
.shelf-edge::before, .shelf-edge::after { content: ''; position: absolute; top: 8px; width: 12px; height: 18px; background: linear-gradient(90deg, #121521, #4b4a50, #131522); clip-path: polygon(0 0,100% 0,100% 100%,65% 100%); }
.shelf-edge::before { left: 2%; }
.shelf-edge::after { right: 2%; }
.table-book { --book-turn: -3deg; position: relative; display: grid; grid-template-rows: var(--book-size) 34px; justify-items: center; align-items: end; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: white; }
.book-object { position: relative; z-index: 1; display: block; width: min(100%, calc(var(--book-size) * var(--cover-ratio, .75))); aspect-ratio: var(--cover-ratio, .75); pointer-events: none; transform: perspective(1000px) rotateY(var(--book-turn)); transform-style: preserve-3d; filter: drop-shadow(3px 2px 2px #000b); }
.table-book:nth-child(2) { --book-turn: 0deg; }
.table-book:nth-child(3) { --book-turn: 3deg; }
.book-object::before { content: ''; position: absolute; inset: 3px -5px 0 4px; background: repeating-linear-gradient(#e7dcc9 0 1px, #ada398 1px 2px); border-radius: 2px; transform: translateZ(-2px); }
.book-cover { position: absolute; inset: 0; border-radius: 1px 3px 3px 1px; overflow: hidden; background: #1b1723; }
.book-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0007, #fff4 3%, transparent 8%); pointer-events: none; }
.book-cover img { display: block; width: 100%; height: 100%; object-fit: contain; max-height: none; }
.table-book:hover .book-cover { filter: brightness(1.08); }
.book-label { z-index: 1; align-self: end; display: block; width: 100%; padding: 4px 0 0; color: #fff; font: 500 clamp(11px, 1vw, 14px)/1.3 var(--heading); text-align: center; text-shadow: 0 1px 3px #000; }
.shelf-controls { display: none; }
.about-banner { position: relative; display: flex; flex-direction: column; max-width: none; margin: 0 auto; padding: 24px 28px; background: radial-gradient(ellipse at 100% 0, #72e1f510, transparent 65%), linear-gradient(110deg, #292432, #202330 60%, #1b2532); border: 1px solid #afbfc650; border-radius: 1px; box-shadow: 1px 3px 4px #0008, inset 0 0 32px #0002; }
.about-banner::before, .about-banner::after { content: ''; position: absolute; left: -7px; right: -7px; height: 6px; border: 1px solid #a1b4bd66; border-radius: 3px; background: linear-gradient(#7d8790, #282c37 60%, #0b101b); box-shadow: 0 2px 2px #0008; }
.about-banner::before { top: -5px; }
.about-banner::after { bottom: -5px; }
.about-banner > .room-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; margin-bottom: 12px; }
.profile-page-content { min-height: 0; display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: auto auto; column-gap: 28px; align-items: center; }
.banner-identity { display: flex; align-items: center; gap: 16px; }
.profile-page-content .portrait-ring { flex: 0 0 auto; width: 90px; height: 90px; padding: 3px; margin: 0; box-shadow: none; }
.profile-page-content .portrait { width: 82px; height: 82px; }
.profile-page-content h1 { font: 600 clamp(23px, 2.6vw, 38px)/1.1 var(--heading); letter-spacing: -1px; }
.profile-page-content h1 span { color: var(--cyan); }
.profile-page-content .hero-role { margin-top: 10px; font-size: 14px; }
.profile-page-content .hero-bio { margin: 0; font-size: 16px; line-height: 1.6; color: #e8e5ef; text-wrap: pretty; }
.profile-page-content .hero-bio p + p { margin-top: 10px; }
.profile-page-content .bio-personal { font-size: .9em; color: #bebbcf; }
.profile-page-content .social-links { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; gap: 22px; margin-top: 12px; padding-top: 6px; border-top: 1px solid #b8c5db24; }
.profile-page-content .social-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; }
.gallery-loading { position: fixed; top: 45%; left: 50%; transform: translateX(-50%); z-index: 4; width: max-content; max-width: 80%; padding: 20px; border: 1px solid #fff4; border-radius: 18px; background: #171626e6; text-align: center; font-size: 14px; }
.gallery-loading a { text-decoration: underline; }
dialog.hero-card { position: fixed; inset: 0; margin: auto; max-width: calc(100% - 32px); max-height: calc(100svh - 32px); overflow-y: auto; color: var(--ink); background: radial-gradient(ellipse at 100% 0, #71e5ff21, transparent 60%), linear-gradient(135deg, #352436d9, #111524ed); box-shadow: -12px 0 50px #fd4c8e15, 12px 0 50px #22d4f215, 0 30px 100px #0008; scrollbar-width: thin; scrollbar-color: #ffffff50 transparent; }
dialog.hero-card:not([open]) { display: none; }
dialog::backdrop { background: #04061172; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.work-dialog { width: 560px; padding: 54px 42px 34px; }
.dialog-close { position: absolute; right: 17px; top: 17px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid transparent; border-radius: 50%; color: #e5f7ff; background: #ffffff05; }
.dialog-close:hover { background: #ffffff13; border-color: #ffffff38; }
.dialog-art { height: 110px; margin: 8px auto 22px; display: flex; justify-content: center; align-items: center; }
.dialog-art img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px #0004); }
.work-dialog[data-brand='AdaBudget'] .dialog-art img { border-radius: 23px; }
.work-dialog[data-brand='ProsPix'] .dialog-art img { filter: invert(1); }
.work-dialog[data-brand='LuxShades Workspace'] .dialog-art img { max-width: 210px; }
.work-dialog[data-kind='screen'] .dialog-art { height: 220px; }
.work-dialog[data-kind='book'] { width: 620px; }
.work-dialog[data-kind='book'] .dialog-art { height: 280px; }
.dialog-category { margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--cyan); }
.work-dialog[data-kind='book'] .dialog-category { color: var(--pink); }
.work-dialog h2 { font-size: 35px; line-height: 1.16; letter-spacing: -1px; }
.dialog-description { margin: 24px auto 0; max-width: 420px; font-size: 15px; line-height: 1.8; color: #ddd8e8; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.dialog-actions .button { margin-top: 0; gap: 24px; }

.dialog-art .product-mark { width: 100px; height: 106px; font-size: 78px; }
.work-dialog[data-brand='AdaHome'] .product-mark::after { bottom: 9px; width: 31px; height: 4px; }
.work-dialog[data-brand='AdaPay'] .product-mark { width: auto; height: auto; font-size: 48px; }
.gallery-page.dialog-open .gallery-viewport { overflow: hidden; }
@media (min-width: 1101px) {
  .about-banner:has(.bio-photos) { max-width: none; padding: 28px 32px; }
  .profile-page-content:has(.bio-photos) { grid-template-columns: 190px minmax(0, 1fr); column-gap: 24px; }
  .profile-page-content:has(.bio-photos) .banner-identity { flex-direction: column; align-items: flex-start; gap: 12px; }
  .profile-page-content:has(.bio-photos) h1 { font-size: 32px; }
  .profile-page-content:has(.bio-photos) .hero-role { margin-top: 6px; font-size: 13px; }
  .profile-page-content:has(.bio-photos) .social-links { margin-top: 6px; }
  .profile-page-content .bio-photos { max-width: 144px; }
  .profile-page-content .bio-photos figcaption { font-size: 10px; }
}
@media (max-width: 1100px) {
  .gallery-header { gap: 12px; padding-inline: 24px; }
  .gallery-nav button { padding-inline: 16px; }
  .frame-number { display: none; }
  .frame-art { padding: 9px; }
  .frame-caption { padding: 7px; font-size: 14px; }
  .about-banner { padding: 16px 20px; }
  .profile-page-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .profile-page-content .portrait-ring { width: 58px; height: 58px; padding: 2px; }
  .profile-page-content .portrait { width: 52px; height: 52px; }
  .profile-page-content .hero-role { margin-top: 4px; font-size: 13px; }
  .profile-page-content .hero-bio { margin-top: 12px; font-size: 15px; line-height: 1.5; }
  .profile-page-content .social-links { justify-content: flex-start; margin-top: 6px; }
}
@media (max-width: 760px) {
  .gallery-header { min-height: 0; padding: 14px 18px; align-items: center; flex-wrap: wrap; gap: 12px; }
  .gallery-nav { order: 2; width: 100%; justify-content: center; padding: 4px; }
  .gallery-nav .room-nav-number { display: inline; margin-right: 3px; font-size: 9px; }
  .gallery-nav button { padding: 10px 12px; font-size: 13px; }
  .project-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .frame-art { padding: 9px; }
  .frame-image, .wall-frame .product-mark { max-height: 52px; }
  .products-room .github-activity { padding: 12px; margin-bottom: 18px; }
  .products-room .activity-header h2 { font-size: 17px; }
  .products-room .activity-header p { font-size: 10px; min-height: 2.8em; }
  .products-room #github-activity-range { min-height: 2.8em; }
  .products-room .activity-period { max-width: 106px; font-size: 9px; }
  .products-room .activity-period > span:first-child { font-size: 10px; }
  .products-room .activity-legend { gap: 2px; }
  .products-room .activity-legend i { width: 7px; height: 7px; }
  .products-room .activity-footer { font-size: 9px; }
  .wall-frame[data-brand='AdaHome'] .product-mark { font-size: 27px; }
  .wall-frame[data-brand='AdaPay'] .product-mark { font-size: clamp(15px, 3.5vw, 22px); }
  .frame-caption { min-height: 34px; padding: 7px 5px; font-size: 14px; }
  .book-table { display: flex; gap: 0; padding: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .book-table::-webkit-scrollbar { display: none; }
  .table-book { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; padding-inline: 14px; grid-template-rows: var(--book-size) 34px; }
  .book-label { font-size: 13px; }
  .shelf-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 8px; color: #d5d4e0; font-size: 11px; }
  .shelf-controls button { width: 36px; height: 30px; border: 1px solid #a9bec64d; border-radius: 2px; background: #242434; color: #e6f7ff; font-size: 20px; }
  .about-banner { padding: 18px; }
  .about-banner > .room-eyebrow { font-size: 9px; }
  .banner-identity { gap: 10px; }
  .profile-page-content .hero-bio { margin-top: 14px; font-size: 14px; line-height: 1.5; }
  .profile-page-content .social-links { gap: 14px; }
  .profile-page-content .social-links a { font-size: 12px; }
  .work-dialog { padding: 56px 24px 28px; }
  .work-dialog h2 { font-size: 29px; }
  .dialog-description { font-size: 14px; }
  .work-dialog[data-kind='book'] .dialog-art, .work-dialog[data-kind='screen'] .dialog-art { height: 190px; }
}
@media (max-width: 360px) {
  .gallery-header { padding-inline: 14px; }
  .gallery-nav button { padding-inline: 10px; font-size: 12px; }
  .frame-art { padding: 7px; }
  .frame-caption { min-height: 30px; font-size: 12px; }
  .about-banner { padding: 10px; }
  .about-banner > .room-eyebrow { margin-bottom: 8px; }
  .profile-page-content .portrait-ring { width: 44px; height: 44px; }
  .profile-page-content .portrait { width: 38px; height: 38px; }
  .profile-page-content h1 { font-size: 21px; }
  .profile-page-content .hero-role { font-size: 11px; }
  .profile-page-content .hero-bio { font-size: 12px; margin-top: 8px; }
  .profile-page-content .social-links { gap: 10px; }
  .profile-page-content .social-links a { font-size: 11px; min-height: 32px; }
  .hobby-room-intro > p:last-child { font-size: 12px; }
}
@media (max-height: 600px) and (min-width: 761px) { .gallery-header { min-height: 80px; padding-block: 10px; } }
@media (prefers-reduced-motion: reduce) { .gallery-page *, .gallery-page *::before, .gallery-page *::after { animation: none !important; transition: none !important; } }
