/* Knowptics V1.0.4 mobile usability layer.
   This file only adjusts small-screen interaction and overflow behavior. */

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

pre,
code {
  white-space: pre-wrap;
  word-break: break-word;
}

table {
  max-width: 100%;
}

.kp-mobile-only {
  display: none;
}

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  button,
  a,
  input,
  select,
  textarea {
    touch-action: manipulation;
  }

  a,
  button {
    min-height: 40px;
  }

  nav.sticky > div,
  nav.bg-white > div {
    height: auto;
    min-height: 4rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  nav img {
    max-height: 2.5rem;
  }

  #welcomeBadge,
  #loginEntry,
  #dashboardEntry {
    max-width: 100%;
    white-space: nowrap;
  }

  main,
  section,
  article,
  footer {
    min-width: 0;
  }

  .shadow-panel {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.11);
  }

  [class*="rounded-[30px]"],
  [class*="rounded-[32px]"],
  [class*="rounded-[36px]"],
  [class*="rounded-[40px]"] {
    border-radius: 1.35rem;
  }

  header.bg-slate-950 > div {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  header.bg-slate-950 h1,
  section.bg-slate-950 h1 {
    max-width: 11em;
    font-size: 2.45rem;
    line-height: 1.12;
  }

  header.bg-slate-950 p,
  section.bg-slate-950 p {
    font-size: 1rem;
    line-height: 1.75;
  }

  [class*="p-8"],
  [class*="p-9"],
  [class*="p-10"],
  [class*="p-12"] {
    padding: clamp(1.25rem, 5vw, 2rem);
  }

  [class*="py-24"],
  [class*="py-28"] {
    padding-top: clamp(4rem, 14vw, 6rem);
    padding-bottom: clamp(4rem, 14vw, 6rem);
  }

  .kp-scroll-x,
  .prose table,
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .kp-mobile-only {
    display: block;
  }
}

.home-nav.sticky {
  border-bottom-color: transparent !important;
}

.home-nav.sticky::after {
  left: 7vw;
  right: 7vw;
  bottom: -1px;
  background: linear-gradient(90deg, transparent 0%, rgba(226, 232, 240, 0.08) 22%, rgba(226, 232, 240, 0.18) 50%, rgba(125, 211, 252, 0.10) 68%, transparent 100%);
  opacity: 0.52;
}

.home-nav.sticky.home-nav--scrolled::after {
  background: linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, 0.10) 24%, rgba(148, 163, 184, 0.24) 50%, rgba(37, 99, 235, 0.08) 68%, transparent 100%);
  opacity: 0.50;
}

@media (max-width: 430px) {
  h1 {
    word-break: break-word;
  }

  header.bg-slate-950 h1,
  section.bg-slate-950 h1 {
    font-size: 2.28rem;
  }

  nav .text-sm,
  nav .text-xs {
    line-height: 1.25;
  }

  footer a,
  footer p {
    overflow-wrap: anywhere;
  }
}

/* V1.0.5 interface detail pass.
   Keep the existing site language, but remove oversized card / mobile-template feel. */
