/* Albert Lab quote system v166 */
.quote-showcase {
  --quote-accent: #4ec8ff;
  --quote-accent-rgb: 78, 200, 255;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.5rem, 7vw, 7rem) 0;
  border-block: 1px solid rgba(var(--quote-accent-rgb), .18);
  background:
    radial-gradient(circle at 16% 18%, rgba(var(--quote-accent-rgb), .09), transparent 28rem),
    radial-gradient(circle at 82% 62%, rgba(var(--quote-accent-rgb), .06), transparent 31rem),
    linear-gradient(180deg, rgba(3,13,25,.98), rgba(4,17,31,.98));
}
.quote-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .26;
  background-image:
    linear-gradient(rgba(var(--quote-accent-rgb), .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--quote-accent-rgb), .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.quote-showcase[data-quote-category="peers"] {
  --quote-accent: #37b8ff;
  --quote-accent-rgb: 55, 184, 255;
}
.quote-showcase[data-quote-category="apprentice"] {
  --quote-accent: #21d4a4;
  --quote-accent-rgb: 33, 212, 164;
}
.quote-showcase[data-quote-category="beginner"] {
  --quote-accent: #ff812b;
  --quote-accent-rgb: 255, 129, 43;
}
.quote-showcase[data-quote-category="people"] {
  --quote-accent: #5dcfff;
  --quote-accent-rgb: 93, 207, 255;
}
.quote-showcase[data-quote-category="lab-life"] {
  --quote-accent: #ffad55;
  --quote-accent-rgb: 255, 173, 85;
}
.quote-showcase-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 36rem);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.8rem, 4vw, 3.5rem);
}
.quote-showcase-header .eyebrow {
  color: var(--quote-accent);
}
.quote-showcase-header h2 {
  margin: .35rem 0 0;
  max-width: 13ch;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.035em;
}
.quote-showcase-header p:last-child {
  margin: 0;
  max-width: 54ch;
  color: rgba(235,245,255,.76);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}
