.identity {
  --project-edge: clamp(1.2rem, 5vw, 6.5rem);
  position: relative; isolation: isolate; overflow: clip; color: var(--hero-ink); background: var(--hero-ground);
}
.work-opening {
  position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100svh;
  padding: clamp(6.5rem, 14svh, 11rem) var(--project-edge) clamp(1.2rem, 3.5svh, 3.5rem);
}
.hero-art, .hero-art picture, .hero-art img, .hero-art canvas, .hero-art::after {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.hero-art { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; z-index: 0; overflow: hidden; }
.hero-art picture, .hero-art img, .hero-art canvas { display: block; }
.hero-art img { object-fit: cover; }
.hero-art canvas { opacity: 0; }
.hero-art[data-live] canvas { opacity: 1; }
.hero-art[data-live] picture { visibility: hidden; }
.hero-art::after {
  content: ''; z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hero-ground) 60%, transparent), transparent 19% 72%, var(--hero-ground) 100%),
    linear-gradient(100deg, color-mix(in srgb, var(--hero-ground) 39%, transparent), transparent 70%);
}
.work-composition {
  flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(3, 1fr);
  align-items: center; row-gap: clamp(1.3rem, 3vh, 3.5rem);
}
.work-entry { width: fit-content; max-width: 100%; scroll-margin-block: 2rem; }
#monevis { grid-row: 1; grid-column: 1 / 9; }
#quantsentry { grid-row: 2; grid-column: 6 / -1; }
#mailtester { grid-row: 3; grid-column: 2 / 11; }
.work-entry a { display: block; padding: .27rem 0; color: inherit; text-decoration: none; }
.work-entry :is(h2,h3) { margin: 0 0 .11em -.05em; font: 500 clamp(3.3rem, 7.8vw, 12rem)/1 var(--sans); letter-spacing: -.051em; }
#monevis h2 { font-size: clamp(4.8rem, 10.2vw, 15.7rem); }
.work-entry :is(h2,h3) span {
  display: inline-block; vertical-align: top; margin: .32em 0 0 .23em; font: 400 .34em/1 var(--sans); letter-spacing: 0;
  transition: transform .2s ease;
}
.work-entry p { font: 440 clamp(.88rem, 1.07vw, 1.18rem)/1.45 var(--sans); letter-spacing: -.012em; }
.work-entry p span { color: var(--hero-secondary); padding-inline: .22em; }
.work-entry a[data-engaged] :is(h2,h3) { text-decoration: underline; text-decoration-thickness: .035em; text-underline-offset: .095em; }
.work-entry a[data-engaged] :is(h2,h3) span { transform: translate(.12em, -.12em); }
.identity a:focus-visible { outline: 2px solid var(--hero-ink); outline-offset: 6px; }
.work-more {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem clamp(1.2rem, 2.25vw, 2.8rem);
  margin-top: clamp(1.5rem, 3.7svh, 3.7rem); font-size: clamp(.85rem, 1vw, 1.1rem);
}
.work-more > span { color: var(--hero-secondary); font-size: .84em; }
.work-more a { display: inline-flex; align-items: center; min-height: 2.25rem; color: inherit; text-decoration-color: color-mix(in srgb, currentColor 42%, transparent); }
.work-more a:is(:hover,:focus-visible) { text-decoration-color: currentColor; }
.work-credit {
  position: absolute; right: var(--project-edge); top: clamp(7.2rem, 17svh, 14rem);
  font-size: clamp(.82rem, .97vw, 1.03rem); line-height: 1.42; letter-spacing: -.012em;
}
.work-credit p + p { margin-top: .25rem; color: var(--hero-secondary); font-size: .87em; }
@media (max-width: 43.75rem) {
  .work-opening { padding-top: 6.7rem; padding-bottom: 1.45rem; }
  .home .masthead-inner { min-height: 3.8rem; }
  .work-composition { row-gap: 1.65rem; }
  #monevis { grid-column: 1 / -1; }
  #quantsentry { grid-column: 2 / -1; }
  #mailtester { grid-column: 1 / -1; }
  .work-entry :is(h2,h3) { font-size: clamp(2.7rem, 10.9vw, 4.75rem); letter-spacing: -.046em; }
  #monevis h2 { font-size: clamp(3.6rem, 14.6vw, 6.1rem); }
  .work-entry p { font-size: clamp(.79rem, 2.8vw, .95rem); }
  .work-entry p span { padding-inline: .07em; }
  .work-more { gap: 0 clamp(.55rem, 2.2vw, 1rem); margin-top: 1.75rem; }
  .work-more > span { width: 100%; margin-bottom: .15rem; }
  .work-credit { position: static; display: flex; flex-wrap: wrap; gap: .15rem .65rem; align-items: baseline; margin-top: 1.05rem; font-size: .75rem; }
  .work-credit p + p { margin: 0; }
}
@media (max-width: 31rem) {
  .home .masthead-inner { min-height: 0; gap: 0; padding-top: .6rem; }
  .home .masthead nav a { min-height: 2.4rem; }
}
@media (max-width: 22rem) {
  .work-more { display: grid; grid-template-columns: repeat(3, max-content); column-gap: 1.35rem; }
  .work-more > span { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .work-entry :is(h2,h3) span { transition: none; } }
@media (forced-colors: active) { .work-entry :is(h2,h3), .work-more a { text-decoration: underline; } }

.work-chapter {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); align-content: space-evenly;
  min-height: max(88svh, 40rem); padding: clamp(3rem, 6vw, 6.5rem) var(--project-edge);
  gap: clamp(1.8rem, 4.5svh, 4.5rem) 0;
}
.chapter-heading { grid-column: 1/-1; }
.work-chapter .work-entry a { transform: translate3d(0,var(--drift,0px),0); }
.work-chapter .work-entry p { max-width: 36em; text-wrap: pretty; }
.releases #hexvault { grid-column: 5/-1; }
.releases #pokezone { grid-column: 2/10; }
.tools #agentyard { grid-column: 2/10; }
.tools #terminator { grid-column: 5/-1; }
.tools #glm-flash { grid-column: 1/-1; }
.releases #kittyboom { grid-column: 1/-1; }
.work-chapter.releases { min-height: max(145svh, 59rem); }
.releases #infokrasa { grid-column: 4/-1; }
.work-chapter .work-entry :is(h2,h3) { font-size: clamp(3.5rem, 8.6vw, 12.5rem); }
.tools #glm-flash h3 { font-size: clamp(2.8rem, 6.3vw, 9.5rem); }
.work-chapter .work-entry, .work-opening .work-entry { scroll-margin-top: clamp(4rem, 14svh, 9rem); }
@media (max-width: 43.75rem) {
  .work-chapter { min-height: 85svh; padding-block: 2.5rem; gap: 1.8rem 0; }
  .releases :is(#hexvault,#pokezone,#kittyboom,#infokrasa), .tools :is(#agentyard,#terminator,#glm-flash) { grid-column: 1/-1; }
  .work-chapter .work-entry:nth-of-type(2) { padding-left: 6vw; }
  .work-chapter .work-entry h3 { font-size: clamp(2.9rem,12.8vw,5.5rem); }
  .tools #glm-flash h3 { font-size: clamp(2.3rem,9vw,4.25rem); }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.work-chapter) { scroll-behavior: smooth; }
  .work-chapter .work-entry:not(:focus-within) h3 {
    transform: translateY(var(--title-lift, 0));
    clip-path: inset(-.12em -.15em var(--title-veil, -.16em) -.15em);
    padding-bottom: .12em;
    margin-bottom: -.01em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-chapter .work-entry a { transform: none; }
}

.work-more .work-all { gap: .35em; font-weight: 600; text-decoration-thickness: 1px; }