@media (min-width: 769px) {
  .shadow-panel {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10) !important;
  }

  [class*="rounded-[36px]"],
  [class*="rounded-[40px]"] {
    border-radius: 1.75rem !important;
  }

  [class*="rounded-[30px]"],
  [class*="rounded-[32px]"] {
    border-radius: 1.5rem !important;
  }

  [class*="tracking-[0.32em]"],
  [class*="tracking-[0.28em]"],
  [class*="tracking-[0.24em]"] {
    letter-spacing: 0.16em !important;
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    background-color: #eef3f8;
  }

  nav.sticky > div,
  nav.bg-white > div {
    min-height: 3.5rem;
    gap: 0.5rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  nav img {
    max-height: 2rem;
  }

  nav .tracking-\[0\.28em\] {
    letter-spacing: 0.16em !important;
  }

  #loginEntry,
  #dashboardEntry,
  nav a.rounded-full {
    min-height: 2.4rem;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.875rem !important;
  }

  main h1,
  header h1,
  section h1 {
    max-width: 12em;
    font-size: clamp(2rem, 10vw, 2.65rem) !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
  }

  main h2,
  section h2 {
    font-size: clamp(1.55rem, 7vw, 2rem) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
  }

  main p,
  header p,
  section p,
  article p {
    font-size: clamp(0.95rem, 4.2vw, 1.05rem) !important;
    line-height: 1.75 !important;
  }

  [class*="tracking-[0.32em]"],
  [class*="tracking-[0.28em]"],
  [class*="tracking-[0.24em]"],
  [class*="tracking-[0.22em]"] {
    letter-spacing: 0.14em !important;
  }

  .shadow-panel {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
  }

  [class*="rounded-[28px]"],
  [class*="rounded-[30px]"],
  [class*="rounded-[32px]"],
  [class*="rounded-[36px]"],
  [class*="rounded-[40px]"],
  .rounded-3xl,
  .rounded-\[1\.75rem\],
  .rounded-\[2\.25rem\] {
    border-radius: 1.05rem !important;
  }

  [class*="p-8"],
  [class*="p-9"],
  [class*="p-10"],
  [class*="p-12"] {
    padding: clamp(1rem, 4.5vw, 1.45rem) !important;
  }

  [class*="py-20"],
  [class*="py-24"],
  [class*="py-28"] {
    padding-top: clamp(2.75rem, 10vw, 4.25rem) !important;
    padding-bottom: clamp(2.75rem, 10vw, 4.25rem) !important;
  }

  .inline-flex.rounded-full,
  .rounded-full.border {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }

  .article-body p {
    font-size: 0.98rem !important;
    line-height: 1.9 !important;
  }

  #homePrimaryCta,
  #homeSecondaryCta {
    width: 100%;
    max-width: 100%;
  }

  .hero-workbench-shell,
  .hero-workbench-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .workbench-entry {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 430px) {
  main h1,
  header h1,
  section h1 {
    width: min(100%, 9.8em);
    max-width: 9.8em;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-break: strict;
    font-size: clamp(1.72rem, 8.1vw, 1.95rem) !important;
    line-height: 1.13 !important;
  }

  main h2,
  section h2 {
    font-size: clamp(1.32rem, 6.3vw, 1.62rem) !important;
  }

  main p,
  header p,
  section p,
  article p {
    font-size: 0.92rem !important;
    line-height: 1.68 !important;
  }

  #loginEntry,
  #dashboardEntry,
  nav a.rounded-full {
    min-height: 2.15rem;
    padding: 0.4rem 0.65rem !important;
    font-size: 0.78rem !important;
  }

  #loginEntry {
    display: none !important;
  }

  nav .text-\[11px\] {
    font-size: 0.62rem !important;
  }

  nav .text-sm {
    font-size: 0.82rem !important;
  }

  .inline-flex.rounded-full,
  .rounded-full.border {
    padding: 0.34rem 0.58rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
  }

  [class*="p-8"],
  [class*="p-9"],
  [class*="p-10"],
  [class*="p-12"] {
    padding: clamp(0.9rem, 4vw, 1.18rem) !important;
  }

  [class*="gap-6"],
  [class*="gap-8"],
  [class*="gap-10"] {
    gap: 1rem !important;
  }

  .shadow-panel {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.075) !important;
  }

  #homePrimaryCta,
  #homeSecondaryCta {
    width: 100%;
    max-width: 100%;
    min-height: 3rem;
    padding: 0.82rem 1rem !important;
    font-size: 0.95rem !important;
  }

  main > section:first-child h1 {
    width: min(100%, 8.5em) !important;
    max-width: 8.5em !important;
    font-size: clamp(1.95rem, 8.6vw, 2.25rem) !important;
    line-height: 1.12 !important;
  }

  main > section:first-child p {
    max-width: min(100%, 21em) !important;
  }
}

/* V1.0.6 immaculate pass.
   Tighten the surface language: less badge noise, smaller radii, calmer depth. */
@media (min-width: 769px) {
  .shadow-panel {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09) !important;
  }

  .shadow-soft {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
  }

  [class*="rounded-[36px]"],
  [class*="rounded-[40px]"] {
    border-radius: 1.35rem !important;
  }

  [class*="rounded-[30px]"],
  [class*="rounded-[32px]"] {
    border-radius: 1.2rem !important;
  }

  [class*="rounded-[28px]"],
  .rounded-3xl {
    border-radius: 1rem !important;
  }

  [class*="tracking-[0.32em]"],
  [class*="tracking-[0.28em]"],
  [class*="tracking-[0.24em]"],
  [class*="tracking-[0.22em]"] {
    letter-spacing: 0.08em !important;
  }

  .inline-flex.rounded-full.border,
  span.rounded-full.border {
    border-radius: 999px;
    padding-inline: 0.7rem !important;
  }
}

/* V1.0.7 designed preview pass.
   Keep the restrained Knowptics language, but give each page a clearer composition. */
:root {
  --kp-ink: #020817;
  --kp-panel: #f8fbff;
  --kp-line: rgba(148, 163, 184, 0.28);
  --kp-blue: #0b63ce;
  --kp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

a,
button {
  transition-timing-function: var(--kp-ease) !important;
}

a:active,
button:active {
  transform: translateY(1px) scale(0.99);
}

header.bg-slate-950 {
  background:
    linear-gradient(135deg, #061121 0%, #07111f 54%, #09283a 100%) !important;
}

header.bg-slate-950 > div {
  position: relative;
}

header.bg-slate-950 > div::after {
  content: "";
  position: absolute;
  left: 1rem;
  bottom: 3.25rem;
  width: 5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.95), rgba(96, 165, 250, 0));
}