.quote-stage {
  position: relative;
  z-index: 2;
  min-height: clamp(660px, 58vw, 800px);
  transform: translate3d(0, var(--quote-parallax-y, 0px), 0);
  will-change: transform;
}
.quote-card {
  position: absolute;
  width: min(38vw, 540px);
  min-height: 180px;
  border: 1px solid rgba(var(--quote-accent-rgb), .38);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(7,25,44,.96), rgba(5,18,33,.90));
  box-shadow: 0 26px 64px rgba(0,0,0,.28);
  transition:
    opacity 430ms ease,
    transform 620ms cubic-bezier(.2,.82,.2,1),
    filter 430ms ease;
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}
.quote-card[data-quote-slot="0"] {
  top: 1%;
  left: 2%;
}
.quote-card[data-quote-slot="1"] {
  top: 34%;
  right: 3%;
}
.quote-card[data-quote-slot="2"] {
  top: 67%;
  left: 22%;
}
.quote-card.is-exiting {
  opacity: 0;
  filter: blur(3px);
  transform: translate3d(0, 12px, 0) scale(.965);
}
.quote-card.is-entering {
  opacity: 0;
  filter: blur(3px);
  transform: translate3d(0, -14px, 0) scale(.965);
}
.quote-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: inherit;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}
.quote-person {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.quote-person-image {
  flex: 0 0 auto;
  width: clamp(58px, 5vw, 76px);
  height: clamp(58px, 5vw, 76px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 2px solid var(--quote-accent);
  box-shadow: 0 0 0 4px rgba(var(--quote-accent-rgb), .10);
  background: #10233a;
}
.quote-person-text {
  min-width: 0;
}
.quote-person-name {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: .015em;
}
.quote-person-role {
  margin: .16rem 0 0;
  color: var(--quote-accent);
  font-size: .76rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quote-text {
  margin: 0;
  color: rgba(245,249,255,.93);
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  line-height: 1.56;
  text-wrap: pretty;
}
.quote-text::before {
  content: "“";
  margin-right: .08em;
  color: var(--quote-accent);
  font-size: 1.35em;
  line-height: 0;
}
.quote-text::after {
  content: "”";
  margin-left: .04em;
  color: var(--quote-accent);
}
.quote-status {
  position: absolute;
  top: .85rem;
  right: .9rem;
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: .2rem .55rem;
  border: 1px dashed rgba(var(--quote-accent-rgb), .55);
  border-radius: 999px;
  color: rgba(225,242,255,.70);
  font-size: .62rem;
  font-weight: 720;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.quote-status[hidden] { display: none; }

/* Speech-bubble treatment for People and Lab Life. */
.quote-showcase--speech .quote-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.quote-showcase--speech .quote-card-inner {
  min-height: 190px;
  margin-left: 72px;
  padding: clamp(1.35rem, 2.5vw, 2.15rem);
  border: 1px solid rgba(var(--quote-accent-rgb), .42);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(8,27,47,.97), rgba(5,18,33,.94));
  box-shadow: 0 24px 62px rgba(0,0,0,.28);
}
.quote-showcase--speech .quote-card-inner::before,
.quote-showcase--speech .quote-card-inner::after {
  content: "";
  position: absolute;
  left: -27px;
  top: 58px;
  width: 0;
  height: 0;
  border-style: solid;
}
.quote-showcase--speech .quote-card-inner::before {
  border-width: 14px 28px 14px 0;
  border-color: transparent rgba(var(--quote-accent-rgb), .42) transparent transparent;
}
.quote-showcase--speech .quote-card-inner::after {
  left: -24px;
  top: 59px;
  border-width: 13px 26px 13px 0;
  border-color: transparent rgba(7,24,42,.98) transparent transparent;
}
.quote-showcase--speech .quote-person {
  position: absolute;
  z-index: 3;
  left: -72px;
  top: 38px;
}
.quote-showcase--speech .quote-person-image {
  width: 82px;
  height: 82px;
  border-width: 3px;
}
.quote-showcase--speech .quote-person-text {
  position: absolute;
  left: 104px;
  top: -19px;
  width: max-content;
  max-width: 290px;
}
.quote-showcase--speech .quote-person-name,
.quote-showcase--speech .quote-person-role {
  white-space: nowrap;
}
.quote-showcase--speech .quote-text {
  padding-top: 2.9rem;
}
.quote-showcase--speech .quote-status {
  top: 1rem;
  right: 1rem;
}

html.light-mode .quote-showcase {
  background:
    radial-gradient(circle at 16% 18%, rgba(var(--quote-accent-rgb), .12), transparent 28rem),
    radial-gradient(circle at 82% 62%, rgba(var(--quote-accent-rgb), .08), transparent 31rem),
    linear-gradient(180deg, #f7fbfe, #edf5fa);
}
html.light-mode .quote-showcase-header p:last-child { color: #38516a; }
html.light-mode .quote-card {
  border-color: rgba(var(--quote-accent-rgb), .36);
  background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(239,246,251,.96));
  box-shadow: 0 18px 46px rgba(24,53,78,.14);
}
html.light-mode .quote-person-name,
html.light-mode .quote-text { color: #071827; }
html.light-mode .quote-status { color: #435d73; }
html.light-mode .quote-showcase--speech .quote-card-inner {
  background: linear-gradient(150deg, rgba(255,255,255,.99), rgba(239,246,251,.98));
  box-shadow: 0 18px 46px rgba(24,53,78,.14);
}
html.light-mode .quote-showcase--speech .quote-card-inner::after {
  border-color: transparent rgba(249,252,254,.99) transparent transparent;
}

@media (max-width: 980px) {
  .quote-showcase-header {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .quote-showcase-header h2 { max-width: 16ch; }
  .quote-stage { min-height: 720px; }
  .quote-card { width: min(48vw, 500px); }
  .quote-card[data-quote-slot="0"] { left: 0; }
  .quote-card[data-quote-slot="1"] { right: 0; top: 35%; }
  .quote-card[data-quote-slot="2"] { left: 10%; top: 69%; }
}

@media (max-width: 720px) {
  .quote-showcase { padding: 3rem 0; }
  .quote-stage {
    display: grid;
    gap: 1rem;
    min-height: 0;
    transform: none !important;
  }
  .quote-card,
  .quote-card[data-quote-slot="0"],
  .quote-card[data-quote-slot="1"],
  .quote-card[data-quote-slot="2"] {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
  }
  .quote-showcase--speech .quote-card-inner {
    margin-left: 58px;
  }
  .quote-showcase--speech .quote-person { left: -58px; }
  .quote-showcase--speech .quote-person-image {
    width: 68px;
    height: 68px;
  }
  .quote-showcase--speech .quote-person-text {
    left: 88px;
    top: -14px;
    max-width: calc(100vw - 180px);
  }
  .quote-showcase--speech .quote-card-inner::before { top: 48px; }
  .quote-showcase--speech .quote-card-inner::after { top: 49px; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-stage { transform: none !important; }
  .quote-card { transition: none !important; }
}
