.lab-page {
  --lab-bg: #090b0a;
  --lab-ink: #f1f0e9;
  --lab-muted: #777d76;
  --lab-line: #282d28;
  --lab-safe-width: 1440px;
  --lab-main-inline: clamp(24px, 4.45vw, 80px);
  --lab-work-inline: 30px;
  background: var(--lab-bg);
  color: var(--lab-ink);
  min-width: 320px;
}

.lab-page::before { display: none; }
.lab-page .brand img { filter: invert(1); }
.lab-page .nav-links {
  color: #a3a79f;
  background: rgba(26, 29, 26, .88);
  border-color: #343932;
  box-shadow: 0 12px 40px #0003;
  transition:
    color 320ms ease,
    background-color 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease;
}
.lab-page .nav-links a.is-active,
.lab-page .nav-links:hover a.is-active,
.lab-page .nav-links:focus-within a.is-active {
  background: #f2f3ef;
  color: #1b201a;
}
.lab-page .nav-links a:hover,
.lab-page .nav-links a:focus-visible { color: #f1f0e9; }
.lab-page .nav-hover-indicator { background: #ffffff0d; }
.lab-page.page-transition-to-about .nav-links {
  color: #141413;
  background: rgba(255, 255, 255, .85);
  border-color: #fff;
  box-shadow: 0 18px 50px rgba(20, 20, 20, .1);
}
.lab-page.page-transition-to-about .nav-links a { color: #141413; }
.lab-page.page-transition-to-about .nav-links a.is-active,
.lab-page.page-transition-to-about .nav-links:hover a.is-active,
.lab-page.page-transition-to-about .nav-links:focus-within a.is-active {
  background: #141413;
  color: #f0eee7;
}
.lab-page.page-transition-to-about .nav-hover-indicator { opacity: 0; }
.lab-page a:focus-visible { outline: 2px solid #c3d4b6; outline-offset: 5px; }

.lab-main {
  width: min(100%, var(--lab-safe-width));
  margin-inline: auto;
  padding: 128px var(--lab-main-inline) 32px;
}
.lab-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 160px);
}
.lab-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 10px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: .06em;
  color: var(--lab-muted);
}
.lab-hero-meta { min-height: 15px; padding: 25px 30px 0; }
.lab-composition {
  position: relative;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
  flex: 1;
  padding: 20px 30px 36px;
  min-height: 0;
}
.lab-copy { position: relative; z-index: 1; padding: 0 0 18px; transform: translateY(44px); }
.lab-copy h1 { margin: 0; width: 100%; max-width: 440px; font-size: inherit; }
.lab-copy #lab-title { transform-origin: 50% 50%; }
.lab-title-line {
  position: relative;
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: var(--lab-title-columns) / 7;
}
.lab-title-line--first { --lab-title-columns: 59; }
.lab-title-line--second {
  --lab-title-columns: 53;
  width: 89.8305%;
  margin-top: clamp(18px, 2vw, 30px);
}
.lab-title-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Only the two Lab heading lines receive the letter-image enhancement. */
#lab-title .lab-title-letters {
  position: absolute;
  inset: 0;
  display: flex;
  gap: calc(100% / var(--lab-title-columns));
  touch-action: pan-y pinch-zoom;
}
#lab-title .is-enhanced > .lab-title-fallback { visibility: hidden; }
#lab-title .lab-title-letter,
#lab-title .lab-title-space {
  position: relative;
  flex: 0 0 calc(500% / var(--lab-title-columns));
  height: 100%;
}
#lab-title .lab-title-letter {
  outline: none;
  transform: translateX(var(--lab-neighbour, 0px));
  transition: transform 540ms cubic-bezier(.22, 1, .36, 1);
}
#lab-title .lab-title-letter.is-active { z-index: 3; }
#lab-title .lab-title-letter.is-active::after {
  content: "";
  position: absolute;
  inset: -18% calc(-1 * var(--lab-clearance, 0px));
}
#lab-title .lab-title-letter:focus-visible {
  outline: 1px dashed #c3d4b6;
  outline-offset: 7px;
}
#lab-title .lab-title-glyph {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transform: scale(1);
  transition: opacity 300ms 90ms ease, transform 540ms cubic-bezier(.22, 1, .36, 1);
}
#lab-title .lab-title-glyph img {
  position: absolute;
  top: 0;
  width: calc(var(--lab-title-columns) * 20%);
  max-width: none;
  height: 100%;
}
#lab-title .lab-title-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--lab-art-width);
  height: var(--lab-art-height);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-4deg) scale(.55);
  transition: opacity 360ms ease, transform 620ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity;
}
#lab-title .is-active .lab-title-glyph {
  opacity: 0;
  transform: scale(.86);
  transition-delay: 0ms;
  transition-duration: 170ms, 420ms;
}
#lab-title .is-active .lab-title-art {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(var(--lab-art-angle)) scale(1);
  transition-duration: 220ms, 460ms;
  transition-timing-function: ease, cubic-bezier(.2, 1.28, .36, 1);
}
#lab-title .is-intro-letter { transform: translateX(var(--lab-intro-shift)); }
#lab-title .is-intro-pending .lab-title-glyph,
#lab-title .is-intro-image .lab-title-glyph { opacity: 0; transition: none; }
#lab-title .is-intro-image .lab-title-art { opacity: 1; transition: none; }
#lab-title .is-intro-returning .lab-title-glyph {
  animation: lab-letter-soft-return 620ms cubic-bezier(.22, 1, .36, 1) both;
  transition: none;
}
@keyframes lab-letter-soft-return {
  0%, 20% { opacity: 0; transform: scale(.88); }
  65% { opacity: 1; transform: scale(1.035); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #lab-title .lab-title-letter { transition: none; }
  #lab-title .lab-title-glyph,
  #lab-title .lab-title-art { transition: opacity 100ms linear; }
  #lab-title .lab-title-glyph,
  #lab-title .is-active .lab-title-glyph { transform: none; }
  #lab-title .lab-title-art,
  #lab-title .is-active .lab-title-art { transform: translate(-50%, -50%); }
}
.lab-description {
  margin: 43.5px 0 0;
  color: rgba(255, 255, 255, .65);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .005em;
}
.lab-note {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 14px;
  margin-top: 34px;
  font: 11px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .65);
}
.lab-note::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  background: currentColor;
}
.lab-horse {
  position: relative;
  width: min(110%, calc((100svh - 320px) * 1.34615));
  justify-self: center;
  margin: 0;
  aspect-ratio: 840 / 700;
  transform: translateY(-18px) scale(.95);
}
.lab-horse-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-horse-canvas { opacity: 0; }
.lab-horse.is-ready .lab-horse-canvas { opacity: 1; }
.lab-horse-canvas { transition: opacity 1000ms ease; }
.lab-horse-error { position: absolute; inset: 45% 10% auto; color: var(--lab-muted); text-align: center; font-size: 13px; }