@media (min-width: 769px) {
  header.bg-slate-950 > div {
    padding-top: clamp(2.75rem, 4.2vw, 4rem) !important;
    padding-bottom: clamp(2.75rem, 4.2vw, 4rem) !important;
  }

  header.bg-slate-950 > div::after {
    bottom: 1.65rem;
  }

  header.bg-slate-950 h1 {
    font-size: clamp(2.9rem, 4.8vw, 4.6rem) !important;
    line-height: 1.04 !important;
  }
}

.home-hero-section {
  background: linear-gradient(135deg, #071121 0%, #06101e 56%, #09283a 100%) !important;
  box-shadow: inset 0 -1px 0 rgba(203, 213, 225, 0.12);
}

.home-nav {
  border-bottom-color: transparent !important;
  background:
    linear-gradient(135deg, rgba(7, 17, 33, 0.96), rgba(6, 16, 30, 0.94) 58%, rgba(9, 40, 58, 0.92)) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px);
}

.home-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(226, 232, 240, 0.06) 13%, rgba(226, 232, 240, 0.28) 50%, rgba(226, 232, 240, 0.06) 87%, transparent 100%);
  opacity: 0.78;
}

.home-nav img {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.home-nav .text-slate-900,
.home-nav .text-slate-700,
.home-nav .text-slate-600,
.home-nav .text-slate-500 {
  color: rgba(248, 250, 252, 0.92) !important;
}

.home-nav .text-slate-400 {
  color: rgba(147, 197, 253, 0.72) !important;
}

.home-nav a:hover {
  color: #bfdbfe !important;
}

.home-nav #loginEntry {
  border-color: rgba(226, 232, 240, 0.20) !important;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 250, 252, 0.92) !important;
}

.home-nav #dashboardEntry {
  background: #fff !important;
  color: #07111f !important;
}

.home-nav #welcomeBadge {
  border-color: rgba(226, 232, 240, 0.20) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(248, 250, 252, 0.90) !important;
}

.home-nav.home-nav--scrolled {
  border-bottom-color: transparent !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

.home-nav.home-nav--scrolled::after {
  background: linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, 0.12) 14%, rgba(148, 163, 184, 0.36) 50%, rgba(148, 163, 184, 0.12) 86%, transparent 100%);
  opacity: 0.72;
}

.home-nav.home-nav--scrolled img {
  filter: none;
  opacity: 1;
}

.home-nav.home-nav--scrolled .text-slate-900 {
  color: #0f172a !important;
}

.home-nav.home-nav--scrolled .text-slate-700 {
  color: #334155 !important;
}

.home-nav.home-nav--scrolled .text-slate-600,
.home-nav.home-nav--scrolled .text-slate-500 {
  color: #475569 !important;
}

.home-nav.home-nav--scrolled .text-slate-400 {
  color: #94a3b8 !important;
}

.home-nav.home-nav--scrolled a:hover {
  color: #2563eb !important;
}

.home-nav.home-nav--scrolled #loginEntry {
  border-color: #e2e8f0 !important;
  background: transparent;
  color: #334155 !important;
}

.home-nav.home-nav--scrolled #dashboardEntry {
  background: #0f172a !important;
  color: #fff !important;
}

.home-nav.home-nav--scrolled #welcomeBadge {
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
  color: #334155 !important;
}

.home-capability-section {
  background:
    linear-gradient(180deg, #edf3f9 0%, #f3f6fa 42%, #eef3f8 100%) !important;
}

.home-manufacturing-section {
  border-top: 1px solid rgba(203, 213, 225, 0.62);
  border-bottom: 1px solid rgba(203, 213, 225, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.96)),
    #fff;
}

.home-manufacturing-card {
  position: relative;
  overflow: hidden;
}

.home-manufacturing-card::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: rgba(37, 99, 235, 0.18);
}

.home-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-capability-card {
  position: relative;
  overflow: hidden;
  min-height: 15.5rem;
}

.home-capability-card::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: rgba(37, 99, 235, 0.16);
}

.home-capability-card--primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.78)),
    #fff !important;
}

.home-capability-card--library {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 254, 255, 0.70)),
    #fff !important;
}

.home-capability-card--primary h3 {
  font-size: clamp(2rem, 2.8vw, 2.85rem) !important;
  max-width: 7em;
  line-height: 1;
}

