:root {
  --lab-cyan: #0ea5c6;
  --lab-cyan-bright: #39d9ff;
  --lab-violet: #7269ff;
  --lab-orange: #ff8a4c;
  --lab-navy: #06152c;
  --lab-surface: rgba(244, 251, 255, 0.76);
  --lab-surface-solid: #eef9fc;
  --lab-border: rgba(14, 165, 198, 0.24);
  --lab-ink: #102238;
  --lab-muted: #3d4d5e;
  --lab-radius: 22px;
  --lab-shadow: 0 18px 55px rgba(5, 32, 62, 0.1);
}

html[data-theme="dark"] {
  --lab-surface: rgba(12, 31, 43, 0.76);
  --lab-surface-solid: #102732;
  --lab-border: rgba(57, 217, 255, 0.22);
  --lab-ink: #edfaff;
  --lab-muted: #c1d2da;
  --lab-shadow: 0 22px 65px rgba(0, 0, 0, 0.3);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-image:
    linear-gradient(rgba(14, 165, 198, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 198, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 15%, rgba(57, 217, 255, 0.07), transparent 25%),
    radial-gradient(circle at 88% 24%, rgba(114, 105, 255, 0.08), transparent 26%);
  background-size:
    46px 46px,
    46px 46px,
    auto,
    auto;
}

body::before {
  position: fixed;
  z-index: 60;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

header .navbar {
  top: 16px;
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: color-mix(in srgb, var(--global-bg-color) 55%, transparent);
  box-shadow:
    0 24px 60px rgba(3, 22, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  overflow: hidden;
}

header .navbar::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

header .navbar > * {
  position: relative;
  z-index: 1;
}

header .navbar .nav-link {
  position: relative;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

header .navbar .nav-link.active::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  content: "";
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--lab-cyan);
  box-shadow: 0 0 6px color-mix(in srgb, var(--lab-cyan) 70%, transparent);
}

html[data-theme="dark"] header .navbar .nav-link.active::after {
  background: var(--lab-cyan-bright);
  box-shadow: 0 0 6px color-mix(in srgb, var(--lab-cyan-bright) 70%, transparent);
}

header .navbar .navbar-brand {
  padding-left: 0.5rem;
  color: var(--lab-ink) !important;
  font-size: 1.05rem;
  font-weight: 700 !important;
}

header .navbar .nav-link:hover,
header .navbar .nav-link.active {
  color: var(--lab-cyan) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--lab-cyan) 16%, white 84%), color-mix(in srgb, var(--lab-cyan) 8%, transparent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 1px rgba(3, 22, 45, 0.06),
    0 6px 14px rgba(14, 165, 198, 0.22),
    0 1px 2px rgba(3, 22, 45, 0.08);
  transform: translateY(-1px);
}

header .navbar .nav-link:active {
  box-shadow:
    inset 0 1px 3px rgba(3, 22, 45, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(0);
}

html[data-theme="dark"] header .navbar .nav-link:hover,
html[data-theme="dark"] header .navbar .nav-link.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--lab-cyan-bright) 22%, transparent), color-mix(in srgb, var(--lab-cyan-bright) 8%, transparent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3),
    0 6px 16px rgba(57, 217, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] header .navbar .nav-link:active {
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.lab-shell {
  position: relative;
  width: min(1280px, calc(100vw - 32px));
  margin-left: 50%;
  padding: 1rem 0 4rem;
  color: var(--lab-ink);
  transform: translateX(-50%);
}

.post:has(.lab-shell) > .post-header {
  display: none;
}

.lab-shell h1,
.lab-shell h2,
.lab-shell h3,
.lab-shell p,
.lab-shell li,
.lab-shell strong {
  color: inherit;
}

.lab-shell h1,
.lab-shell h2 {
  letter-spacing: -0.035em;
}

.lab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--lab-cyan-bright) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lab-eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.lab-section {
  margin: clamp(4rem, 9vw, 7rem) 0;
  scroll-margin-top: 100px;
}

.lab-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.lab-section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

