/* The Lab: a compact introduction and a consistent project catalogue. */
.lab-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: center; gap: clamp(32px, 5vw, 80px); padding: 42px 0 38px; }
.lab-hero-copy > .eyebrow { font-size: 10px; }
.lab-title { margin-top: 14px; font-size: clamp(44px, 4.6vw, 68px); line-height: 1.2; font-weight: 550; letter-spacing: -.055em; }
.lab-title-en { display: inline-block; margin-left: 22px; color: var(--accent); font: italic .7em/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.lab-description { margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.lab-entry { display: inline-flex; align-items: center; gap: 20px; margin-top: 24px; color: var(--accent); font-size: 13px; }
.lab-entry:hover { color: var(--text); }
.lab-overview { padding: 20px 24px 10px; border: 1px solid #c5f2d523; border-radius: 18px; background: radial-gradient(ellipse at top right, #26463550, transparent 75%), var(--surface); }
.lab-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.lab-overview-head .eyebrow { font-size: 9px; }
.lab-overview-symbol { color: var(--accent); font-size: 31px; line-height: 1; }
.lab-overview > a { display: flex; align-items: center; gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); }
.overview-index { color: var(--accent); font: 11px var(--mono); }
.overview-title { font-size: 14px; }
.overview-title small { display: block; margin-top: 3px; color: var(--muted-low); font-size: 11px; }
.overview-count { margin-left: auto; flex-shrink: 0; color: var(--muted); font-size: 11px; }
.overview-count i { margin-left: 9px; color: var(--accent); font-size: 17px; font-style: normal; }
.lab-overview > a:hover .overview-title, .lab-overview > a:hover .overview-count { color: var(--accent); }
.experiments { padding-top: 24px; }
.experiment-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.experiment-toolbar .section-index { font-size: 9px; }
.experiment-toolbar h2 { margin-top: 7px; font-size: 28px; font-weight: 550; line-height: 1.4; letter-spacing: -.035em; }
.filter-status { margin-top: 7px; color: var(--muted-low); font-size: 12px; }
.filter-controls { display: none; gap: 7px; flex-wrap: wrap; }
.js .filter-controls { display: flex; }
.filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 12px; transition: color .2s, border-color .2s, background .2s; }
.filter-count { font: 10px var(--mono); color: var(--muted-low); }
.filter-button:hover { border-color: #c5f2d546; color: var(--text); }
.filter-button.is-selected { color: var(--accent); border-color: #c5f2d541; background: #24392d; }
.filter-button.is-selected .filter-count { color: var(--accent); }
.project-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 26px; padding-top: 26px; }
.project-group { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 110px; }
.project-group-wide { grid-column: 1 / -1; }
.project-group:not(.project-group-wide) { grid-column: 1 / -1; }
.project-group:not(.project-group-wide) > .project-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.project-group:not(.project-group-wide) > .project-card > .project-image { border-bottom: 0; border-right: 1px solid var(--line); }
.group-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.group-number { display: grid; place-items: center; width: 28px; height: 28px; color: var(--accent); background: #c5f2d509; border: 1px solid #c5f2d51c; border-radius: 6px; font: 11px var(--mono); }
.group-heading h3 { font-size: 17px; font-weight: 550; }
.group-count { margin-left: auto; color: var(--muted-low); font-size: 11px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.project-card { flex: 1; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.project-card:hover { border-color: #c5f2d53b; box-shadow: 0 12px 32px #0002; }
.project-image { display: block; position: relative; flex-shrink: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #0c1417; border-bottom: 1px solid var(--line); }
.project-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.project-image:hover > img { transform: scale(1.025); }
.project-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: #ffffff03; color: var(--muted); font-size: 10px; line-height: 1.5; }
.project-status > span { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; background: var(--warm); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 25px 26px 22px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.project-type { color: var(--muted-low); font: 9px/1.6 var(--mono); letter-spacing: .06em; }
.project-body h4 { margin: 11px 0 9px; font-size: 23px; font-weight: 550; line-height: 1.5; letter-spacing: -.025em; }
.project-body h4 a:hover { color: var(--accent); }
.project-caption { margin-bottom: 23px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.project-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 18px; margin-top: auto; border-top: 1px solid var(--line); }
.project-caption + .project-bottom { margin-top: 23px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag { padding: 4px 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; font-size: 10px; }
.project-action { display: inline-flex; align-items: center; gap: 12px; min-height: 38px; flex-shrink: 0; color: var(--accent); font-size: 13px; }
.project-action > span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #c5f2d52b; border-radius: 50%; font-size: 17px; }
.project-action:hover > span { color: var(--bg); background: var(--accent); }
.prompt-feature-art { display: flex; flex-direction: column; padding: 22px; color: var(--accent); background: radial-gradient(ellipse at center, #30533e65, transparent 65%), linear-gradient(125deg, #16251d, #0c1518); }
.prompt-feature-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#c5f2d508 1px, transparent 1px), linear-gradient(90deg, #c5f2d508 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.prompt-art-header, .prompt-art-footer { position: relative; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font: 9px var(--mono); letter-spacing: .04em; }
.prompt-art-header > span:last-child { color: var(--accent); font-size: 18px; }
.prompt-art-symbol { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; font: 72px var(--mono); color: #c5f2d54d; }
.prompt-art-symbol > span { color: var(--accent); margin-inline: 10px; }
.prompt-art-lines { position: relative; display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 18px; font: 9px var(--mono); color: var(--muted); }
.prompt-art-lines i { width: 35px; height: 1px; background: #c5f2d533; }
.project-catalog:has(> .project-group[hidden]) { grid-template-columns: minmax(0, 1fr); }
.project-catalog:has(> .project-group[hidden]) > .project-group:not(.project-group-wide) { width: 100%; }
body[data-page="lab"] .footer { margin-top: 68px; }
@media (max-width: 1050px) {
  .lab-hero { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 30px; }
  .lab-title-en { display: block; margin: 4px 0 0; }
  .lab-overview { padding-inline: 18px; }
  .experiment-toolbar { align-items: flex-start; flex-direction: column; gap: 20px; }
  .project-body { padding: 22px; }
  .project-body h4 { font-size: 21px; }
  .project-caption { font-size: 13px; }
}
@media (max-width: 700px) {
  .lab-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 31px 0 24px; }
  .lab-title { font-size: 46px; }
  .lab-title-en { font-size: 34px; }
  .lab-description { font-size: 13px; margin-top: 16px; }
  .lab-entry { margin-top: 19px; }
  .lab-overview > a { padding: 13px 0; }
  .experiments { padding-top: 16px; }
  .experiment-toolbar h2 { font-size: 25px; }
  .filter-controls { width: 100%; gap: 7px; }
  .filter-button { flex: 1 1 calc(50% - 4px); padding-inline: 10px; }
  .project-catalog, .project-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .project-group:not(.project-group-wide) > .project-card { display: flex; }
  .project-group:not(.project-group-wide) > .project-card > .project-image { border-right: 0; border-bottom: 1px solid var(--line); }
  .group-heading h3 { font-size: 16px; }
  .group-count { font-size: 10px; }
  .project-body { padding: 20px; }
  .project-body h4 { font-size: 21px; }
  .project-status { font-size: 9px; }
  .project-type { font-size: 8px; }
  .project-bottom { gap: 12px; }
  .project-caption { margin-bottom: 19px; }
  .project-action { font-size: 12px; }
  .prompt-feature-art { padding: 15px; }
  .prompt-art-header, .prompt-art-footer { font-size: 8px; }
  .prompt-art-symbol { font-size: 54px; }
  .prompt-art-lines { gap: 9px; margin-bottom: 10px; font-size: 8px; }
  .prompt-art-lines i { width: 20px; }
  body[data-page="lab"] .footer { margin-top: 42px; }
}
@media (max-width: 360px) {
  .lab-title { font-size: 40px; }
  .overview-title small { font-size: 10px; }
  .overview-count i { margin-left: 3px; }
  .lab-overview > a { gap: 10px; }
  .project-body { padding: 18px; }
  .project-body h4 { font-size: 19px; }
  .project-tag { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card, .project-image > img { transition: none; }
}
