/* The artist's field manual uses the same paper, inks and Cut-up Manual type as the original edition. */
.portfolio-page {
  --stock: var(--paper); --chalk: var(--muted); --phosphor: var(--cyan); --safety: var(--amber);
  --rule: #62517c; --type: var(--display); --caption: var(--display);
  --page-gutter: clamp(1rem, 4.6vw, 5rem);
  color: var(--stock);
  background-color: var(--night);
  /* Midnight ink on rough stock: static wear belongs to the surface, not the artwork. */
  --ink-wear: var(--material-screenprint);
  background-image: var(--ink-wear);
  background-repeat: repeat;
  background-size: 768px 768px;
}
/* Retire the inherited full-page grain overlay: preserve the clarity of prints and controls. */
body.portfolio-page::after { content: none; }
.portfolio-page main { max-width: 96rem; padding: 0 var(--page-gutter); }
.portfolio-page .site-header { padding: .7rem var(--page-gutter); border-bottom: 1px dashed var(--muted); background: var(--ink-wear) 0 0 / 768px 768px repeat, var(--night); gap: .5rem 1.4rem; }
.portfolio-page .wordmark img { height: 3.1rem; }
.portfolio-page .site-nav { gap: .45rem clamp(.7rem, 2.9vw, 3.1rem); }
.portfolio-page .site-nav a { font: 700 .95rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--stock); }
.portfolio-page .site-nav a:hover, .portfolio-page .site-nav a[aria-current] { color: var(--phosphor); text-decoration: underline; text-underline-offset: .34rem; }
.portfolio-page a { text-underline-offset: .23em; }
.portfolio-page :focus-visible { outline: 3px solid var(--safety); outline-offset: 4px; }
.portfolio-page .site-footer { border-top: 1px solid var(--rule); color: var(--chalk); font: .875rem/1.6 var(--caption); }
.portfolio-page .site-footer a, .portfolio-page .old-entrance a { color: var(--chalk); }
.rubric, .gallery-heading small, .gallery-card small, .archive-piece small, .desk-links small {
  font: .875rem/1.5 var(--caption); text-transform: uppercase; letter-spacing: .045em; color: var(--phosphor);
}
.portfolio-page .rubric { margin: 0 0 .9rem; }
.entrance { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(14rem, .88fr) minmax(0, 1.45fr); gap: clamp(1.8rem, 4vw, 4.5rem); align-items: center; padding: clamp(2.6rem, 4.8vw, 5rem) 0; }
.entrance::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(0px - var(--page-gutter)); background: var(--ink-wear) 0 0 / 768px 768px repeat, linear-gradient(90deg, #0b0420ad, #0b042070 45%, #0b0420c4), url("images/hero.webp") center 60% / cover no-repeat; border-bottom: 1px dashed var(--cyan); }
.entrance-copy { min-width: 0; container-type: inline-size; }
.entrance-copy .rubric, .room-heading .rubric { display: table; padding: .3rem .65rem .16rem; background: var(--paper); color: var(--paper-ink); transform: rotate(-1.4deg); box-shadow: 3px 2px 0 var(--pink); }
.entrance h1, .room-heading h1 { font: 400 clamp(2.8rem, 6.6vw, 6.4rem)/.99 var(--display); letter-spacing: -.055em; margin: 1.25rem 0 1rem; text-transform: uppercase; color: var(--stock); text-shadow: 2px 2px 0 var(--pink); }
.entrance h1 { font-size: clamp(2.4rem, 20cqi, 6.4rem); }
.entrance h1 small { display: block; font: 400 .4em/1.1 var(--display); text-shadow: none; letter-spacing: .02em; }
.entrance h1 span { color: var(--pink); text-shadow: none; }
.entrance-copy > p:not(.rubric), .room-heading > p:not(.rubric) { max-width: 42ch; font: 1.2rem/1.48 var(--body); color: var(--stock); }
.entrance-copy > p.entrance-strapline { font: 400 clamp(1.35rem, 3vw, 2rem)/1.24 var(--display); max-width: 28ch; color: var(--cyan); margin: 0 0 1.2rem; }

/* The first picture is the same CRT that ends up on the workbench. The opening
   is a removable visual layer: the real page never loses scrolling or focus. */
.transmission-pending::after { content: ''; position: fixed; inset: 0; z-index: 100; background: #100e1b; pointer-events: none; }
.transmission { position: fixed; inset: 0; z-index: 101; pointer-events: none; }
.transmission-dark { position: absolute; inset: 0; background: #100e1b; }
.transmission-room { position: fixed; top: 0; left: 0; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.transmission-room .crt-glass { box-shadow: 0 0 3rem #2ee6ff0b; }
.transmission-room .crt-glass img { display: block; position: absolute; inset: 0; }
.transmission-room .crt-glass::after { z-index: 5; box-shadow: inset 0 0 .7rem #06041066; }
.transmission-room .ident-band, .transmission-room .ident-plate { pointer-events: none; }
.transmission-room .ident-plate { mix-blend-mode: screen; }
.ident-noise { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; image-rendering: pixelated; }
.ident-roll { position: absolute; inset: 0 0 auto; height: 25%; z-index: 3; background: linear-gradient(transparent, #2ee6ff40, transparent); }
.transmission-running .entrance-copy { opacity: 0; }
.transmission-revealing .entrance-copy { opacity: 1; transition: opacity .6s ease .15s; }
@media (prefers-reduced-motion: reduce) {
  .transmission, .transmission-pending::after { display: none; }
  .transmission-running .entrance-copy { opacity: 1; transition: none; }
}
.entrance-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.interfere-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .65rem 1.15rem; margin: .15rem 0;
  background: #b91e2d; color: #fff; border: 2px solid var(--night);
  box-shadow: 4px 4px 0 var(--amber); font: 700 1rem/1.35 var(--body);
  text-transform: uppercase; text-decoration: none;
}
.interfere-link::before { content: "⚠️"; font-size: 1.15em; line-height: 1; flex-shrink: 0; }
.interfere-link:hover { background: #941725; color: #fff; }
.interfere-link:active { box-shadow: 1px 1px 0 var(--amber); transform: translate(3px, 3px); }
.ink-button { display: inline-block; background: var(--green); border: 2px solid var(--night); padding: .65rem 1.15rem; margin: .15rem 0; font: 700 1rem/1.35 var(--body); color: var(--night); box-shadow: 4px 4px 0 var(--pink); text-decoration: none; }
.ink-button:hover { background: var(--stock); color: var(--night); }
.workbench { margin: .7rem .45rem .45rem 0; min-width: 0; border: 2px solid var(--cyan); background: var(--panel); box-shadow: .45rem .45rem 0 var(--pink); }
.workbench.taped::before, .workbench.taped::after { pointer-events: none; width: clamp(2.6rem, 6vw, 5rem); }
.room-image { position: relative; container-type: inline-size; }
.room-image .bench-art { width: 100%; height: auto; display: block; }
.crt-glass, .screen-link { position: absolute; left: 34.8%; top: 30.3%; width: 23.4%; height: 34.4%; border-radius: 10% / 12%; }
.crt-glass { overflow: hidden; background: #100e1b; pointer-events: none; }
.crt-glass img { width: 100%; height: 100%; padding: 2%; object-fit: contain; }
.crt-glass::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 2px, #0403111e 2px 3px); box-shadow: inset 0 0 .6rem #060410bb; border-radius: inherit; }
.workbench [hidden] { display: none; }
.screen-link:hover { box-shadow: 0 0 0 2px var(--phosphor); }
.room-tag { position: absolute; padding: .32rem .55rem .22rem; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-ink); font: .94rem/1.25 var(--caption); text-decoration: none; box-shadow: 2px 2px 0 var(--paper-ink); }
.room-tag::before { content: "+"; margin-right: .35em; color: var(--paper-pink); }
.room-tag:hover, .room-tag:focus-visible { background: var(--cyan); color: var(--night); }
.room-tag:hover::before { color: inherit; }
.wall-tag { left: 15%; top: 27%; transform: rotate(-3deg); }
.tape-tag { left: 2%; top: 66%; transform: rotate(2deg); }
.stick-tag { right: 6%; top: 72%; transform: rotate(3deg); }
.dial {
  --dial-diameter: clamp(21px, 5.4cqi, 3.5rem);
  position: absolute; left: calc(63.9% - var(--dial-diameter) / 2); top: 46.1%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 3px; min-height: 44px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
}
.dial::after {
  position: static; order: -1; width: var(--dial-diameter); aspect-ratio: 1;
  border: 4px dashed var(--green);
  filter: drop-shadow(0 1px 1px var(--night));
}
.dial-label {
  color: var(--night); background: var(--pink); padding: .27rem .46rem .27rem .75rem;
  clip-path: polygon(0 50%, .42rem 0, 100% 0, 100% 100%, .42rem 100%);
  font: 700 clamp(.78rem, 2.2cqi, 1rem)/1 var(--body); letter-spacing: .07em; text-transform: uppercase;
}
.dial:hover .dial-label, .dial:focus-visible .dial-label { background: var(--amber); }
.dial:active .dial-label { transform: translateX(-2px); }
@media (forced-colors: active) {
  .dial-label { border: 2px solid ButtonText; clip-path: none; }
}
.tuner { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; padding: .55rem .75rem; border-top: 2px solid var(--paper-ink); background: var(--material-photocopy) 17% 29% / 640px repeat, var(--paper); background-blend-mode: multiply; color: var(--paper-ink); font: 1rem/1.3 var(--caption); }
.tuner .channel-open {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  gap: .35rem; min-height: 44px; margin: 0 0 0 auto; padding: .35rem .8rem;
  background: var(--green); color: var(--night); border: 2px solid var(--night);
  box-shadow: 2px 2px 0 var(--pink); font: 700 .95rem/1.2 var(--body);
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.tuner .channel-open:hover { background: var(--paper); }
.tuner .channel-open:active { box-shadow: none; transform: translate(2px, 2px); }
.crt-glass .channel-static { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .4; image-rendering: pixelated; }
.crt-glass.is-loading img { visibility: hidden; }
.crt-glass.is-loading::before { content: 'TUNING…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font: 700 clamp(.5rem, 1.7cqi, .9rem)/1 var(--body); }
@media (prefers-reduced-motion: reduce) { .crt-glass .channel-static { display: none; } }
.tuner-id { color: var(--paper-pink); white-space: nowrap; }
.channel-guide { flex: 1 1 0; min-width: 4rem; font-size: .75rem; }
.channel-guide select { display: block; width: 100%; min-height: 2.25rem; background: var(--paper); border: 1px solid var(--paper-ink); color: var(--paper-ink); font: 700 1rem/1.2 var(--body); cursor: pointer; }
.sr-only { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; }
.spread-head, .gallery-heading { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; padding-bottom: 1.1rem; }
.spread-head h2, .interference h2, .gallery-heading h2, .reading h2, .archive-piece h2, .notebook-lead h2 {
  font: 400 clamp(1.85rem, 4.2vw, 4rem)/1.04 var(--type); letter-spacing: -.045em;
  margin: .35rem 0 .65rem; color: var(--stock); text-transform: none;
}
.spread-head a, .room-index a, .interference-list a, .meter-exhibit > a, .archive-piece a, .reading a:not(.ink-button), .artist-spread figcaption a, .work-end a, .gallery-heading small { color: var(--phosphor); }
.exhibit-section { padding: 2rem 0 3rem; }
.spread-head::after { content: ""; flex: 1; height: .75rem; order: 1; border-inline: 1px solid var(--cyan); background: linear-gradient(var(--cyan), var(--cyan)) center / 100% 1px no-repeat; }
.spread-head a { order: 2; }
.project-grid { display: grid; grid-template-columns: 1.22fr 1fr 1fr; gap: clamp(1rem, 2.5vw, 2.4rem); }
.project-card a, .gallery-card, .notebook-lead a { color: var(--stock); text-decoration: none; display: block; }
.project-card a:hover h3, .gallery-card:hover h3, .notebook-lead a:hover h2 { text-decoration: underline; text-decoration-color: var(--safety); }
.project-image { aspect-ratio: 1.55; background: var(--panel); border: 1px solid var(--cyan); overflow: hidden; display: grid; place-items: center; }
.project-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.project-card:first-child .project-image img { object-fit: cover; object-position: 50% 42%; }
.project-card:last-child .project-image { background: var(--night); }
.project-card:last-child .project-image img { object-fit: cover; object-position: 50% 60%; }
.project-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-bottom: 1px solid var(--rule); padding: 2.5rem 0 1.4rem; }
.project-pair .project-image { aspect-ratio: 2.6; }
.project-card { min-width: 0; }
.project-card > a { box-shadow: 4px 4px 0 var(--pink); }
.project-card:nth-child(2) > a { box-shadow: 4px 4px 0 var(--cyan); }
.project-caption { padding: 1rem 1rem 1.2rem; background: var(--paper); color: var(--paper-ink); }
.project-caption h3, .gallery-card h3 { font: 400 clamp(1.25rem, 2.2vw, 2rem)/1.14 var(--type); margin: .15rem 0 .4rem; text-transform:none; color:var(--stock); }
.project-caption p:last-child { margin: 0; max-width: 40ch; line-height: 1.42; }
.project-caption h3 { color: var(--paper-ink); }
.project-caption .rubric { margin: 0 0 .4rem; color: var(--paper-pink); }
.interference, .artist-spread, .archive-piece { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 6vw, 6rem); align-items: start; padding: clamp(2.2rem, 5vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.interference-list { padding: 0; list-style: none; }
.interference-list li { border-top: 1px solid var(--rule); }
.interference-list a { display: block; padding: .55rem .2rem; }
.meter-exhibit { background: var(--material-riso) 23% 39% / 400px repeat, var(--panel); border: 2px solid var(--cyan); box-shadow: 5px 5px 0 var(--pink); padding: clamp(1rem, 3vw, 2.2rem); }
.meter-exhibit .machine { max-width: 27rem; margin: auto; }
.meter-exhibit > a { display: block; text-align: center; margin-top: .9rem; }
.desk-links { display: grid; grid-template-columns: 1.3fr 1fr; border-block: 1px solid var(--rule); gap: 1.2rem; }
.desk-links a { padding: 1.4rem 0; text-decoration: none; }
.desk-links a:hover strong { text-decoration: underline; }
.desk-links strong { display: block; margin-top: .3rem; color: var(--stock); font: 400 clamp(1.45rem, 3vw, 2.5rem)/1.15 var(--type); }
.old-entrance { font-size: 1rem; }
.room-heading { padding: clamp(2.5rem, 5vw, 5rem) 0 1.5rem; }
.room-heading h1 { font-size: clamp(2.45rem, 7.5vw, 6.2rem); max-width: 22ch; overflow-wrap: break-word; }
.room-heading > p:not(.rubric) { max-width: 54ch; }
.room-heading > p:last-child { margin-bottom: 0; }
.room-index { display: flex; flex-wrap: wrap; gap: .6rem 1.65rem; border-block: 1px solid var(--rule); padding: 1rem 0; }
.gallery-room { padding: 3.5rem 0 1rem; scroll-margin: 1rem; }
.gallery-heading p { margin: 0; max-width: 53ch; color: var(--chalk); }
.gallery-heading { align-items: center; gap: clamp(1rem, 4vw, 4rem); border-top: 1px dashed var(--cyan); padding-top: 1.1rem; }
.gallery-heading .chapter-art { width: min(30%, 16rem); margin: 0; }
.gallery-heading small { white-space: nowrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1rem, 2.4vw, 2.75rem); list-style: none; margin: .8rem 0 2.5rem; padding: 0; }
.gallery-mount { height: clamp(13rem, 27vw, 29rem); background: var(--night); border: 1px solid var(--rule); box-shadow: 3px 3px 0 var(--rule); padding: 1rem; display: grid; place-items: center; }
.gallery-mount img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-card h3 { margin-top: .85rem; }
.gallery-card small { color: var(--chalk); letter-spacing: 0; text-transform: none; font-size: .875rem; }
.artist-spread figure { margin: 0; min-width: 0; }
.artist-spread figure img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.artist-spread figcaption, .archive-piece small { display: block; font: .9rem/1.5 var(--caption); color: var(--chalk); margin-top: 1rem; }
.reading, .archive-piece > div { max-width: 60ch; }
.reading h2, .archive-piece h2 { font-size: clamp(1.8rem, 3.3vw, 3rem); }
.reading h2:not(:first-child) { margin-top: 1.7em; }
.reading p, .archive-piece p { line-height: 1.6; }
.notebook-lead { padding: 1.5rem 0 4rem; }
.notebook-lead a { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: 1.2rem; border-block: 1px solid var(--rule); }
.notebook-lead img { width:100%; max-height: 28rem; height: auto; object-fit: contain; }
.notebook-lead span { color: var(--phosphor); text-decoration: underline; }
.notebook-stack .notebook-lead { padding: 0; }
.notebook-stack .notebook-lead + .notebook-lead a { border-top: 0; }
.notebook-stack .notebook-lead:nth-child(even) img { order: 2; }
.archive-month { padding-top: 2rem; }
.archive-month h2 { margin: .5rem 0 1rem; font: 400 clamp(1.6rem, 3vw, 2.7rem)/1.1 var(--display); }
.archive-month li { scroll-margin-top: 1rem; min-width: 0; }
.archive-month li:target .gallery-mount { outline: 2px solid var(--cyan); }
.archive-month .gallery-mount { height: auto; aspect-ratio: 4/5; padding: 0; }
.archive-month .gallery-grid small, .archive-slides figcaption { color: var(--chalk); font: .86rem/1.4 var(--caption); }
.archive-post-heading > a { color: var(--cyan); }
.archive-post-heading h1 { text-transform: none; }
.archive-piece { align-items: start; }
.archive-slides { display: grid; gap: 1.6rem; }
.archive-slides figure { margin: 0; }
.archive-slides img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.archive-slides figcaption { margin: .5rem 0 0; }
.original-post + .original-post { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed var(--rule); }
.original-post h2 { margin-top: 0; }
.original-caption { white-space: pre-line; overflow-wrap: anywhere; }
.work-detail .product-art > .printout:not(.machine-art) { background: var(--night); }
.work-detail .product-buy h1 { color: var(--stock); text-shadow: 2px 2px 0 var(--ink2); }
.work-detail .product-buy h2 { color: var(--chalk); }
.work-end, .process-slip { border-top: 1px solid var(--rule); padding: 2rem 0; }
.work-end { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; }
.work-end h2 { margin: 0; font: 1.4rem var(--type); }
.work-end p { margin: 0; font-size: .95rem; }
.work-end p a { color: var(--chalk); }
.process-slip p { max-width: 65ch; }
@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .entrance { grid-template-columns: minmax(12rem,.8fr) minmax(0,1.4fr); }
}
@media (max-width: 760px) {
  .entrance, .artist-spread, .archive-piece, .notebook-lead a, .interference { grid-template-columns: 1fr; }
  .entrance { padding: 1.8rem 0 2rem; gap: 1.45rem; }
  .entrance::before { background-position: 0 0, center, 73% top; }
  .entrance h1 { font-size: clamp(2.5rem, 10.9vw, 4.5rem); max-width: 17ch; }
  .entrance h1 br { display: none; }
  .entrance-copy h1 small { display: inline; font-size: .52em; margin-right: .35em; }
  .entrance-copy p:not(.rubric) { max-width: 42ch; margin: .7rem 0; }
  .project-grid, .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-card:first-child { grid-column: 1/-1; }
  .gallery-grid { gap: 1.5rem .8rem; }
  .gallery-mount { height: clamp(10.5rem, 41vw, 20rem); padding: .65rem; }
  .gallery-card h3 { font-size: 1.25rem; }
  .notebook-lead a { gap: 1.35rem; }
  .notebook-stack .notebook-lead:nth-child(even) img { order: 0; }
  .gallery-heading .chapter-art { width: min(26%, 9rem); }
  .artist-spread figure img, .notebook-lead img { max-height: 26rem; }
}
@media (max-width: 470px) {
  .project-pair { grid-template-columns: 1fr; gap: 1rem; }
  .portfolio-page .site-header { flex-wrap: nowrap; gap: .7rem; }
  .portfolio-page .wordmark img { height: 2.1rem; }
  .portfolio-page .site-nav { gap: .15rem .55rem; }
  .portfolio-page .site-nav a { font-size: .875rem; letter-spacing: .045em; padding-block: .6rem; }
  .room-tag { font-size: .77rem; }
  .wall-tag { left: 7%; top: 23%; }
  .tuner { gap: .35rem .5rem; padding: .45rem; }
  .tuner-id { font-size: .8rem; }
  .tuner .channel-open { padding-inline: .55rem; font-size: .875rem; }
  .desk-links { grid-template-columns: 1fr; gap: 0; }
  .desk-links a + a { border-top: 1px solid var(--rule); }
  .project-grid { grid-template-columns: 1fr; }
  .project-image { aspect-ratio: 1.8; }
}
@media (max-width: 365px) {
  .portfolio-page .site-nav { display: grid; grid-template-columns: auto auto; gap: 0 .9rem; }
}


/* A field manual assembled on a bench. Sheets and ink are separate objects;
   tears and rotations live on their backgrounds, not on text or control geometry. */
body.portfolio-page { background: linear-gradient(#0b042044,#0b042044), var(--surface-ink); }
.portfolio-page .site-header { background: var(--surface-ink); padding-block: .9rem; border-bottom: 2px solid #efe7d477; }
.portfolio-page .site-nav a { color: var(--paper-ink); font-size: .9rem; padding: .5rem .7rem .4rem; }
.portfolio-page .site-nav a:hover, .portfolio-page .site-nav a[aria-current] { color: var(--paper-ink); }
.entrance { gap: clamp(2rem,4vw,4.5rem); padding-block: clamp(2.5rem,5vw,5rem); }
.entrance::before { background: var(--surface-ink); border-bottom: 0; }
.entrance::after { content: ''; position: absolute; width: min(37vw,28rem); height: 8rem; right: -3rem; bottom: 1rem; z-index: -1; background: var(--material-overprint) 50% 55% / cover; clip-path: var(--cut-edge); rotate: 8deg; opacity: .7; pointer-events: none; }
.entrance-copy { position: relative; isolation: isolate; padding: clamp(1.1rem,2.4vw,2rem); color: var(--paper-ink); }
.entrance-copy::before { content: ''; position: absolute; inset: -.3rem -.15rem; z-index: -1; background: var(--surface-fold); clip-path: var(--cut-edge); rotate: -1.4deg; filter: drop-shadow(7px 8px 0 #0008); pointer-events: none; }
.entrance-copy::after { content: ''; position: absolute; width: 5.5rem; height: 1.45rem; right: -.5rem; top: -.8rem; background: var(--surface-spot), #ff3ea5; background-blend-mode: multiply; clip-path: var(--tape-edge); rotate: 8deg; pointer-events: none; }
.entrance-copy .rubric { background: #1d1236; color: #efe7d4; box-shadow: 3px 3px 0 var(--pink); font-size: .78rem; letter-spacing: .01em; transform: rotate(-1deg); }
.entrance-copy h1 { color: var(--paper-ink); text-shadow: 2px 2px 0 var(--cyan); font-size: clamp(2.4rem,20cqi,6.4rem); margin: 1.1rem 0; }
.entrance-copy h1 span { color: #a61560; }
.entrance-copy > p:not(.rubric) { color: var(--paper-ink); font-size: 1.1rem; }
.entrance-copy > p.entrance-strapline { color: #173e4a; font-size: clamp(1.3rem,2.5vw,1.8rem); line-height: 1.25; }
.entrance-actions { gap: .7rem 1rem; margin-top: 1.2rem; }
.workbench { border: 6px solid #e3dac6; background: var(--surface-paper); box-shadow: 7px 8px 0 var(--pink), 12px 14px 0 #0007; }
.workbench .tuner { border-top: 1px solid #796f60; background: var(--surface-paper); }
.room-tag { background: var(--surface-paper); }
.channel-guide { font-size: .875rem; }
.channel-guide select { background-color: #f7efde; }
.ink-button, .interfere-link, .tuner .channel-open, .dial-label { background-image: var(--material-riso); background-size: 400px; background-blend-mode: multiply; }
.ink-button:hover, .interfere-link:hover, .tuner .channel-open:hover { background-image: var(--material-riso); background-blend-mode: multiply; }
.exhibit-section { padding-block: 2.5rem 4rem; }
.spread-head { padding-block: 1rem 1.4rem; }
.spread-head h2, .gallery-heading h2 { background: var(--surface-paper); color: var(--paper-ink); padding: .4rem .7rem .2rem; box-shadow: 4px 4px 0 var(--pink); rotate: -.8deg; }
.spread-head::after { height: .55rem; border: 0; background: var(--surface-spot), var(--cyan); background-blend-mode: multiply; clip-path: var(--cut-edge); rotate: .4deg; }
.project-grid { gap: clamp(1.5rem,3vw,2.7rem); }
.project-card > a { border: 1px solid #0b0420; background: var(--surface-paper); box-shadow: 5px 6px 0 var(--pink), 9px 10px 0 #0006; rotate: -.65deg; }
.project-card:nth-child(2) > a { rotate: .8deg; box-shadow: 5px 6px 0 var(--cyan), 9px 10px 0 #0006; }
.project-card:nth-child(3) > a { rotate: -.4deg; box-shadow: 5px 6px 0 var(--green), 9px 10px 0 #0006; }
.project-image { border: 7px solid #e4dbc7; border-bottom-width: 0; }
.project-caption { background: var(--surface-paper); padding: 1.2rem; }
.project-caption .rubric { font-size: .78rem; color: #7c164d; }
.interference { padding-block: clamp(3rem,6vw,5rem); border-block: 2px solid #efe7d45c; }
.interference > div:first-child { position: relative; isolation: isolate; padding: clamp(1.3rem,3vw,2.3rem); color: var(--paper-ink); }
.interference > div:first-child::before { content: ''; position: absolute; inset: 0; background: var(--surface-paper); z-index: -1; clip-path: var(--cut-edge); rotate: -.8deg; pointer-events: none; }
.interference > div:first-child::after { content: ''; position: absolute; width: 6rem; height: 1.4rem; left: 37%; top: -.7rem; background: var(--surface-spot), var(--cyan); background-blend-mode: multiply; clip-path: var(--tape-edge); rotate: 4deg; pointer-events: none; }
.interference h2 { color: var(--paper-ink); }
.interference .rubric { color: #7c164d; }
.interference-list li { border-color: #796f6080; }
.interference-list a { color: #7c164d; }
.interference-list a:hover { color: #172e54; }
.meter-exhibit { position: relative; background: var(--surface-ink); border: 6px solid #e3dac6; box-shadow: 6px 7px 0 var(--cyan), 10px 12px 0 #0006; }
.meter-exhibit::before { content: ''; position: absolute; top: -.9rem; right: 12%; width: 5.5rem; height: 1.5rem; background: var(--surface-paper); clip-path: var(--tape-edge); rotate: -5deg; pointer-events: none; }
.desk-links { border: 0; gap: 2rem; padding-block: 2.5rem; }
.desk-links a { position: relative; padding: 1.3rem; background: var(--surface-paper); color: var(--paper-ink); box-shadow: 5px 6px 0 var(--pink); rotate: -.5deg; }
.desk-links a:nth-child(2) { background: var(--surface-fold); rotate: .7deg; box-shadow: 5px 6px 0 var(--cyan); }
.desk-links small { color: #7c164d; }
.desk-links strong { color: var(--paper-ink); }
.room-heading { padding-block: 3rem 2rem; }
.room-heading > h1 { display: table; padding: .3rem .6rem .1rem; background: var(--surface-spot), var(--cyan); background-blend-mode: multiply; color: var(--paper-ink); text-shadow: 2px 2px 0 #efe7d4; box-shadow: 5px 6px 0 var(--pink); rotate: -.6deg; }
.room-heading .rubric { background: var(--surface-paper); color: var(--paper-ink); }
.room-index { gap: .8rem 1.4rem; padding: 1.2rem 0; border: 0; }
.room-index a { color: var(--paper-ink); background: var(--surface-paper); padding: .4rem .6rem; border: 1px solid var(--paper-ink); box-shadow: 2px 3px 0 var(--cyan); }
.room-index a:nth-child(even) { rotate: .9deg; box-shadow: 2px 3px 0 var(--pink); }
.gallery-heading { border-top: 0; padding-top: 1rem; }
.gallery-heading h2 { display: table; }
.gallery-heading small { color: var(--cyan); }
.gallery-grid { gap: 2.4rem clamp(1rem,2.7vw,2.7rem); padding: .5rem; }
.gallery-grid > li { min-width: 0; }
.gallery-card { background: var(--surface-paper); color: var(--paper-ink); padding-bottom: .8rem; border: 1px solid #0b0420; box-shadow: 5px 6px 0 #080416, 8px 9px 0 var(--cyan); }
.gallery-grid > li:nth-child(3n+2) .gallery-card { rotate: .55deg; box-shadow: 5px 6px 0 #080416, 8px 9px 0 var(--pink); }
.gallery-grid > li:nth-child(3n) .gallery-card { rotate: -.5deg; }
.gallery-mount { margin: .5rem .5rem 0; border: 1px solid #796f60; box-shadow: none; background: var(--night); }
.gallery-card h3 { color: var(--paper-ink); padding-inline: .9rem; }
.gallery-card > small { display: block; color: #50435b; padding-inline: .9rem; }
.archive-month .gallery-mount { padding: 0; }
.archive-month .gallery-grid > li > small { display: block; margin: .8rem .2rem 0; color: var(--paper); }
.archive-month h2 { display: table; padding: .4rem .7rem .15rem; background: var(--surface-spot), var(--pink); background-blend-mode: multiply; color: var(--paper-ink); rotate: -.6deg; }
.reading, .notebook-lead a > div, .original-post { padding: clamp(1.3rem,3vw,2.2rem); background: var(--surface-paper); color: var(--paper-ink); border: 1px solid #877b63; box-shadow: 5px 6px 0 #090519, 8px 9px 0 var(--pink); }
.notebook-stack .notebook-lead:nth-child(odd) a > div { background: var(--surface-fold); box-shadow: 5px 6px 0 #090519, 8px 9px 0 var(--cyan); }
.reading h2, .notebook-lead a > div h2, .original-post h2 { color: var(--paper-ink); text-shadow: none; }
.reading a:not(.ink-button), .notebook-lead span, .original-post a { color: #7c164d; }
.original-post small, .notebook-lead .rubric { color: #7c164d; }
.artist-spread figure img, .archive-slides img { border: 6px solid #e3dac6; box-shadow: 6px 7px 0 var(--cyan); }
.original-post + .original-post { margin-top: 2rem; border-top: 1px solid #877b63; background-position: 0 0, 77% 43%; }
.work-detail .product-buy { position: relative; isolation: isolate; padding: 1.7rem; color: var(--paper-ink); }
.work-detail .product-buy::before { content: ''; position: absolute; inset: .4rem 0 0; z-index: -1; background: var(--surface-paper); clip-path: var(--cut-edge); rotate: .7deg; pointer-events: none; }
.work-detail .product-buy h1 { color: var(--paper-ink); text-shadow: 2px 2px 0 var(--cyan); }
.work-detail .product-buy > h2, .work-detail .product-buy a, .work-detail .product-buy .art-credit { color: #7c164d; }
.portfolio-page .site-footer { background: var(--surface-ink); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-card > a, .gallery-card { transition: translate .18s ease, box-shadow .18s ease; }
  .project-card > a:hover, .gallery-card:hover { translate: 0 -4px; }
  .ink-button:hover { box-shadow: 6px 3px 0 var(--pink); }
}
@media (max-width: 760px) {
  .entrance { gap: 2rem; padding-block: 2rem 3rem; }
  .entrance-copy { padding: 1.2rem; }
  .entrance-copy h1 { font-size: clamp(2.5rem,10.9vw,4.5rem); }
  .entrance-copy .rubric { font-size: .72rem; }
  .portfolio-page .site-nav { gap: .4rem .55rem; }
  .portfolio-page .site-nav a { padding: .45rem .45rem .35rem; font-size: .82rem; }
  .entrance::after { width: 65vw; right: -1rem; bottom: 1rem; height: 5rem; }
  .workbench { border-width: 4px; }
  .gallery-grid { gap: 1.8rem 1rem; padding-inline: .2rem; }
  .gallery-card h3 { font-size: 1.15rem; padding-inline: .6rem; }
  .gallery-card small { font-size: .8rem; padding-inline: .6rem; }
  .spread-head { gap: .75rem; flex-wrap: wrap; }
  .spread-head::after { display: none; }
  .desk-links { grid-template-columns: 1fr; gap: 1.6rem; }
  .desk-links a + a { border-top: 0; }
  .work-detail .product-buy { padding: 1.2rem; }
}
@media (forced-colors: active) {
  .entrance-copy, .interference > div:first-child, .desk-links a, .gallery-card, .reading, .original-post, .work-detail .product-buy { background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; }
  .entrance-copy::before, .entrance-copy::after, .interference > div:first-child::before, .interference > div:first-child::after, .work-detail .product-buy::before { display: none; }
}
.work-detail > div:last-child .rubric { color: #7c164d; text-shadow: none; }

/* ---------------------------------------------------------------- the workshop in 3D */
/* The head script on the homepage adds .splat-room where the 3D room can run
   (assets/splat/). It then opens the page, full width and filling the window
   below the header. The entrance below it is unchanged: the Tech Savage card
   beside the illustrated workbench with its working CRT. */
.splat-stage, .intro[data-only] { display: none; }
.splat-room .splat-stage { display: block; height: calc(100svh - var(--splat-top, 5.5rem)); min-height: 28rem; margin-inline: calc(50% - 50vw); border-bottom: 1px dashed var(--cyan); }
.splat-room .intro[data-only] { display: grid; }
/* An upright phone (or any window taller than it is wide) gets the room as a
   wide window across the top of the page, much as a laptop sees it, rather
   than a tall slice a quarter of its width; the Tech Savage card follows. */
@media (orientation: portrait) { .splat-room .splat-stage { height: auto; min-height: 0; aspect-ratio: 4 / 3; } }
/* Turned sideways, the room fills the screen (main.js scrolls it into place). */
@media (orientation: landscape) and (max-height: 500px) { .splat-room .splat-stage { height: 100svh; min-height: 0; } }

/* A dated workshop entry reads as one sheet, centred on the bench. */
.notebook-entry > .reading { margin-inline: auto; }
