.pg-glass {
  --pg-radius: 22px;
  --pg-blur: 22px;
  --pg-fill: rgb(247 250 255 / .69);
  --pg-solid: #eef3fb;
  --pg-ink: #142339;
  --pg-edge: rgb(255 255 255 / .64);
  --pg-light: rgb(255 255 255 / .58);
  --pg-x: 30%;
  --pg-y: 0%;
  position: relative;
  isolation: isolate;
  color: var(--pg-ink);
  border: 1px solid var(--pg-edge);
  border-radius: var(--pg-radius);
  background: var(--pg-solid);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .48), 0 8px 26px rgb(12 28 52 / .14);
}

.pg-glass[data-pg-material="clear"] { --pg-fill: rgb(242 249 255 / .36); --pg-blur: 9px; }
.pg-glass[data-pg-material="dense"] { --pg-fill: rgb(244 248 255 / .86); --pg-blur: 28px; }
.pg-glass[data-pg-material="tint"] { --pg-fill: rgb(191 218 249 / .74); --pg-blur: 20px; }

[data-pg-theme="dark"] .pg-glass, .pg-glass[data-pg-theme="dark"] {
  --pg-fill: rgb(23 34 54 / .75);
  --pg-solid: #19253b;
  --pg-ink: #f3f7ff;
  --pg-edge: rgb(227 240 255 / .28);
  --pg-light: rgb(222 238 255 / .19);
}

:is([data-pg-theme="dark"] .pg-glass, .pg-glass[data-pg-theme="dark"])[data-pg-material="clear"] { --pg-fill: rgb(12 24 47 / .42); }
:is([data-pg-theme="dark"] .pg-glass, .pg-glass[data-pg-theme="dark"])[data-pg-material="dense"] { --pg-fill: rgb(19 30 51 / .9); }
:is([data-pg-theme="dark"] .pg-glass, .pg-glass[data-pg-theme="dark"])[data-pg-material="tint"] { --pg-fill: rgb(33 54 94 / .79); }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pg-glass {
    background: radial-gradient(ellipse at var(--pg-x) var(--pg-y), var(--pg-light), transparent 69%), var(--pg-fill);
    -webkit-backdrop-filter: blur(var(--pg-blur)) saturate(1.35);
    backdrop-filter: blur(var(--pg-blur)) saturate(1.35);
  }
}

@supports (backdrop-filter: url("#pg-filter") blur(1px)) {
  .pg-glass {
    backdrop-filter: var(--pg-displacement, ) blur(var(--pg-blur)) saturate(1.35);
  }
}

.pg-fusion { position: relative; }
.pg-react-fusion { display: inline-flex; flex-wrap: wrap; gap: var(--pg-fusion-gap, 12px); max-inline-size: 100%; }
.pg-react-orb {
  --pg-radius: 50%;
  display: inline-grid;
  place-items: center;
  inline-size: var(--pg-orb-size, 64px);
  block-size: var(--pg-orb-size, 64px);
  min-block-size: 0;
  flex: none;
  padding: 0;
}
.pg-fusion-layer { position: absolute; inset: 0; pointer-events: none; visibility: hidden; mask-repeat: no-repeat; mask-size: 100% 100%; }
[data-pg-fused] > .pg-fusion-layer { visibility: visible; border: 0; border-radius: 0; box-shadow: none; }
[data-pg-fused] > .pg-fusion-part { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; }
@media (forced-colors: active) {
  [data-pg-fused] > .pg-fusion-part { border-color: ButtonText; }
}

.pg-control {
  min-block-size: 44px;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: scale 160ms ease-out;
}
.pg-control:active:not(:disabled) { scale: .97; }
.pg-control:disabled { opacity: .65; cursor: default; }
.pg-control:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

[data-pg-transparency="reduced"] .pg-glass, .pg-glass[data-pg-transparency="reduced"] {
  background: var(--pg-solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .pg-glass { background: var(--pg-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-control { transition: none; }
  .pg-control:active:not(:disabled) { scale: 1; }
}
@media (forced-colors: active) {
  .pg-glass { background: Canvas; color: CanvasText; border-color: ButtonText; box-shadow: none; backdrop-filter: none; }
}

.ring-bay { display: grid; justify-items: center; align-content: center; gap: .45rem; min-width: 0; }
#ring-anchor { width: min(100%, 31rem, 55vh); aspect-ratio: 1; position: relative; }
#ring-object { position: absolute; inset: 0; pointer-events: none; user-select: none; }
#ring-object.travelling { position: fixed; inset: 0 auto auto 0; z-index: 1; transform-origin: 0 0; }
#ring-object svg, #ring-object canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#ring-object canvas { visibility: hidden; }
#ring-object.has-mesh canvas { visibility: visible; }
#ring-object.has-mesh svg { visibility: hidden; }
.hero-copy, .catalog > .wrap, .about > .wrap, footer > .wrap { position: relative; z-index: 2; }

.catalog .section-head { flex-wrap: wrap; gap: 1.5rem 2rem; margin-bottom: 2rem; }
.catalog .section-head h2 { letter-spacing: -.04em; }
.catalog .filter-buttons { gap: .5rem; }
.project-grid { gap: clamp(.875rem, 2vw, 1.5rem); border: 0; }
.project-grid .project {
  --project-accent: #edbb77;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 13.25rem;
  padding: clamp(1.15rem, 2.4vw, 1.9rem);
  border: 1px solid #414638;
  border-radius: 14px;
  background: #1a1e17;
}
.project-grid .project[data-area="marketing"] { --project-accent: #b4d1a6; }
.project-grid .project[data-area="windows"] { --project-accent: #b5cfdc; }
.project-visual { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.project-icon, .project-arrow { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.project-icon { color: var(--project-accent); width: 1.75rem; height: 1.75rem; }
.project-arrow { flex: 0 0 1rem; height: 1rem; }
.project h3 { margin-bottom: .5rem; letter-spacing: -.03em; }
.project h3 a { align-items: center; }
.project .project-platform { font-size: .77rem; }
.project .project-meta { margin: auto 0 0; padding-top: 1.05rem; font: 500 .77rem/1.35 "Space Grotesk", system-ui, sans-serif; color: var(--project-accent); }
.project:focus-within { outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .project-grid .project:hover { background-color: #24291f; border-color: #676c58; }
}

.project-grid .project.pg-glass.glass-live {
  --pg-radius: 14px;
  --pg-blur: 9px;
  --pg-fill: #171c16c7;
  --pg-solid: #1a1e17;
  --pg-light: #f1dcb310;
  color: var(--ink);
  box-shadow: inset 0 1px #f1dcb32e;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .project-grid .project.pg-glass.glass-live {
    background: radial-gradient(ellipse at 100% 0, var(--pg-light), transparent 65%), var(--pg-fill);
  }
  .glass-live:not(.project) {
    background: #171b15e8;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    border-radius: 12px;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .project-grid .project.pg-glass.glass-live, .glass-live:not(.project) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #1a1e17;
  }
}
@media (min-width: 791px) and (max-width: 1020px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 790px) {
  #ring-anchor { width: min(78vw, 19rem); }
  .top-nav { margin-left: auto; }
  .project-grid .project { min-height: 0; }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); }
}
