/* CAGA PORTFOLIO: solid voxel casings, fixed corner modules and matte pixel faces. */
:root {
  --pixel-cut: polygon(0 12px,4px 12px,4px 4px,12px 4px,12px 0,calc(100% - 12px) 0,calc(100% - 12px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 12px,100% 12px,100% calc(100% - 12px),calc(100% - 4px) calc(100% - 12px),calc(100% - 4px) calc(100% - 4px),calc(100% - 12px) calc(100% - 4px),calc(100% - 12px) 100%,12px 100%,12px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 12px),0 calc(100% - 12px));
  --pixel-cut-small: polygon(0 6px,3px 6px,3px 3px,6px 3px,6px 0,calc(100% - 6px) 0,calc(100% - 6px) 3px,calc(100% - 3px) 3px,calc(100% - 3px) 6px,100% 6px,100% calc(100% - 6px),calc(100% - 3px) calc(100% - 6px),calc(100% - 3px) calc(100% - 3px),calc(100% - 6px) calc(100% - 3px),calc(100% - 6px) 100%,6px 100%,6px calc(100% - 3px),3px calc(100% - 3px),3px calc(100% - 6px),0 calc(100% - 6px));
  --pixel-grain: url('/art/pixel-matte.svg');
  --pixel-face: #16202c;
  --pixel-focus: #b5efff;
}
.brand-crystal { width: 86px; }
.brand .brand-label { font-family: "Segoe UI", var(--font-sans-cjk); font-size: 10px; font-weight: 600; letter-spacing: 1.15px; }
.hero h1 { font-size: clamp(48px, 9vw, 110px); }
.hero h1 span + span { font-size: .8em; }
.hero-motto { max-width: 700px; }