.home-capability-card--dark {
  border-color: rgba(15, 23, 42, 0.18) !important;
  background: linear-gradient(135deg, #07111f, #0f2742) !important;
  color: white;
}

.home-capability-card--dark div,
.home-capability-card--dark h3,
.home-capability-card--dark p {
  color: white !important;
}

.home-capability-card--dark p {
  color: rgba(226, 232, 240, 0.78) !important;
}

.labs-section-label {
  color: var(--kp-blue);
  font-size: 0.95rem;
  font-weight: 750;
}

.labs-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.32fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 1.45rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.labs-hero-copy {
  padding: clamp(1.6rem, 3.7vw, 3rem);
}

.labs-hero-copy h1 {
  margin-top: 1rem;
  max-width: 9em;
  color: var(--kp-ink);
  font-size: clamp(3rem, 5.6vw, 5.35rem);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.labs-hero-copy p:not(.labs-section-label) {
  margin-top: 1.15rem;
  max-width: 42rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}

.labs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.labs-hero-actions a {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1.15rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.labs-hero-actions a:first-child {
  background: #07111f;
  color: #fff;
}

.labs-hero-actions a:last-child {
  border: 1px solid rgba(148, 163, 184, 0.46);
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
}

.labs-metric-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-left: 1px solid var(--kp-line);
  background: rgba(241, 245, 249, 0.58);
}

.labs-metric-rail div {
  display: flex;
  min-height: 25%;
  flex-direction: column;
  justify-content: center;
  padding: 1rem clamp(1rem, 2vw, 1.4rem);
  border-bottom: 1px solid var(--kp-line);
}

.labs-metric-rail div:last-child {
  border-bottom: 0;
}

.labs-metric-rail strong {
  display: block;
  color: var(--kp-ink);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1;
}

.labs-metric-rail span {
  display: block;
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.labs-workbench-panel {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 1.45rem;
  background: linear-gradient(135deg, #030712, #0a1324 48%, #0b2a42);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
}

.labs-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.labs-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.labs-status-line span {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  color: #bfdbfe;
  font-size: 0.76rem;
  font-weight: 750;
}

.labs-capability-list {
  align-self: center;
  border-block: 1px solid rgba(226, 232, 240, 0.12);
}

.labs-capability-list div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}

.labs-capability-list div:last-child {
  border-bottom: 0;
}

.labs-capability-list span {
  color: #93c5fd;
  font-size: 0.86rem;
  font-weight: 800;
}

.labs-capability-list strong {
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.6;
}

.labs-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem;
}

.labs-project-card {
  min-height: 21rem;
}

.labs-project-card:nth-child(1) {
  grid-row: span 2;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.88)),
    #fff !important;
}

.labs-project-card:nth-child(1) h3 {
  font-size: clamp(2.4rem, 4vw, 4.1rem) !important;
  line-height: 0.98;
}

.labs-project-card:nth-child(2),
.labs-project-card:nth-child(5) {
  background: #f8fbff !important;
}

.knowledge-entry-hero {
  background: linear-gradient(135deg, #020817 0%, #050b1a 54%, #061b2b 100%) !important;
}

.knowledge-entry-hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.knowledge-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  align-items: start;
  gap: 1.25rem;
}

.knowledge-entry-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
}

.knowledge-entry-counts div {
  padding: 1rem 1.1rem;
}

.knowledge-entry-counts div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.knowledge-entry-counts strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.knowledge-entry-counts span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.knowledge-entry-card {
  position: relative;
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 1.35rem;
  background: #fff;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.knowledge-entry-card::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 0 1.5rem;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: rgba(37, 99, 235, 0.22);
}

.knowledge-entry-card--video {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.74)),
    #fff;
}

.knowledge-entry-card--courses {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.7) 52%, rgba(239, 246, 255, 0.82)),
    #fff;
}

.knowledge-entry-card--courses::after {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.42), rgba(37, 99, 235, 0.24));
}

.knowledge-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.knowledge-chip-row span {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  padding: 0.45rem 0.7rem;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 750;
}

.knowledge-entry-link {
  margin-top: auto;
  padding-top: 1.5rem;
  color: #2563eb;
  font-size: 0.92rem;
  font-weight: 850;
}

.knowledge-quick-panel {
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.15rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.knowledge-quick-panel a {
  display: block;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.9rem;
  padding: 0.85rem 0.95rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
}

.knowledge-quick-panel a:hover {
  border-color: rgba(59, 130, 246, 0.32);
  background: rgba(239, 246, 255, 0.72);
  color: #1d4ed8;
}

.knowledge-mobile-links {
  display: none;
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.knowledge-mobile-links a {
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 1rem;
  background: #fff;
  padding: 0.9rem 1rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
}

.about-brief-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.24);
}

.about-brief-panel div {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.05rem 1.15rem;
}

.about-brief-panel div:last-child {
  border-bottom: 0;
}

.about-brief-panel span {
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 900;
}

