.portfolio-intro { padding-block:clamp(2rem,5.2vw,4.8rem) clamp(1.9rem,3.5vw,3rem); }
.portfolio-intro h1 { max-width: 19ch; }
.portfolio-intro .intro { margin-top:1rem; max-width:64ch; color:var(--muted); font-size:clamp(1rem,1.4vw,1.15rem); }
.portfolio-intro .intro-links { display:flex; flex-wrap:wrap; gap:.5rem 1.4rem; margin-top:1rem; }
.intro-links a { color:var(--pine); font-weight:600; text-underline-offset:.2em; }
#demo-heading, .casework h2 { margin-bottom:1rem; }
.project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1rem,2.4vw,2rem); }
.project-card { display:flex; flex-direction:column; overflow:hidden; border-radius:10px; color:var(--ink); background:var(--surface); box-shadow:var(--surface-shadow); text-decoration:none; }
.project-card:has(.report-art) { --glow-rgb: 121 69 84; }
.project-card:has(.game-art) { --glow-rgb: 135 93 44; }
@media (hover: hover) and (pointer: fine) {
  .project-card { transition: box-shadow 360ms var(--hover-ease), transform 360ms var(--hover-ease); }
  .project-card:hover { box-shadow: 0 3px 9px rgb(var(--glow-rgb) / 9%), 0 12px 32px rgb(var(--glow-rgb) / 13%); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-card:hover { transform: translateY(-2px); }
}
.card-art { height:clamp(10rem,17vw,14.5rem); overflow:hidden; }
.card-art > img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 55%; }
.rental-art > img { object-position:50% 72%; }
/* A small view of the moderation workflow, from the Slack channels to the report. */
.report-art {
  display:grid; place-items:center; background-color:#191919;
  background-image:radial-gradient(circle,#464646 .7px,transparent .9px); background-size:14px 14px;
}
.report-flow {
  --node-size:clamp(2.55rem,4.6vw,3.65rem);
  position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  width:min(96%,24rem); color:#fafafa;
}
.report-flow::before {
  content:""; position:absolute; top:calc(var(--node-size) / 2); left:16.67%; right:16.67%;
  border-top:2px solid #a4a4a4;
}
.flow-step {
  position:relative; display:flex; flex-direction:column; align-items:center; gap:.55rem;
  text-align:center; font:550 clamp(.72rem,1vw,.85rem)/1.22 var(--sans);
}
.flow-node {
  position:relative; display:grid; place-items:center; width:var(--node-size); height:var(--node-size);
  border:1.5px solid #868686; border-radius:.7rem; background:#353535;
}
.flow-node::before, .flow-node::after {
  content:""; position:absolute; top:50%; width:7px; height:7px; border:1.5px solid #a4a4a4;
  background:#242424; border-radius:50%; transform:translateY(-50%);
}
.flow-node::before { left:-4px; }
.flow-node::after { right:-4px; }
.flow-step:first-child .flow-node::before, .flow-step:last-child .flow-node::after { display:none; }
.flow-channel { font:650 calc(var(--node-size) * .57)/1 var(--mono); }
.flow-code { background:#ff91ac; color:#191919; border-color:#ff91ac; font:500 calc(var(--node-size) * .43)/1 var(--mono); }
.flow-page {
  width:36%; height:46%; border:1.7px solid currentColor; border-radius:2px;
  background:linear-gradient(currentColor,currentColor) 50% 34% / 60% 1.5px no-repeat,
             linear-gradient(currentColor,currentColor) 50% 54% / 60% 1.5px no-repeat,
             linear-gradient(currentColor,currentColor) 34% 75% / 36% 1.5px no-repeat;
}
.card-copy { flex:1; display:flex; flex-direction:column; align-items:start; padding:clamp(1rem,2.1vw,1.7rem); }
.card-copy h3 { font:400 clamp(1.5rem,2.4vw,2.1rem)/1.15 var(--serif); }
.card-copy p { margin:.55rem 0 1rem; max-width:48ch; color:var(--muted); }
.card-action { margin-top:auto; text-decoration:underline; text-underline-offset:.22em; font-weight:650; color:var(--pine); }
.casework { margin-top:clamp(2rem,4.5vw,4rem); }
.casework article { border-top:1px solid var(--line); padding-block:clamp(1.4rem,3vw,2.5rem) 0; }
.casework article h3 { font:400 clamp(1.45rem,2.7vw,2.2rem)/1.2 var(--serif); margin-bottom:.65rem; }
.casework p { max-width:73ch; padding:0 .3rem 1.25rem; color:var(--muted); }
.search-example {
  margin:0 0 1.5rem; padding:clamp(1rem,2.6vw,2rem);
  border:1px solid var(--line); border-radius:10px; background:var(--surface);
}
.search-example h4 {
  max-width:46ch; margin:0 0 .55rem; text-wrap:balance;
  font:400 clamp(1.3rem,2.3vw,1.8rem)/1.2 var(--serif);
}
.search-example p { margin:0; padding:0; }
.search-method { margin:1.25rem 0 .6rem; padding:0; border:0; }
.search-method legend { margin-bottom:.4rem; padding:0; font-weight:650; }
.search-method label {
  display:inline-flex; align-items:center; gap:.4rem; margin:0 .25rem .25rem 0; padding:.32rem .7rem;
  border:1px solid var(--line); border-radius:.4rem; cursor:pointer;
}
.search-method label:has(:checked) { background:var(--pine-soft); border-color:var(--pine); }
.search-method input { margin:0; accent-color:var(--pine); }
.search-profiles { margin:0; padding:0 0 0 1.6rem; }
.search-profiles li { margin:0 0 .65rem; }
.search-profiles li::marker { color:var(--pine); font-weight:650; }
.search-profiles q { display:block; }
.search-profiles .move-date { margin-inline-start:.5rem; color:var(--muted); font-size:.88rem; }
.search-results > p { margin:.85rem 0 0; border-top:1px solid var(--line); padding:.7rem 0 0; }
@media(max-width:640px) {
  .search-profiles .move-date { display:block; margin-inline-start:0; }
}
.profile-links { display:flex; column-gap:1rem; }
@media(max-width:760px) {
  .project-grid { grid-template-columns:1fr; }
  .game-art { height:auto; aspect-ratio:1.8; }
}

.casework .case-screen {
  display:block;
  width:100%;
  height:auto;
  margin:0 0 1.25rem;
  border-radius:8px;
}
.screen-scroll { border-radius:8px; }
.pan-hint { display:none; }
@media(max-width:640px) {
  .screen-scroll { overflow-x:auto; }
  .screen-scroll:focus-visible { outline-offset:2px; }
  .casework .case-screen { width:66rem; max-width:none; margin:0; border-radius:0; }
  .pan-hint { display:block; color:var(--muted); margin:.4rem 0 1rem; font-size:.83rem; }
}
