.research-carousel {
  --card-width: 296px;
  --card-height: 388px;
  position: relative;
  margin-top: 18px;
  border-top: 1px solid #bdc7b8;
  background: #e9ede5;
  overflow: hidden;
}
.research-carousel[hidden] { display: none; }
.research-carousel .research-grid {
  position: relative;
  display: block;
  height: 584px;
  border: 0;
  perspective: 1600px;
  perspective-origin: 50% 43%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.research-carousel .research-grid::before {
  content: '';
  position: absolute;
  width: min(78%, 920px);
  height: 78px;
  left: 50%;
  top: 470px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, #364b3426, #364b3409 48%, transparent 72%);
  pointer-events: none;
}
.research-carousel .research-grid.is-dragging,
.research-carousel .is-dragging .research-card { cursor: grabbing; }
.research-carousel .research-card {
  color: inherit;
  text-decoration: none;
  position: absolute;
  left: 50%;
  top: 47%;
  width: var(--card-width);
  height: var(--card-height);
  display: block;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  transform-style: preserve-3d;
  transform-origin: center;
  text-align: left;
  will-change: transform;
  cursor: grab;
  transition: none;
}
.card-face, .card-back, .card-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  backface-visibility: hidden;
}
.research-carousel .card-face {
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(125deg, #fffffc, #f3f5ed 72%, #e8ede2);
  border: 1px solid #b8c3b0;
  transform: translateZ(4px);
  transform-style: preserve-3d;
  box-shadow: inset 0 1px 1px #ffffff, 12px 24px 36px -20px #263c344d;
}
.research-carousel .card-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, #ffffff26, transparent 45%, #1c352510);
  opacity: var(--shade, 0);
  pointer-events: none;
}
.card-back {
  display: grid;
  place-items: center;
  border: 1px solid #9fac96;
  background: #dce3d5;
  color: #53674d;
  font-size: 48px;
  letter-spacing: -4px;
  transform: translateZ(-4px) rotateY(180deg);
}
.card-edge {
  background: #a8b69e;
  transform: translateZ(-3px);
  box-shadow: 0 1px 1px #8a9c7f;
  backface-visibility: visible;
}
.card-edge:nth-child(2) { transform: translateZ(-1px); background: #bac6af; }
.card-edge:nth-child(3) { transform: translateZ(1px); background: #c9d2c1; }
.card-edge:nth-child(4) { transform: translateZ(3px); background: #e0e6d8; }
.research-carousel .card-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 17px;
  color: #53634a;
  font: 11px/1.4 var(--mono);
  letter-spacing: .6px;
}
.research-carousel .card-meta > span:last-child { color: #56664e; font-size: 11px; }
.research-carousel .card-art {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 100%;
  height: 211px;
  border: 1px solid #54634a1a;
  border-radius: 6px;
  overflow: visible;
  background: #dce4d2;
  transform: translateZ(9px);
}
.research-carousel .art-2, .research-carousel .art-5 { background: #e6dfd1; }
.research-carousel .art-3, .research-carousel .art-4 { background: #e1e2d0; }
.research-carousel .art-7, .research-carousel .art-8 { background: #d8e3de; }
.research-carousel .card-art::before {
  content: none;
  position: absolute;
  inset: 19px;
  border: 1px solid #526c4521;
  border-radius: 50%;
}
.research-carousel .card-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.research-carousel .card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 22px 0 8px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1px;
  transform: translateZ(12px);
}
.research-carousel .card-description {
  margin: 0;
  font: 11px/1.6 var(--mono);
  color: #55614f;
  transform: translateZ(7px);
}
.card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #a3b19766;
  font-size: 11px;
  letter-spacing: .5px;
  color: #5c6c55;
  transform: translateZ(5px);
}
.research-carousel .research-card.is-center { cursor: pointer; }
.research-carousel .research-card:focus-visible { outline: 2px solid #406647; outline-offset: 9px; }
.carousel-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 26px;
  padding: 20px 0 23px;
  border-top: 1px solid #b9c4b2;
  gap: 16px;
}
.wheel-instruction { font-size: 11px; color: #53634f; }
.wheel-navigation { display: flex; align-items: center; gap: 21px; }
.carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #aebda4;
  border-radius: 50%;
  background: transparent;
  transition: background .2s, border-color .2s;
}
.carousel-controls button svg { width: 19px; height: 19px; }
.carousel-controls button:hover { background: #d8e2d0; border-color: #637b56; }
.carousel-controls button:active { background: #c6d6bc; }
.carousel-controls button:disabled { opacity: .35; cursor: not-allowed; }
#carousel-position { min-width: 64px; text-align: center; font: 11px var(--mono); font-variant-numeric: tabular-nums; }
.carousel-controls #rotation-toggle {
  width: auto;
  gap: 9px;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  color: #43563c;
}
.carousel-controls #rotation-toggle:hover { background: transparent; color: #172d1b; }
#rotation-toggle svg { width: 13px; height: 13px; }
@media (max-width: 900px) {
  .research-carousel { --card-width: 268px; --card-height: 365px; }
  .research-carousel .card-art { height: 191px; }
  .research-carousel .research-grid { height: 545px; perspective: 1250px; }
  .research-carousel .research-grid::before { top: 442px; }
  .research-carousel .card-title { font-size: 23px; }
}
@media (max-width: 600px) {
  .research-carousel { --card-width: 236px; --card-height: 335px; margin-inline: -3%; }
  .research-carousel .research-grid { height: 464px; perspective: 1100px; perspective-origin: 50% 45%; }
  .research-carousel .research-grid::before { top: 381px; width: 96%; height: 51px; }
  .research-carousel .research-card { top: 49%; }
  .research-carousel .card-face { padding: 15px; }
  .research-carousel .card-meta { font-size: 11px; margin-bottom: 13px; }
  .research-carousel .card-art { height: 171px; }
  .research-carousel .card-title { font-size: 21px; margin-top: 18px; }
  .research-carousel .card-description { font-size: 11px; }
  .card-footer { font-size: 11px; padding-top: 10px; letter-spacing: 0; }
  .carousel-controls { margin-inline: 17px; padding: 16px 0 19px; flex-wrap: wrap; justify-content: center; column-gap: 24px; }
  .wheel-instruction { width: 100%; text-align: center; font-size: 11px; order: 3; }
  .wheel-navigation { gap: 13px; }
  .carousel-controls #rotation-toggle { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .research-carousel *, .research-carousel *::before, .research-carousel *::after { transition: none; }
}