.about-brief-panel strong {
  color: rgba(248, 250, 252, 0.94);
  font-size: 0.96rem;
  line-height: 1.5;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22.5rem;
  gap: 2rem;
  align-items: end;
}

.archive-search-grid,
.minute-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26.25rem;
  gap: 1.25rem;
  align-items: end;
}

.archive-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.minute-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1.5rem;
  align-items: end;
}

.minute-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.75rem;
  gap: 1.5rem;
}

.minute-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.75rem;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .home-capability-grid,
  .knowledge-entry-grid,
  .labs-workbench-grid,
  .labs-project-grid {
    grid-template-columns: 1fr;
  }

  .home-capability-card--primary,
  .labs-project-card:nth-child(1) {
    grid-row: auto;
  }

  .labs-hero-shell {
    grid-template-columns: 1fr;
  }

  .labs-metric-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--kp-line);
    border-left: 0;
  }

  .labs-metric-rail div {
    min-height: auto;
    border-right: 1px solid var(--kp-line);
    border-bottom: 0;
  }

  .labs-metric-rail div:last-child {
    border-right: 0;
  }

  .knowledge-entry-hero-grid,
  .knowledge-entry-layout,
  .about-hero-grid,
  .archive-search-grid,
  .archive-feature-grid,
  .minute-hero-grid,
  .minute-search-grid,
  .minute-results-layout,
  .minute-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header.bg-slate-950 > div::after {
    bottom: 2rem;
  }

  .labs-hero-copy {
    padding: 1.5rem;
  }

  .labs-hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.3rem);
  }

  .labs-metric-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
  }

  .labs-metric-rail div:nth-child(2) {
    border-right: 0;
  }

  .labs-metric-rail div:nth-child(n + 3) {
    border-top: 1px solid var(--kp-line);
  }

  .labs-workbench-grid {
    padding: 1.35rem;
  }

  .labs-capability-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .knowledge-mobile-links {
    display: grid;
  }

  .knowledge-entry-card {
    min-height: 0;
  }
}

/* frontend-design polish layer: optical instrument details. */
:root {
  --kp-ink: #07111f;
  --kp-ink-2: #0b1b2f;
  --kp-blue: #2563eb;
  --kp-cyan: #38bdf8;
  --kp-mint: #34d399;
  --kp-amber: #f59e0b;
  --kp-violet: #8b5cf6;
  --kp-line: rgba(148, 163, 184, 0.28);
  --kp-line-strong: rgba(100, 116, 139, 0.28);
  --kp-glass: rgba(255, 255, 255, 0.82);
  --kp-shadow-1: 0 18px 42px rgba(15, 23, 42, 0.075);
  --kp-shadow-2: 0 28px 70px rgba(15, 23, 42, 0.11);
  --kp-shadow-dark: 0 24px 58px rgba(2, 6, 23, 0.26);
  --kp-radius-card: 24px;
  --kp-radius-panel: 28px;
  --kp-motion: 180ms cubic-bezier(.2, .7, .2, 1);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.08), transparent 24rem),
    linear-gradient(180deg, #f2f6fa 0%, #eef3f8 42%, #f8fafc 100%);
}

nav.sticky {
  border-bottom-color: rgba(203, 213, 225, 0.72) !important;
  backdrop-filter: blur(18px) saturate(1.1);
  transition: background var(--kp-motion), border-color var(--kp-motion), box-shadow var(--kp-motion), color var(--kp-motion);
}

nav.sticky:not(.home-nav) {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045) !important;
}

nav.sticky a {
  outline-offset: 5px;
}

nav.sticky a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.72);
  outline-offset: 3px;
}

.shadow-panel {
  box-shadow: var(--kp-shadow-1) !important;
}

.shadow-soft {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055) !important;
}

[class*="rounded-[36px]"],
[class*="rounded-[40px]"] {
  border-radius: var(--kp-radius-panel) !important;
}

[class*="rounded-[28px]"],
[class*="rounded-[32px]"] {
  border-radius: var(--kp-radius-card) !important;
}

.home-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(104deg, transparent 0 36%, rgba(125, 211, 252, 0.10) 36.25%, transparent 37.2% 100%),
    linear-gradient(104deg, transparent 0 61%, rgba(52, 211, 153, 0.055) 61.2%, transparent 62% 100%);
  opacity: 0.72;
}

.home-nav {
  transition: background var(--kp-motion), border-color var(--kp-motion), box-shadow var(--kp-motion), color var(--kp-motion);
}

.home-nav.home-nav--scrolled {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.065) !important;
}

.hero-workbench-shell,
.hero-workbench-panel,
.labs-workbench-panel,
.knowledge-entry-counts,
.about-brief-panel {
  position: relative;
}

.hero-workbench-shell::before,
.labs-workbench-panel::before,
.knowledge-entry-counts::before,
.about-brief-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(125, 211, 252, 0.08), transparent 48%);
  opacity: 0.72;
}