.lab-section-head p {
  max-width: 32rem;
  margin: 0;
  color: var(--lab-muted) !important;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.lab-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--lab-border);
  border-radius: var(--lab-radius);
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow);
  backdrop-filter: blur(18px);
  transform: perspective(800px) rotateX(var(--tilt-x, 0)) rotateY(var(--tilt-y, 0)) translateY(var(--card-lift, 0)) scale(var(--card-scale, 1));
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.lab-card::after {
  position: absolute;
  inset: auto -35% -75% 20%;
  height: 150px;
  content: "";
  background: radial-gradient(circle, rgba(57, 217, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.lab-card:hover {
  border-color: rgba(57, 217, 255, 0.5);
  box-shadow: 0 20px 60px rgba(14, 165, 198, 0.16);
}

.lab-card:has(.lab-card-link):hover,
.lab-card:has(.lab-person-link):hover {
  --card-lift: -6px;
  --card-scale: 1.015;
  box-shadow: 0 26px 70px rgba(14, 165, 198, 0.22);
}

.lab-research-card:has(.lab-card-link) .lab-index::after {
  display: inline-block;
  margin-left: 0.4em;
  content: "→";
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.lab-research-card:has(.lab-card-link):hover .lab-index::after {
  opacity: 1;
  transform: translateX(0);
}

.lab-card h3 {
  margin: 0.7rem 0 0.55rem;
  color: var(--lab-ink) !important;
  font-size: 1.5rem;
  font-weight: 900;
}

.lab-card p,
.lab-card li {
  color: var(--lab-muted) !important;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
}

.lab-index {
  color: var(--lab-cyan) !important;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.lab-tag {
  display: inline-flex;
  margin: 0.25rem 0.2rem 0 0;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--lab-border);
  border-radius: 999px;
  color: var(--lab-muted) !important;
  font-size: 0.75rem;
}

.lab-beam-button {
  --beam-angle: 0deg;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: #effcff !important;
  background: #07182b;
  font-weight: 750;
  text-decoration: none !important;
  box-shadow: 0 0 30px rgba(57, 217, 255, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lab-beam-button::before {
  position: absolute;
  z-index: -2;
  inset: -70%;
  content: "";
  background: conic-gradient(from var(--beam-angle), transparent 35%, var(--lab-violet), var(--lab-cyan-bright), transparent 64%);
  animation: lab-beam-spin 4s linear infinite;
}

.lab-beam-button::after {
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  content: "";
  background: #07182b;
}

.lab-beam-button:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(57, 217, 255, 0.26);
}

.lab-button-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #eafaff !important;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  backdrop-filter: blur(12px);
}

.lab-hero {
  position: relative;
  min-height: min(680px, 78vh);
  margin-top: 0.25rem;
  overflow: hidden;
  border: 1px solid rgba(57, 217, 255, 0.2);
  border-radius: clamp(24px, 5vw, 44px);
  background:
    radial-gradient(circle at 80% 18%, rgba(57, 217, 255, 0.24), transparent 28%),
    radial-gradient(circle at 30% 90%, rgba(114, 105, 255, 0.28), transparent 35%), #030b18;
  box-shadow: 0 30px 90px rgba(1, 14, 34, 0.35);
}

.lab-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(57, 217, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 217, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.lab-optical-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  filter: saturate(0.82) brightness(0.72);
}

.lab-optical-canvas.is-ready {
  opacity: 0.64;
}

.lab-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 7vw, 5.5rem);
  pointer-events: none;
}

.lab-hero-content > * {
  pointer-events: auto;
}

.lab-hero h1 {
  max-width: 770px;
  margin: 1rem 0 1.25rem;
  color: #f3fcff !important;
  font-size: clamp(3rem, 8.5vw, 6.4rem);
  font-weight: 900;
  line-height: 0.98;
  text-wrap: balance;
}

.lab-hero h1 span {
  color: transparent !important;
  background: linear-gradient(90deg, #f8feff, var(--lab-cyan-bright), #a9a5ff);
  background-clip: text;
}

.lab-hero-lead {
  max-width: 650px;
  color: #b9d1dd !important;
  font-size: clamp(1rem, 2.1vw, 1.25rem);
}

.lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.lab-research-card {
  grid-column: span 4;
  min-height: 190px;
}

.lab-capability {
  grid-column: span 4;
  min-height: 160px;
}

.lab-metric-card {
  grid-column: span 3;
  min-height: 140px;
  text-align: center;
}

.lab-metric-card strong {
  display: block;
  margin: 0.35rem 0 0.15rem;
  font-size: 2rem;
  font-weight: 700;
}

.lab-featured-result,
.lab-direction-stat {
  grid-column: span 4;
}

.lab-featured-result h3 {
  font-size: 1.05rem;
  line-height: 1.45;
}

.lab-placeholder {
  border-style: dashed;
}

.lab-direction-detail {
  display: flex;
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  overflow: hidden;
  border: 1px solid var(--lab-border);
  border-radius: var(--lab-radius);
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow);
  scroll-margin-top: 100px;
}

.lab-direction-detail:nth-of-type(even) {
  flex-direction: row-reverse;
}

.lab-direction-media {
  display: flex;
  min-height: 320px;
  flex: 0 0 42%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 1rem;
  border: 1px solid var(--lab-border);
  border-radius: calc(var(--lab-radius) - 6px);
  background: var(--lab-surface-solid);
}

.lab-direction-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lab-direction-body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 2rem 1.5rem 0;
}

.lab-direction-detail:nth-of-type(even) .lab-direction-body {
  padding: 1.5rem 0 1.5rem 2rem;
}

.lab-direction-body h2 {
  margin: 0.6rem 0 0.75rem;
  color: var(--lab-ink) !important;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
}

.lab-direction-body p {
  margin: 0 0 0.5rem;
  color: var(--lab-muted) !important;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
}

.lab-direction-note {
  padding-left: 0.75rem;
  border-left: 2px dashed var(--lab-border);
  font-style: italic;
}

.lab-placeholder::before {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lab-border);
  border-radius: 50%;
  content: "+";
  color: var(--lab-cyan);
  font-size: 1.6rem;
  line-height: 40px;
  text-align: center;
}

