:root {
  color-scheme: dark;
  --bg: #151619;
  --surface: #1c1e22;
  --line: #383b42;
  --text: #f1f0eb;
  --muted: #b6b8bf;
  --accent: #eec782;
  --width: 1380px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.5 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: var(--width); width: calc(100% - clamp(2rem, 9vw, 9rem)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .75rem; background: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1.25rem; min-height: 4.5rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; white-space: nowrap; font-weight: 700; letter-spacing: -.025em; }
.mark { width: 1.65rem; height: 1.65rem; object-fit: contain; }
.tabs { display: flex; gap: .28rem; max-width: 100%; overflow-x: auto; padding: .4rem .25rem; }
.tabs a, .chip { white-space: nowrap; padding: .48rem .75rem; border: 1px solid transparent; border-radius: 4px; font-size: .875rem; }
.tabs a[aria-current] { border-color: var(--accent); color: var(--accent); }
[data-artist="slic330"] { --artist-color: #309ed7; }
[data-artist="heri"] { --artist-color: #4789a7; }
[data-artist="zyon64"] { --artist-color: #ec195c; }
[data-artist="daftscribe"] { --artist-color: #ec3535; }
[data-artist="captcullen"] { --artist-color: #bb65cf; }
[data-artist="detective-blou"] { --artist-color: #f1c40f; }
.tabs a[data-artist], .jump a[data-artist]:not(.chip), .profile-head a[data-artist], .intro h1[data-artist] {
  color: var(--artist-color, var(--text));
}
.intro { padding-block: clamp(2.1rem, 4.2vw, 5rem) clamp(1.6rem, 3vw, 3rem); }
.intro p, .role { color: var(--muted); margin: .65rem 0 0; }
h1,h2,h3,p { margin-top: 0; }
h1,h2 { line-height: 1.04; letter-spacing: -.055em; }
h1 { margin-bottom: .55rem; font-size: clamp(2.8rem, 7.8vw, 7.6rem); font-weight: 720; }
.studio-heading { display: flex; align-items: center; gap: .18em; }
.studio-heading img { flex: 0 0 auto; width: .92em; height: .92em; object-fit: contain; }
h2 { margin-bottom: .35rem; font-size: clamp(1.85rem, 4vw, 3.55rem); }
h3 { margin: 0; font-weight: 650; font-size: 1.08rem; }
.profile-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .85rem 1.4rem; }
.profile-head { margin-bottom: 1.25rem; }
.profile-head .role { margin-top: .3rem; }
.profiles { display: grid; gap: clamp(1.25rem, 3vw, 2.6rem); }
.profiles > section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1rem, 2.8vw, 2.5rem);
  background: rgb(36 38 44 / .66);
}
@media (prefers-reduced-motion: no-preference) {
  .profiles > section {
    transform: scale(var(--profile-scale, 1));
    filter: blur(var(--profile-blur, 0px));
    border-color: color-mix(in srgb, var(--line), var(--muted) var(--profile-highlight, 0%));
  }
  .profiles > section:focus-within, .profiles > section:hover { filter: none; }
}
.collection-footer { margin-top: .8rem; text-align: right; color: var(--muted); }
.collection-footer a { display: inline-block; padding-block: .25rem; font-size: .9rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border-color: var(--line); display: inline-block; }
.chip:hover { border-color: var(--accent); }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0 0; }
.jump a:not(.chip) { padding: .28rem 0; margin-right: .85rem; color: var(--muted); font-size: .9rem; text-decoration: underline; text-underline-offset: .3em; }
.jump a:not(.chip):hover { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.05rem; }
.tile { display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.tile:hover, .tile:focus-within { border-color: #777b84; }
.cover { aspect-ratio: 4 / 3; overflow: hidden; display: block; background: #25282e; }
.cover img { height: 100%; object-fit: cover; transition: transform .24s ease; }
.cover.contain img { object-fit: contain; }
.cover:hover img { transform: scale(1.035); }
.video-cover video, .video-cover iframe { display: block; width: 100%; height: 100%; border: 0; background: #101114; }
.video-cover video { object-fit: contain; }
.tile-text { padding: .77rem .9rem .85rem; }
.tile-title { margin: 0; font-size: 1.05rem; font-weight: 650; letter-spacing: normal; color: var(--text); line-height: 1.3; }
.project-link { display: inline-block; margin-top: .55rem; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.project-link:first-child { margin-top: 0; }
.audio-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: .9rem; }
.audio-tile .tile-title { margin-bottom: .55rem; }
.audio-tile p { margin: 0 0 .55rem; color: var(--muted); }
.audio-tile iframe { border: 0; display: block; width: 100%; height: 166px; background: #26282e; margin-bottom: .5rem; }
.audio-tile audio { width: 100%; }
.footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 1.4rem 2.2rem; margin-top: 2.5rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1.5rem; }
dialog { width: min(94vw, 1120px); height: min(88dvh, 760px); max-width: none; max-height: none; overflow: hidden; padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
dialog[open] { display: grid; grid-template-rows: 3.6rem minmax(0, 1fr) 3.6rem; }
dialog::backdrop { background: rgb(0 0 0 / .83); }
.dialog-head { display: flex; align-items: center; justify-content: end; padding-inline: 1rem; }
.dialog-head button, .dialog-actions button { color: var(--text); background: transparent; cursor: pointer; }
.dialog-close { border: 0; width: 2.75rem; height: 2.75rem; font-size: 1.7rem; line-height: 1; }
.dialog-head .dialog-close:hover { color: var(--accent); }
.dialog-layout { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.dialog-layout:has(.dialog-stage:not([hidden]) + .dialog-details:not([hidden])) { grid-template-columns: minmax(0, 1fr) clamp(13rem, 25vw, 19rem); }
.dialog-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #101114; }
.dialog-body { height: 100%; }
.dialog-body img, .dialog-body video, .dialog-body iframe { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; }
.dialog-details { min-width: 0; min-height: 0; padding: 1rem; overflow: auto; overflow-wrap: anywhere; }
.dialog-description { margin-top: .65rem; color: var(--muted); }
.dialog-description p:last-child { margin-bottom: 0; }
.dialog-description a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.dialog-source { margin-top: .8rem; background: var(--accent); color: var(--bg); font-weight: 650; }
.dialog-source:hover { background: #f8dba6; color: var(--bg); }
.dialog-actions { display: flex; align-items: center; justify-content: center; padding-inline: 1rem; }
.viewer-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(.45rem, 1.6vw, 1rem); pointer-events: none; }
.viewer-nav button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0 0 .12em; border: 0; border-radius: 50%; background: rgb(15 16 19 / .68); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; pointer-events: auto; }
.viewer-nav button:hover { background: rgb(15 16 19 / .9); }
.viewer-count { color: var(--muted); min-width: 2.8rem; text-align: center; }
@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .dialog-layout:has(.dialog-stage:not([hidden]) + .dialog-details:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, .48fr);
  }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 7rem; }
  .masthead-inner { padding-block: .55rem .2rem; }
  .tabs { width: 100%; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