.hero-workbench-shell {
  box-shadow: var(--kp-shadow-dark), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.workbench-entry {
  position: relative;
  min-height: 50px;
  padding-left: 12px !important;
  transition: background var(--kp-motion), transform var(--kp-motion), border-color var(--kp-motion);
}

.workbench-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  z-index: 1;
  width: 2px;
  border-radius: 999px;
  background: rgba(var(--entry-rgb), 0.58);
  opacity: 0.72;
}

.home-capability-card,
.home-manufacturing-card,
.labs-project-card,
.knowledge-entry-card,
.knowledge-quick-panel,
.about-brief-panel,
main section > [class*="rounded-"],
details {
  transition: transform var(--kp-motion), border-color var(--kp-motion), box-shadow var(--kp-motion), background var(--kp-motion);
}

.home-capability-card,
.home-manufacturing-card,
.labs-project-card,
.knowledge-entry-card {
  position: relative;
  border-color: rgba(203, 213, 225, 0.76) !important;
  box-shadow: var(--kp-shadow-1) !important;
}

.home-capability-card:hover,
.home-manufacturing-card:hover,
.labs-project-card:hover,
.knowledge-entry-card:hover,
.knowledge-quick-panel a:hover,
details:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.46) !important;
  box-shadow: var(--kp-shadow-2) !important;
}

.home-capability-card::before,
.home-manufacturing-card::before,
.labs-project-card::before,
.knowledge-entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(180deg, transparent 72%, rgba(37, 99, 235, 0.035));
  opacity: 0.42;
}

.knowledge-quick-panel a,
.knowledge-mobile-links a,
.labs-hero-actions a,
#homePrimaryCta,
main a[class*="rounded-2xl"],
button[class*="rounded-2xl"] {
  transition: transform var(--kp-motion), border-color var(--kp-motion), background var(--kp-motion), color var(--kp-motion), box-shadow var(--kp-motion);
}

main a[class*="rounded-2xl"]:hover,
button[class*="rounded-2xl"]:hover,
.labs-hero-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.knowledge-quick-panel a,
.knowledge-mobile-links a {
  position: relative;
  padding-left: 2.6rem !important;
}

.knowledge-quick-panel a::before,
.knowledge-mobile-links a::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 12px;
  height: 1px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.42);
  transform: translateY(-50%);
}

.about-brief-panel div {
  position: relative;
}

.about-brief-panel span {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 211, 252, 0.20);
  border-radius: 12px;
  background: rgba(125, 211, 252, 0.08);
  letter-spacing: 0;
}

details {
  border-color: rgba(203, 213, 225, 0.78) !important;
  background: rgba(248, 250, 252, 0.84) !important;
}

details[open] {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.toggle-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  line-height: 1;
}

.home-capability-card::after,
.home-manufacturing-card::after,
.knowledge-entry-card::after {
  height: 2px !important;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.34), rgba(52, 211, 153, 0.18), rgba(37, 99, 235, 0)) !important;
}

.labs-metric-rail div,
.knowledge-entry-counts div {
  position: relative;
}

.labs-metric-rail div::after,
.knowledge-entry-counts div::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.75rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.45), transparent);
  opacity: 0.65;
}

@media (prefers-reduced-motion: no-preference) {
  main > section,
  main > header,
  header.knowledge-entry-hero,
  header.bg-slate-950 {
    animation: kp-fade-up 420ms cubic-bezier(.2, .7, .2, 1) both;
  }

  main > section:nth-child(2) {
    animation-delay: 70ms;
  }

  main > section:nth-child(3) {
    animation-delay: 120ms;
  }
}

@keyframes kp-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  nav.sticky > div {
    min-width: 0;
  }

  nav.sticky > div > a:first-child {
    min-width: 0;
    gap: 0.5rem;
  }

  nav.sticky > div > a:first-child img {
    max-height: 2rem;
  }

  nav.sticky > div > a:first-child > div {
    min-width: 0;
  }

  nav.sticky > div > a:first-child > div > div {
    overflow: hidden;
    max-width: 6.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #dashboardEntry,
  nav.sticky a[href*="dashboard"] {
    min-height: 2.25rem;
    max-width: 6.2rem;
    padding: 0.55rem 0.72rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem !important;
    line-height: 1.1;
  }

  .home-nav #dashboardEntry {
    display: none;
  }

  .home-hero-section h1 {
    max-width: 6.45em;
    font-size: clamp(2.02rem, 8.85vw, 2.32rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .home-hero-section .max-w-3xl,
  .home-hero-section .max-w-2xl {
    width: 100%;
    max-width: calc(100vw - 2.75rem) !important;
    min-width: 0;
  }

  .home-hero-section p {
    max-width: 100%;
    font-size: 0.98rem !important;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  #homePrimaryCta,
  #homeSecondaryCta {
    width: 100%;
    max-width: 100%;
  }

  .workbench-entry {
    padding-left: 48px !important;
  }

  .workbench-entry::before {
    left: 8px;
  }

  .home-capability-card::before,
  .home-manufacturing-card::before,
  .labs-project-card::before,
  .knowledge-entry-card::before {
    right: 1rem;
    top: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 11px;
  }

  .home-capability-card:hover,
  .home-manufacturing-card:hover,
  .labs-project-card:hover,
  .knowledge-entry-card:hover,
  details:hover {
    transform: none;
  }
}

/* Compact product-page pass for Labs and Knowledge entry pages. */
.labs-hero-shell {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.3fr) !important;
  overflow: hidden;
  border-radius: 24px !important;
}

