.entry-list { display: grid; gap: var(--glass-panel-gap); }
.entry-list[hidden], .solo-stage[hidden] { display: none; }
.work-panel--text .work-panel-layout { display: block; }
.work-panel--text .work-panel-copy { max-width: 880px; padding-block: clamp(20px, 4vw, 60px); }
.work-panel--text .work-panel-copy h3 { letter-spacing: -.045em; line-height: 1.02; }
.work-panel--text .work-project-open { padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
.work-panel--text .work-project-open:focus-visible { outline: 1px solid currentColor; outline-offset: 8px; }
.work-panel--single .work-panel-media { display: block; aspect-ratio: 4/3; }
.project-content--note .project-intro { grid-template-columns: 1fr; max-width: 1000px; gap: 32px; }
.project-content--note .project-intro h1 { font-size: clamp(36px, 6vw, 82px); line-height: 1.02; letter-spacing: -.055em; }
.project-content--note .project-intro p { max-width: 54ch; }
.project-updates ol { list-style: none; padding: 0; display: grid; gap: 28px; }
.project-updates time { display: block; margin-bottom: 8px; font: 12px/1.4 "Courier New", monospace; color: #666; }
.collection-heading { display: flex; align-items: center; gap: 18px; padding: 8px 0 4px; font: 12px/1.4 "Courier New", Courier, monospace; }
.category-back { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #ffffffd0; padding: 12px 18px; border-radius: 24px; background: linear-gradient(135deg,#ffffffae,#eeeeee25); box-shadow: inset 1px 1px 2px #fff, inset -1px -1px 2px #00000012, 0 4px 12px #00000008; color: #111; font: 600 16px/1 Helvetica, Arial, sans-serif; cursor: pointer; }
.category-back:focus-visible { outline: 2px solid #777; outline-offset: 4px; }
.solo-stage { width: calc(100% + var(--page-gutter) + var(--content-right)); margin-left: calc(-1 * var(--page-gutter)); height: calc(100svh - var(--glass-top)); display: grid; place-items: center; box-sizing: border-box; }
.blender-category, .contact-glass { transform: translateY(calc(var(--glass-top) * -.5)); border: 0; padding: 0; background: transparent; cursor: pointer; color: #111; }
.blender-category { position: relative; width: clamp(180px, 29vw, 340px); aspect-ratio: 1.2; }
.blender-glass-logo { position: absolute; inset: 0; display: block; filter: drop-shadow(2px 5px 4px #00000022) drop-shadow(-2px -2px 1px #fff); transition: filter 280ms ease, transform 400ms cubic-bezier(.22,1,.36,1); }
.blender-glass-logo::before { content: ""; position: absolute; inset: 0; background: url('./assets/blender-symbol.svg') center / contain no-repeat; }
.blender-glass-logo::after { content: ""; position: absolute; inset: 0; mask: url('./assets/blender-symbol.svg') center / contain no-repeat; background: linear-gradient(135deg,#ffffff70 3%,#ffffff08 24%,#ffffff55 36%,transparent 58%,#ffffff50 83%,transparent); }
.tool-download { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding: 12px 16px; border: 1px solid #ffffffd0; border-radius: 22px; background: linear-gradient(135deg,#ffffffc0,#eeeeee30); box-shadow: inset 1px 1px 2px #fff,inset -1px -1px 2px #00000012,0 4px 12px #00000008; color: #4d4d4d; font: 500 14px/1.2 Helvetica,Arial,sans-serif; cursor: default; }
.tool-download svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 #fff); }
.tool-download small { color: #777; font: 10px/1.3 "Courier New",Courier,monospace; }
.tool-download { width: fit-content; max-width: 100%; }
.blender-category:is(:hover,:focus-visible) .blender-glass-logo { transform: translateY(-4px); filter: drop-shadow(3px 9px 7px #00000028) drop-shadow(-2px -2px 1px #fff); }
.category-hint { position: absolute; top: calc(100% + 24px); left: 50%; width: max-content; transform: translate(-50%,7px); opacity: 0; font: 13px/1.4 "Courier New", Courier, monospace; transition: opacity 220ms ease, transform 280ms ease; pointer-events: none; }
.blender-category:is(:hover,:focus-visible) .category-hint { opacity: 1; transform: translate(-50%,0); }
.blender-category:focus-visible { outline: 2px solid #aaa; outline-offset: 20px; border-radius: 24px; }
.contact-stage { position: absolute; inset: 0; width: 100vw; height: 100%; margin: 0; }
.about-contact-group { position: relative; z-index: 2; display: grid; justify-items: center; gap: 28px; transform: translateY(calc(var(--glass-top) * -.5)); }
.contact-glass { display: block; width: auto; border-radius: 4px; transform: none; color: #000; font: 700 clamp(48px,7vw,80px)/1 Helvetica,Arial,sans-serif; letter-spacing: -.065em; }
.about-socials { display: flex; align-items: center; justify-content: center; gap: 25px; }
.about-social { display: grid; place-items: center; width: 38px; height: 38px; color: #000; cursor: pointer; text-decoration: none; border-radius: 4px; }
.about-social svg { width: 28px; height: 28px; }
.about-ink-filter { position: absolute; pointer-events: none; }
.about-shadow-source { filter: none; }
/* The optical pass owns the visible ink as well as its blur and grain. */
html.optical-active.page-mode .about-shadow-source { color: transparent; filter: none; }
.about-social:focus-visible { outline: 1px solid #777; outline-offset: 6px; }
html.page-mode:has([data-page="about"]:not([hidden])) .optical-field { opacity: 1; z-index: 12; }
html.page-mode:has([data-page="about"]:not([hidden])) .page-layer { z-index: 14; }
.contact-glass:focus-visible { outline: 2px solid #999; outline-offset: 6px; }
.email-toast { position: fixed; z-index: 16; left: 50%; bottom: 48px; padding: 14px 24px; border: 1px solid #ffffffce; border-radius: 28px; background: #fafafad9; backdrop-filter: blur(14px); box-shadow: inset 1px 1px 2px #fff, 0 6px 24px #0000000d; font: 12px/1.4 "Courier New", Courier, monospace; opacity: 0; transform: translate(-50%,10px); transition: opacity 260ms ease, transform 320ms cubic-bezier(.22,1,.36,1); pointer-events: none; }
.email-toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.page-layer:has([data-page="about"]:not([hidden])), .page-layer:has([data-page="tools"][data-tools-view="categories"]:not([hidden])) { padding-bottom: 0; }
.page-layer:has([data-page="about"]:not([hidden])) { overflow: hidden; }
html.page-mode:has([data-page="about"]:not([hidden])) :is(.glass-rail,.navigation-glass-field) { visibility: hidden; }
.page-layer:has([data-page="about"]:not([hidden])) > .subpage-legal-links,
.page-layer:has([data-page="tools"][data-tools-view="categories"]:not([hidden])) > .subpage-legal-links { display: none; }
@media (hover: none) { .category-hint { opacity: 1; transform: translate(-50%,0); } }
@media (max-width: 600px) { .collection-heading { gap: 12px; font-size: 10px; flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .blender-glass-logo, .category-hint, .contact-glass svg, .email-toast { transition: none; } }

/* Tools are compact catalogue entries; detail pages retain their own layout. */
[data-entry-list="tools"] { gap: 8px; }
[data-entry-list="tools"] .work-panel { min-height: 52px; padding: 8px 20px; border-radius: 12px; justify-content: center; }
[data-entry-list="tools"] .work-panel-layout { display: block; }
[data-entry-list="tools"] .work-panel-copy { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 72%; }
[data-entry-list="tools"] .work-panel-copy h3 { min-width: 0; font-size: clamp(15px,1.8vw,18px); line-height: 1.1; letter-spacing: -.045em; }
[data-entry-list="tools"] .work-project-open { padding: 4px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-entry-list="tools"] .work-project-open:hover { text-decoration: none; }
[data-entry-list="tools"] .work-panel-media,
[data-entry-list="tools"] .tool-panel--single .work-panel-media { position: absolute; z-index: 1; inset: 0 0 0 auto; width: 39%; height: 100%; max-width: none; display: block; aspect-ratio: auto; border-radius: 0 12px 12px 0; overflow: hidden; mask-image: linear-gradient(135deg,transparent 37px,rgba(0,0,0,.12) 57px,rgba(0,0,0,.5) 97px,rgba(0,0,0,.88) 137px,#000 157px); }
[data-entry-list="tools"] .work-panel-media .media-item { width: 100%; height: 100%; border-radius: 0; }
[data-entry-list="tools"] .work-panel-media jw-media { --media-radius: 0px; border-radius: 0; box-shadow: none; }
[data-entry-list="tools"] .work-panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
[data-entry-list="tools"] [data-project="hanging-bridge-generator"] .work-panel-media img { object-position: 50% 45%; }
[data-entry-list="tools"] .tool-download,
.project-content--tool .tool-download { display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; margin: 0; padding: 0; border-radius: 50%; }
[data-entry-list="tools"] .tool-download:disabled { opacity: .45; }
[data-entry-list="tools"] .tool-download { flex-basis: 28px; width: 28px; height: 28px; }
[data-entry-list="tools"] .tool-download svg { width: 16px; height: 16px; }
[data-entry-list="tools"] .media-fullscreen-button { width: 24px; height: 24px; top: 14px; right: 10px; }
a.tool-download { text-decoration: none; cursor: pointer; transition: background-color 180ms ease,box-shadow 180ms ease; }
a.tool-download:hover { background-color: #fff9; box-shadow: inset 1px 1px 2px #fff,0 6px 16px #00000016; }
a.tool-download:focus-visible { outline: 2px solid #777; outline-offset: 4px; }
.project-content--bridge .project-hero { aspect-ratio: 596 / 411; }
.project-content--tool .project-intro { grid-template-columns: minmax(0,1fr); gap: 18px; }
.project-content--tool .project-intro h1 { min-width: 0; max-width: 100%; font-size: clamp(30px,5vw,64px); line-height: 1.04; overflow-wrap: anywhere; }
.project-content--tool .tool-download { margin-top: 0; }

/* Shared text hover feedback across menus, entries, search and legal links. */
.text-hover-label { display: inline-block; transition: filter 180ms ease; }
.work-search-result > :is(strong,span) { transition: filter 180ms ease; }
.legal-links a, .chapter-open:focus-visible { text-decoration: none; }
.chapter-open:focus-visible { outline: 1px solid #777; outline-offset: 5px; }
@media (hover: hover) {
  :is(a,button):hover > .text-hover-label,
  .brand-home:hover .brand-label,
  .work-search-result:hover > :is(strong,span),
  .page-bar-link:hover .page-bar-label { filter: blur(1px); }
  .contact-glass:hover #contact-cutout text { filter: blur(1px); }
  html:not(.optical-active) .contact-glass:hover > .about-shadow-source,
  html:not(.optical-active) .about-social:hover > .about-shadow-source { filter: url('#about-ink') blur(1px); }
}
@media (prefers-reduced-motion: reduce) {
  .text-hover-label, .work-search-result > :is(strong,span) { transition: none; }
}
@media (max-width: 560px) {
  [data-entry-list="tools"] .work-panel { padding: 8px 14px; min-height: 52px; }
  [data-entry-list="tools"] .work-panel-copy { max-width: 80%; gap: 10px; }
  [data-entry-list="tools"] .work-panel-copy h3 { font-size: 15px; }
  [data-entry-list="tools"] .work-panel-media { width: 33%; mask-image: linear-gradient(135deg,transparent 37px,rgba(0,0,0,.12) 57px,rgba(0,0,0,.5) 97px,rgba(0,0,0,.88) 137px,#000 157px); }
}