/* Actual contour meshes, resized around fixed corner blocks; no CSS outline on these shells. */
:where(.voxel-panel) { position: relative; }
.voxel-panel { isolation: isolate; border: 0; border-radius: 0; background: transparent; box-shadow: none; clip-path: none; }
.voxel-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.modal {
  width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 32px);
  overflow: visible; padding: 22px; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; isolation: isolate;
}
.modal::before, .modal::after { content: none; }
.modal[open] { display: flex; flex-direction: column; animation: pixel-window-in .2s var(--ease-settle) both; }
.modal::backdrop { background: #03060bdb; backdrop-filter: blur(5px); }
.upload-modal { width: min(600px, calc(100% - 32px)); }
.pixel-window-bar {
  position: relative; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
  min-height: 54px; gap: 12px; margin: 0; padding: 0 4px 10px 12px; border: 0;
}
.pixel-window-bar > span { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; color: #cee3f3; font-size: 9px; font-weight: 600; letter-spacing: 1.7px; line-height: 1.6; }
.pixel-window-bar > span::before { content: ""; width: 6px; height: 6px; background: #b1d2e3; box-shadow: 6px 0 #7e92b2, 0 6px #506983; margin: 0 6px 6px 0; }
.pixel-window-bar i { color: #8192a9; font-size: 8px; font-style: normal; font-weight: 400; letter-spacing: 1.3px; }
.modal .pixel-window-bar form[method="dialog"] { position: static; flex-shrink: 0; margin: 0; }
.pixel-dialog-scroll { position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4e647c #101722; }
.modal-content { padding: 20px 24px 26px; }
.modal-content h2 { color: #edf4fb; font-size: 28px; font-weight: 550; letter-spacing: .04em; }
.modal-content .eyebrow { color: #829eb7; font-size: 8px; }
.modal-subtitle, .privacy-note { color: #9daabb; line-height: 1.8; }
.modal-subtitle { font-size: 12px; }
.modal-close { width: 42px; height: 40px; color: #d4e5f2; font-size: 21px; }
.modal-close:hover { transform: translateY(-1px); color: #effaff; }
.detail-content { min-height: 350px; }
.detail-copy { padding: 28px 28px 32px; background: var(--pixel-grain) #141c27; }
.detail-copy h2 { color: #e3edf7; }
.detail-copy > p:not(.eyebrow) { color: #a4b3c5; font-size: 12px; }
/* Nine-slice keycaps: fixed corners, stretchable rails, no 1px contour or fine white seams. */
.button, .like-button, .arrow-button, .icon-link, .modal-close, .motion-toggle,
.grain-size, .filter-chip, .small-button, .segment, .background-switch button, .file-icon {
  border: 7px solid transparent; border-image: url('/art/voxel-key.svg') 18 / 7px / 0 stretch;
  border-radius: 0; clip-path: none; background: var(--pixel-grain) var(--pixel-face);
  background-clip: padding-box; box-shadow: none;
  transition: transform .16s var(--ease-settle), background-color .18s ease, color .18s ease;
}
.button { padding: 9px 15px; font-weight: 500; letter-spacing: .03em; }
.button-ink { --pixel-face: #2d4354; color: #eaf5ff; }
.button-quiet, .button-outline { --pixel-face: #172330; color: #c6d7e6; }
.button:hover, .button-ink:hover, .button-quiet:hover, .button-outline:hover,
.filter-chip:hover, .like-button:hover, .small-button:hover, .segment:hover, .background-switch button:hover {
  background: var(--pixel-grain) #2c4153; background-clip: padding-box; box-shadow: none; color: #f0f9ff;
}
.like-button { min-height: 38px; padding: 4px 6px; }
.filter-chip { min-height: 38px; padding: 3px 10px; --pixel-face: #111c27; }
.filter-chip.active, .segment.active, .background-switch button[aria-pressed="true"] {
  color: #e2f2ff; background: var(--pixel-grain) #365066; background-clip: padding-box; box-shadow: none;
}
.small-button { color: #bedee3; --pixel-face: #23363e; padding: 5px 8px; }
.small-button.reject { --pixel-face: #302935; }
.button:active, .like-button:active, .arrow-button:active, .icon-link:active, .modal-close:active,
.motion-toggle:active, .grain-size:active, .filter-chip:active, .small-button:active,
.segment:active, .background-switch button:active { transform: translateY(2px); box-shadow: none; transition-duration: .07s; }
:is(.button,.like-button,.arrow-button,.icon-link,.modal-close,.motion-toggle,.grain-size,.filter-chip,.small-button,.segment,.background-switch button):focus-visible {
  outline: 3px solid var(--pixel-focus); outline-offset: -9px;
}
.button:disabled, .small-button:disabled { opacity: .5; cursor: wait; transform: none; }
.background-switch, .segmented { border: 0; border-radius: 0; clip-path: none; background: transparent; box-shadow: none; gap: 6px; padding: 0; }
.background-switch button { min-height: 38px; padding: 4px 8px; }
.segment { min-height: 42px; }
.grain-size { min-height: 38px; padding: 4px 8px; }
.motion-toggle { width: 38px; height: 38px; }
.hero-controls { gap: 9px; }

/* Recessed matte fields keep browser input semantics and visible keyboard focus. */
.stack-form > label { color: #becddc; font-size: 12px; }
.stack-form input:not([type=file]):not([type=checkbox]), .stack-form textarea, .stack-form select {
  border: 6px solid transparent; border-image: url('/art/voxel-key.svg') 18 / 6px / 0 stretch;
  border-radius: 0; clip-path: none; background: var(--pixel-grain) #0c141f; background-clip: padding-box;
  color: #e4edf7; min-height: 48px; font-size: 13px; box-shadow: none;
}
.stack-form :is(input, textarea)::placeholder { color: #70849c; }
.stack-form :is(input:not([type=file]):not([type=checkbox]),textarea,select):focus-visible { outline: 3px solid #a8dff2; outline-offset: -7px; box-shadow: none; }
.stack-form input[readonly] { color: #9aadc2; background-color: #17212d; }
/* A picker owns its layout even when nested beside a crop editor. Inline labels fragment the frame. */
.file-drop { position:relative; display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:12px; width:100%; min-width:0; border:8px solid transparent; border-image:url('/art/voxel-key.svg') 18 / 8px / 0 stretch; border-radius:0; clip-path:none; background:var(--pixel-grain) #1b2a38; background-clip:padding-box; padding:12px; }
.file-drop > span { min-width:0; overflow-wrap:anywhere; }
.file-drop > span:only-of-type { grid-column:1 / -1; }
.file-drop input[type=file] { top:0; left:0; padding:0; margin:0; border:0; clip-path:inset(50%); }
#registerCrop:not([hidden]) { margin-top:14px; }
.file-drop:focus-within { outline: 3px solid var(--pixel-focus); outline-offset: -9px; }
.file-drop strong { color: #c9deee; font-size: 12px; }
.file-drop small { color: #8b9fb4; font-size: 10px; line-height: 1.6; }
.file-icon { color: #c5e8f5; }

/* Media rims are nine-slice meshes too; portraits and the 3D consoles retain their own shapes. */
.mini-work, .project-image-button, .project-detail-cover, .my-project-row img, .project-review-row img {
  border: 11px solid transparent; border-image: url('/art/voxel-rim.svg') 28 / 11px / 0 stretch;
  border-radius: 0; clip-path: none; background-clip: padding-box; box-shadow: none;
}
.mini-work::before, .project-image-button::before { border: 0; box-shadow: none; }
.mini-work::after { box-shadow: none; inset: 45% 0 0; background: linear-gradient(transparent, #03040bdb); }
.project-image-button::after { content: none; }
.mini-work:hover, .project-image-button:hover { box-shadow: none; }
.work-placeholder, .note-thumbnail, .detail-note, .detail-audio, .audio-thumbnail {
  background: var(--pixel-grain) #202c3c; color: #b8cada;
}
.detail-note, .detail-audio { background-color: #172330; }
.join-strip { padding: 28px 32px; }
.admin-login { padding: 34px 34px 38px; }
.admin-list { padding: 22px 30px 34px; }
.about-copy { width: min(530px,88%); padding: 40px 36px; margin-block: 40px; }
.about-copy h2 { margin-top: 18px; }
.application-row { background: transparent; }
.admin-list-heading h2, .admin-title { color: #e2ecf5; }
.admin-list-heading span, .admin-lead, .admin-back { color: #92a8be; }
.toast { padding: 26px 32px; color: #ccdee9; min-height: 64px; }
.toast.error { --voxel-panel: #30202c; color: #f2c5d7; }
/* Quiet separators are broad, dark joins instead of bright hairline rules. */
.artist-row, .project-toolbar, .author-work-heading, .admin-list-heading,
.application-row, .project-review-row, .work-actions, .my-projects, .my-project-row { border-color: #172330; border-width: 3px; }
@keyframes pixel-window-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .site-header { padding-inline: 16px; }
  .brand { gap: 8px; }
  .brand-crystal { width: 68px; }
  .brand .brand-label { font-size: 8px; letter-spacing: .6px; }
  .header-actions { gap: 8px; }
  .main-nav { padding: 14px 20px; border: 10px solid transparent; border-image: url('/art/voxel-rim.svg') 28 / 10px / 0 stretch; border-radius: 0; background: var(--pixel-grain) #172330; background-clip: padding-box; box-shadow: none; }
  .main-nav a { border-bottom: 0; }
  .modal { max-height: calc(100svh - 20px); width: calc(100% - 20px); padding: 21px; }
  .modal-content { padding: 16px 10px 20px; }
  .pixel-window-bar { padding-left: 5px; gap: 6px; }
  .pixel-window-bar > span { gap: 7px; font-size: 8px; letter-spacing: 1px; }
  .pixel-window-bar i { font-size: 7px; letter-spacing: .6px; }
  .detail-copy { padding: 24px 18px; }

  .stack-form input:not([type=file]):not([type=checkbox]), .stack-form textarea, .stack-form select { font-size: 16px; }
  .admin-list { padding-inline: 26px; }
  .admin-login { padding-inline: 28px; }
  .admin-top { gap: 16px; }
  .admin-back { font-size: 10px; }
  .about-copy { width: calc(100% - 32px); padding: 32px 28px; }
  .join-strip { padding: 26px; }
  .hero-controls { gap: 6px; }
  .background-switch { gap: 4px; }
  .background-switch button, .grain-size { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal[open] { animation: none; }
  .grain-size, .background-switch button { transition: none; transform: none !important; }
}

/* Stable gallery window, with media fitted independently of its natural dimensions. */
.detail-modal { width: min(1120px, calc(100vw - 40px)); height: min(740px, calc(100svh - 40px)); max-width: calc(100vw - 20px); max-height: calc(100svh - 20px); }
.detail-modal .pixel-dialog-scroll { flex: 1; container-type: inline-size; }
.detail-modal.is-resizing { will-change: width, height; }
.detail-content { height: 100%; min-height: 0; grid-template-columns: minmax(0,1.65fr) minmax(230px,1fr); align-items: stretch; }
.detail-media { min-width: 0; min-height: 0; height: 100%; display: grid; overflow: hidden; background: #080e16; }
.detail-media img, .detail-media video { width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: contain; background: #080e16; }
.detail-copy { align-self: stretch; min-width: 0; overflow: auto; overflow-wrap: anywhere; }
.detail-note, .detail-audio { min-height: 0; height: 100%; padding: 24px; }
.detail-audio audio { max-width: 100%; }
.detail-window-actions { display: flex; align-items: center; gap: 12px; }
.detail-reset { padding: 8px 4px; border: 0; background: transparent; color: #b2c7d8; font-size: 11px; white-space: nowrap; cursor: pointer; }
.detail-reset:hover { color: #edfbff; }
.detail-reset:focus-visible { outline: 3px solid var(--pixel-focus); outline-offset: 1px; }
.detail-resize { position: absolute; z-index: 5; border: 0; padding: 0; background: transparent; touch-action: none; user-select: none; }
.resize-n, .resize-s { left: 32px; right: 32px; height: 14px; cursor: ns-resize; }
.resize-n { top: 0; } .resize-s { bottom: 0; }
.resize-e, .resize-w { top: 32px; bottom: 32px; width: 14px; cursor: ew-resize; }
.resize-e { right: 0; } .resize-w { left: 0; }
.resize-ne, .resize-nw, .resize-se, .resize-sw { width: 30px; height: 30px; cursor: nwse-resize; }
.resize-ne, .resize-sw { cursor: nesw-resize; }
.resize-ne { top: 0; right: 0; } .resize-nw { top: 0; left: 0; }
.resize-se { bottom: 0; right: 0; } .resize-sw { bottom: 0; left: 0; }
.resize-se span { position: absolute; width: 4px; height: 4px; right: 13px; bottom: 13px; background: #b0c9d9; box-shadow: -6px 0 #b0c9d9, 0 -6px #b0c9d9, -12px 0 #7c9cb6, -6px -6px #7c9cb6, 0 -12px #7c9cb6; }
.resize-se:hover span { background: #e6faff; }
.resize-se:focus-visible { outline: 3px solid var(--pixel-focus); outline-offset: -5px; }
body.is-resizing-detail { user-select: none; }
body.is-resizing-detail .detail-content { pointer-events: none; }
@media (pointer: coarse) {
  .resize-n, .resize-s { height: 20px; }
  .resize-e, .resize-w { width: 20px; }
  .resize-ne, .resize-nw, .resize-se, .resize-sw { width: 34px; height: 34px; }
}
@container (max-width: 650px) {
  .detail-content { height: auto; min-height: 100%; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; }
  .detail-media { height: clamp(190px,50svh,430px); }
  .detail-copy { overflow: visible; }
}
@media (max-width: 760px) {
  .detail-modal { width: calc(100vw - 20px); height: calc(100svh - 28px); }
  .detail-window-actions { gap: 6px; }
  .detail-modal .pixel-window-bar > span { gap: 3px; }
  .detail-modal .pixel-window-bar i { font-size: 7px; letter-spacing: 0; }
  .detail-reset { font-size: 10px; }
}

/* Floating artwork window controls */
.detail-modal .pixel-window-bar { touch-action: pan-y; }
.detail-move { display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 8px;border:0;background:transparent;color:#b2c8d8;font-size:11px;cursor:grab;touch-action:none;user-select:none; }
.detail-move svg { display:block;flex:none; }
.detail-move:hover { color:#effaff; }
.detail-move:active,.is-moving .detail-move { cursor:grabbing; }
.detail-move:focus-visible { outline:2px solid var(--pixel-focus);outline-offset:-3px; }
.detail-move:active,.detail-reset:active { transform:translateY(1px); }
.detail-modal .pixel-window-bar > span { touch-action:pan-y; }
.detail-modal.is-moving,.detail-modal.is-resizing { transition:none!important; }
body.is-resizing-detail .detail-content { pointer-events:none; }
body.is-resizing-detail .detail-modal .pixel-window-bar { cursor:grabbing; }
.detail-window-actions { gap:4px; }
.detail-window-actions form { margin:0; }
.detail-modal .modal-close { display:grid;place-items:center;border:0;background:transparent;clip-path:var(--pixel-cut-small);border-radius:0;width:34px;height:34px;color:#d4e5f2; }
@media (max-width:760px) {
 .detail-move { width:34px;min-height:34px;padding:0;font-size:0; }
 .detail-modal .pixel-window-bar i { display:none; }
 .detail-window-actions { gap:2px; }
 .detail-reset { font-size:0;min-width:32px;min-height:32px; }
 .detail-reset::before { content:"↺";font-size:18px; }
}

/* Local pixel outlines give headings the same square rhythm as the crystal title.
   Body copy stays in the readable sans family; no rasterized or blurred text. */
@font-face {
  font-family: "CAGA Pixel";
  src: url('/fonts/fusion-pixel-12px-proportional-zh_hans-20261025.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.section-heading .pixel-heading, .studio-directory .pixel-heading,
.studio-project-caption .pixel-heading, .project-detail .pixel-heading {
  font-family: "CAGA Pixel", var(--font-sans-cjk);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: .035em;
  line-height: 1.5;
  color: #e3edf5;
  text-shadow: 0 2px 0 #55637c, 0 3px 0 #1c283a;
}
.section-heading .pixel-heading, .studio-directory h1.pixel-heading { margin:0; font-size:48px; }
.studio-project-caption .pixel-heading, .project-detail h1.pixel-heading { font-size:36px; }
.studio-projects .section-heading, .studio-directory .section-heading { align-items:center; gap:24px; }
.studio-project-caption { border:0; }
.studio-project-caption h3 a { transition:color .18s ease; }
.studio-project-caption h3 a:hover { color:#c4f1ff; }
.project-toolbar { border:0; padding-bottom:18px; }

/* Section ribbons sit behind accessible, genuinely beveled crystal words. */
.section-heading.flow-heading {
  position: relative;
  isolation: isolate;
  align-items: center;
  gap: 24px;
  min-height: 130px;
  margin-bottom: 40px;
}
.section-flow-row {
  display: flex;
  position: relative;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 130px;
}
.section-heading .pixel-heading.section-flow-title {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  align-items: center;
  width: clamp(260px, 29vw, 410px);
  height: clamp(64px, 7vw, 92px);
  margin: 0;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  letter-spacing: .015em;
  text-shadow: none;
  color: #d2eff5;
}
.section-title-fallback {
  display: block;
  background: linear-gradient(118deg, #d6fcff, #77cddf 36%, #aa9de2 66%, #e3faff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.section-crystal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}
.has-crystal > .pixel-title-fallback { display: none; }
.has-crystal .section-crystal-canvas { display: block; }
.section-flow-canvas {
  position: absolute;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.flow-heading > .button {
  position: relative;
  z-index: 2;
  flex: none;
  white-space: nowrap;
}
@media (max-width:760px) {
  .section-heading.flow-heading { gap: 14px; min-height: 110px; margin-bottom: 28px; }
  .section-flow-row { min-height: 110px; }
  .section-heading .pixel-heading.section-flow-title { width: clamp(210px, 41vw, 300px); height: 68px; font-size: 40px; }
}
@media (max-width:599px) {
  .section-heading.flow-heading { flex-wrap: wrap; gap: 4px 12px; margin-bottom: 30px; }
  .section-flow-row { flex-basis: 100%; min-height: 94px; }
  .section-heading .pixel-heading.section-flow-title { width: min(82vw, 330px); height: 70px; font-size: 42px; }
  .flow-heading > .button { margin-left: auto; font-size: 11px; padding: 7px 9px; }
}
@media (max-width:760px) {
  .section-heading .pixel-heading, .studio-directory h1.pixel-heading { font-size:36px; }
  .studio-project-caption .pixel-heading, .project-detail h1.pixel-heading { font-size:24px; text-shadow:0 1px 0 #55637c,0 2px 0 #1c283a; }
  .studio-project-caption p { font-size:13px; margin-top:10px; }
  .studio-project-caption { padding-top:20px; }
}
@media (max-width:599px) {
  .studio-projects .section-heading, .studio-directory .section-heading { flex-direction:row; align-items:center; gap:12px; }
  .studio-projects .upload-entry, .studio-directory [data-upload-project] { font-size:11px; padding:7px 9px; white-space:nowrap; }
}

/* Quiet icon controls: consistent key sizes, centered artwork, accessible names. */
.pixel-control-icon { display:block; width:22px; height:22px; flex:none; overflow:visible; shape-rendering:crispEdges; }
.header-actions { align-items:center; }
.header-actions > .text-action { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:0 2px; line-height:1.2; white-space:nowrap; }
.header-actions > .text-action[hidden] { display:none; }
.header-actions > .icon-link { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; padding:0; line-height:1; }
.header-actions > .icon-link .pixel-control-icon { width:18px; height:18px; }
.hero-controls { gap:8px; }
.hero-controls .background-switch { gap:8px; }
.hero-controls :is(.background-switch button,.grain-size,.motion-toggle) {
  display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0;
  flex:0 0 44px; color:#8397ae; line-height:1; --pixel-face:#0c1720;
}
.hero-controls .grain-size[hidden] { display:none; }
.hero-controls .background-switch button[aria-pressed="true"] { color:#c2f6ff; background:var(--pixel-grain) #233e4c; background-clip:padding-box; }
.hero-controls :is(button:hover,button:focus-visible) { color:#edfaff; }
.hero-controls .grain-size-icon { width:22px; height:22px; background:none; opacity:1; }
.hero-controls .grain-size[data-size="fine"] .grain-size-icon { transform:scale(.75); }
.hero-controls .grain-size[data-size="medium"] .grain-size-icon { transform:scale(.9); }
.hero-controls .grain-size[data-size="coarse"] .grain-size-icon { transform:scale(1); }
.hero-controls .grain-size[data-size="large"] .grain-size-icon { transform:scale(1.12); }

/* The full gallery uses the console's image list and solid stepped keycaps. */
.project-gallery { position:relative; display:grid; grid-template-columns:56px minmax(0,1fr) 56px; align-items:center; column-gap:18px; margin-top:28px; isolation:isolate; }
.project-gallery:focus { outline:none; }
.project-gallery:focus-visible .project-gallery-viewport { outline:3px solid var(--pixel-focus); outline-offset:3px; }
.project-gallery-stage { position:relative; min-width:0; }
.project-gallery-viewport { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border:11px solid transparent; border-image:url('/art/voxel-rim.svg') 28 / 11px / 0 stretch; background:#080c12; background-clip:padding-box; touch-action:pan-y; }
.project-gallery-image { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:contain; user-select:none; }
.project-gallery-count { position:absolute; left:50%; bottom:-30px; transform:translateX(-50%); font-size:11px; font-variant-numeric:tabular-nums; letter-spacing:.12em; color:#839aaf; white-space:nowrap; }
.project-gallery .gallery-arrow {
  display:grid; place-items:center; width:56px; height:64px; padding:0; border-width:10px;
  border-image-width:10px; --pixel-face:#223344; color:#c9f0fa; cursor:pointer; z-index:2;
}
.gallery-arrow svg { display:block; width:26px; height:26px; shape-rendering:crispEdges; filter:drop-shadow(0 3px 0 #0a1622); pointer-events:none; }
.project-gallery .gallery-arrow:hover { transform:translateY(-2px); color:#fff; }
.project-gallery .gallery-arrow:active { transform:translateY(3px); }
.project-gallery .gallery-arrow:focus-visible { outline:3px solid var(--pixel-focus); outline-offset:3px; }
.project-gallery-particles { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:3; }
.project-gallery[data-count="1"] { grid-template-columns:minmax(0,1fr); }
.project-gallery[data-count="1"] :is(.gallery-arrow,.project-gallery-count) { display:none; }
.project-gallery + .project-detail-copy { padding-top:56px; }
@media (max-width:700px) {
  .project-gallery { display:block; margin-top:22px; }
  .project-gallery-viewport { border-width:8px; border-image-width:8px; }
  .project-gallery .gallery-arrow { position:absolute; top:50%; margin-top:-24px; width:44px; height:48px; border-width:8px; border-image-width:8px; --pixel-face:#142736; }
  .project-gallery [data-gallery-step="-1"] { left:8px; }
  .project-gallery [data-gallery-step="1"] { right:8px; }
  .gallery-arrow svg { width:21px; height:21px; }
  .header-actions { gap:8px; }
  .header-actions > .icon-link { width:36px; height:36px; flex-basis:36px; }
}
@media (prefers-reduced-motion:reduce) {
  .project-gallery .gallery-arrow { transition:none; transform:none; }
}