.labs-hero-copy {
  padding: clamp(1.65rem, 3vw, 2.45rem) !important;
}

.labs-hero-copy h1 {
  max-width: 8em;
  font-size: clamp(2.55rem, 4.6vw, 4.25rem) !important;
  letter-spacing: -0.028em !important;
  line-height: 1.02 !important;
}

.labs-hero-copy p:not(.labs-section-label) {
  margin-top: 0.85rem !important;
  max-width: 36rem !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
}

.labs-hero-actions {
  margin-top: 1.35rem !important;
}

.labs-metric-rail {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: stretch;
  background: rgba(241, 245, 249, 0.52) !important;
}

.labs-metric-rail div {
  min-height: 0;
  padding: 1.05rem 1.25rem !important;
  border-right: 1px solid var(--kp-line);
}

.labs-metric-rail div:nth-child(2n) {
  border-right: 0;
}

.labs-metric-rail div:nth-child(n + 3) {
  border-top: 1px solid var(--kp-line);
}

.labs-metric-rail strong {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem) !important;
  letter-spacing: -0.02em;
}

.labs-metric-rail span {
  margin-top: 0.18rem !important;
  font-size: 0.78rem !important;
}

.labs-metric-rail div::after {
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0.5rem;
  opacity: 0.42;
}

.labs-workbench-panel {
  border-radius: 24px !important;
}

.labs-workbench-copy h2 {
  max-width: 13em;
  font-size: clamp(1.8rem, 2.6vw, 2.55rem) !important;
  letter-spacing: -0.025em !important;
  line-height: 1.14 !important;
}

.labs-workbench-copy p {
  margin-top: 1rem !important;
  font-size: 0.9rem !important;
  line-height: 1.85 !important;
}

.labs-capability-list div {
  padding-block: 0.9rem !important;
}

.labs-project-card {
  min-height: 18rem !important;
  padding: clamp(1.4rem, 2.6vw, 2.1rem) !important;
  border-radius: 24px !important;
}

.labs-project-card h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.35rem) !important;
  letter-spacing: -0.024em !important;
  line-height: 1.12 !important;
}

.labs-project-card:nth-child(1) h3 {
  font-size: clamp(2rem, 3.1vw, 3.25rem) !important;
}

.labs-project-card p {
  margin-top: 0.95rem !important;
  line-height: 1.78 !important;
}

.knowledge-entry-hero > div {
  padding-top: clamp(2rem, 3.2vw, 3rem) !important;
  padding-bottom: clamp(2rem, 3.2vw, 3rem) !important;
}

.knowledge-entry-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem) !important;
  align-items: center !important;
  gap: clamp(1rem, 2.2vw, 2rem) !important;
}

.knowledge-entry-hero h1 {
  max-width: 10em;
  font-size: clamp(2.25rem, 4vw, 3.85rem) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.04 !important;
}

.knowledge-entry-hero p {
  margin-top: 0.8rem !important;
  max-width: 42rem !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
}

