/* Compact retro edition. Original blue-grey palette and Space Mono identity. */
.personal-edition {
  --ink: #1b2738; --paper: #edf2f6; --panel: #dae4ef; --accent: #b4d4ff;
  --rule: #65758a; --shadow: #7a8da5;
  color: var(--ink); padding: 1.5rem 0 7rem;
  background-color: #8b9bb1;
  background-image: radial-gradient(#63738a 1px,transparent 1px), var(--background-color);
  background-size: 6px 6px, cover;
  height: auto;
}
.personal-edition.dark-theme {
  --ink: #edf2ff; --paper: #222936; --panel: #2d3748;
  --accent: #344e70; --rule: #889ab2; --shadow: #111824;
}
.personal-edition main {
  display: block; width: min(58rem,calc(100% - 2rem)); margin: 0 auto;
  background: var(--paper); border: 2px solid var(--ink); border-top: 0;
  box-shadow: 6px 6px 0 var(--shadow); overflow: clip;
}
.personal-edition .app-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: .5rem; position: sticky; top: 0; z-index: 110;
  width: min(58rem,calc(100% - 2rem)); min-height: 3.5rem; margin: auto;
  padding: .55rem 1rem; background: var(--panel); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: inset 0 2px 0 rgba(255,255,255,.5);
}
.app-brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-size: .875rem; font-weight: 700; }
.app-brand img { width: 3.5rem; height: 2.75rem; object-fit: contain; filter: contrast(1.15) drop-shadow(.35px 0 0 currentColor) drop-shadow(-.35px 0 0 currentColor); }
.app-extension { font-weight: 400; }
.personal-edition .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; padding: .4rem .6rem; font: inherit; font-size: .875rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--ink);
  border-radius: 3px; cursor: pointer; box-shadow: 2px 2px 0 var(--shadow);
}
.personal-edition .theme-toggle:hover { transform: none; }
.personal-edition .theme-toggle:active { transform: translate(2px,2px); box-shadow: none; }
.personal-edition :is(a,button,summary):focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip-link { position: fixed; top: -10rem; left: 1rem; z-index: 200; padding: 1rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.personal-edition .portfolio-section,
.personal-edition :is(#home,#projects,#experience,#about,#credentials,#contact) {
  width: 100%; max-width: none; margin: 0; padding: 1.5rem;
  scroll-margin-top: 4rem; border-radius: 0; min-height: 0;
}
.personal-edition :is(#projects,#experience,#about,#credentials,#contact) { border-top: 1px solid var(--rule); }
.personal-edition p, .personal-edition li { font-size: 1rem; line-height: 1.55; }
.personal-edition .chapter { margin: 0 0 .6rem; font-size: .75rem; line-height: 1.5; letter-spacing: .035em; color: var(--ink); }
.personal-edition .section-heading { margin-bottom: 1.2rem; }
.personal-edition .section-heading h2 { font-size: clamp(1.5rem,4vw,2rem); line-height: 1.25; letter-spacing: -.055em; font-weight: 700; }
.personal-edition em { font-family: "space_monoitalic",monospace; }
.personal-edition #home { padding-top: 1rem; }
.personal-edition .intro-content {
  display: grid; grid-template-columns: minmax(0,1fr) 7rem; gap: 1rem;
  align-items: center; padding: .75rem 0; margin: 0; max-width: none;
}
.personal-edition .intro-message { min-width: 0; max-width: none; margin: 0; }
.personal-edition .intro-message .eyebrow { font-size: .875rem; }
.personal-edition .intro-message h1 { color: var(--ink); font-size: clamp(1.8rem,5vw,2.8rem); line-height: 1.15; letter-spacing: -.065em; margin: .65rem 0; }
.personal-edition .intro-message p { font-size: 1rem; color: var(--ink); letter-spacing: 0; }
.personal-edition .portrait-frame { margin: 0; align-self: start; }
.personal-edition .portrait-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--shadow); }
.personal-edition figcaption { font-size: .75rem; line-height: 1.5; margin-top: .6rem; }
.personal-edition .intro-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.personal-edition :is(.intro-links a,.text-link) { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .7rem; color: var(--ink); background: var(--accent); border: 1px solid var(--ink); border-radius: 3px; box-shadow: 2px 2px 0 var(--shadow); font-size: .875rem; text-decoration: none; }
.personal-edition :is(.intro-links a,.text-link):hover { background: var(--panel); }
.personal-edition .opening-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px dashed var(--rule); padding-top: .8rem; margin-top: .6rem; font-size: .75rem; }
.personal-edition .opening-foot a { color: var(--ink); font-size: .875rem; }
.personal-edition .projects::before { display: none; }
.screening-list { --project-preview-ratio: 1 / 1; display: grid; grid-auto-rows: 1fr; gap: 1rem; }
.screening { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 1rem; border: 1px solid var(--ink); background: var(--panel); padding: .75rem; border-radius: 4px; box-shadow: 3px 3px 0 var(--shadow); }
.screening-media { min-width: 0; align-self: start; overflow: hidden; border: 1px solid var(--ink); padding: 0; }
.screening-media video { display: block; width: 100%; height: auto; aspect-ratio: var(--project-preview-ratio); object-fit: cover; object-position: center; }
.screening-caption { min-width: 0; }
.screening-caption h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.screening-caption .project-stack { display: block; margin: .65rem 0; font-size: .75rem; line-height: 1.5; }
.screening-caption .project-detail { margin-top: .5rem; }
.screening-caption .text-link { background: var(--paper); margin-top: .5rem; }
.experience-list { border: 1px solid var(--ink); border-radius: 4px; background: var(--panel); }
.experience-row { padding: 0; border-bottom: 1px solid var(--rule); }
.experience-row:last-child { border-bottom: 0; }
.personal-edition summary { cursor: pointer; font-size: 1rem; line-height: 1.5; padding: .8rem; min-height: 2.75rem; }
.personal-edition summary:hover { background: var(--accent); }
.experience-row summary::marker { font-size: .875rem; }
.career-heading { display: inline; }
.career-heading strong { font-size: 1rem; }
.career-heading .role-name { display: block; margin: .3rem 0 0 1.2rem; font-size: .875rem; }
.experience-row .role-meta { display: block; margin: .5rem 0 0 1.2rem; font-size: .75rem; }
.experience-row .role-meta span { display: inline; margin-left: .75rem; }
.experience-row ul { padding: 0 1rem 1rem 2.2rem; }
.experience-row li + li { margin-top: .6rem; }
.personal-layout { display: grid; grid-template-columns: 6rem minmax(0,1fr); gap: 1rem; }
.personal-photo { margin: 0; }
.personal-photo img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--ink); border-radius: 4px; }
.personal-copy p + p { margin-top: .7rem; }
.personal-edition #skills.Skills { display: block; width: 100%; padding: 0; margin: 1rem 0 0; }
.tool-drawer { border: 1px solid var(--ink); background: var(--panel); border-radius: 3px; }
.tool-drawer summary span, .demo-drawer summary span { font-size: .75rem; margin-left: .5rem; }
.personal-edition .mySkills { width: 100%; max-width: none; margin: 0; padding: 1rem .75rem; background: transparent; }
.personal-edition .Skills ul { width: 100%; max-width: none; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem .5rem; margin: 0; }
.personal-edition .Skills ul li img { width: 1.5rem; height: 1.5rem; }
.personal-edition .Skills ul li span { font-size: .875rem; color: var(--ink); }
.credentials-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
.column-label { font-size: .875rem; margin-bottom: .8rem; }
.credential { border-top: 1px solid var(--rule); padding: .8rem 0; }
.credential h4 { font-size: 1rem; margin-bottom: .35rem; }
.credential .chapter { margin-bottom: .35rem; }
.certification { padding: .8rem; background: var(--accent); border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--shadow); margin-bottom: 1rem; }
.personal-edition .credential-note { font-size: .875rem; }
.learning { border-top: 1px solid var(--rule); }
.learning summary { padding-left: 0; }
.learning summary span { display: block; font-size: .75rem; margin-left: 1.2rem; }
.learning ul { padding: 0 .5rem 1rem 1.2rem; }
.learning li + li { margin-top: .5rem; }
.personal-edition #contact { display: block; }
.personal-edition .Contact-me { max-width: none; text-align: left; }
.personal-edition .contact h2 { font-size: 1.65rem; text-align: left; color: var(--ink); margin-bottom: .5rem; }
.personal-edition .contact p { color: var(--ink); text-align: left; letter-spacing: 0; max-width: none; }
.personal-edition .Contact-me ul { justify-content: flex-start; gap: 1rem; margin: 1rem 0; }
.personal-edition .Contact-me ul a { display: flex; padding: .7rem; border: 1px solid var(--ink); background: var(--accent); box-shadow: 2px 2px 0 var(--shadow); }
.personal-edition .con-form { width: 100%; max-width: none; }
.personal-edition .con-form::before { display: none; }
.demo-drawer { border: 1px solid var(--rule); padding: 0 .5rem; }
.personal-edition .form-note { font-size: .875rem; padding: .75rem 0; }
.form-note a { color: inherit; }
.personal-edition .form-info :is(input,textarea) { font-size: 1rem; color: var(--ink); border-color: var(--rule); width: 100%; border-radius: 2px; }
.personal-edition .form-info label { color: var(--ink); }
.personal-edition .form-actions { margin-bottom: 1rem; }
.personal-edition footer { padding: 1.5rem 1rem; gap: .4rem; }
.personal-edition footer p { color: var(--ink); font-size: .75rem; }
.personal-edition nav.app-dock {
  position: fixed; top: auto; bottom: max(.75rem,env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%); width: min(32rem,calc(100% - 1rem)); height: auto;
  padding: .35rem; background: var(--panel); border: 2px solid var(--ink);
  border-radius: 8px; box-shadow: 4px 4px 0 var(--shadow); z-index: 120;
  visibility: visible; transition: none; display: block;
}
.personal-edition .app-dock ul { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .15rem; }
.personal-edition .app-dock li { min-width: 0; }
.personal-edition .app-dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem; padding: .4rem 0; min-height: 3.4rem;
  color: var(--ink); font-size: .875rem; letter-spacing: -.055em;
  text-transform: none; border: 1px solid transparent; border-radius: 3px; text-decoration: none;
}
.personal-edition .app-dock a > span:first-child { font-size: 1.25rem; line-height: 1; }
.personal-edition .app-dock a:hover { color: var(--ink); transform: none; background: var(--paper); }
.personal-edition .app-dock a[aria-current] { background: var(--accent); border-color: var(--ink); box-shadow: inset 1px 1px 0 var(--shadow); }
html:not(.motion-ready) [data-aos] { opacity: 1 !important; transform: none !important; }
@media (max-width: 36em) {
  .personal-edition { padding: 0 0 6rem; }
  .personal-edition main, .personal-edition .app-bar { width: 100%; box-shadow: none; border-left: 0; border-right: 0; }
  .personal-edition .app-bar { border-top: 0; padding: .4rem .75rem; }
  .personal-edition .app-extension { display: none; }
  .personal-edition .portfolio-section,
  .personal-edition :is(#home,#projects,#experience,#about,#credentials,#contact) { padding: 1.1rem; }
  .personal-edition .intro-content { grid-template-columns: minmax(0,1fr) 4.5rem; gap: .65rem; }
  .personal-edition .intro-links { margin-right: -5.15rem; }
  .personal-edition .intro-message .eyebrow { font-size: .75rem; }
  .personal-edition .portrait-frame figcaption { font-size: .75rem; }
  .screening { grid-template-columns: 1fr; gap: .75rem; }
  .credentials-grid { grid-template-columns: 1fr; gap: 1rem; }
  .personal-layout { grid-template-columns: 1fr; }
  .personal-photo { display: flex; align-items: center; gap: .8rem; }
  .personal-photo img { width: 4rem; }
  .personal-edition .Skills ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .personal-edition { padding: 0; background: white; }
  .personal-edition nav.app-dock { display: none; }
  .personal-edition main { width: 100%; box-shadow: none; border: 0; }
}

/* Project constellation: real cards on a transparent modal, connected by curves. */
.work-launcher .work-index { font-size: .875rem; margin: .6rem 0 1rem; }
.explore-projects { font-family: inherit; cursor: pointer; }
.personal-edition .projects-dialog {
  width: min(84rem,calc(100% - 1rem)); max-width: none;
  max-height: calc(100dvh - 2rem); height: auto; margin: auto;
  padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
  scrollbar-color: #a7c7e8 transparent;
}
.projects-dialog::backdrop,
.room-dialog::backdrop {
  background-color: #090f1a;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(86,137,185,.27), transparent 65%),
    radial-gradient(ellipse at 12% 85%, rgba(37,91,133,.2), transparent 50%),
    radial-gradient(circle, rgba(173,210,246,.16) 1px, transparent 1.5px),
    linear-gradient(rgba(131,177,219,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131,177,219,.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px, 48px 48px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.project-modal-open { overflow: hidden; }
.project-modal-content { padding: .5rem 1.25rem 2rem; }
.project-modal-header {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  position: sticky; top: 0; z-index: 3; padding: .8rem 1rem;
  margin-bottom: 1.5rem; border: 1px solid rgba(180,212,255,.4);
  border-radius: 5px; background: rgba(21,33,49,.92); color: #edf2f6;
}
.personal-edition .project-modal-header .chapter { color: #c4dafa; margin-bottom: .35rem; }
.project-modal-header h2 { font-size: clamp(1.15rem,3vw,1.6rem); line-height: 1.3; }
.project-modal-close {
  flex: 0 0 auto; min-width: 2.75rem; min-height: 2.75rem; padding: .4rem;
  font: inherit; color: #edf2f6; border: 1px solid #b4d4ff; border-radius: 3px;
  background: #253a54; cursor: pointer;
}
.personal-edition .project-modal-close:focus-visible { outline-color: #edf2f6; }
.projects-dialog .project-tree {
  position: relative; isolation: isolate;
  grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: auto;
  column-gap: 2rem; row-gap: 4rem; padding: .5rem 1rem;
}
.projects-dialog .screening {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  align-items: center; gap: 1rem; width: 100%; max-width: 39rem; justify-self: center;
  background: var(--panel); border: 1px solid var(--rule); padding: .8rem;
  box-shadow: 0 0 0 4px rgba(165,206,248,.055), 0 18px 48px rgba(0,0,0,.4);
  border-radius: 6px;
}
.projects-dialog .screening:first-of-type { grid-column: 1 / -1; }
.projects-dialog .screening-media { width: 100%; align-self: center; border-radius: 4px; }
.projects-dialog .screening-caption { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.projects-dialog .screening-caption .chapter { margin: 0; }
.projects-dialog .screening-caption p { margin: 0; }
.projects-dialog .project-info { margin: .2rem 0; border-top: 1px solid var(--rule); }
.projects-dialog .project-info summary { padding: .5rem 0; font-size: .875rem; }
.projects-dialog .project-info .project-stack { margin: .5rem 0; }
.projects-dialog .project-info p { margin-top: .5rem; }
.projects-dialog .screening-caption .project-summary { font-size: 1rem; line-height: 1.5; }
.projects-dialog .screening-caption .text-link { align-self: flex-start; margin-top: auto; }
.projects-dialog .screening-caption .project-stack { margin-bottom: 1rem; }
.projects-dialog .screening-caption h3 { font-size: 1.35rem; }
.project-branches {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 0; color: #a9d8ff;
  filter: drop-shadow(0 0 5px rgba(115,190,255,.6));
}
.branch { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.branch-node { fill: #eefaff; stroke: #91caff; stroke-width: 2; }
.projects-dialog[open] .branch { animation: branch-appear .7s ease-out both; }
@keyframes branch-appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 60em) {
  .project-modal-content { padding: .25rem .35rem 1rem; }
  .project-modal-header { padding: .65rem; gap: .5rem; }
  .projects-dialog .project-tree { grid-template-columns: 1fr; row-gap: 3.5rem; padding: .5rem .75rem .5rem 2.25rem; }
  .projects-dialog .screening { max-width: 39rem; padding: .85rem; }
  .projects-dialog .screening:first-of-type { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .projects-dialog[open] .branch { animation: none; }
}

@media (max-width: 35em) {
  .projects-dialog .screening { grid-template-columns: 1fr; gap: .75rem; }
  .projects-dialog .screening-media { width: 100%; }
  .projects-dialog .screening-media video { aspect-ratio: 4 / 3; object-fit: cover; }
  .projects-dialog .project-tree { padding-left: 1.9rem; padding-right: .25rem; }
  .projects-dialog .screening-caption h3 { margin-bottom: .35rem; }
}

/* My room: one collection window, with a quiet listening sidebar. */
.personal-edition #room { border-top: 1px solid var(--rule); }
.personal-edition .room-intro { margin-top: .5rem; font-size: .875rem; }
.room-launcher { font-family: inherit; cursor: pointer; }
html.room-modal-open { overflow: hidden; }
.personal-edition .room-dialog {
  width: min(70rem,calc(100% - 3rem)); max-width: none;
  height: min(43rem,calc(100dvh - 3rem)); max-height: calc(100dvh - 3rem);
  margin: auto; padding: 0; border: 1px solid var(--rule); border-radius: 10px;
  color: var(--ink); background: var(--paper); overflow: hidden;
  box-shadow: 0 28px 100px #0008;
}
.room-dialog .room-cabinet { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--paper); }
.room-titlebar { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; padding: .7rem 1.25rem; border-bottom: 1px solid var(--rule); background: var(--panel); }
.room-titlebar h2 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.room-titlebar > span { font-size: 1rem; }
.room-titlebar #close-room { margin-left: auto; min-width: 2.75rem; min-height: 2.75rem; padding: .4rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; }
.room-titlebar #close-room:hover { background: var(--accent); }
.room-workspace { display: grid; grid-template-columns: minmax(0,1fr) 23rem; flex: 1; min-height: 0; }
.room-library { min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; }
.room-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .25rem; position: sticky; top: 0; z-index: 1; margin: 0; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); background: var(--paper); }
.room-tabs[hidden], .room-panel[hidden] { display: none; }
.room-tabs button { min-width: 0; min-height: 2.75rem; padding: .5rem .25rem; font: inherit; font-size: .875rem; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.room-tabs button:hover { background: var(--panel); }
.room-tabs button[aria-selected="true"] { background: var(--panel); border-color: var(--rule); font-weight: 700; box-shadow: inset 0 -2px var(--ink); }
.room-panel { padding: 1.5rem 1.25rem; }
.room-panel:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.shelf-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.shelf-heading h3 { font-size: 1rem; margin: 0; font-weight: 700; }
.shelf-heading > span { font-size: .75rem; white-space: nowrap; opacity: .75; }
.personal-edition .room-shelf { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: 1.5rem 1rem; list-style: none; margin: 0; padding: 0; }
.personal-edition .room-shelf .cover-card { display: block; min-width: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.cover-card figure { margin: 0; min-width: 0; }
.cover-art { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #fff; border: 1px solid #0002; border-radius: 3px; box-shadow: 0 3px 8px #0002; transition: transform .2s ease; }
.cover-art img { display: block; width: 100%; height: 100%; object-fit: cover; color: #182334; font-size: .875rem; }
.personal-edition .cover-card figcaption { margin: .75rem 0 0; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.room-directors { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.room-directors h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; opacity: .75; }
.personal-edition .room-directors p { font-size: .875rem; line-height: 1.8; }
.room-directors p span { opacity: .4; padding: 0 .35rem; }
.personal-edition .room-desk .room-shelf { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.personal-edition .room-desk li { display: flex; align-items: center; gap: .65rem; min-width: 0; min-height: 4.5rem; margin: 0; padding: .85rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); font-size: .875rem; line-height: 1.5; }
.shelf-number { font-size: .75rem; opacity: .6; }
.shelf-title { overflow-wrap: anywhere; }
.shelf-mark { margin-left: auto; opacity: .5; }
.room-music { min-width: 0; overflow-y: auto; scrollbar-width: thin; padding: 1.5rem 1.25rem; border-left: 1px solid var(--rule); background: var(--panel); }
.music-label { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; margin-bottom: 1.5rem; }
.personal-edition .music-label .chapter { margin: 0 0 .4rem; font-size: .75rem; opacity: .75; }
.music-label h3 { font-size: 1.35rem; line-height: 1.3; margin: 0; }
.music-label a { color: var(--ink); font-size: .875rem; padding: .25rem 0; text-underline-offset: .25rem; }
.record-console { display: flex; flex-direction: column; gap: 1.75rem; }
.record-deck { width: 100%; text-align: center; padding: .5rem 0; }
.vinyl-record { display: block; width: min(100%,12rem); height: auto; margin: auto; filter: drop-shadow(0 6px 6px #0003); animation: record-turn 6s linear infinite paused; }
.room-dialog[open] .record-console.is-playing .vinyl-record { animation-play-state: running; }
.record-caption { display: inline-block; margin-top: 1rem; font-size: .75rem; letter-spacing: .15em; opacity: .75; }
.record-controls { width: 100%; min-width: 0; }
.personal-edition .record-status { font-size: .875rem; line-height: 1.5; margin: 0 0 .75rem; }
#room-spotify-host { min-height: 152px; }
.room-music iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 8px; background: #121212; }
.personal-edition .record-note { font-size: .75rem; line-height: 1.6; opacity: .75; margin-top: .85rem; }
@keyframes record-turn { to { transform: rotate(360deg); } }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .cover-card:hover .cover-art { transform: translateY(-3px); }
}
@media (max-width: 62em) {
  .personal-edition .room-shelf { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 48em) {
  .personal-edition .room-dialog { width: calc(100% - 1rem); height: calc(100dvh - 1rem); max-height: calc(100dvh - 1rem); border-radius: 7px; }
  .room-titlebar { padding: .5rem 1rem; }
  .room-workspace { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .room-library { overflow: visible; scrollbar-gutter: auto; }
  .room-tabs { padding: .75rem 1rem; position: static; }
  .room-panel { padding: 1.25rem 1rem; }
  .personal-edition .room-shelf { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem 1rem; }
  .room-music { overflow: visible; padding: 1.25rem 1rem; border-left: 0; border-top: 1px solid var(--rule); }
  .music-label { flex-direction: row; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
  .music-label a { font-size: .75rem; }
  .record-console { display: grid; grid-template-columns: 7rem minmax(0,1fr); gap: 1rem; align-items: center; }
  .vinyl-record { width: 7rem; }
  .record-caption { font-size: .65rem; letter-spacing: .08em; }
}
@media (max-width: 30em) {
  .record-console { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .record-deck { display: flex; align-items: center; gap: 1rem; text-align: left; }
  .vinyl-record { width: 5rem; margin: 0; }
  .record-caption { margin-top: 0; font-size: .75rem; }
  .personal-edition .room-desk .room-shelf { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .vinyl-record { animation: none; } }
@media print {
  .room-tabs, .room-music iframe { display: none; }
  .room-panel[hidden] { display: block; }
  .room-workspace { display: block; }
}

/* Display only the artwork area of retailer images, preserving its proportions. */
.cover-art img[src$="cover-02.webp"] { position: absolute; max-width: none; width: 104.8649%; height: 108.1081%; left: -2.4324%; top: -4.0541%; }
.cover-art img[src$="cover-05.webp"] { position: absolute; max-width: none; width: 150.3759%; height: 100.2506%; left: -25.1880%; top: -0.1253%; }
.cover-art img[src$="cover-06.webp"] { position: absolute; max-width: none; width: 156.8627%; height: 104.5752%; left: -28.6275%; top: -2.2876%; }
.cover-art img[src$="cover-07.webp"] { position: absolute; max-width: none; width: 239.0438%; height: 119.5219%; left: -69.7211%; top: -9.6282%; }
.cover-art img[src$="cover-08.webp"] { position: absolute; max-width: none; width: 165.4412%; height: 110.2941%; left: -31.7555%; top: -4.9632%; }
.cover-art img[src$="cover-09.webp"] { position: absolute; max-width: none; width: 150.0000%; height: 100.0000%; left: -25.1250%; top: 0.0000%; }
.cover-art img[src$="cover-10.webp"] { position: absolute; max-width: none; width: 150.0000%; height: 100.0000%; left: -25.0000%; top: 0.0000%; }

/* Music lives in a slim upper row of the portfolio dock. */
.personal-edition.music-docked { padding-bottom: 10rem; }
.floating-music {
  display: flex; align-items: center; gap: .5rem; padding: .35rem .35rem .6rem;
  margin-bottom: .3rem; color: var(--ink); border-bottom: 1px solid var(--rule);
}
.floating-music[hidden], html.project-modal-open .floating-music { display: none; }
.floating-music-icon { display: flex; align-items: center; justify-content: center; width: 2rem; flex-shrink: 0; font-size: 1.35rem; }
.floating-music button { flex-shrink: 0; min-height: 2.75rem; padding: .45rem .55rem; font: inherit; font-size: .875rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; cursor: pointer; }
.floating-music button:hover { background: var(--accent); }
.floating-music .floating-music-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; gap: .15rem; padding: .25rem; text-align: left; border: 0; background: transparent; }
.floating-music-copy strong { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.floating-music-copy span { font-size: .75rem; }
.floating-music #floating-music-stop { min-width: 2.75rem; padding: .4rem; font-size: 1.25rem; background: transparent; border-color: transparent; }
.floating-music #floating-music-stop:hover { background: var(--paper); border-color: var(--rule); }
@media (max-width: 25em) {
  .floating-music { gap: .25rem; padding-left: 0; padding-right: 0; }
  .floating-music-icon { display: none; }
  .floating-music-copy strong { font-size: .75rem; }
  .floating-music button { padding-left: .4rem; padding-right: .4rem; }
}
@media print { .floating-music { display: none; } }

/* Reserve the full row for Spotify on smaller screens so its controls cannot be clipped. */
#room-spotify-host, #room-spotify-host > * { width: 100%; min-width: 0; max-width: 100%; }
.room-music iframe { box-sizing: border-box; min-width: 0; max-width: 100%; }
@media (max-width: 48em) {
  .record-console { grid-template-columns: minmax(0,1fr); }
  .record-deck { display: flex; align-items: center; gap: 1rem; text-align: left; }
  .vinyl-record { margin: 0; }
  .record-caption { margin-top: 0; }
}
@media (max-width: 25em) {
  .room-music { padding-left: .5rem; padding-right: .5rem; }
}

/* A physical record texture with live album artwork and a playback tonearm. */
.record-deck { display: block; padding: 0; text-align: center; }
.turntable {
  position: relative; width: min(100%,20rem); aspect-ratio: 1.12; margin: auto;
  border: 1px solid var(--rule); border-radius: 8px;
  background: linear-gradient(145deg,var(--paper),var(--panel));
  box-shadow: inset 0 1px 0 #ffffff60, 0 5px 0 var(--shadow), 0 10px 20px #0002;
}
.turntable .vinyl-record {
  position: absolute; left: 5%; top: 10%; width: 77%; aspect-ratio: 1; height: auto;
  margin: 0; border-radius: 50%; overflow: hidden; background: #0b1017;
  filter: none; box-shadow: 0 2px 0 #000,0 6px 12px #0007;
  animation: record-turn 8s linear infinite paused;
}
.vinyl-texture { display: block; width: 100%; height: 100%; border-radius: 50%; }
.record-label {
  position: absolute; inset: 33%; display: grid; place-items: center;
  overflow: hidden; border-radius: 50%; background: #52667e; color: #eaf2fb;
  box-shadow: 0 0 0 1px #0009; text-align: center;
}
.record-label span { font-size: .6rem; line-height: 1.6; letter-spacing: .12em; }
.record-label img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.record-label img[hidden] { display: none; }
.record-spindle {
  position: absolute; width: 3%; height: 3%; left: 48.5%; top: 48.5%; border-radius: 50%;
  background: #bdcddb; border: 1px solid #0c1520; box-shadow: 0 1px 3px #0008;
}
.tonearm {
  position: absolute; right: 3%; top: 5%; width: 19%; height: 80%; padding: 0;
  color: inherit; border: 0; background: transparent; cursor: pointer;
  transform-origin: 50% 10%; transform: rotate(-5deg);
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(2px 4px 2px #0004);
}
.tonearm svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tonearm:disabled { cursor: default; opacity: .65; }
.record-console.needle-down .tonearm { transform: rotate(24deg); }
.record-deck .record-caption { display: block; margin-top: 1rem; font-size: .75rem; }
@media (max-width: 48em) {
  .record-deck { display: block; text-align: center; }
  .turntable { width: min(100%,16rem); }
}
@media (prefers-reduced-motion: reduce) {
  .turntable .vinyl-record { animation: none; }
  .tonearm { transition: none; }
}
