/* /questionnaire — Cultural Oracle list (Figma 765:3326)
   Glass cards like how-block; cursor spotlight retained on desktop. */

.mainSection.testQlist {
  --qlist-gold: #c9a96e;
  --qlist-white: #ffffff;
  --qlist-muted: rgba(255, 255, 255, 0.8);
  --qlist-glass: rgba(245, 241, 236, 0.1);
  --qlist-glass-border: rgba(255, 255, 255, 0.15);
  --qlist-pad-x: clamp(1.25rem, 5.5vw, 14.375rem);
  --spot-size: 0px;
  --spot-left: -9999px;
  --spot-top: -9999px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  height: auto;
  max-height: none;
  margin: 0;
  padding:
    clamp(3.5rem, 7vw, 6.25rem)
    var(--qlist-pad-x)
    clamp(4rem, 8vw, 6.25rem);
  box-sizing: border-box;
  overflow: clip;
  color: var(--qlist-white);
  background: #050508;
}

.testQlist *,
.testQlist *::before,
.testQlist *::after {
  box-sizing: border-box;
}

.testQlist__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.testQlist__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
}

/* Base stays B&W for flashlight reveal */
.testQlist__bg--bw {
  filter: grayscale(1) contrast(1.08) brightness(0.62);
}

.testQlist__color {
  position: absolute;
  inset: 0;
  opacity: 0;
  contain: paint;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 62%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: var(--spot-size) var(--spot-size);
  mask-size: var(--spot-size) var(--spot-size);
  -webkit-mask-position: var(--spot-left) var(--spot-top);
  mask-position: var(--spot-left) var(--spot-top);
}

.testQlist.is-painting .testQlist__color {
  opacity: 1;
}

.testQlist__bg--color {
  filter: none;
}

.testQlist__tint {
  display: none;
}

.testQlist__glow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(255, 196, 96, 0.28) 0%,
    rgba(255, 180, 90, 0.08) 45%,
    transparent 72%
  );
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform;
}

.testQlist.is-painting .testQlist__glow {
  opacity: 1;
}

.testQlist__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 53.14%, rgba(0, 0, 0, 0.7) 81.84%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 55.9%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.testQlist__inner,
.testQlist__inner a,
.testQlist__inner button {
  cursor: auto;
}

.testQlist__inner a.testQlist__cta {
  cursor: pointer;
}