.knowledge-entry-counts {
  grid-template-columns: 1fr !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.knowledge-entry-counts div {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem !important;
}

.knowledge-entry-counts div + div {
  border-left: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.knowledge-entry-counts strong {
  font-size: 1.65rem !important;
  letter-spacing: -0.02em;
}

.knowledge-entry-counts span {
  margin-top: 0 !important;
  font-size: 0.78rem !important;
  color: rgba(226, 232, 240, 0.82);
}

.knowledge-entry-counts div::after {
  left: 1rem;
  right: 1rem;
  bottom: 0;
  opacity: 0.34;
}

.knowledge-entry-layout {
  grid-template-columns: minmax(0, 1fr) 16.5rem !important;
  gap: 1rem !important;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.knowledge-entry-card {
  min-height: 14.2rem !important;
  padding: clamp(1.15rem, 2.2vw, 1.45rem) !important;
  border-radius: 24px !important;
}

.knowledge-entry-card h2 {
  font-size: clamp(1.55rem, 2.1vw, 2.05rem) !important;
  letter-spacing: -0.024em !important;
  line-height: 1.18 !important;
}

.knowledge-entry-card p {
  margin-top: 0.85rem !important;
  line-height: 1.72 !important;
}

.knowledge-chip-row {
  margin-top: 1rem !important;
}

.knowledge-chip-row span {
  padding: 0.36rem 0.62rem !important;
  font-size: 0.74rem !important;
}

.knowledge-entry-link {
  padding-top: 1.1rem !important;
}

.knowledge-quick-panel {
  border-radius: 22px !important;
}

@media (max-width: 1024px) {
  .labs-hero-shell,
  .knowledge-entry-hero-grid,
  .knowledge-entry-layout {
    grid-template-columns: 1fr !important;
  }

  .labs-metric-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    border-left: 0 !important;
    border-top: 1px solid var(--kp-line);
  }

  .labs-metric-rail div {
    border-top: 0 !important;
  }

  .labs-metric-rail div:not(:last-child) {
    border-right: 1px solid var(--kp-line);
  }

  .knowledge-entry-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .knowledge-entry-counts div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .labs-hero-copy h1 {
    font-size: clamp(2.2rem, 10vw, 2.9rem) !important;
  }

  .labs-metric-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .labs-metric-rail div:nth-child(2n) {
    border-right: 0 !important;
  }

  .labs-metric-rail div:nth-child(n + 3) {
    border-top: 1px solid var(--kp-line) !important;
  }

  .knowledge-entry-hero h1 {
    font-size: clamp(2.05rem, 9vw, 2.65rem) !important;
  }

  .knowledge-entry-counts {
    grid-template-columns: 1fr !important;
  }

  .knowledge-entry-counts div + div {
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .home-capability-card::before,
  .home-manufacturing-card::before,
  .labs-project-card::before,
  .knowledge-entry-card::before {
    inset: 0 !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    border-radius: inherit !important;
  }
}

/* Final type-scale trim after screenshot review. */
.labs-hero-copy h1 {
  font-size: clamp(2.35rem, 3.8vw, 3.45rem) !important;
  line-height: 1.06 !important;
}

.labs-workbench-copy h2 {
  font-size: clamp(1.65rem, 2.25vw, 2.25rem) !important;
}

.labs-project-card h3 {
  font-size: clamp(1.45rem, 1.9vw, 2rem) !important;
}

.labs-project-card:nth-child(1) h3 {
  font-size: clamp(1.75rem, 2.45vw, 2.55rem) !important;
}

.knowledge-entry-hero h1 {
  font-size: clamp(2.05rem, 3.2vw, 3.2rem) !important;
  line-height: 1.06 !important;
}

.knowledge-entry-card h2 {
  font-size: clamp(1.42rem, 1.85vw, 1.85rem) !important;
}

@media (max-width: 768px) {
  .labs-hero-copy h1 {
    font-size: clamp(2.05rem, 9vw, 2.55rem) !important;
  }

  .knowledge-entry-hero h1 {
    font-size: clamp(1.95rem, 8.5vw, 2.4rem) !important;
  }
}

/* Smaller final headings for entry pages. */
.labs-hero-copy h1 {
  font-size: clamp(2.25rem, 3.45vw, 3.1rem) !important;
}

.knowledge-entry-hero > div {
  padding-top: clamp(1.8rem, 2.7vw, 2.45rem) !important;
  padding-bottom: clamp(1.8rem, 2.7vw, 2.45rem) !important;
}

.knowledge-entry-hero h1 {
  font-size: clamp(2rem, 2.8vw, 2.8rem) !important;
}

@media (max-width: 768px) {
  .labs-hero-copy h1 {
    font-size: clamp(2rem, 8.6vw, 2.45rem) !important;
  }

  .knowledge-entry-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.25rem) !important;
  }

  html,
  body {
    overflow-x: hidden;
  }

  nav.sticky a[href*="dashboard"] {
    display: none !important;
  }

  nav.sticky > div > div.flex.items-center.gap-2 {
    display: none !important;
  }

  nav.sticky > div {
    max-width: 100vw;
    overflow: hidden;
  }

  .labs-hero-shell,
  .labs-workbench-panel,
  .knowledge-entry-counts,
  .knowledge-entry-card,
  .knowledge-quick-panel {
    max-width: 100%;
    min-width: 0;
  }

  .labs-hero-copy p,
  .labs-workbench-copy p,
  .knowledge-entry-hero p,
  .knowledge-entry-card p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .labs-hero-actions,
  .knowledge-chip-row {
    max-width: 100%;
  }

  .labs-hero-actions a {
    min-width: 0;
  }

  .knowledge-chip-row {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }

  .knowledge-chip-row span {
    white-space: nowrap;
  }
}