.lab-person {
  grid-column: span 4;
  min-height: 190px;
}

.lab-person-head {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0.65rem;
}

.lab-person img {
  width: 100px;
  height: 100px;
  margin: 0;
  border: 2px solid rgba(57, 217, 255, 0.35);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(57, 217, 255, 0.15);
  flex-shrink: 0;
}

.lab-person-id h3 {
  margin: 0 0 0.15rem;
  font-size: 2rem;
  font-weight: 600;
}

.lab-person-id strong {
  font-size: 1rem;
  font-weight: 600;
}

.lab-person-link,
.lab-card-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}

.lab-person a:not(.lab-person-link) {
  position: relative;
  z-index: 2;
}

.lab-cta {
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--lab-border);
  border-radius: clamp(24px, 5vw, 40px);
  background:
    radial-gradient(circle at 90% 15%, rgba(57, 217, 255, 0.19), transparent 33%),
    radial-gradient(circle at 10% 90%, rgba(114, 105, 255, 0.18), transparent 35%), var(--lab-surface);
  box-shadow: var(--lab-shadow);
}

.lab-page-hero {
  padding: clamp(2.2rem, 7vw, 4.5rem) 0 2rem;
}

.lab-page-hero h1 {
  max-width: 720px;
  margin: 0.65rem 0 1rem;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 800;
}

.lab-page-hero p {
  max-width: 680px;
  color: var(--lab-muted) !important;
  font-size: 1.1rem;
}

.lab-profile-card {
  grid-column: span 4;
}

.lab-profile-card a:not(.lab-person-link) {
  position: relative;
  z-index: 2;
}

.lab-profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.lab-profile-head h3 {
  margin: 0;
}

.lab-profile-card img {
  width: 240px;
  height: 240px;
  margin: 0;
  border-radius: 24px;
  object-fit: cover;
  flex-shrink: 0;
}

.lab-profile-head .lab-avatar-placeholder {
  width: 240px;
  height: 240px;
  margin: 0;
  border-radius: 24px;
  font-size: 4rem;
}

.lab-process-card {
  grid-column: span 4;
}

.lab-contact-card {
  grid-column: span 6;
}

.lab-contact-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lab-contact-avatar {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.lab-contact-info h3 {
  margin: 0.15rem 0 0.3rem;
}

.lab-contact-info p {
  margin: 0 0 0.75rem;
}

.lab-avatar-placeholder {
  display: flex;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lab-cyan), var(--lab-violet));
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
}

.lab-publications .publications {
  padding: 1rem;
  border: 1px solid var(--lab-border);
  border-radius: var(--lab-radius);
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow);
}

