.builds {
  --ink: #272b33;
  --muted: #655f57;
  --rim: inset 0 1px 1px #fff, inset 0 -1px 2px #72828a38, 0 0 0 1px #50626a22, 0 4px 12px -5px #384a552e;
  color: var(--ink);
}
.builds [hidden] {display: none}
.build-symbols {position: absolute; pointer-events: none}
.builds-intro {
  min-height: calc(100svh - 6rem); display: grid; align-content: center;
  padding: clamp(.8rem, 2.5svh, 2.4rem) 0 clamp(1.8rem, 4svh, 3.5rem); text-align: center;
}
.gallery {width: 100%; min-width: 0}
.gallery-heading {position: relative; min-height: clamp(5rem, 12svh, 8rem); display: grid; place-items: center; padding: .25rem max(7.5rem, 11vw)}
.gallery-heading h1 {text-wrap: balance}
.gallery-filter {position: absolute; z-index: 1; right: clamp(.85rem, 4vw, 5rem); top: .3rem}
.filter-face, .dialog-close {
  border: 1px solid #ffffffec; border-radius: 2rem;
  background: linear-gradient(160deg, #ffffffdf, #e7eaedb3 55%, #ffffffad); box-shadow: var(--rim);
  backdrop-filter: blur(14px) saturate(145%); -webkit-backdrop-filter: blur(14px) saturate(145%);
}
.filter-face {display: inline-flex; position: relative; min-width: 2.8rem; height: 2.8rem; align-items: center; justify-content: center; padding: 0 .72rem; gap: .38rem}
.filter-icon {width: 1.18rem; height: 1.18rem}
.filter-face select {position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: 1rem system-ui}
.filter-face:has(select:focus-visible) {outline: 2px solid var(--gold); outline-offset: 3px}
.filter-value {font-size: .82rem}
.filter-value:empty {display: none}
.filter-note {position: absolute; top: 75%; right: 80%; width: 5.4rem; color: #454943; pointer-events: none; visibility: hidden}
.gallery-filter:is(:hover,:focus-within) .filter-note {visibility: visible}
@media (prefers-reduced-motion: no-preference) {
  .gallery-filter:is(:hover,:focus-within) .filter-note path {stroke-dasharray: 1; animation: write-filter .24s ease-out var(--delay, 0ms) both}
  @keyframes write-filter {from {stroke-dashoffset: 1} to {stroke-dashoffset: 0}}
}
.gallery-track {
  --card-width: clamp(17rem, 26vw, 34rem); --gap: clamp(.55rem, .85vw, 1.1rem);
  position: relative; display: flex; gap: var(--gap); align-items: center;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-block: 1.1rem .8rem;
}
.gallery-track::-webkit-scrollbar {display: none}
.gallery-track::before, .gallery-track::after {content: ""; flex: 0 0 calc((100% - var(--card-width)) / 2 - var(--gap))}
.gallery-track:focus-visible {outline: 2px solid var(--gold); outline-offset: -3px}
.build-card {
  --scale: 1; --tint: #f0eff2; --accent: #55525b;
  flex: 0 0 var(--card-width); min-width: 0; height: clamp(18rem, 40svh, 26rem);
  display: flex; flex-direction: column; position: relative; isolation: isolate; overflow: hidden;
  scroll-snap-align: center; transform: scale(var(--scale)); transform-origin: center;
  text-align: left; text-decoration: none; color: var(--ink); border-radius: 1.25rem;
  border: 1px solid #e5e3dd;
  background: linear-gradient(150deg, #ffffffc9, #ffffff45);
  box-shadow: inset 0 1px 1px white;
}
.build-card[data-current] {border-color: #c8bca6; box-shadow: inset 0 1px 1px white, 0 5px 16px -9px #73634442}
@media (prefers-reduced-motion: no-preference) {
  .build-card[data-settled] .card-art::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: linear-gradient(114deg, transparent 31%, #ddc5932b 42%, #fffdf3cc 49%, #ffffff99 52%, transparent 64%);
    animation: build-glint 820ms cubic-bezier(.25,.65,.4,1) 1;
  }
  @keyframes build-glint {
    0% {transform: translateX(-70%); opacity: 0}
    22% {opacity: .95}
    72% {opacity: .72}
    100% {transform: translateX(70%); opacity: 0}
  }
}
.build-card[data-design="agents"], .build-card[data-design="chip"], .build-card[data-design="sensor"] {--tint: #edf2ec; --accent: #53665a}
.build-card[data-design="coins"] {--tint: #f8f1e7; --accent: #816749}
.build-card[data-design="scatter"] {--tint: #eef2f5; --accent: #576b79}
.card-art {flex: 1; min-height: 5.5rem; display: grid; place-items: center; padding: 1.25rem; position: relative; color: var(--accent)}
.glass-object {
  position: relative; display: grid; place-content: center; justify-items: center;
  width: clamp(5rem, 7vw, 7.5rem); aspect-ratio: 1; border-radius: 24%; border: 1px solid #58645616;
  background: linear-gradient(145deg, white, var(--tint));
  box-shadow: inset 0 1px 1px white, 0 2px 5px #4b49390a;
  transform: rotate(-3deg);
}
.glass-object svg {width: 72%; height: 72%; position: absolute; inset: 14%; filter: drop-shadow(0 1px 0 white)}
.glass-object:has(img) {
  width: min(84%, 15rem); aspect-ratio: 1.85; border-radius: .55rem; padding: .2rem;
  display: block; transform: rotate(-2deg); background: white;
}
.glass-object img {width: 100%; height: 100%; display: block; border-radius: .35rem; object-fit: cover}
[data-design="casto"] .glass-object img {object-fit: contain; background: #eff0f7}
[data-design="emberwake"] .glass-object {transform: rotate(2deg)}
[data-design="agents"] .glass-object, [data-design="sensor"] .glass-object {width: min(90%, 14rem); aspect-ratio: 1.65; border-radius: 1.2rem; transform: rotate(-3deg)}
.agent-hub, .agent-pair b {font: .76rem/1.3 "Courier New", monospace; border: 1px solid #91aba7; padding: .18em .55em; border-radius: .35em; background: #f0faf4a6}
.agent-pair {display: flex; gap: 1.4rem; position: relative; padding-top: .9rem}
.agent-pair::before {content: ""; position: absolute; inset: .43rem 22% auto; height: .43rem; border: 1px solid #648f89; border-bottom: 0}
.agent-pair::after {content: ""; position: absolute; top: 0; height: .43rem; left: 50%; border-left: 1px solid #648f89}
.sensor-face {font: clamp(2rem, 3.4vw, 3.5rem)/1 "Courier New", monospace; letter-spacing: -.08em; text-shadow: 0 1px 1px white}
.sensor-face small {font-size: .4em; vertical-align: top; letter-spacing: 0}
.sensor-scale {height: .45rem; width: 90%; margin-top: .65rem; background: repeating-linear-gradient(90deg,currentColor 0 1px,transparent 1px 6px)}
.card-body {padding: 0 clamp(1.1rem, 2vw, 2rem) 1.35rem; display: grid; gap: .35rem; align-content: end}
.project-meta {display: inline-flex; align-items: baseline; flex-wrap: wrap; column-gap: .5rem; color: var(--muted)}
.project-meta .project-kind {font: italic .95rem/1.2 var(--display)}
.project-tag {padding: .08rem .4rem; border: 1px solid #d8dfdc; border-radius: .45rem; color: #40594f; background: #f3f6f3; font-size: .78rem; line-height: 1.3}
.project-status {display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; line-height: 1.3}
.project-status[data-state="complete"] {color: #366749}
.project-status[data-state="in-progress"] {color: #855914}
.project-status[data-state="review"] {color: #3c618f}
.project-status::before {content: ""; width: .35rem; height: .35rem; border-radius: 50%; background: currentColor}
.card-title {font: 400 clamp(1.5rem, 2.15vw, 2.55rem)/1.06 var(--display); letter-spacing: -.035em; text-wrap: balance}
.card-summary {color: var(--muted); font-size: .94rem; line-height: 1.5}
.build-card:is(:hover,:focus-visible) .card-title {text-decoration: underline; text-decoration-color: #b4aa99; text-decoration-thickness: 1px; text-underline-offset: .15em}
.gallery-dots {display: flex; justify-content: center; align-items: center}
.dialog-close {cursor: pointer; color: var(--ink); font-family: inherit; font-size: 1.1rem; line-height: 1; width: 2.35rem; height: 2.35rem}
.gallery-dot {width: 1.5rem; height: 2.5rem; border: 0; border-radius: .5rem; background: transparent; padding: 0; display: grid; place-items: center; cursor: pointer}
.gallery-dot::before {content: ""; width: 5px; height: 5px; border-radius: 50%; background: #a5a199}
.gallery-dot[aria-current]::before {width: 7px; height: 7px; background: #645f55}
@media (forced-colors: active) {
  .gallery-dot::before {background: ButtonText; forced-color-adjust: none}
  .gallery-dot[aria-current]::before {outline: 1px solid ButtonText; outline-offset: 2px}
}
.builds-quote {margin: clamp(1.4rem, 3.8svh, 3rem) 1rem 0; justify-self: center}
.builds-quote blockquote {margin: 0; font: italic clamp(1.25rem, 2vw, 1.7rem)/1.35 var(--display); color: var(--muted)}
.builds-quote figcaption {margin: .4rem .3rem 0 0; text-align: right}
.builds-quote a {display: inline-block; color: #3c4c58; font: italic 1.15rem/1.6 "Segoe Script", "Snell Roundhand", "Bradley Hand", Georgia, cursive; transform: rotate(-4deg); text-decoration: none}
.builds-quote a:hover {text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em}
.build-index {width: min(88%, 58rem); margin-inline: auto; padding-block: 2rem}
.project {padding: .75rem 0; border-top: 1px solid #d7d9d8}
.project summary {cursor: pointer}
.project-name {font: 1.3rem var(--display)}
.project-description {display: block; color: var(--muted)}
.build-dialog {color: var(--ink); width: min(90vw, 37rem); max-height: 85svh; overscroll-behavior: contain; padding: clamp(1.2rem, 4vw, 2.2rem); border: 1px solid white; border-radius: 1.45rem; background: #f9faf6f5; box-shadow: var(--rim),0 24px 80px #233d4b33}
.build-dialog::backdrop {background: #23323d40; backdrop-filter: blur(7px)}
body:has(.build-dialog[open]) {overflow: hidden}
.dialog-bar {display: flex; justify-content: space-between; align-items: center; margin-bottom: .65rem}
.detail-kind, .evidence figcaption, .instrument small {font-size: .85rem; color: var(--muted)}
.build-dialog h2 {font: 400 2.2rem/1.08 var(--display); letter-spacing: -.04em}
.project-notes p {line-height: 1.65}
.evidence {margin: 1rem 0 0}
.evidence img {display: block; max-width: 100%; width: auto; max-height: 18rem; height: auto}
.evidence figcaption {margin-top: .4rem}
.instrument {display: grid; gap: .5rem; max-width: 23rem}
.instrument input {width: 100%; accent-color: #366f70}
@media (max-width: 680px) {
  .gallery-track {--card-width: min(73vw, 22rem); --gap: .45rem}
  .gallery-heading {min-height: 6.8rem; padding: .4rem 3.5rem}
  .gallery-heading h1 {font-size: clamp(2.1rem, 7vw, 3.4rem)}
  .gallery-filter {top: -.5rem; right: .8rem}
  .filter-value {display: none}
  .filter-note {top: 68%; right: 50%}
  .build-card {height: clamp(18rem, 41svh, 23rem)}
  .card-body {padding-bottom: 1.2rem}
}
@media (max-height: 550px) and (min-width: 681px) {
  .builds-intro {padding-top: .5rem}
  .gallery-heading {min-height: 3.4rem}
  .gallery-heading h1 {font-size: 2.6rem}
  .build-card {height: 17.75rem}
}
