/* Shared controls; a deliberate distinction between leading and supporting work. */
.work-section { background:#f4f4f2; }
.work-section > .shell { width:min(940px,calc(100% - 64px)); }
.project-index {
  margin:0 0 24px;
  padding:0 0 14px;
  border-bottom:1px solid #d6d9d8;
}
.project-index ul {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:8px 4px;
  margin:0;
  padding:0;
  list-style:none;
}
.project-index a {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  min-height:100%;
  padding:8px 2px;
  border-radius:4px;
  color:#343f46;
  font-size:11px;
  font-weight:550;
  line-height:1.25;
  text-align:center;
  text-wrap:balance;
  overflow-wrap:anywhere;
}
.project-index a:focus-visible { outline-offset:0; }
.project-index-mark {
  display:grid;
  place-items:center;
  width:min(100%,92px);
  height:36px;
}
.project-index-mark img { width:auto; height:auto; max-width:calc(100% - 6px); max-height:36px; }
.project-index-wordmark {
  color:#422f22;
  font:700 clamp(11px,3.6vw,14px)/1 Georgia,serif;
  letter-spacing:-.025em;
  white-space:nowrap;
}
.project-index-wordmark + span { letter-spacing:-.03em; overflow-wrap:normal; }
@media (max-width:959px) {
  .project-index ul { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media (max-width:560px) {
  .project-index ul { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

.project-grid > .portfolio-project {
  --project-tint:#fff;
  --project-ink:#263745;
  --project-accent:#385468;
  --project-button-ink:#fff;
  --project-muted:#5b6973;
  border:1px solid #d5dbdc;
  border-radius:20px;
  background:#fff;
  max-width:none;
  width:100%;
}
.project-grid > .portfolio-project.compact-project { border:1px solid #d5dbdc; border-radius:20px; }
.project-grid > .card-phantom {
  --project-tint:#101f2b;
  --project-ink:#f0f5f7;
  --project-accent:#abe4d5;
  --project-button-ink:#152b38;
  --project-muted:#b6cbd5;
  --project-art:url('../product-art/phantom-gesture-study.webp') center / cover no-repeat;
  --project-art-mask:linear-gradient(90deg,#0008,#000 62%);
  border-color:#101f2b;
}
.project-grid > .card-bug {
  --bug-background:87 45 24;
  --project-tint:rgb(var(--bug-background));
  --project-ink:#fff3df;
  --project-accent:#f5d396;
  --project-button-ink:#422614;
  --project-muted:#eed4b7;
  border-color:var(--project-tint);
}
.project-grid > .card-ai {
  --project-tint:#f6f1e3;
  --project-ink:#24463e;
  --project-accent:#244f46;
  --project-muted:#56655a;
  --project-art:
    url('../product-art/aibiguity-torn-paper.webp') left center / 108% 100% no-repeat,
    linear-gradient(104deg,#f6f1e3 53%,#173e36 53%);
  --project-art-mask:none;
  border-color:#d9d4c4;
}
.project-grid > .card-clanker {
  --project-tint:#17252c;
  --project-ink:#f1f6f5;
  --project-accent:#a3e6eb;
  --project-button-ink:#10252c;
  --project-muted:#c0cdd1;
  border-color:#17252c;
}
.project-grid > .card-chain {
  --project-tint:#25223a;
  --project-ink:#f6f3ff;
  --project-accent:#d7c9f5;
  --project-button-ink:#25223a;
  --project-muted:#cec5e7;
  --project-art:radial-gradient(ellipse at 87% 48%,#5b5078 0%,transparent 58%);
  --project-art-mask:none;
  border-color:#332d49;
}
.project-grid > .card-memeriq {
  --project-tint:#e7efe8;
  --project-ink:#263a32;
  --project-accent:#285951;
  --project-muted:#495d52;
  --project-art:
    linear-gradient(96deg,#e7efe8 33%,#e7efe8ec 47%,transparent 83%),
    radial-gradient(ellipse at 84% 45%,#158f8a 0%,#367c70 53%,transparent 84%);
  --project-art-mask:none;
  border-color:#c7d6cd;
}
.project-grid > .card-embreeflix {
  --project-tint:#231218;
  --project-ink:#fff1e9;
  --project-accent:#f7b7a9;
  --project-button-ink:#391721;
  --project-muted:#e1c3bd;
  --project-art:url('../product-art/embreeflix-a.webp') right 42% / 55% auto no-repeat;
  --project-art-mask:linear-gradient(90deg,transparent 44%,#000 79%);
  border-color:#382025;
}
.project-grid > .card-signal {
  --project-tint:#eaf0e7;
  --project-ink:#294635;
  --project-accent:#315543;
  --project-art:
    repeating-radial-gradient(circle at 86% 48%,transparent 0 24px,#3f6c5140 25px 26px,transparent 27px 42px),
    linear-gradient(105deg,#eaf0e7,#cbdcc9);
}
.project-grid > .card-flight {
  --project-tint:#e5f0f6;
  --project-ink:#20374a;
  --project-accent:#294e6a;
  --project-art:url('../previews/0001s/dji-cynhCtLw7PE.jpg') right center / 64% auto no-repeat;
  --project-art-mask:linear-gradient(90deg,transparent 44%,#000c 86%);
}
.project-grid > .card-cashout {
  --project-tint:#f2e9f2;
  --project-ink:#49315b;
  --project-accent:#624276;
  --project-art:
    repeating-linear-gradient(55deg,transparent 0 22px,#68447e27 22px 23px),
    repeating-linear-gradient(-55deg,transparent 0 22px,#68447e27 22px 23px),
    linear-gradient(135deg,#f2e9f2,#dbc6e5);
}
.project-grid > .card-abbottabad {
  --project-tint:#251e18;
  --project-ink:#fff3e4;
  --project-muted:#d9c6b1;
  --project-accent:#f0d7b2;
  --project-button-ink:#33271c;
  --project-art:url('../product-art/abbottabad-bedroom.webp') right 55% / 66% auto no-repeat;
  --project-art-mask:linear-gradient(90deg,transparent 39%,#000 71%);
  border-color:#46392d;
}
.project-grid > .card-verification {
  --project-tint:#132031;
  --project-ink:#f0f4f7;
  --project-muted:#b8c8d4;
  --project-accent:#d8e6ef;
  --project-button-ink:#16283a;
  --project-art:url('../product-art/verification-vault-photo.webp') 61% center / cover no-repeat;
  --project-art-inset:0 0 0 34%;
  --project-art-mask:linear-gradient(90deg,transparent,#000 45%);
}
.project-grid.selected-projects { gap:28px; }
.project-grid.supporting-projects,.project-grid.more-projects { gap:14px; }
.supporting-projects + .more-projects { margin-top:14px; }
.project-grid.more-projects { overflow:visible; background:transparent; border:0; border-radius:0; }
.project-grid > .project-card.portfolio-project > .prototype-header {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) 210px;
  grid-template-rows:auto 1fr;
  align-items:start;
  align-content:start;
  gap:12px 24px;
  min-height:210px;
  padding:24px;
  color:var(--project-ink);
  background:var(--project-tint);
}
.portfolio-project .brand-scene { display:none; }
.portfolio-project > .prototype-header::before { content:none; }
.portfolio-project > .prototype-header::after { content:none; }
/* Artwork sits beneath the card content so it never captures taps or clicks. */
.portfolio-project[data-demo-open="false"] > .prototype-header::after,
.portfolio-project:is(.card-ai,.card-verification) > .prototype-header::after {
  content:"";
  position:absolute;
  z-index:-1;
  inset:var(--project-art-inset,0);
  pointer-events:none;
  background:var(--project-art,none);
  mask-image:var(--project-art-mask,var(--project-art-default-mask,linear-gradient(90deg,transparent 38%,#000 84%)));
}
.project-progress-tape {
  position:absolute;
  z-index:2;
  left:50%;
  bottom:8px;
  width:calc(100% + 36px);
  height:39px;
  transform:translateX(-50%) rotate(-3deg);
  background:url('../product-art/in-progress-tape.webp') center / auto 100% repeat-x;
  filter:drop-shadow(0 3px 4px #1b130c3d);
  pointer-events:none;
}
.bug-hero-gallery {
  --bug-lane-height:84px;
  --bug-lane-period:1296px;
  position:absolute;
  inset:0;
  z-index:-1;
  display:grid;
  align-content:space-around;
  overflow:hidden;
  pointer-events:none;
  background:radial-gradient(ellipse at 84% 46%,#c77339a3,transparent 69%);
}
.bug-hero-gallery::after {
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgb(var(--bug-background) / .96),rgb(var(--bug-background) / .86) 25%,rgb(var(--bug-background) / .57) 52%,rgb(var(--bug-background) / .14) 78%),
    linear-gradient(0deg,rgb(var(--bug-background) / .59),transparent 22%,transparent 82%,rgb(var(--bug-background) / .4));
}
.bug-hero-lane {
  display:block;
  inline-size:calc(100% + var(--bug-lane-period));
  block-size:var(--bug-lane-height);
  background-repeat:repeat-x;
  background-size:var(--bug-lane-period) var(--bug-lane-height);
  animation:bug-hero-scroll var(--bug-lane-duration) linear var(--bug-lane-phase) infinite paused;
}
.bug-hero-lane:nth-child(1) {
  --bug-lane-duration:60s;
  --bug-lane-phase:-12s;
  background-image:url('../product-art/bug-hero-lane-1.webp');
}
.bug-hero-lane:nth-child(2) {
  --bug-lane-duration:51s;
  --bug-lane-phase:-3s;
  background-image:url('../product-art/bug-hero-lane-2.webp');
}
.bug-hero-lane:nth-child(3) {
  --bug-lane-duration:56s;
  --bug-lane-phase:-22s;
  background-image:url('../product-art/bug-hero-lane-3.webp');
}
.bug-hero-gallery[data-moving="true"] .bug-hero-lane { animation-play-state:running; }
.card-bug[data-demo-open="true"] .bug-hero-gallery { display:none; }
@keyframes bug-hero-scroll {
  to { transform:translateX(calc(-1 * var(--bug-lane-period))); }
}
.bug-gallery-toggle:not([hidden]) {
  position:absolute;
  z-index:2;
  inset:auto 10px 10px auto;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--project-ink);
  cursor:pointer;
}
.bug-gallery-toggle::before {
  content:"";
  position:absolute;
  inset:6px;
  border:1px solid rgb(255 243 223 / .33);
  border-radius:50%;
  background:#321b11de;
}
.bug-gallery-toggle:hover::before { background:#321b11; }
.bug-gallery-toggle:focus-visible { outline:2px solid var(--project-accent); outline-offset:1px; }
.bug-gallery-toggle span {
  position:relative;
  display:block;
  width:7px;
  height:10px;
  border-inline:2px solid currentColor;
}
.bug-gallery-toggle[aria-pressed="true"] span {
  width:0;
  height:0;
  margin-inline-start:2px;
  border:5px solid transparent;
  border-inline-start:8px solid currentColor;
  border-inline-end:0;
}
@media(prefers-reduced-motion:reduce) {
  .bug-hero-lane { animation:none; }
  .bug-gallery-toggle { display:none!important; }
}
.project-grid .portfolio-project .project-banner {
  position:relative;
  z-index:1;
  display:block;
  grid-column:1;
  grid-row:1;
  align-self:start;
  width:100%;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  color:var(--project-ink);
}
.project-grid .portfolio-project .prototype-identity { display:block; }
.project-grid .portfolio-project .project-banner .prototype-identity h2 {
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:10px;
  color:var(--project-ink);
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.035em;
}
.project-grid .portfolio-project .prototype-name > span,
.project-grid .portfolio-project .prototype-domain { color:var(--project-muted); }
.project-grid .portfolio-project .project-banner .prototype-logo { width:32px; height:32px; flex:none; }
.project-grid .portfolio-project .project-banner .phantom-identity { padding:0; border-radius:0; background:transparent; }
.project-grid .portfolio-project .project-banner .prototype-logo.flix-identity { width:154px; height:32px; }
.project-grid .card-embreeflix .project-banner .flix-identity { filter:brightness(1.3); }
.project-grid .card-chain .project-banner .chain-identity {
  width:152px;
  height:auto;
  padding:5px 7px;
  border-radius:5px;
  background:#f4f1f9;
}
.project-grid .portfolio-project .project-banner .project-wordmark-image { display:block; width:var(--wordmark-width); max-width:100%; height:auto; object-fit:contain; }
.wordmark-radar { --wordmark-width:272px; }
.wordmark-flight { --wordmark-width:150px; }
.wordmark-cashout { --wordmark-width:210px; }
.project-grid .portfolio-project .project-banner .prototype-identity h2.project-logo-domain { align-items:flex-end; gap:5px; }
.project-grid .portfolio-project .project-logo-domain > .project-wordmark-image { flex:0 1 auto; min-width:0; }
.project-grid .portfolio-project .project-logo-domain > .prototype-domain { flex:none; font-size:22px; line-height:1.15; font-weight:400; letter-spacing:-.025em; }
.project-grid .portfolio-project .project-banner .project-wordmark-image.wordmark-bug,
.project-grid .portfolio-project .project-banner .project-wordmark-image.wordmark-clanker,
.project-grid .portfolio-project .project-banner .project-wordmark-image.wordmark-memeriq { width:auto; height:76px; flex:none; }
.project-grid .portfolio-project .project-entry-overview { display:contents; }
.project-grid .portfolio-project .project-entry-copy { display:block; position:relative; z-index:1; grid-column:1; grid-row:2; align-self:start; padding:0; }
.project-grid .portfolio-project .project-entry-summary { margin:0; max-width:42ch; color:var(--project-ink); font-size:18px; line-height:1.4; letter-spacing:-.02em; font-weight:500; text-wrap:pretty; }
.project-grid .portfolio-project .project-entry-actions { justify-content:flex-start; margin:12px 0 0; gap:6px 15px; }
.project-grid .portfolio-project .project-entry-actions > a,
.project-grid .portfolio-project .project-entry-actions > button { min-height:44px; font-size:12px; }
.project-grid .portfolio-project .project-entry-actions > a,
.project-grid .portfolio-project .project-entry-actions > .about-project { color:var(--project-ink); text-decoration:underline; text-underline-offset:3px; }
.project-grid .portfolio-project .project-demo-toggle { min-width:108px; padding:0 14px; border:1px solid var(--project-accent); border-radius:8px; color:var(--project-button-ink); background:var(--project-accent); }
.project-grid .portfolio-project .project-demo-toggle:enabled:hover { filter:brightness(1.1); }
.project-grid .portfolio-project .project-demo-toggle:disabled {
  color:var(--project-ink);
  background:color-mix(in srgb,var(--project-accent) 12%,var(--project-tint));
  border-color:color-mix(in srgb,var(--project-accent) 45%,transparent);
}
.project-preview-lock {
  position:relative;
  display:block;
  width:11px;
  height:8px;
  margin-top:4px;
  border:1.5px solid currentColor;
  border-radius:2px;
}
.project-preview-lock::before {
  content:"";
  position:absolute;
  top:-6px;
  left:1px;
  width:6px;
  height:5px;
  border:1.5px solid currentColor;
  border-bottom:0;
  border-radius:4px 4px 0 0;
}
.project-grid .portfolio-project .project-entry-actions > .project-site-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:104px;
  padding:0 14px;
  border:1px solid var(--project-accent);
  border-radius:8px;
  background:transparent;
  color:var(--project-ink);
  font-weight:500;
  text-decoration:none;
}
.project-grid .portfolio-project .project-entry-actions > a.project-site-link:hover { background:color-mix(in srgb,var(--project-ink) 7%,transparent); text-decoration:none; }
.project-grid .portfolio-project .project-entry-actions > .project-site-link:disabled { opacity:.5; cursor:default; }
.portfolio-project .project-entry-actions > :focus-visible { outline:3px solid var(--project-accent); outline-offset:4px; }
.project-grid .portfolio-project .project-preview,
.project-grid .portfolio-project .brand-proof,
.project-grid .portfolio-project .project-media-slot {
  display:flex;
  position:relative;
  z-index:1;
  grid-column:2;
  grid-row:1/3;
  align-self:center;
  min-width:0;
  width:100%;
  height:156px;
  margin:0;
  overflow:hidden;
  border-radius:12px;
}
.project-grid .portfolio-project .project-preview { justify-content:center; align-items:center; }
.selected-projects .portfolio-project .project-preview.ai-question-reel {
  display:block;
  height:clamp(220px,43vw,260px);
  padding:0;
  overflow:visible;
  background:transparent;
}
.ai-question-window {
  height:100%;
  overflow:hidden;
}
.ai-question-track {
  display:flex;
  flex-direction:column;
  height:100%;
}
.ai-question-slide {
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  flex:0 0 100%;
  min-height:0;
  margin:0;
  padding:3px 12px 6px;
  gap:4px;
}
.ai-question-art {
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:0;
}
.ai-question-art img {
  width:min(100%,186px);
  height:100%;
  object-fit:contain;
}
.ai-question-slide figcaption {
  justify-self:center;
  max-width:29ch;
  color:#fff1da;
  font-size:clamp(21px,2.25vw,27px);
  font-weight:600;
  letter-spacing:-.025em;
  line-height:1.18;
  text-align:center;
  text-wrap:balance;
}
.project-grid > .project-card.portfolio-project.card-clanker > .prototype-header {
  min-height:280px;
}
.project-grid .card-clanker .project-entry-summary { max-width:32ch; }
.clanker-surveillance {
  position:absolute;
  z-index:-1;
  inset:0;
  margin:0;
  overflow:hidden;
  pointer-events:none;
}
.clanker-surveillance video {
  position:absolute;
  inset:0 0 0 auto;
  width:75%;
  height:100%;
  object-fit:cover;
  object-position:center 48%;
  filter:brightness(.76) saturate(.68);
}
.clanker-surveillance::before {
  content:"";
  position:absolute;
  z-index:1;
  inset:0 0 0 25%;
  background:
    linear-gradient(#e3ebeb98,#e3ebeb98) right 17px top 16px / 13px 1px no-repeat,
    linear-gradient(#e3ebeb98,#e3ebeb98) right 17px top 16px / 1px 13px no-repeat,
    linear-gradient(#e3ebeb98,#e3ebeb98) right 17px bottom 16px / 13px 1px no-repeat,
    linear-gradient(#e3ebeb98,#e3ebeb98) right 17px bottom 16px / 1px 13px no-repeat,
    repeating-linear-gradient(180deg,transparent 0 3px,#101c251c 3px 4px),
    linear-gradient(180deg,#101c2466,transparent 24% 76%,#101c24a6);
}
.clanker-surveillance::after {
  content:"";
  position:absolute;
  z-index:2;
  inset:0;
  background:linear-gradient(90deg,#17252c 28%,#17252cf7 41%,#17252c91 59%,transparent 85%);
}
.clanker-surveillance figcaption {
  position:absolute;
  z-index:3;
  right:24px;
  bottom:22px;
  padding:3px 6px;
  border-radius:3px;
  background:#17252ce0;
  color:#e5f1f2;
  font:11px/1.35 Consolas,monospace;
}
.project-grid > .project-card.portfolio-project.card-chain > .prototype-header {
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  align-content:center;
}
.project-grid .card-chain .project-entry-summary { max-width:35ch; }
.project-grid .card-chain.portfolio-project .chain-archive-stack {
  display:block;
  height:224px;
  overflow:visible;
}
.chain-archive-slip {
  position:absolute;
  width:91%;
  min-height:88px;
  margin:0;
  padding:11px 13px;
  border:1px solid #a599c57a;
  border-radius:5px;
  background:#433b5d;
  color:#f6f2ff;
  box-shadow:0 6px 14px #100f206e;
}
.chain-archive-slip-back { inset:5px auto auto 0; transform:rotate(-3deg); }
.chain-archive-slip-middle { inset:64px 0 auto auto; transform:rotate(3deg); background:#4d426d; }
.chain-archive-slip-front {
  inset:126px 4% auto auto;
  padding:13px 15px;
  background:#e5ddf3;
  color:#2d2747;
  transform:rotate(-1.5deg);
}
.chain-archive-slip figcaption { margin:0 0 6px; color:#e0d8ef; font-size:11px; line-height:1.35; }
.chain-archive-slip blockquote { margin:0; font-size:13px; font-weight:550; line-height:1.3; }
.chain-archive-slip-front figcaption { color:#55496b; }
.chain-archive-slip-front blockquote {
  font-size:clamp(19px,2.45vw,25px);
  font-weight:680;
  letter-spacing:-.03em;
  line-height:1.12;
}
.project-grid > .project-card.portfolio-project.card-memeriq > .prototype-header {
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
}
.project-grid .card-memeriq .project-entry-summary { max-width:33ch; }
.project-grid .card-memeriq .preview-memeriq {
  display:grid;
  place-items:center;
  height:214px;
  padding:0;
  overflow:visible;
  background:transparent;
}
.preview-meme-icon {
  position:absolute;
  width:31px;
  height:31px;
  object-fit:contain;
  image-rendering:pixelated;
  opacity:.82;
}
.preview-meme-folder { inset:9px auto auto 8%; }
.preview-meme-notepad { inset:auto 8% 9px auto; }
.card-memeriq .preview-meme-window {
  position:relative;
  width:min(88%,305px);
  max-width:none;
  box-shadow:7px 10px 18px #073c396e;
}
.project-grid .card-memeriq .preview-meme-titlebar {
  padding:6px 7px;
  background:#163c79;
  font-size:12px;
}
.project-grid .card-memeriq .preview-meme-content {
  display:grid;
  grid-template-columns:43% minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding:12px 8px;
}
.project-grid .card-memeriq .preview-meme-content img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1;
  object-fit:cover;
}
.project-grid .card-memeriq .preview-meme-content p {
  display:block;
  margin:0;
  font-size:clamp(13px,1.45vw,16px);
  font-weight:650;
  line-height:1.26;
}
.selected-projects .portfolio-project .brand-proof.bug-card-fan {
  height:auto;
  aspect-ratio:1.43;
  overflow:visible;
  isolation:isolate;
  container-type:inline-size;
}
.bug-card-case {
  position:absolute;
  z-index:var(--case-layer,1);
  inset-block-start:var(--case-drop,0px);
  inset-inline-start:var(--case-center,50%);
  width:min(155px,36%);
  padding:clamp(3px,1.35cqw,6px);
  transform:translateX(-50%) rotate(var(--case-angle,0deg));
  transform-origin:50% 18%;
  border:1px solid #b3c1bd;
  border-radius:8px;
  background:
    linear-gradient(112deg,#ffffff0d,transparent 15% 77%,#ffffff08),
    linear-gradient(90deg,#eef9f716,transparent 5% 95%,#eef9f716),
    #16372ce0;
  box-shadow:
    0 9px 17px #02130d55,0 1px 2px #0007,
    inset 0 1px 0 #ffffffd9,inset 1px 0 0 #f1fffc66,
    inset -2px -2px 0 #111f1a99,inset 0 0 0 3px #d7e7e327;
}
.bug-card-case::before {
  content:"";
  position:absolute;
  inset:2px;
  pointer-events:none;
  border:1px solid #f1fffb6e;
  border-radius:6px;
  box-shadow:inset 1px 1px 0 #ffffff24,inset -1px -1px 0 #14291f99;
}
.bug-card-case[data-rarity="common"] {
  --case-center:16%;
  --case-angle:-12deg;
  --case-drop:clamp(10px,3.7cqw,16px);
}
.bug-card-case[data-rarity="rare"] { --case-layer:2; }
.bug-card-case[data-rarity="mythic"] {
  --case-center:84%;
  --case-angle:12deg;
  --case-drop:clamp(10px,3.7cqw,16px);
}
.bug-case-label-bay {
  padding:0 0 4px;
  margin-bottom:5px;
  border-bottom:1px solid #e6f5efb3;
  box-shadow:0 2px 0 #061b15a6,0 3px 0 #e9fbf082;
}
.bug-case-label {
  display:grid;
  grid-template-columns:minmax(0,1fr) 30%;
  align-items:center;
  gap:2px;
  min-height:clamp(32px,12cqw,50px);
  padding:2px clamp(2px,1cqw,4px);
  border:1px solid #b8bfb3;
  border-radius:2px;
  background:linear-gradient(104deg,#f0efe4,#dedfd3);
  color:#263b31;
  box-shadow:0 1px 0 #fff9,inset 0 1px 0 #ffffffe6,0 2px 4px #06180f66;
  line-height:1.1;
}
.bug-case-label-copy { min-width:0; }
.bug-case-brand {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:2px;
  margin-bottom:1px;
  color:#505e54;
  font-size:clamp(6px,1.85cqw,8px);
}
.bug-case-brand img {
  display:block;
  width:clamp(13px,5.3cqw,22px);
  height:auto;
  flex:none;
}
.bug-case-name {
  display:block;
  font-size:clamp(8px,2.9cqw,12px);
  font-weight:750;
  letter-spacing:-.025em;
}
.bug-case-species {
  display:block;
  margin-top:1px;
  color:#505e54;
  font-size:clamp(6px,1.85cqw,8px);
}
.bug-case-portrait {
  display:block;
  width:100%;
  aspect-ratio:1;
  object-fit:contain;
}
.bug-case-chamber {
  padding:clamp(2px,1.1cqw,5px);
  border:1px solid #d7f4e466;
  border-radius:3px;
  background:#102c24;
  box-shadow:0 0 0 1px #081f1a99,inset 0 1px 0 #fbfff277;
}
.bug-case-chamber img {
  display:block;
  width:100%;
  height:auto;
  border-radius:2px;
}
.project-grid > .project-card.portfolio-project.card-embreeflix > .prototype-header {
  grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);
  grid-template-rows:1fr auto auto 1fr;
  gap:0 clamp(20px,3vw,36px);
  padding:24px clamp(20px,3vw,28px);
}
.flix-card-intro {
  display:grid;
  gap:14px;
  grid-column:1;
  grid-row:2;
}
.project-grid .card-embreeflix .project-entry-actions {
  grid-column:1;
  grid-row:3;
  margin:12px 0 0;
}
.project-grid .card-embreeflix .project-entry-actions .build-notes-link { color:var(--project-muted); }
.flix-card-options {
  z-index:1;
  grid-column:2;
  grid-row:1/-1;
  align-self:center;
  justify-self:end;
  width:100%;
  max-width:420px;
  min-width:0;
  padding:13px 13px 12px;
  border:1px solid #ffdcc24f;
  border-radius:9px;
  background:#21151beb;
  box-shadow:0 12px 28px #1b0b127a;
}
.flix-card-options-label {
  margin:0 0 6px 7px;
  color:var(--project-accent);
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.flix-card-choices {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.flix-card-choices button {
  width:100%;
  min-height:35px;
  padding:5px 7px;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:#ebd6d2;
  font:inherit;
  font-size:13px;
  line-height:1.2;
  text-align:left;
  cursor:pointer;
}
.flix-card-choices button[aria-pressed="true"],
.flix-card-choices button:hover {
  border-color:#ffdcc226;
  background:#ffdcc214;
  color:#fff1e9;
}
.flix-card-choices button:focus-visible {
  outline:2px solid var(--project-accent);
  outline-offset:-2px;
}
.flix-card-explanations {
  display:grid;
  margin-top:8px;
  padding:10px 7px 0;
  border-top:1px solid #ffdcc226;
}
.flix-card-explanations p {
  grid-area:1/1;
  margin:0;
  color:#f2ddd9;
  font-size:13px;
  line-height:1.45;
}
.flix-card-explanations [aria-hidden="true"] { visibility:hidden; }
@media (pointer:coarse) {
  .flix-card-choices button { min-height:44px; }
}
.flix-connection-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:0 14px; }
.project-grid .card-phantom .project-media-slot { display:block; height:auto; overflow:visible; }
.project-grid .card-phantom .brand-phantom-proof { display:block; width:100%; height:auto; padding:5px; border:1px solid #5f7784; background:#0c1c25; border-radius:10px; }
.brand-phantom-proof img { display:block; width:100%; height:auto; border-radius:5px; }
.brand-phantom-proof figcaption { padding:5px 4px 2px; color:#d6e1e8; font-size:9px; }
.project-grid .card-phantom[data-demo-open="true"] .brand-phantom-proof { display:none; }
.project-grid .portfolio-project .project-demo-toolbar { display:none; }
.project-grid .portfolio-project .project-demo-panel { border-top:1px solid #e1e5e7; background:#fff; }
.project-grid .card-phantom .project-demo-panel { border:0; background:transparent; }
.project-grid .card-phantom[data-demo-open="true"] .project-media-slot,
.project-grid .card-phantom[data-demo-open="true"] .project-demo-panel,
.project-grid .card-phantom[data-demo-open="true"] .phantom-demo { display:contents; }
.card-phantom .phantom-film { grid-column:1/-1; grid-row:3; width:100%; margin:6px 0 0; border-color:#4a6472; }
.card-phantom .phantom-tools { grid-column:2; grid-row:1/3; align-self:center; min-width:0; margin:0; }
.card-phantom .phantom-chapter-heading { margin:0; color:#bfd0d9; }
.card-phantom .phantom-chapter-heading button { color:#d3e2e8; }
.card-phantom .phantom-chapters { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
.card-phantom .phantom-chapters button { padding:9px; min-height:58px; color:#e1edf2; background:#203b4b; border-color:#4a6472; }
.card-phantom .phantom-chapters small { color:#b6cbd5; }
.card-phantom .phantom-chapters button:hover,.card-phantom .phantom-chapters button[aria-pressed="true"] { color:#c6f6e9; background:#2c4f5b; border-color:#abe4d5; }
.card-phantom .phantom-expand { margin-top:12px; color:#d3e2e8; border-color:#4a6472; }
.card-phantom .phantom-feedback { color:#bfd0d9; }
.project-preview.preview-flight > img { width:100%; height:100%; object-fit:cover; }
.preview-radar { background:#f2f6ee; border:1px solid #d9e2d6; }
.preview-radar img,.preview-cashout img { width:100%; height:100%; object-fit:contain; }
.preview-cashout { background:#281d37; }
.project-grid .card-abbottabad .project-banner .prototype-identity h2 {
  font-family:Georgia,serif;
  font-size:clamp(25px,3vw,32px);
  font-weight:600;
}
.project-grid .card-abbottabad .project-demo-panel { border-color:#544334; background:#251e18; color:var(--project-ink); }
.abbottabad-rooms {
  display:flex;
  flex-wrap:wrap;
  gap:12px 8px;
  min-width:0;
  margin:0;
  padding:clamp(16px,3vw,24px);
  border:0;
}
.abbottabad-rooms label {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  border:1px solid #d9c6b167;
  border-radius:7px;
  font-size:13px;
  cursor:pointer;
}
.abbottabad-rooms input:checked + label { background:var(--project-accent); color:var(--project-button-ink); }
.abbottabad-rooms input:focus-visible + label { outline:2px solid var(--project-accent); outline-offset:3px; }
.abbottabad-room { display:none; flex:0 0 100%; margin:0; }
#abbottabad-bedroom:checked ~ .abbottabad-bedroom,
#abbottabad-study:checked ~ .abbottabad-study { display:block; }
.abbottabad-room img { display:block; width:100%; height:auto; border-radius:8px; }
.abbottabad-room figcaption { margin-top:8px; color:var(--project-muted); font-size:13px; }
/* The first three projects get room to make their case. */
.selected-projects > .project-card.portfolio-project > .prototype-header { grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr); padding:32px; min-height:330px; gap:20px 28px; }
.selected-projects .portfolio-project .project-banner .prototype-identity h2 { font-size:27px; }
.selected-projects .portfolio-project .project-banner .prototype-logo { width:40px; height:40px; }
.selected-projects .portfolio-project .project-banner .phantom-identity { padding:5px; border-radius:9px; background:#e6eff2; }
.selected-projects .portfolio-project .project-entry-summary { font-size:26px; line-height:1.3; max-width:25ch; }
.selected-projects .portfolio-project .project-entry-actions { margin-top:23px; }
.selected-projects .portfolio-project .project-preview { height:242px; }
.selected-projects + .supporting-projects { margin-top:28px; }
@media(min-width:701px) {
  .selected-projects > .project-card.portfolio-project.card-bug > .prototype-header {
    grid-template-columns:minmax(0, .94fr) minmax(0,1.06fr);
  }
}
@media(max-width:700px) {
  .work-section > .shell { width:calc(100% - 28px); }
  .project-grid > .portfolio-project { --project-art-default-mask:linear-gradient(90deg,transparent 44%,#0009 100%); }
  .project-grid > .project-card.portfolio-project > .prototype-header { grid-template-columns:minmax(0,1fr) 104px; grid-template-rows:auto auto auto; gap:14px 16px; padding:20px; min-height:0; }
  .project-grid .portfolio-project .project-banner { grid-column:1/-1; }
  .project-grid .portfolio-project .project-banner .prototype-identity h2 { font-size:21px; gap:8px; }
  .project-grid .portfolio-project .project-banner .prototype-logo { width:30px; height:30px; }
  .project-grid .portfolio-project .project-logo-domain > .prototype-domain { font-size:21px; }
  .project-grid .portfolio-project .project-banner .project-wordmark-image.wordmark-bug,
  .project-grid .portfolio-project .project-banner .project-wordmark-image.wordmark-clanker,
  .project-grid .portfolio-project .project-banner .project-wordmark-image.wordmark-memeriq { height:66px; }
  .project-grid .portfolio-project .project-entry-copy { display:contents; }
  .project-grid .portfolio-project .project-entry-summary { grid-column:1; grid-row:2; align-self:center; font-size:16px; }
  .project-grid .portfolio-project .project-entry-actions { grid-column:1/-1; grid-row:3; position:relative; z-index:1; margin:0; gap:6px 15px; }
  .project-grid .portfolio-project .project-entry-actions > a,.project-grid .portfolio-project .project-entry-actions > button { font-size:11px; }
  .project-grid .portfolio-project .project-preview,.project-grid .portfolio-project .brand-proof,.project-grid .portfolio-project .project-media-slot { grid-column:2; grid-row:2; height:108px; max-width:none; padding:0; justify-self:center; }
  .project-grid > .project-card.portfolio-project.card-clanker > .prototype-header {
    padding-bottom:clamp(146px,48vw,210px);
  }
  .project-grid .card-clanker .project-entry-summary { grid-column:1/-1; }
  .clanker-surveillance { inset:42% 0 0; }
  .clanker-surveillance video { width:100%; object-position:center 58%; }
  .clanker-surveillance::before { inset:0; }
  .clanker-surveillance::after { background:linear-gradient(180deg,#17252c 5%,#17252cd4 25%,transparent 68%); }
  .project-grid > .project-card.portfolio-project.card-chain > .prototype-header {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto auto;
  }
  .project-grid .card-chain.portfolio-project .chain-archive-stack {
    grid-column:1;
    grid-row:4;
    max-width:380px;
    height:220px;
    margin-top:6px;
  }
  .project-grid > .card-memeriq {
    --project-art:linear-gradient(180deg,#e7efe8 38%,transparent 86%),linear-gradient(135deg,#e7efe8 32%,#177b76 100%);
  }
  .project-grid > .project-card.portfolio-project.card-memeriq > .prototype-header {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto auto;
  }
  .project-grid .card-memeriq .preview-memeriq {
    grid-column:1;
    grid-row:4;
    height:190px;
    max-width:380px;
    margin-top:4px;
  }
  .preview-meme-icon { width:25px; height:25px; }
  .project-grid > .project-card.portfolio-project.card-embreeflix > .prototype-header {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto;
    gap:14px;
  }
  .card-embreeflix .flix-card-intro { grid-row:1; }
  .project-grid .card-embreeflix .project-entry-actions { grid-row:3; margin:0; column-gap:10px; }
  .card-embreeflix .flix-card-options { grid-column:1; grid-row:2; justify-self:start; padding:11px; }
  .card-embreeflix .flix-card-choices button { font-size:clamp(11px,3.05vw,13px); }
  .selected-projects > .project-card.portfolio-project > .prototype-header { grid-template-columns:minmax(0,1fr); gap:18px; padding:24px; }
  .selected-projects .portfolio-project .project-entry-copy { display:block; grid-column:1; grid-row:2; }
  .selected-projects .portfolio-project .project-banner .prototype-identity h2 { font-size:24px; }
  .selected-projects .portfolio-project .project-entry-summary { font-size:23px; max-width:29ch; }
  .selected-projects .portfolio-project .project-entry-actions { margin-top:19px; }
  .selected-projects .portfolio-project .project-preview,.selected-projects .portfolio-project .brand-proof,.selected-projects .portfolio-project .project-media-slot { grid-column:1; grid-row:3; height:210px; max-width:380px; }
  .project-grid > .card-ai {
    --paper-length:clamp(455px,calc(86vw + 18px),520px);
    --project-art:
      url('../product-art/aibiguity-torn-paper.webp') center / 100% 100% no-repeat,
      linear-gradient(104deg,#f6f1e3 53%,#173e36 53%);
    --project-art-mask:linear-gradient(90deg,transparent,#000 16%);
    container-type:inline-size;
  }
  .portfolio-project.card-ai > .prototype-header::after {
    inset:calc(100% - var(--paper-length)) auto auto 100%;
    width:var(--paper-length);
    height:100cqi;
    transform:rotate(90deg);
    transform-origin:top left;
  }
  .project-grid .card-phantom .project-media-slot,.project-grid .card-phantom .brand-phantom-proof { height:auto; }
  .card-phantom .phantom-film { grid-row:3; margin:0; }
  .card-phantom .phantom-tools { grid-column:1; grid-row:4; }
  .project-grid > .card-phantom {
    --project-art:url('../product-art/phantom-gesture-study.webp') 86% center / cover no-repeat;
    --project-art-inset:31% 0 0;
    --project-art-mask:linear-gradient(180deg,transparent,#000 44%);
  }
  .bug-hero-gallery {
    --bug-lane-height:70px;
    --bug-lane-period:1080px;
    inset:43% 0 0;
  }
  .bug-hero-gallery::after {
    background:linear-gradient(180deg,var(--project-tint),rgb(var(--bug-background) / .65) 22%,rgb(var(--bug-background) / .07) 57%,rgb(var(--bug-background) / .28));
  }
  .project-grid > .card-embreeflix {
    --project-art:
      linear-gradient(180deg,transparent 63%,#23121899),
      url('../product-art/embreeflix-a.webp') center bottom / auto 58% no-repeat;
    --project-art-mask:linear-gradient(180deg,transparent 32%,#000 84%);
  }
  .project-grid > .card-flight {
    --project-art:url('../previews/0001s/dji-cynhCtLw7PE.jpg') right center / auto 100% no-repeat;
    --project-art-mask:linear-gradient(90deg,transparent 61%,#0009 100%);
  }
  .project-grid > .card-verification {
    --project-art:url('../product-art/verification-vault-photo.webp') 87% center / auto 100% no-repeat;
    --project-art-inset:auto 0 0;
    --project-art-mask:linear-gradient(180deg,transparent,#000 30%);
  }
  .card-verification > .prototype-header::after { height:clamp(196px,50vw,235px); }
  .project-grid > .card-abbottabad {
    --project-art:url('../product-art/abbottabad-bedroom.webp') center bottom / cover no-repeat;
    --project-art-inset:auto 0 0;
    --project-art-mask:linear-gradient(180deg,transparent,#000 47%);
  }
  .project-grid > .project-card.portfolio-project.card-abbottabad > .prototype-header { grid-template-columns:minmax(0,1fr); }
  .project-grid .card-abbottabad .project-entry-copy { display:block; }
  .project-grid .card-abbottabad .project-entry-actions { margin-top:12px; }
  .project-grid > .portfolio-project.card-abbottabad[data-demo-open="false"] > .prototype-header { padding-bottom:clamp(152px,39vw,220px); }
  .card-abbottabad > .prototype-header::after { height:clamp(146px,38vw,218px); }
  .project-progress-tape { height:34px; bottom:9px; }
}
@media(max-width:370px) {
  .work-section > .shell { width:calc(100% - 20px); }
  .project-grid > .project-card.portfolio-project > .prototype-header { padding:17px; column-gap:12px; grid-template-columns:minmax(0,1fr) 86px; }
  .selected-projects > .project-card.portfolio-project > .prototype-header { grid-template-columns:minmax(0,1fr); padding:20px; }
  .project-grid .portfolio-project .project-banner .prototype-identity h2 { font-size:20px; }
  .selected-projects .portfolio-project .project-banner .prototype-identity h2 { font-size:22px; }
  .project-grid .portfolio-project .project-banner .prototype-logo { width:30px; height:30px; }
  .project-grid .portfolio-project .project-banner .chain-identity { width:130px; }
  .project-grid .portfolio-project .project-banner .prototype-logo.flix-identity { width:145px; }
  .selected-projects .portfolio-project .project-entry-summary { font-size:22px; }
}
.project-grid > .portfolio-project.has-progress-tape > .prototype-header { padding-bottom:58px; }
@media print {
  .project-grid > .portfolio-project { --project-ink:#263745; --project-muted:#5b6973; }
  .bug-hero-gallery,.bug-gallery-toggle,.clanker-surveillance,.flix-card-options,.project-progress-tape { display:none!important; }
  .portfolio-project > .prototype-header::after,.portfolio-project .project-media-slot,.portfolio-project .project-preview,.portfolio-project .brand-proof { display:none!important; }
  .project-grid > .project-card.portfolio-project > .prototype-header { display:block; min-height:0; background:#fff; padding:20px; }
  .project-grid .portfolio-project .project-entry-copy { margin-top:16px; }
}