.lab-publications .bibliography li {
  margin-bottom: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--lab-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--lab-surface-solid) 82%, transparent);
}

.lab-patent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lab-patent-card h3 {
  font-size: 1.15rem;
}

.lab-patent-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--lab-muted);
  font-size: 0.8rem;
}

.lab-patent-number {
  color: var(--lab-cyan) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.lab-patent-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 0.75rem;
  margin: 1rem 0;
  font-size: 0.84rem;
}

.lab-patent-card dt {
  color: var(--lab-muted);
  font-weight: 600;
}

.lab-patent-card dd {
  margin: 0;
  color: var(--lab-ink);
}

.lab-rays-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: saturate(0.85) brightness(0.82);
  pointer-events: none;
}

.lab-rays-canvas.is-ready {
  opacity: 0.55;
}

.lab-hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.lab-hero:has(.lab-hero-video)::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 80% 18%, rgba(57, 217, 255, 0.22), transparent 32%),
    radial-gradient(circle at 30% 90%, rgba(114, 105, 255, 0.24), transparent 38%);
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .lab-hero-video {
    display: none;
  }
}

.yc-profile {
  grid-column: span 7;
}

.yc-callout {
  grid-column: span 5;
}

.yc-profile-wrap {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.2rem;
}

.yc-portrait {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  object-fit: cover;
}

.yc-profile h3,
.yc-callout h3 {
  font-size: 1.65rem;
}

.yc-meta > div {
  padding: 0.5rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--lab-border);
}

.yc-callout p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.yc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: span 3;
  min-height: 180px;
  gap: 0.45rem;
  text-align: center;
}

.yc-stat .lab-index {
  font-size: 1.65rem;
}

.yc-stat strong,
.yc-stat p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
}

.yc-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
}

.yc-number {
  color: var(--lab-cyan) !important;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.lab-results-stats {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.lab-results-stats .yc-number {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  white-space: nowrap;
}

.lab-results-stats .lab-index {
  color: var(--lab-ink) !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.yc-unit {
  color: var(--lab-muted) !important;
  font-size: 1rem;
  font-weight: 700;
}

.yc-panel {
  grid-column: span 4;
}

.yc-panel h3 {
  font-size: 1.65rem;
}

.yc-panel ul {
  padding-left: 1.25rem;
}

.yc-panel li {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 600;
  white-space: nowrap;
}

.lab-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.lab-js [data-reveal].is-visible {
  animation: lab-reveal 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms) forwards;
}

@keyframes lab-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lab-beam-spin {
  to {
    --beam-angle: 360deg;
    transform: rotate(360deg);
  }
}

@media (max-width: 820px) {
  header .navbar {
    border-radius: 24px;
  }

  .lab-section-head {
    align-items: start;
    flex-direction: column;
  }

  .lab-research-card,
  .lab-research-card:nth-child(4),
  .lab-research-card:nth-child(5),
  .lab-capability,
  .lab-metric-card,
  .lab-featured-result,
  .lab-direction-stat,
  .lab-person,
  .lab-profile-card,
  .lab-process-card,
  .yc-panel,
  .yc-stat {
    grid-column: span 6;
  }

  .yc-profile,
  .yc-callout {
    grid-column: span 12;
  }

  .lab-direction-detail,
  .lab-direction-detail:nth-of-type(even) {
    flex-direction: column;
  }

  .lab-direction-media {
    min-height: 200px;
  }

  .lab-direction-body,
  .lab-direction-detail:nth-of-type(even) .lab-direction-body {
    padding: 0 1.5rem 1.5rem;
  }
}

@media (max-width: 560px) {
  .lab-shell {
    padding-top: 0;
  }

  .lab-hero {
    min-height: 620px;
  }

  .lab-hero-content {
    padding: 2rem 1.25rem;
  }

  .lab-research-card,
  .lab-research-card:nth-child(4),
  .lab-research-card:nth-child(5),
  .lab-capability,
  .lab-metric-card,
  .lab-featured-result,
  .lab-direction-stat,
  .lab-person,
  .lab-profile-card,
  .lab-process-card,
  .lab-contact-card,
  .yc-panel,
  .yc-stat {
    grid-column: span 12;
  }

  .lab-patent-list {
    grid-template-columns: 1fr;
  }

  .yc-profile-wrap {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .lab-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