.testQlist__scrollCue {
  z-index: 5;
  pointer-events: auto !important;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.testQlist__scrollCue:hover,
.testQlist__scrollCue:focus-visible {
  color: var(--qlist-gold);
}

.testQlist__inner {
  position: relative;
  z-index: 1;
  width: min(1460px, 100%);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 50px;
  overflow: visible;
}

.testQlist__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 0;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.testQlist.is-alive .testQlist__header {
  opacity: 1;
  transform: none;
}

.testQlist__heading {
  margin: 0;
  width: 100%;
  max-width: 965px;
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 48px !important;
  line-height: 1.15 !important;
  letter-spacing: 0;
  color: var(--qlist-white);
  text-align: center;
}

.testQlist__intro {
  margin: 0;
  width: 100%;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: normal !important;
  color: var(--qlist-white);
  opacity: 0.8;
  text-align: center;
}

.testQlist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testQlist__item {
  display: flex;
  align-items: center;
  gap: 56px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 22px 56px 26px 36px;
  border: 1px solid var(--qlist-glass-border);
  border-radius: 10px;
  background: var(--qlist-glass);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.testQlist.is-alive .testQlist__item {
  opacity: 1;
  transform: none;
}

.testQlist.is-alive .testQlist__item:nth-child(1) {
  transition-delay: 0.12s;
}
.testQlist.is-alive .testQlist__item:nth-child(2) {
  transition-delay: 0.24s;
}
.testQlist.is-alive .testQlist__item:nth-child(3) {
  transition-delay: 0.36s;
}
.testQlist.is-alive .testQlist__item:nth-child(n + 4) {
  transition-delay: 0.48s;
}

.testQlist__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.testQlist__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.mainSection.testQlist h3.testQlist__name,
.testQlist__name {
  margin: 0 !important;
  width: 100%;
  max-width: none !important;
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif !important;
  font-weight: 500 !important;
  font-size: 38px !important;
  line-height: normal !important;
  letter-spacing: 0 !important;
  color: var(--qlist-white) !important;
  white-space: normal;
}

.testQlist__lead {
  margin: 0;
  width: 100%;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: normal !important;
  color: var(--qlist-gold) !important;
}

.testQlist__text {
  margin: 0 !important;
  width: 100%;
  max-width: none;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: normal !important;
  color: var(--qlist-muted) !important;
}

.testQlist__meta {
  margin: 0;
  width: 100%;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: normal !important;
  color: var(--qlist-muted) !important;
  white-space: pre-wrap;
}

.testQlist__divider {
  flex: 0 0 1px;
  align-self: stretch;
  width: 1px;
  min-height: 88px;
  max-height: 140px;
  margin: auto 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.testQlist__cta {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--qlist-white) !important;
  transition: color 0.25s ease, transform 0.25s ease;
}

.testQlist__cta:hover,
.testQlist__cta:focus-visible {
  color: var(--qlist-gold) !important;
  outline: none;
  transform: translateX(2px);
  box-shadow: none !important;
}

.testQlist__ctaLabel {
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: 20px !important;
  line-height: normal !important;
  letter-spacing: 1px;
}

.testQlist__ctaIcon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  transition: filter 0.25s ease;
}

.testQlist__cta:hover .testQlist__ctaIcon,
.testQlist__cta:focus-visible .testQlist__ctaIcon {
  filter: brightness(0) saturate(100%) invert(72%) sepia(28%) saturate(547%)
    hue-rotate(359deg) brightness(92%) contrast(88%);
}

.testQlist__empty {
  margin: 0;
  padding: 28px 32px;
  border: 1px solid var(--qlist-glass-border);
  border-radius: 10px;
  background: var(--qlist-glass);
  font-family: Arimo, sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1100px) {
  .mainSection.testQlist {
    --qlist-pad-x: clamp(1.25rem, 4vw, 3rem);
  }

  .testQlist__inner {
    gap: 36px;
  }

  .testQlist__heading {
    font-size: 40px !important;
  }

  .testQlist__item {
    gap: 32px;
    min-height: 0;
    padding: 20px 32px 24px 28px;
  }

  .testQlist__divider {
    max-height: 120px;
  }
}

@media (max-width: 959px) {
  /* Full-color background — no B&W spotlight on phone/tablet */
  .testQlist__bg--bw {
    filter: none;
    opacity: 1;
  }

  .testQlist__color,
  .testQlist__glow {
    display: none;
  }

  .testQlist__veil {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.78) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  }
}

@media (max-width: 760px) {
  .mainSection.testQlist {
    --qlist-pad-x: 1.25rem;
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .testQlist__inner {
    gap: 28px;
  }

  .testQlist__header {
    gap: 14px;
  }

  .testQlist__heading {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  .testQlist__intro {
    font-size: 16px !important;
  }

  .testQlist__list {
    gap: 18px;
  }

  .testQlist__item {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 26px 22px 28px;
  }

  .testQlist__body {
    gap: 18px;
  }

  .testQlist__head {
    gap: 12px;
  }

  .mainSection.testQlist h3.testQlist__name,
  .testQlist__name {
    font-size: 28px !important;
  }

  .testQlist__lead {
    font-size: 16px !important;
  }

  .testQlist__divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    max-height: none;
    align-self: stretch;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.35) 50%,
      rgba(255, 255, 255, 0.05) 100%
    );
  }

  .testQlist__cta {
    align-self: center;
    gap: 14px;
  }

  .testQlist__ctaLabel {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .testQlist__heading {
    font-size: 28px !important;
  }

  .testQlist__item {
    gap: 24px;
    padding: 28px 22px 30px;
  }

  .testQlist__body {
    gap: 20px;
  }

  .testQlist__head {
    gap: 12px;
  }

  .testQlist__cta {
    gap: 16px;
    padding-top: 2px;
  }

  .mainSection.testQlist h3.testQlist__name,
  .testQlist__name {
    font-size: 26px !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .testQlist.is-alive .testQlist__item:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(245, 241, 236, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testQlist__header,
  .testQlist__item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .testQlist__item {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(20, 18, 16, 0.72);
  }

  .testQlist__bg--bw {
    filter: none;
  }

  .testQlist__color,
  .testQlist__glow {
    display: none !important;
  }
}