.lab-work-stream {
  --lab-work-ink: #fff;
  --lab-work-muted: rgba(255, 255, 255, .6);
  --lab-work-line: rgba(133, 169, 169, .22);
  --lab-work-media: #afbec1;
  --lab-work-divider-space: clamp(64px, 7vw, 96px);
  position: relative;
  display: grid;
  gap: var(--lab-work-divider-space);
  padding: clamp(104px, 11vw, 156px) var(--lab-work-inline) clamp(120px, 13vw, 184px);
}
.lab-work-stream::before {
  content: "";
  position: absolute;
  inset: 0 var(--lab-work-inline) auto;
  border-top: .5px solid var(--lab-work-line);
}
.lab-work {
  display: grid;
  gap: clamp(28.8px, 3.12vw, 43.2px);
}
.lab-work[hidden] {
  display: none;
}
.lab-work:not(:last-child) {
  padding-bottom: var(--lab-work-divider-space);
  border-bottom: .5px solid var(--lab-work-line);
}
.lab-work-copy {
  display: grid;
  gap: 10px;
  width: min(860px, 100%);
}
.lab-work-copy--with-action {
  width: 100%;
  grid-template-columns: minmax(0, 860px) 1fr;
  column-gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.lab-work-copy--with-action h2,
.lab-work-copy--with-action p {
  grid-column: 1;
}
.lab-work-copy h2 {
  width: min(860px, 100%);
  margin: 0;
  color: var(--lab-work-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: clamp(18px, calc(2vw - 2px), 28px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0;
}
.lab-work-copy p {
  margin: 0;
  color: var(--lab-work-muted);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0;
}
.lab-work-preview-link {
  appearance: none;
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  gap: 10px;
  border: .5px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.lab-work-preview-link:hover {
  border-color: #e8eae1;
  background: #e8eae1;
  transform: translateY(-1px);
}
.lab-work-preview-link:focus-visible {
  outline: 1px solid var(--lab-work-ink);
  outline-offset: 4px;
}
.lab-work-media {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--lab-work-media);
}
.lab-stamp-editorial {
  --lab-stamp-paper: #cfc3b2;
  --lab-stamp-paper-line: rgba(119, 98, 73, 0.18);
  --lab-stamp-paper-shadow: rgba(12, 10, 8, 0.16);
  --lab-stamp-gap: 14px;
  container-type: inline-size;
  position: relative;
  padding-block: clamp(54px, 4.67vw, 67px) clamp(24px, 3vw, 44px);
  aspect-ratio: auto;
  border: 0.5px solid var(--lab-stamp-paper-line);
  background: var(--lab-stamp-paper);
  box-shadow: 0 22px 44px -36px var(--lab-stamp-paper-shadow);
  isolation: isolate;
}
.lab-stamp-editorial::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  opacity: 0.2;
  background-image: url("./lab-projects/project-3/Noise.png");
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 576px 576px;
  filter: none;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.lab-stamp-editorial__board {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.lab-stamp-editorial__board::before,
.lab-stamp-editorial__board::after {
  position: absolute;
  z-index: 0;
  content: "";
  background: rgba(242, 242, 242, 0.09);
  pointer-events: none;
}
.lab-stamp-editorial__board::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0.5px;
}
.lab-stamp-editorial__board::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 0.5px;
}
.lab-stamp-editorial__column {
  display: contents;
}
.lab-stamp-editorial__print {
  position: absolute;
  z-index: 1;
  min-width: 0;
  margin: 0;
}
.lab-stamp-editorial__print img {
  display: block;
  width: 100%;
  height: auto;
}
.lab-stamp-editorial__print--gate {
  top: 24%;
  left: 4%;
  width: 27%;
}
.lab-stamp-editorial__print--pines {
  top: 57%;
  left: 10%;
  width: 27%;
  box-shadow: 0 3px 8px rgba(18, 15, 12, 0.16);
}
.lab-stamp-editorial__print--wheels {
  z-index: 0;
  top: 20px;
  left: 39%;
  width: 22%;
}
.lab-stamp-editorial__print--summer {
  top: 31%;
  left: 32%;
  width: 36%;
  box-shadow: 0 3px 8px rgba(18, 15, 12, 0.16);
}
.lab-stamp-editorial__print--winter {
  z-index: 3;
  top: 20%;
  left: 69%;
  width: 27%;
  box-shadow: 0 3px 8px rgba(18, 15, 12, 0.16);
}
.lab-stamp-editorial__print--wonder {
  top: 55%;
  left: 63%;
  width: 27%;
  box-shadow: 0 3px 8px rgba(18, 15, 12, 0.16);
}
.lab-stamp-editorial__caption {
  position: absolute;
  z-index: 1;
  top: 82%;
  left: 32%;
  width: 36%;
  margin: 0;
  text-align: center;
  color: rgba(91, 69, 42, 0.82);
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-size: clamp(22px, calc(1.75cqw + 4px), 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  transform: translateY(34px);
}
.lab-blueprint-gallery {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 0;
  aspect-ratio: auto;
  background: transparent;
}
.lab-stamp-editorial__print,
.lab-blueprint-gallery__card,
.lab-motion-gallery__item,
.lab-emoji-gallery__item,
.lab-brand-gallery__item,
.lab-ai-isv-gallery__item {
  cursor: zoom-in;
}
.lab-stamp-editorial__print:focus-visible,
.lab-blueprint-gallery__card:focus-visible,
.lab-motion-gallery__item:focus-visible,
.lab-emoji-gallery__item:focus-visible,
.lab-brand-gallery__item:focus-visible,
.lab-ai-isv-gallery__item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}
.lab-image-preview {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(24px, 4vw, 52px);
  border: 0;
  background: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}
.lab-image-preview[open] {
  display: grid;
  place-items: center;
}
.lab-image-preview::backdrop {
  background: rgba(22, 18, 14, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background-color 280ms ease, backdrop-filter 280ms ease, -webkit-backdrop-filter 280ms ease;
}
.lab-image-preview.is-open::backdrop {
  background: rgba(22, 18, 14, 0.34);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.lab-image-preview__content {
  --lab-image-preview-open-y: 12px;
  --lab-image-preview-open-scale: 0.985;
  --lab-image-preview-zoom: 1;
  --lab-image-preview-x: 0px;
  --lab-image-preview-y: 0px;
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - clamp(48px, 8vw, 104px));
  max-height: calc(100dvh - clamp(48px, 8vw, 104px));
  object-fit: contain;
  opacity: 0;
  transform:
    translateY(var(--lab-image-preview-open-y))
    translate3d(var(--lab-image-preview-x), var(--lab-image-preview-y), 0)
    scale(calc(var(--lab-image-preview-open-scale) * var(--lab-image-preview-zoom)));
  transform-origin: center;
  transition: opacity 240ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.lab-image-preview.is-open .lab-image-preview__content {
  --lab-image-preview-open-y: 0px;
  --lab-image-preview-open-scale: 1;
  opacity: 1;
}
.lab-image-preview.has-zoom .lab-image-preview__content {
  cursor: grab;
}
.lab-image-preview.is-dragging .lab-image-preview__content {
  cursor: grabbing;
  transition: none;
}
.lab-image-preview__close {
  position: fixed;
  z-index: 1;
  top: 20px;
  right: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lab-image-preview.is-open .lab-image-preview__close {
  opacity: 1;
  transform: scale(1);
}
.lab-image-preview__close::before,
.lab-image-preview__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  content: "";
  background: currentColor;
  transform-origin: center;
}
.lab-image-preview__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.lab-image-preview__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.lab-image-preview__close:focus-visible {
  outline: 0;
  color: var(--accent);
}
.lab-image-preview__zoom-controls {
  position: fixed;
  z-index: 2;
  bottom: clamp(18px, 3vw, 32px);
  left: 50%;
  display: grid;
  width: auto;
  height: 48px;
  padding: 4px;
  grid-template-columns: 42px 64px 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(45, 48, 51, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 10px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lab-image-preview.is-open .lab-image-preview__zoom-controls {
  opacity: 1;
  transform: translate(-50%, 0);
}
.lab-image-preview__zoom-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  place-items: center;
  color: inherit;
  font-size: 0;
  cursor: pointer;
  transition: background-color 160ms ease, opacity 160ms ease;
}
.lab-image-preview__zoom-button::before,
.lab-image-preview__zoom-button[data-lab-image-preview-zoom-in]::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: translate(-50%, -50%);
}
.lab-image-preview__zoom-button[data-lab-image-preview-zoom-in]::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.lab-image-preview__zoom-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}
.lab-image-preview__zoom-button:disabled {
  cursor: default;
  opacity: 0.34;
}
.lab-image-preview__zoom-button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: -2px;
}
.lab-image-preview__zoom-value {
  display: grid;
  min-width: 64px;
  height: 40px;
  place-items: center;
  color: inherit;
  font-family: "Outfit", "Avenir Next", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
body:has(.lab-image-preview[open]) {
  overflow: hidden;
}
.lab-blueprint-gallery__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
  min-width: 0;
}
.lab-blueprint-gallery__card {
  min-width: 0;
  margin: 0;
  background: transparent;
}
.lab-blueprint-gallery__card img {
  display: block;
  width: 100%;
  height: auto;
}
.lab-motion-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(33.333% - 6px));
  gap: 8px;
  aspect-ratio: auto;
  background: transparent;
}
.lab-motion-gallery__item {
  min-width: 0;
  min-height: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #323036;
}
.lab-motion-gallery__item:first-child {
  grid-row: 1 / span 2;
  aspect-ratio: auto;
}
.lab-motion-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lab-emoji-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: auto;
  background: transparent;
}
.lab-emoji-gallery__item {
  min-width: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #323036;
}
.lab-emoji-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lab-brand-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: auto;
  background: transparent;
}
.lab-brand-gallery__item {
  min-width: 0;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #111522;
}
.lab-brand-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#ai-isv-ecosystem,
#aily-invite-growth,
#isv-independent-pages,
#admin-paid-guidance {
  container-type: inline-size;
}
#aily-invite-growth,
#isv-independent-pages {
  gap: 0;
}
#aily-invite-growth .lab-aily-invite-progress,
#isv-independent-pages .lab-isv-pages-progress {
  margin-top: 8px;
}
#aily-invite-growth .lab-work-copy,
#isv-independent-pages .lab-work-copy {
  margin-top: clamp(28.8px, 3.12vw, 43.2px);
}
#ai-isv-ecosystem .lab-work-copy,
#aily-invite-growth .lab-work-copy,
#isv-independent-pages .lab-work-copy,
#admin-paid-guidance .lab-work-copy,
#lab-ai-isv-title,
#lab-aily-invite-title,
#lab-isv-pages-title,
#lab-paid-guidance-title {
  width: 100%;
}
.lab-ai-isv-copy {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.lab-ai-isv-copy h2,
.lab-ai-isv-copy p {
  grid-column: 1;
}
#lab-ai-isv-title,
#lab-aily-invite-title,
#lab-isv-pages-title,
#lab-paid-guidance-title {
  max-width: none;
  font-size: clamp(18px, 1.65vw, 26px);
  white-space: nowrap;
}
.lab-paid-guidance-cover {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
  cursor: ew-resize;
}
.lab-poetry-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.lab-poetry-gallery__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  cursor: zoom-in;
}
.lab-poetry-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}
.lab-poetry-gallery__item:focus-visible {
  outline: 1px solid #c3d4b6;
  outline-offset: 3px;
}
.lab-poetry-work .lab-work-copy {
  width: 100%;
}
#lab-poetry-title {
  width: 100%;
  max-width: none;
  font-size: clamp(18px, 1.65vw, 26px);
}
.lab-smart-search-work .lab-work-copy {
  width: 100%;
}
.lab-doubao-growth-work .lab-work-copy {
  width: 100%;
}
#lab-doubao-growth-title {
  width: 100%;
  max-width: none;
  font-size: clamp(18px, 1.65vw, 26px);
}
.lab-doubao-growth-cover {
  height: auto;
  aspect-ratio: auto;
  background: transparent;
}
.lab-doubao-growth-cover__image {
  display: block;
  width: 100%;
  height: auto;
}
#lab-smart-search-title {
  width: 100%;
  max-width: none;
  font-size: clamp(18px, 1.65vw, 26px);
}
.lab-smart-search-media {
  position: relative;
  aspect-ratio: 1920 / 1084;
  overflow: hidden;
  border-radius: 0;
  background: #f5f6f7;
}
.lab-smart-search-media .lab-smart-search-video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px 8px 0 0;
  object-fit: contain;
}
.lab-smart-search-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(46, 48, 47, .5);
  color: #fff;
  cursor: pointer;
}
.lab-smart-search-toggle[hidden] { display: none; }
.lab-smart-search-toggle:hover { background: rgba(46, 48, 47, .7); }
.lab-smart-search-toggle:focus-visible { outline: 2px solid #3370ff; outline-offset: 3px; }
.lab-smart-search-toggle svg { width: 22px; height: 22px; }
.lab-smart-search-toggle-pause,
.lab-smart-search-media.is-playing .lab-smart-search-toggle-play { display: none; }
.lab-smart-search-media.is-playing .lab-smart-search-toggle-pause { display: block; }
@media (min-width: 861px) {
  #lab-smart-search-title { white-space: nowrap; }
}
@media (max-width: 600px) {
  .lab-smart-search-toggle { right: 8px; bottom: 8px; }
}
.lab-paid-guidance-cover img {
  --lab-paid-guidance-pan-y: 0px;
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  transform: translate3d(0, var(--lab-paid-guidance-pan-y), 0);
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .lab-paid-guidance-cover {
    cursor: default;
  }

  .lab-paid-guidance-cover img {
    --lab-paid-guidance-pan-y: 0px !important;
    transform: translate3d(0, 0, 0);
    will-change: auto;
  }
}
.lab-ai-isv-detail-button {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  margin: 0;
  padding: 0 19px;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
  border: 0.5px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}
.lab-ai-isv-detail-button:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  transform: translateY(-1px);
}
.lab-ai-isv-detail-button:focus-visible {
  outline: 1px solid #3370ff;
  outline-offset: 3px;
}
.lab-ai-isv-gallery {
  display: grid;
  grid-template-columns: minmax(0, calc(85.714286% + 1.714px)) minmax(0, calc(14.285714% - 9.714px));
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  height: auto;
  aspect-ratio: 7 / 4;
  align-items: stretch;
  background: #080a09;
}
.lab-ai-isv-gallery__item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  place-items: center;
  background: #080a09;
}
.lab-ai-isv-gallery__item.has-subtle-border::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.lab-ai-isv-gallery__item img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 360ms cubic-bezier(.22, .61, .36, 1),
    transform 420ms cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.lab-ai-isv-gallery__item img.is-switching {
  opacity: 0;
  transform: scale(.994);
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(.4, 0, 1, 1);
}
.lab-ai-isv-gallery__thumbs {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.lab-ai-isv-gallery__thumb {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  appearance: none;
  background: #080a09;
  cursor: pointer;
}
.lab-ai-isv-gallery__thumb[data-tooltip] {
  overflow: visible;
}
.lab-ai-isv-gallery__thumb[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(100% + 12px);
  padding: 6px 9px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(8, 10, 9, 0.88);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  word-break: keep-all;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(6px, -50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}
.lab-ai-isv-gallery__thumb[data-tooltip]:hover::before,
.lab-ai-isv-gallery__thumb[data-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.lab-ai-isv-gallery__thumb::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
}
.lab-ai-isv-gallery__thumb.is-active::after {
  border-color: #3370ff;
}
.lab-ai-isv-gallery__thumb:focus-visible {
  outline: 1px solid #3370ff;
  outline-offset: 2px;
}
.lab-ai-isv-gallery__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.lab-aily-invite-gallery {
  /* Avoid Safari collapsing an auto-height grid around an absolute video. */
  display: block;
  aspect-ratio: auto;
  background: #080a09;
}
.lab-aily-invite-gallery__preview {
  display: block;
  width: 100%;
  aspect-ratio: 2876 / 1798;
  background: #080a09;
  cursor: zoom-in;
}
.lab-aily-invite-gallery__preview video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 360ms cubic-bezier(.22, .61, .36, 1),
    transform 420ms cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.lab-aily-invite-gallery__preview video.is-switching {
  opacity: 0;
  transform: scale(.994);
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(.4, 0, 1, 1);
}
.lab-aily-invite-progress {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, .8vw, 10px);
}
.lab-aily-invite-progress__button {
  --lab-aily-progress: 0;
  display: block;
  height: 20px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.lab-aily-invite-progress__track {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 .5px rgba(8, 10, 9, .18);
}
.lab-aily-invite-progress__fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(var(--lab-aily-progress));
  transform-origin: left center;
  will-change: transform;
}
.lab-aily-invite-progress__button:hover .lab-aily-invite-progress__track {
  background: rgba(255, 255, 255, .42);
}
.lab-aily-invite-progress__button:focus-visible {
  outline: 0;
}
.lab-aily-invite-progress__button:focus-visible .lab-aily-invite-progress__track {
  box-shadow:
    0 0 0 1px #080a09,
    0 0 0 2px rgba(255, 255, 255, .92);
}
.lab-aily-invite-gallery .lab-ai-isv-gallery__thumbs {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.lab-aily-invite-gallery .lab-ai-isv-gallery__thumbs[hidden] {
  display: none;
}
.lab-aily-invite-gallery .lab-ai-isv-gallery__thumb {
  background: #080a09;
}
.lab-aily-invite-gallery .lab-ai-isv-gallery__thumb img {
  object-fit: contain;
}
.lab-video-preview__content {
  aspect-ratio: 2876 / 1798;
  background: #080a09;
}
.lab-isv-pages-gallery {
  display: grid;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  place-items: stretch;
  background: #080a09;
}
.lab-isv-pages-gallery__preview {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  place-items: center;
  background: #080a09;
  cursor: zoom-in;
}
.lab-isv-pages-gallery__preview.has-subtle-border::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  content: "";
  pointer-events: none;
}
.lab-isv-pages-gallery__preview img {
  --lab-isv-pages-pan-y: 0px;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  opacity: 1;
  scale: 1;
  transform: translate3d(0, var(--lab-isv-pages-pan-y), 0);
  transition:
    opacity 360ms cubic-bezier(.22, .61, .36, 1),
    scale 420ms cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, scale, transform;
}
.lab-isv-pages-gallery__preview img.is-switching {
  opacity: 0;
  scale: .994;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(.4, 0, 1, 1);
}
.lab-isv-pages-gallery__preview-entry {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  min-height: 36px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: .5px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(8, 10, 9, .62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, .94);
  font: 400 13px/1 "Avenir Next", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(.16, 1, .3, 1);
}
.lab-isv-pages-gallery__preview:hover .lab-isv-pages-gallery__preview-entry,
.lab-isv-pages-gallery__preview.is-pointer-active .lab-isv-pages-gallery__preview-entry,
.lab-isv-pages-gallery__preview:focus-visible .lab-isv-pages-gallery__preview-entry {
  opacity: 1;
  transform: translateY(0);
}
.lab-isv-pages-progress {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, .8vw, 10px);
}
.lab-isv-pages-progress__button {
  --lab-isv-pages-progress: 0;
  display: block;
  height: 20px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.lab-isv-pages-progress__track {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 .5px rgba(8, 10, 9, .18);
}
.lab-isv-pages-progress__fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(var(--lab-isv-pages-progress));
  transform-origin: left center;
  will-change: transform;
}
.lab-isv-pages-progress__button:hover .lab-isv-pages-progress__track {
  background: rgba(255, 255, 255, .42);
}
.lab-isv-pages-progress__button:focus-visible {
  outline: 0;
}
.lab-isv-pages-progress__button:focus-visible .lab-isv-pages-progress__track {
  box-shadow:
    0 0 0 1px #080a09,
    0 0 0 2px rgba(255, 255, 255, .92);
}
.lab-patent-gallery {
  display: flex;
  gap: 8px;
  aspect-ratio: 1.44 / 1;
  overflow: hidden;
  isolation: isolate;
  background: #080c12;
}
.lab-patent-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: #f7f4ed;
  text-decoration: none;
  background: #f7f2e9;
  transition: flex-grow 760ms cubic-bezier(0.2, 0.78, 0.2, 1);
}
.lab-patent-card.is-active {
  flex-grow: 4;
}
.lab-patent-card img {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
}
.lab-patent-card__label {
  position: absolute;
  z-index: 1;
  inset: -2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  padding: 30px 34px;
  overflow: hidden;
  color: rgba(35, 32, 28, 0.92);
  background: rgba(242, 238, 228, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  isolation: isolate;
  will-change: opacity;
  opacity: 1;
  transition:
    opacity 360ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms,
    visibility 0s linear;
}
.lab-patent-card__label::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: url("./lab-projects/project-3/Noise.png");
  background-repeat: repeat;
  background-size: 576px auto;
  mix-blend-mode: multiply;
  opacity: 0.2;
}
.lab-patent-card__label strong {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.lab-patent-card__label strong {
  max-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: clamp(20px, 1.55vw, 24px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
  word-spacing: 5px;
  white-space: nowrap;
  transition: transform 520ms cubic-bezier(0.2, 0.78, 0.2, 1);
}
.lab-patent-card__label small {
  position: absolute;
  z-index: 1;
  right: 34px;
  bottom: 30px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: rgba(35, 32, 28, 0.62);
  transition: transform 520ms cubic-bezier(0.2, 0.78, 0.2, 1) 40ms;
}
.lab-patent-card.is-active .lab-patent-card__label {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 220ms cubic-bezier(0.4, 0, 1, 1),
    visibility 0s linear 220ms;
}
.lab-patent-card.is-active .lab-patent-card__label strong,
.lab-patent-card.is-active .lab-patent-card__label small {
  transform: translateY(14px);
}
.lab-patent-card:focus-visible {
  z-index: 2;
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.92);
}
.lab-bonus-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(360px, 0.92fr);
  min-height: clamp(600px, 51vw, 690px);
  aspect-ratio: auto;
  overflow: hidden;
  background: #101310;
}
.lab-bonus-showcase__visual {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #171612;
  cursor: zoom-in;
}
.lab-bonus-showcase__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.88) contrast(1.04);
  transition: filter 420ms ease, transform 720ms cubic-bezier(0.2, 0.78, 0.2, 1);
}
.lab-bonus-showcase__visual:hover img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.012);
}
.lab-bonus-showcase__visual:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.9);
  outline-offset: -1px;
}
.lab-bonus-showcase__content {
  display: flex;
  min-width: 0;
  padding: clamp(34px, 3.4vw, 50px) clamp(28px, 3.2vw, 46px);
  flex-direction: column;
  justify-content: center;
  background: #101310;
}
.lab-bonus-showcase__header {
  margin-bottom: clamp(18px, 2vw, 28px);
}
.lab-bonus-showcase__header > p {
  margin: 0 0 10px;
  color: rgba(210, 217, 207, 0.48);
  font: 400 10px/1.4 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.1em;
}
.lab-bonus-showcase__headline {
  max-width: 420px;
  margin: 0;
  color: rgba(241, 240, 233, 0.94);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: clamp(21px, 1.9vw, 27px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0;
}
.lab-bonus-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lab-bonus-list > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: clamp(13px, 1.15vw, 17px) 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.13);
}
.lab-bonus-list > li > span {
  padding-top: 4px;
  color: rgba(210, 217, 207, 0.38);
  font: 400 10px/1.3 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.lab-bonus-list h3 {
  margin: 0 0 5px;
  color: rgba(241, 240, 233, 0.92);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: clamp(14px, 1.12vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.lab-bonus-list p {
  margin: 0;
  color: rgba(210, 217, 207, 0.62);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: clamp(12px, 0.98vw, 14px);
  font-weight: 300;
  line-height: 1.68;
  letter-spacing: 0;
}
.lab-bonus-list strong {
  color: rgba(241, 240, 233, 0.94);
  font-weight: 400;
}
.lab-qr-showcase {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: #f2efe7;
}
.lab-qr-showcase__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 1440px;
  height: 900px;
  border: 0;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(var(--lab-qr-scale, 1));
  transform-origin: center;
  transition: opacity 320ms ease;
}
.lab-qr-showcase__frame.is-switching {
  opacity: 0;
}
.lab-qr-showcase__interaction {
  position: absolute;
  z-index: 2;
  inset: 0;
  cursor: default;
  touch-action: pan-y;
}
.lab-work-media--demo {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  aspect-ratio: auto;
  padding: 0 6%;
  background: #fff;
}
.lab-work-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.lab-work-demo-title {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  margin: 0;
  padding-block: calc(11.3636% - 1.08em);
  place-items: center;
  color: #4d5257;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: clamp(20px, calc(3vw - 4px), 38px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
  pointer-events: none;
}
.lab-work-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
  object-fit: contain;
  object-position: center top;
}

.lab-page.has-skill-dialog {
  overflow: hidden;
}
.lab-page.has-ai-isv-detail-dialog {
  overflow: hidden;
}
.lab-ai-isv-detail-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(
    calc(
      100vw
      - var(--lab-main-inline)
      - var(--lab-main-inline)
      - var(--lab-work-inline)
      - var(--lab-work-inline)
    ),
    calc(
      var(--lab-safe-width)
      - var(--lab-main-inline)
      - var(--lab-main-inline)
      - var(--lab-work-inline)
      - var(--lab-work-inline)
    )
  );
  max-width: none;
  height: 90dvh;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: #101310;
  color: #f1f0e9;
  transform: translateY(calc(100% + 1px));
  transition: transform 360ms cubic-bezier(.22, .61, .36, 1);
}
.lab-ai-isv-detail-dialog.is-open {
  transform: translateY(0);
}
.lab-ai-isv-detail-dialog::backdrop {
  background: rgba(2, 4, 3, 0.68);
  backdrop-filter: blur(8px);
}
.lab-ai-isv-detail-dialog__panel {
  position: relative;
  display: block;
  height: 100%;
  background: #101310;
}
.lab-ai-isv-detail-dialog__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #f1f0e9;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.lab-ai-isv-detail-dialog__close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lab-ai-isv-detail-dialog__close:focus-visible {
  outline: 1px solid #3370ff;
  outline-offset: 2px;
}
.lab-ai-isv-detail-dialog__close span {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}
.lab-ai-isv-detail-dialog__close span::before,
.lab-ai-isv-detail-dialog__close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 0.5px;
  background: currentColor;
  content: "";
}
.lab-ai-isv-detail-dialog__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.lab-ai-isv-detail-dialog__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.lab-ai-isv-detail-dialog__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #101310;
}
.lab-skill-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  height: min(760px, calc(100dvh - 48px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #101311;
  color: #f1f0e9;
}
.lab-skill-dialog::backdrop {
  background: rgba(2, 4, 3, .74);
  backdrop-filter: blur(12px);
}
.lab-skill-dialog__panel {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}
.lab-skill-dialog__header {
  display: flex;
  min-height: 92px;
  padding: 22px 26px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: .5px solid rgba(255, 255, 255, .14);
}
.lab-skill-dialog__header p {
  margin: 0 0 7px;
  color: rgba(241, 240, 233, .5);
  font: 500 10px/1.4 "Outfit", "Avenir Next", sans-serif;
  letter-spacing: .12em;
}
.lab-skill-dialog__header h2 {
  margin: 0;
  font: 500 24px/1.2 "Outfit", "Avenir Next", sans-serif;
  letter-spacing: 0;
}
.lab-skill-dialog__close {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: .5px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: #f1f0e9;
  cursor: pointer;
}
.lab-skill-dialog__close span {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}
.lab-skill-dialog__close span::before,
.lab-skill-dialog__close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: .5px;
  background: currentColor;
  content: "";
}
.lab-skill-dialog__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.lab-skill-dialog__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.lab-skill-dialog__close:hover {
  background: rgba(255, 255, 255, .08);
}
.lab-skill-dialog__content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  overflow: hidden;
}
.lab-skill-overview {
  padding: clamp(32px, 5vw, 64px);
  border-right: .5px solid rgba(255, 255, 255, .14);
}
.lab-skill-overview__eyebrow {
  margin: 0 0 20px;
  color: #a9d8ff;
  font: 500 11px/1.5 "Outfit", "Avenir Next", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lab-skill-overview h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0;
}
.lab-skill-overview > p:not(.lab-skill-overview__eyebrow) {
  margin: 24px 0 0;
  color: rgba(241, 240, 233, .62);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
}
.lab-skill-overview dl {
  margin: 36px 0 0;
}
.lab-skill-overview dl > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: .5px solid rgba(255, 255, 255, .12);
}
.lab-skill-overview dt {
  color: rgba(241, 240, 233, .44);
  font: 500 10px/1.7 "Outfit", "Avenir Next", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lab-skill-overview dd {
  margin: 0;
  color: rgba(241, 240, 233, .82);
  font-size: 13px;
  line-height: 1.7;
}
.lab-skill-source {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 188px minmax(0, 1fr);
  background: #0b0d0c;
}
.lab-skill-source--single {
  grid-template-columns: 1fr;
}
.lab-skill-files {
  min-width: 0;
  padding: 18px 12px;
  overflow: auto;
  border-right: .5px solid rgba(255, 255, 255, .1);
  background: #0f1210;
}
.lab-skill-files__group + .lab-skill-files__group {
  margin-top: 20px;
}
.lab-skill-files__group p {
  margin: 0 8px 7px;
  color: rgba(241, 240, 233, .34);
  font: 500 9px/1.4 "Outfit", "Avenir Next", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lab-skill-files button {
  display: flex;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(241, 240, 233, .58);
  font: 400 11px/1.45 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-align: left;
  cursor: pointer;
}
.lab-skill-files button::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border: .5px solid rgba(241, 240, 233, .36);
  content: "";
}
.lab-skill-files button:hover {
  color: rgba(241, 240, 233, .88);
  background: rgba(255, 255, 255, .05);
}
.lab-skill-files button.is-active {
  color: #f1f0e9;
  background: rgba(255, 255, 255, .09);
}
.lab-skill-files button.is-active::before {
  border-color: #a9d8ff;
  background: #a9d8ff;
}
.lab-skill-files button:focus-visible {
  outline: 1px solid #a9d8ff;
  outline-offset: -1px;
}
.lab-skill-viewer {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}
.lab-skill-viewer > header {
  display: flex;
  min-height: 58px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: .5px solid rgba(255, 255, 255, .1);
}
.lab-skill-viewer > header p {
  margin: 0 0 5px;
  color: rgba(241, 240, 233, .34);
  font: 500 9px/1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}
.lab-skill-viewer h3 {
  margin: 0;
  color: rgba(241, 240, 233, .76);
  font: 500 12px/1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}
.lab-skill-viewer__current {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lab-skill-file-toggle,
.lab-skill-file-dropdown {
  display: none;
}
.lab-skill-viewer > header > span {
  flex: 0 0 auto;
  color: rgba(241, 240, 233, .34);
  font: 500 9px/1 "Outfit", "Avenir Next", sans-serif;
  letter-spacing: .08em;
}
.lab-skill-source pre {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: rgba(241, 240, 233, .72);
  font: 400 12px/1.75 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Explicit opening stages: artwork → lettering → copy → note → horse. */
html[data-lab-intro="waiting"] #lab-title { visibility: hidden; }
html[data-lab-intro] .lab-description,
html[data-lab-intro] .lab-note {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 600ms ease, translate 700ms cubic-bezier(.22, 1, .36, 1);
}
html[data-lab-intro] .lab-horse {
  opacity: 0;
  transition: opacity 1100ms ease;
}
html:is([data-lab-intro="copy"], [data-lab-intro="note"], [data-lab-intro="horse"], [data-lab-intro="done"]) .lab-description,
html:is([data-lab-intro="note"], [data-lab-intro="horse"], [data-lab-intro="done"]) .lab-note {
  opacity: 1;
  translate: 0 0;
}
html:is([data-lab-intro="horse"], [data-lab-intro="done"]) .lab-horse { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html[data-lab-intro] .lab-description,
  html[data-lab-intro] .lab-note,
  html[data-lab-intro] .lab-horse,
  .lab-horse-canvas { transition: none; }
}

@media (min-width: 1800px) {
  .lab-composition { padding-inline: 4.1%; }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .lab-page { --lab-main-inline: 28px; }
  .lab-composition { padding-inline: 24px; }
  .lab-description { font-size: 13px; }
  .lab-title-line--second { margin-top: 17px; }
}
@media (max-width: 1000px) {
  .lab-bonus-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .lab-bonus-showcase__visual {
    height: auto;
    aspect-ratio: 2208 / 1506;
    border-right: 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
  }
  .lab-bonus-showcase__content {
    padding: 36px 32px 42px;
  }
  .lab-bonus-showcase__headline {
    max-width: 620px;
  }
}
@media (max-width: 700px) {
  .lab-page {
    --lab-main-inline: 20px;
    --lab-work-inline: 3px;
  }
  .lab-page .site-header { top: 15px; padding-inline: 16px; grid-template-columns: 1fr auto; align-items: center; }
  .lab-page .brand { transform: none !important; }
  .lab-page .brand img { height: 66px; margin: -10px -16px; }
  .lab-page .nav-links { gap: 1px; padding: 5px; font-size: 11px; }
  .lab-page .nav-links a { min-height: 34px; padding: 0 11px; }
  .lab-main { padding: 100px 20px 20px; }
  .lab-hero { min-height: calc(100svh - 120px); }
  .lab-hero-meta { min-height: 12px; padding: 20px 19px 0; font-size: 8px; }
  .lab-composition { grid-template-columns: 1fr; align-content: center; padding: 45px 23px 6px; min-height: 0; gap: 12px; }
  .lab-copy { padding: 0; transform: none; }
  .lab-copy h1 { max-width: 440px; }
  .lab-title-line--second { margin-top: 16px; }
  .lab-description { margin-top: 33px; font-size: 13px; }
  .lab-note { min-height: 12px; margin-top: 19px; font-size: 10px; }
  .lab-horse { width: 112%; margin-left: -6%; transform: translateY(-30px) scale(.95); }
  .lab-work-stream {
    --lab-work-divider-space: 48px;
    padding: 80px var(--lab-work-inline) 112px;
  }
  .lab-work { gap: 24px; }
  .lab-work-copy { gap: 8px; }
  .lab-work-copy--with-action { grid-template-columns: 1fr; gap: 18px; }
  .lab-work-copy h2 { font-size: 16px; line-height: 1.55; }
  .lab-work-copy p { font-size: 13px; line-height: 1.7; }
  .lab-work-preview-link { grid-column: 1; grid-row: auto; justify-self: start; }
  .lab-bonus-showcase__content {
    padding: 28px 20px 32px;
  }
  .lab-bonus-showcase__header {
    margin-bottom: 18px;
  }
  .lab-bonus-showcase__headline {
    font-size: 20px;
  }
  .lab-bonus-list > li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }
  .lab-bonus-list h3 {
    font-size: 14px;
  }
  .lab-bonus-list p {
    font-size: 13px;
    line-height: 1.7;
  }
  .lab-skill-dialog {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
  }
  .lab-skill-dialog__header { min-height: 78px; padding: 18px; }
  .lab-skill-dialog__header h2 { font-size: 19px; }
  .lab-skill-dialog__content {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .lab-skill-overview {
    padding: 30px 20px;
    border-right: 0;
    border-bottom: .5px solid rgba(255, 255, 255, .14);
  }
  .lab-skill-overview h3 { font-size: 21px; }
  .lab-skill-source {
    min-height: 600px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(480px, 1fr);
  }
  .lab-skill-source--single {
    grid-template-rows: minmax(480px, 1fr);
  }
  .lab-skill-files {
    display: flex;
    padding: 14px 16px;
    gap: 18px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: .5px solid rgba(255, 255, 255, .1);
  }
  .lab-skill-files__group {
    flex: 0 0 auto;
  }
  .lab-skill-files__group + .lab-skill-files__group { margin-top: 0; }
  .lab-skill-files__group p { margin-left: 6px; }
  .lab-skill-files button {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .lab-stamp-editorial {
    --lab-stamp-gap: 10px;
    padding-block: 56px 12px;
  }
  .lab-stamp-editorial__board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
    aspect-ratio: auto;
    column-gap: var(--lab-stamp-gap);
    row-gap: 24px;
  }
  .lab-stamp-editorial__board::before,
  .lab-stamp-editorial__board::after {
    display: none;
  }
  .lab-stamp-editorial__print {
    position: static;
    width: 100%;
  }
  .lab-stamp-editorial__print--wheels {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }
  .lab-stamp-editorial__print--summer {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .lab-stamp-editorial__caption {
    position: static;
    grid-column: 1 / 3;
    grid-row: 3;
    width: 100%;
    margin-top: 10px;
  }
  .lab-stamp-editorial__print--gate {
    grid-column: 1;
    grid-row: 4;
  }
  .lab-stamp-editorial__print--winter {
    grid-column: 2;
    grid-row: 4;
  }
  .lab-stamp-editorial__print--pines {
    grid-column: 1;
    grid-row: 5;
  }
  .lab-stamp-editorial__print--wonder {
    grid-column: 2;
    grid-row: 5;
  }
  .lab-blueprint-gallery {
    gap: 4px;
  }
  .lab-blueprint-gallery__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .lab-motion-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lab-motion-gallery__item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .lab-brand-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lab-ai-isv-gallery {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
    aspect-ratio: auto;
  }
  .lab-ai-isv-gallery__thumbs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 4px;
  }
  .lab-ai-isv-gallery__thumb {
    aspect-ratio: 3 / 2;
  }
  .lab-ai-isv-gallery__thumb[data-tooltip]::before {
    display: none;
  }
  #lab-ai-isv-title,
  #lab-aily-invite-title,
  #lab-isv-pages-title,
  #lab-paid-guidance-title {
    white-space: normal;
  }
  .lab-aily-invite-gallery .lab-ai-isv-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .lab-ai-isv-copy {
    grid-template-columns: 1fr;
  }
  .lab-ai-isv-detail-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    min-height: 42px;
    margin-top: 8px;
    padding-inline: 16px;
    font-size: 13px;
  }
  .lab-ai-isv-detail-dialog {
    height: 90dvh;
    border-radius: 10px 10px 0 0;
  }
  .lab-ai-isv-detail-dialog__header {
    min-height: 68px;
    padding: 13px 14px 13px 18px;
  }
  .lab-ai-isv-detail-dialog__header h2 {
    font-size: 14px;
  }
  .lab-ai-isv-detail-dialog__close {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 700px) {
  .lab-patent-gallery {
    gap: 8px;
    aspect-ratio: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
    background: transparent;
  }
  .lab-patent-gallery::-webkit-scrollbar {
    display: none;
  }
  .lab-patent-card,
  .lab-patent-card.is-active {
    flex: 0 0 min(78vw, 320px);
    aspect-ratio: 1400 / 1981;
    scroll-snap-align: start;
  }
  .lab-patent-card .lab-patent-card__label,
  .lab-patent-card.is-active .lab-patent-card__label {
    inset: auto 0 0;
    display: flex;
    gap: 4px;
    padding: 16px;
    visibility: visible;
    color: rgba(35, 32, 28, 0.92);
    background: rgba(242, 238, 228, 0.78);
    opacity: 1;
    transform: none;
  }
  .lab-patent-card__label strong {
    display: block;
    writing-mode: horizontal-tb;
  }
  .lab-patent-card__label strong {
    max-height: none;
    font-size: 18px;
    line-height: 1.45;
    word-spacing: 3px;
  }
  .lab-patent-card__label small {
    position: static;
    writing-mode: horizontal-tb;
    font-size: 11px;
  }
  .lab-patent-card.is-active .lab-patent-card__label strong,
  .lab-patent-card.is-active .lab-patent-card__label small {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-patent-card,
  .lab-patent-card__label,
  .lab-bonus-showcase__visual img,
  .lab-ai-isv-gallery__item img,
  .lab-aily-invite-gallery__preview video,
  .lab-aily-invite-progress__fill,
  .lab-isv-pages-gallery__preview img,
  .lab-isv-pages-gallery__preview-entry,
  .lab-image-preview__content,
  .lab-image-preview__zoom-controls,
  .lab-isv-pages-progress__fill,
  .lab-ai-isv-gallery__thumb,
  .lab-ai-isv-detail-button,
  .lab-ai-isv-detail-dialog {
    transition: none;
  }
}
