/* ===== Beckett Shaw — Selected Works ===== */
:root {
  --bg: #121212;
  --bg-2: #1a1a1a;
  --line: #2c2c2c;
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --blue: #2121ff;
  --blue-2: #4b4bff;
  --blue-glass: rgba(42, 48, 255, .52);
  --green: #3ddc84;
  --amber: #ffb547;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pix: "Pixelify Sans", "Courier New", monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
.t-pix { font-family: var(--pix); font-weight: 400; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 88px var(--gutter) 110px;
  background: radial-gradient(ellipse 48% 52% at 50% 52%, rgba(255, 255, 255, .13), transparent 72%), var(--bg);
  overflow: hidden;
}
.corners .c {
  position: absolute;
  font-size: 13px;
  color: #d6d6d6;
  text-decoration: none;
  letter-spacing: .01em;
}
.corners a.c:hover { color: #fff; }
.tl { top: 32px; left: var(--gutter); }
.tc { top: 32px; left: 50%; transform: translateX(-50%); font-weight: 600; color: #fff !important; }
.tr { top: 32px; right: var(--gutter); }
.bl { bottom: 40px; left: var(--gutter); }
.bc { bottom: 40px; left: 50%; transform: translateX(-50%); }
.br { bottom: 40px; right: var(--gutter); }

.hero-inner { width: min(720px, 100%); display: flex; flex-direction: column; align-items: center; }
.title {
  margin: 0 0 -1.2%;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  font-size: clamp(54px, 13vw, 132px);
  line-height: .9;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.t-sans { font-weight: 600; }
.title .t-pix { font-size: 1.12em; letter-spacing: -.02em; margin-left: .2em; }

/* Folder composition: everything sized off the stage width */
.stage {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 620 / 400;
  container-type: inline-size;
  margin-bottom: 7%;
}
.folder-back {
  position: absolute;
  left: 2%; right: 2%; bottom: 0;
  height: 68%;
  background: linear-gradient(180deg, #2a2adf, #1b1bb8);
  border-radius: 3cqw;
}
.folder-back::before {
  content: "";
  position: absolute;
  right: 6%; top: -6.5cqw;
  width: 26%; height: 8cqw;
  background: #2a2adf;
  border-radius: 2.5cqw 2.5cqw 0 0;
}
.fan { position: absolute; inset: 0; }
.card {
  position: absolute;
  left: var(--x);
  bottom: 7%;
  height: var(--h);
  aspect-ratio: 9 / 16;
  border-radius: 1.8cqw;
  overflow: hidden;
  background: #fff;
  border: .45cqw solid #fff;
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .45);
  transform: rotate(var(--r));
  transform-origin: 50% 100%;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  text-decoration: none;
}
.card:hover, .card:focus-visible { transform: rotate(var(--r)) translateY(-9%); z-index: 2; outline: none; }
.card.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.folder-front {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(60, 66, 255, .62), rgba(33, 33, 255, .72));
  border: .3cqw solid rgba(255, 255, 255, .55);
  border-radius: 3cqw;
  backdrop-filter: blur(1px) saturate(1.2);
  -webkit-backdrop-filter: blur(1px) saturate(1.2);
  mix-blend-mode: normal;
  box-shadow: inset 0 .4cqw 0 rgba(255, 255, 255, .25);
  pointer-events: none;
  z-index: 3;
}

.year {
  position: absolute;
  left: -1%; bottom: -10%;
  display: flex; align-items: center; gap: 2cqw;
  z-index: 4;
}
.year-dot {
  display: grid; place-items: center;
  width: 15cqw; aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  font-size: max(16px, 5cqw);
  line-height: .86;
  text-align: center;
  letter-spacing: -.03em;
}
.year-txt { font-size: max(11px, 2.4cqw); line-height: 1.15; font-weight: 500; }

.cats {
  list-style: none;
  margin: 0;
  padding: 2.4cqw 2.6cqw 1.6cqw;
  border-radius: 1.8cqw;
  box-shadow: 0 1.5cqw 4cqw rgba(33, 33, 255, .35);
}
.stage .cats {
  position: absolute;
  right: -2%; bottom: -12%;
  width: 30%;
  z-index: 4;
}
.cats li {
  padding: .6cqw 0 .9cqw;
  font-size: max(11px, 2.1cqw);
  border-bottom: 1px solid rgba(255, 255, 255, .85);
}
.cats li + li { padding-top: 1.1cqw; }
.cats a { color: inherit; text-decoration: none; }
.cats a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cats li:last-child { border-bottom: 0; }

/* ---------- Sections ---------- */
.section { width: min(1180px, 100%); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter); }
.label { display: block; margin-bottom: 18px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.sec-head { text-align: center; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head h2, .contact h2 {
  margin: 0;
  font-size: clamp(40px, 7.5vw, 92px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}
.sec-head h2 .t-pix, .contact h2 .t-pix { color: var(--blue-2); letter-spacing: -.01em; }
.sec-sub { max-width: 520px; margin: 20px auto 0; color: var(--muted); }

/* Work rows */
.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.work.flip .work-copy { order: 2; }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.num { font: 400 22px/1 var(--pix); color: var(--blue-2); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  font-size: 12px; font-weight: 500;
  border: 1px solid currentColor;
  border-radius: 99px;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--green); }
.pill.beta { color: var(--amber); }
.pill.lab { color: #9b9bff; }
.work h3 { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.kind { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.lede { margin: 20px 0 10px; font-size: clamp(18px, 2vw, 22px); font-weight: 500; line-height: 1.35; }
.work-copy > p:not([class]) { margin: 0 0 12px; color: #cfcfcf; }
.lines { list-style: none; margin: 20px 0; padding: 0; border-top: 1px solid var(--line); }
.lines li { padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 4px 12px; font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px; color: #ddd; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btns.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px;
  font: 500 14px var(--sans);
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 1px solid #444;
  border-radius: 99px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { border-color: #fff; }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .card:focus-visible, .corners a:focus-visible, .phones:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }

/* Sizzlo phone strip */
.work-visual { min-width: 0; }
.phones {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.phones figure { flex: 0 0 min(220px, 58%); margin: 0; scroll-snap-align: start; }
.phones img {
  width: 100%;
  aspect-ratio: 860 / 1869;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid #333;
  background: #000;
}
.phones figcaption { margin-top: 10px; font: 400 15px var(--pix); color: var(--muted); text-align: center; }
.hint { margin: 4px 0 0; font: 400 14px var(--pix); color: var(--muted); text-align: right; }

/* Cyber Tower render grid: tall hero + four wide shots */
.renders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "t a" "t b" "t c" "t d";
  gap: 10px;
}
.renders img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 1px solid #2c2c2c; aspect-ratio: 16 / 9; }
.renders .r-tall { grid-area: t; aspect-ratio: auto; background: #f2f2f2; object-fit: contain; }

/* Hound: two stacked desktop screenshots, the second offset like a window behind */
.duo { display: grid; gap: 12px; }
.duo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid #2c2c2c; background: #0b0b0b; }
@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr; position: relative; padding-bottom: 18%; }
  .duo .zoom:last-child { position: absolute; width: 72%; right: -4%; bottom: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); border-radius: 14px; }
  .duo .zoom:first-child { width: 88%; }
}

/* Zoomable images (open in the viewer) */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.zoom img { transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .2s; }
.zoom:hover img { filter: brightness(1.08); }
.zoom:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.renders .zoom { height: 100%; }
.renders .zoom img { width: 100%; height: 100%; }

/* 3D models */
.band { width: 100%; max-width: none; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(33, 33, 255, .16), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.band > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.models { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.model-btn {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, translate .25s cubic-bezier(.2, .8, .2, 1);
}
.model-btn:hover { border-color: #4a4a4a; translate: 0 -4px; }
.model-btn:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.model-stage {
  display: grid; place-items: center;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 42%, #2e2e38, #17171b 70%);
}
.model-stage img { width: 84%; height: 84%; object-fit: contain; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.model-btn:hover .model-stage img { transform: scale(1.06) rotate(-2deg); }
.model-meta { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 18px; }
.model-kind { font-size: 12px; color: var(--muted); }
.model-name { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.model-tris { font: 400 14px var(--pix); color: var(--blue-2); }
.spin {
  position: absolute; top: 14px; right: 14px;
  padding: 6px 12px;
  font-size: 12px; font-weight: 500;
  border-radius: 99px;
  opacity: 0; translate: 0 -4px;
  transition: opacity .2s, translate .2s;
}
.model-btn:hover .spin, .model-btn:focus-visible .spin { opacity: 1; translate: 0 0; }
@media (hover: none) { .spin { opacity: 1; translate: 0 0; } }

/* Viewer dialog */
.viewer {
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  overflow: visible;
}
.viewer.is-vertical { width: min(460px, calc(100vw - 24px)); }
.viewer::backdrop { background: rgba(5, 5, 10, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.viewer[open] { animation: pop .28s cubic-bezier(.2, .9, .25, 1.1); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.viewer-panel { padding: 14px; border-radius: 28px; }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 6px 12px; }
.viewer-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.viewer-close { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; font-size: 15px; border-radius: 50%; cursor: pointer; }
.viewer-stage { position: relative; border-radius: 18px; overflow: hidden; background: #0b0b0e; }
.viewer-stage > img, .viewer-stage > video { display: block; width: 100%; max-height: calc(100dvh - 180px); object-fit: contain; background: #000; }
.viewer-stage model-viewer, .mv-wrap { display: block; width: 100%; height: min(68vh, 620px); background: radial-gradient(circle at 50% 40%, #2e2e38, #101014 72%); --poster-color: transparent; }
.mv-wrap { position: relative; display: grid; place-items: center; }
.mv-poster { width: 60%; max-height: 80%; object-fit: contain; opacity: .5; }
.mv-loading { position: absolute; bottom: 18px; font: 400 18px var(--pix); color: var(--muted); }
.mv-hint { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font: 400 15px var(--pix); color: rgba(255, 255, 255, .6); pointer-events: none; }
.viewer-note { margin: 12px 6px 4px; font-size: 14px; color: #c8c8c8; }
.viewer-note:empty { display: none; }

/* Floating dock (appears after the hero) */
.dock {
  position: fixed;
  left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex; gap: 2px;
  padding: 6px;
  border-radius: 99px;
  translate: -50% 140%;
  opacity: 0;
  transition: translate .5s cubic-bezier(.2, .9, .25, 1.15), opacity .3s;
}
.dock.show { translate: -50% 0; opacity: 1; }
.dock a {
  padding: 9px 16px;
  font-size: 13px; font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-radius: 99px;
  white-space: nowrap;
  transition: background .2s;
}
.dock a:hover { background: rgba(255, 255, 255, .12); }
.dock a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.dock .dock-cta { background: var(--blue); }
.dock .dock-cta:hover { background: var(--blue-2); }

/* About + contact */
.about { border-top: 1px solid var(--line); }
.about .big { margin: 0; max-width: 980px; font-size: clamp(26px, 4vw, 48px); line-height: 1.18; font-weight: 500; letter-spacing: -.03em; }
.about .big .t-pix { color: var(--blue-2); }
.about-grid { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: 40px; align-items: start; margin-top: 48px; }
.about-grid p { margin: 0; color: #cfcfcf; max-width: 520px; }
.cats-static { padding: 20px 22px 12px; border-radius: 14px; }
.cats-static li { font-size: 14px; padding: 8px 0 10px; }
.cats-static li + li { padding-top: 10px; }

.contact { text-align: center; border-top: 1px solid var(--line); }
.big-btn { min-height: 56px; padding: 14px 28px; font-size: clamp(15px, 2vw, 18px); }

.foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero entrance */
.js .card { animation: deal .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.js .card:nth-child(2) { animation-delay: .06s; }
.js .card:nth-child(3) { animation-delay: .12s; }
.js .card:nth-child(4) { animation-delay: .18s; }
.js .card:nth-child(5) { animation-delay: .24s; }
.js .card:nth-child(6) { animation-delay: .30s; }
@keyframes deal { from { transform: translateY(40%) rotate(0deg); opacity: 0; } }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .work { grid-template-columns: 1fr; }
  .work.flip .work-copy { order: 0; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dock { gap: 0; padding: 5px; }
  .dock a { padding: 8px 11px; font-size: 12px; }
  .dock a[href="#more"] { display: none; }
  .renders { grid-template-columns: 1fr 1fr; grid-template-areas: "t t" "a b" "c d"; }
  .renders .r-tall { max-height: 420px; }
  .hero { padding-top: 96px; padding-bottom: 120px; }
  .tr { display: none; }
  .tc { left: auto; right: var(--gutter); transform: none; }
  .stage { margin-bottom: 14%; }
  .stage .cats { width: 38%; right: -1%; bottom: -16%; }
  .year { bottom: -14%; }
  .year-dot { width: 17cqw; }
  .foot { flex-direction: column; align-items: center; text-align: center; }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .model-btn { border-radius: 18px; }
  .model-meta { padding: 10px 12px 14px; }
  .model-name { font-size: 15px; }
  .spin { top: 8px; right: 8px; padding: 4px 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* Hero tagline + model card */
.tagline {
  position: relative; z-index: 3;
  margin: 1.2em 0 2.2em;
  font-size: clamp(15px, 1.8vw, 19px);
  color: #d6d6d6;
  text-align: center;
}
.card.model { background: radial-gradient(circle at 50% 40%, #34343f, #15151a 75%); border-color: #3a3a44; }
.card.model img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }

/* Sizzlo as the headline project */
.work.feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); padding-top: clamp(48px, 7vw, 88px); }
.work.feature h3 { font-size: clamp(48px, 7vw, 88px); }
.work.feature .phones figure { flex-basis: min(250px, 62%); }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.proof > * {
  padding: 5px 12px;
  font-size: 13px;
  color: #e8e8e8;
  text-decoration: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 99px;
}
.proof .stars { color: #fff; border-color: #3b3b52; }
.proof .stars b { color: #ffc83d; letter-spacing: 1px; font-weight: 400; }
.proof .stars:hover { border-color: #fff; }

/* Games: one playable game + an in-progress list */
.more { border-top: 1px solid var(--line); }
.game {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 26px;
}
.game-shots { display: grid; grid-template-columns: 1fr .9fr; gap: 10px; align-items: start; }
.game-shots img { width: 100%; border-radius: 14px; border: 1px solid #2c2c2c; }
.game-shots .zoom:nth-child(2) { margin-top: 18%; }
.game h3 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.game p { margin: 0 0 16px; color: #cfcfcf; }
.tile-cat { font-size: 12px; color: var(--muted); }
.wip { margin-top: 48px; }
.wip-head { margin: 0 0 12px; font: 400 20px var(--pix); color: var(--muted); }
.wip-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.wip-list li {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.wip-list b { font-weight: 600; }
.wip-list span { color: #c8c8c8; font-size: 14px; }
.wip-list em { font-style: normal; font: 400 15px var(--pix); color: var(--blue-2); white-space: nowrap; }

/* Contact links */
.links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 28px 0 0; padding: 0; font-size: 14px; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: #fff; }

@media (max-width: 820px) {
  .work.feature { grid-template-columns: 1fr; }
  .game { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tagline { margin-bottom: 1.6em; }
  .wip-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* =====================================================================
   LIQUID GLASS
   Every .glass gets frosted glass (blur + tint + moving rim light) everywhere.
   On Chromium, glass.js adds edge refraction via backdrop-filter: url(#filter).
   Layout props use :where() so component rules (fixed, absolute, radius) win.
   ===================================================================== */
:root {
  --glass-blur: 16px;
  --glass-sat: 170%;
  --glass-fill: rgba(255, 255, 255, .06);
  --glass-fill-solid: rgba(28, 28, 34, .94);
  --glass-rim: rgba(255, 255, 255, .55);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .35);
}
:where(.glass) { position: relative; isolation: isolate; border-radius: 20px; color: #fff; }
.glass {
  --rim-angle: 135deg; --mx: 50%; --my: 0%;
  border-color: transparent;
  background: var(--glass-fill-solid);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(255, 255, 255, .04),
    inset 0 0 20px rgba(255, 255, 255, .035),
    var(--glass-shadow);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, .04)), var(--glass-fill);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  }
}
/* Rim light: a 1px gradient ring that turns toward the pointer */
.glass::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(var(--rim-angle), var(--glass-rim), rgba(255, 255, 255, .10) 22%, transparent 45%,
              transparent 60%, rgba(255, 255, 255, .10) 80%, rgba(255, 255, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* Sheen that follows the pointer */
.glass::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  background: radial-gradient(160px circle at var(--mx) var(--my), rgba(255, 255, 255, .14), transparent 70%);
}
.glass:hover::after, .glass:focus-visible::after { opacity: 1; }
.glass.is-lensing { backdrop-filter: var(--lens-filter) blur(var(--lens-blur, 4px)) saturate(var(--glass-sat)); }
.glass--lens { --lens-blur: 2px; }

/* Tinted glass, for the one primary action per area */
.glass--blue {
  --glass-fill: rgba(33, 33, 255, .55);
  --glass-fill-solid: #2121ff;
  --glass-rim: rgba(190, 195, 255, .8);
  --glass-shadow: 0 10px 30px rgba(33, 33, 255, .28), 0 2px 6px rgba(0, 0, 0, .35);
}
.cats.glass--blue { --glass-fill: rgba(33, 33, 255, .72); }

/* Per-component glass tuning */
.btn.glass { border: 0; }
.btn.glass:hover { border: 0; }
.folder-front.glass {
  --glass-fill: rgba(42, 48, 255, .34);
  --glass-fill-solid: rgba(42, 48, 255, .8);
  --glass-rim: rgba(255, 255, 255, .7);
  border: 0;
}
.dock.glass { --glass-fill: rgba(20, 20, 26, .45); }
.viewer-panel.glass { --glass-fill: rgba(20, 20, 26, .62); --glass-blur: 22px; }
.spin.glass, .viewer-close.glass { --glass-fill: rgba(0, 0, 0, .32); }

@media (prefers-reduced-transparency: reduce) {
  .glass, .glass.is-lensing { background: var(--glass-fill-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass, .glass.is-lensing { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; outline: 2px solid #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .glass::after { display: none; }
}

.tagline { text-wrap: balance; }

/* Hound hero card: show the sidebar with the Hound mark */
.card.shot.hound img { object-position: left top; }

/* Quiet secondary action next to a button */
.btn-link { align-self: center; padding: 8px 4px; font-size: 14px; color: var(--muted); text-underline-offset: 3px; }
.btn-link:hover { color: #fff; }
.btn-link:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

/* Phones: lead every project with its picture, not a wall of text */
@media (max-width: 820px) {
  .work .work-visual { order: -1; }
  .work.feature .work-visual { order: -1; }
}

/* Think Sandbox: three vertical frames from the Short */
.frames3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.frames3 img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; border: 1px solid #2c2c2c; background: #000; }

/* Looseleaf: product rows with a status pill */
.products li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 16px; }
.products a { text-decoration: none; white-space: nowrap; }
.products a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.products span { color: #bdbdbd; font-size: 13px; }
.products .pill { font-style: normal; white-space: nowrap; }
@media (max-width: 560px) {
  .products li { grid-template-columns: 1fr auto; }
  .products span { grid-column: 1 / -1; grid-row: 2; }
}
.shot-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid #2c2c2c; }
