/* /questionnaire — Cultural Oracle how-block (Figma 750:3228) */

.mainSection.testHow {
  --how-text: #ffffff;
  --how-muted: rgba(255, 255, 255, 0.8);
  --how-soft: rgba(255, 255, 255, 0.7);
  --how-gold: #c9a96e;
  --how-gold-a: #e2c987;
  --how-gold-b: #d9b362;
  --how-gold-c: #b28b46;
  --how-glass: rgba(245, 241, 236, 0.1);
  --how-glass-border: rgba(255, 255, 255, 0.15);
  --how-pad-x: clamp(1.25rem, 5.5vw, 14.375rem);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  height: auto;
  margin: 0;
  scroll-margin-top: 0;
  padding:
    clamp(3.5rem, 7vw, 6.25rem)
    var(--how-pad-x)
    clamp(3.5rem, 7vw, 6.25rem);
  box-sizing: border-box;
  color: var(--how-text);
  background: #050508;
  overflow: clip;
}

.testHow *,
.testHow *::before,
.testHow *::after {
  box-sizing: border-box;
}

.testHow__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Explicit box (not display:contents) — % height is unreliable inside picture on iOS */
.testHow__bg picture {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 90%;
}

.testHow__bgImg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.testHow__bgVeil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 53.14%, #000 81.84%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 55.9%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
}

.testHow__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 50px;
  width: min(1460px, 100%);
  margin: 0 auto;
}

.testHow__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: min(1000px, 100%);
  margin: 0 auto;
  text-align: center;
}

.testHow__heading {
  margin: 0;
  width: 100%;
  max-width: 965px;
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--how-text);
  text-align: center;
}

.testHow__lead {
  margin: 0;
  width: 100%;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: var(--how-text);
  opacity: 0.8;
  text-align: center;
}

.testHow__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.testHow__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 24px 32px 38px;
  border: 1px solid var(--how-glass-border);
  border-radius: 10px;
  background: var(--how-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.testHow__cardHead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.testHow__cardTitle {
  margin: 0;
  width: 100%;
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif;
  font-weight: 500;
  font-size: 38px;
  line-height: normal;
  color: var(--how-text);
}

.testHow__cardLead {
  margin: 0;
  width: 100%;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: var(--how-gold);
}

.testHow__cardBody {
  width: 100%;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--how-muted);
}

.testHow__cardBody p {
  margin: 0 0 1em;
  font-family: inherit;
  font-size: 16px;
  line-height: inherit;
  color: inherit;
}

.testHow__cardBody p:last-child {
  margin-bottom: 0;
}

.testHow__cardBody--solid {
  color: var(--how-text);
}

.testHow__cardNote {
  margin: 0;
  width: 100%;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  line-height: normal;
  color: var(--how-text);
}

.testHow__cardFoot {
  margin: 0;
  width: 100%;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--how-text);
}

.testHow__cardFoot--muted {
  color: var(--how-muted);
}

.testHow__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.testHow__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.testHow__listItem {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.testHow__star {
  flex: 0 0 18px;
  display: block;
  width: 18px;
  height: 18px;
}

.testHow__listText {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--how-muted);
}

.testHow__listText--bright {
  color: var(--how-text);
}

.testHow__steps {
  --how-step-gap: 45px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--how-step-gap);
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.testHow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.testHow__step:not(:first-child)::before {
  content: "";
  position: absolute;
  left: calc(var(--how-step-gap) / -2);
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(201, 169, 110, 0.15) 0%,
    rgba(201, 169, 110, 0.85) 45%,
    rgba(201, 169, 110, 0.15) 100%
  );
  pointer-events: none;
}

.testHow__num {
  display: flex;
  align-items: center;
  min-height: 53px;
  margin: 0;
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 3.6vw, 3.75rem);
  line-height: normal;
  text-transform: uppercase;
  background-image: linear-gradient(
    90deg,
    var(--how-gold-a) 0%,
    var(--how-gold-b) 14%,
    var(--how-gold-c) 28%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.testHow__stepTitle {
  margin: 0;
  width: 100%;
  font-family: Merriweather, Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  line-height: normal;
  letter-spacing: 0.02em;
  color: var(--how-text);
}

/* Beat global h3 { font-weight: 500 } from base.css */
.mainSection.testHow h3.testHow__cardTitle {
  font-weight: 500;
}

.mainSection.testHow h3.testHow__stepTitle {
  font-weight: 400;
}

.testHow__stepText {
  margin: 0;
  width: 100%;
  font-family: Arimo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
  color: var(--how-text);
  opacity: 0.7;
}

@media (max-width: 1100px) {
  .mainSection.testHow {
    --how-pad-x: clamp(1.25rem, 4vw, 3rem);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .testHow__inner {
    gap: 36px;
  }

  .testHow__intro {
    gap: 20px;
  }

  .testHow__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 28px;
  }

  .testHow__step {
    padding: 0;
  }

  .testHow__step:not(:first-child)::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .mainSection.testHow {
    --how-pad-x: 1.25rem;
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  /* Mobile: stretch photo through the whole block so the desktop veil
     (bottom fade ~53→82%) actually lands on the image, not empty bg. */
  .testHow__bg picture {
    height: 100%;
  }

  .testHow__bgImg {
    object-position: center top;
    transform: none !important;
    /* Slight softness — AI/mobile asset reads less harsh than desktop photo */
    filter: blur(0.6px) saturate(0.96) brightness(0.96) !important;
    transition: none !important;
    will-change: auto;
  }

  .testHow.is-alive .testHow__bgImg {
    transform: none !important;
    filter: blur(0.6px) saturate(0.96) brightness(0.96) !important;
  }

  .testHow__inner {
    gap: 28px;
  }

  .testHow__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testHow__card {
    padding: 22px 20px 28px;
    gap: 20px;
  }

  .testHow__steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testHow__step {
    gap: 12px;
  }

  .testHow__num {
    min-height: 0;
  }

  .testHow__lead {
    font-size: 15px;
    line-height: 1.35;
  }

  .testHow__cardTitle {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .testHow__heading {
    font-size: 2.25rem;
  }

  .testHow__lead {
    font-size: 14px;
  }

  .testHow__cardTitle {
    font-size: 26px;
  }
}

.testHow__scrollCue {
  z-index: 5;
  pointer-events: auto !important;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.testHow__scrollCue:hover,
.testHow__scrollCue:focus-visible {
  color: var(--how-gold);
}

/* ——— Motion: atmosphere + scroll reveals ——— */

.testHow__bgImg {
  transform: scale(1.08);
  filter: saturate(0.92) brightness(0.88);
  transition:
    transform 2.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 2.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, filter;
}

.testHow.is-alive .testHow__bgImg {
  transform: scale(1);
  filter: saturate(1) brightness(1);
}

.testHow__bgVeil {
  opacity: 0.92;
  transition: opacity 1.6s ease 0.15s;
}

.testHow.is-alive .testHow__bgVeil {
  opacity: 1;
}

.testHow__intro .testHow__heading,
.testHow__intro .testHow__lead {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.testHow__intro .testHow__lead {
  transition-delay: 0.12s;
}

.testHow__intro.is-visible .testHow__heading,
.testHow__intro.is-visible .testHow__lead {
  opacity: 1;
  transform: none;
}

.testHow__intro.is-visible .testHow__lead {
  opacity: 0.8;
  transition-delay: 0.18s;
}

.testHow__card[data-how-item] {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.985);
  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),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.testHow__cards.is-visible .testHow__card[data-how-item]:nth-child(1) {
  transition-delay: 0.05s;
}

.testHow__cards.is-visible .testHow__card[data-how-item]:nth-child(2) {
  transition-delay: 0.18s;
}

.testHow__cards.is-visible .testHow__card[data-how-item] {
  opacity: 1;
  transform: none;
}

.testHow__cards.is-visible .testHow__card[data-how-item]:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(245, 241, 236, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transform: translate3d(0, -3px, 0);
}

.testHow__card[data-how-item]:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(245, 241, 236, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.testHow__listItem {
  opacity: 0;
  transform: translate3d(-8px, 0, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.testHow__cards.is-visible .testHow__listItem {
  opacity: 1;
  transform: none;
}

.testHow__cards.is-visible .testHow__listItem:nth-child(1) {
  transition-delay: 0.28s;
}
.testHow__cards.is-visible .testHow__listItem:nth-child(2) {
  transition-delay: 0.36s;
}
.testHow__cards.is-visible .testHow__listItem:nth-child(3) {
  transition-delay: 0.44s;
}
.testHow__cards.is-visible .testHow__listItem:nth-child(4) {
  transition-delay: 0.52s;
}
.testHow__cards.is-visible .testHow__listItem:nth-child(5) {
  transition-delay: 0.6s;
}

.testHow__star {
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.testHow__cards.is-visible .testHow__listItem .testHow__star {
  animation: howStarIn 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.testHow__cards.is-visible .testHow__listItem:nth-child(1) .testHow__star {
  animation-delay: 0.3s;
}
.testHow__cards.is-visible .testHow__listItem:nth-child(2) .testHow__star {
  animation-delay: 0.38s;
}
.testHow__cards.is-visible .testHow__listItem:nth-child(3) .testHow__star {
  animation-delay: 0.46s;
}
.testHow__cards.is-visible .testHow__listItem:nth-child(4) .testHow__star {
  animation-delay: 0.54s;
}
.testHow__cards.is-visible .testHow__listItem:nth-child(5) .testHow__star {
  animation-delay: 0.62s;
}

@keyframes howStarIn {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-40deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.testHow__step[data-how-item] {
  opacity: 0;
  transform: translate3d(0, 24px, 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);
}

.testHow__steps.is-visible .testHow__step[data-how-item] {
  opacity: 1;
  transform: none;
}

.testHow__steps.is-visible .testHow__step[data-how-item]:nth-child(1) {
  transition-delay: 0.04s;
}
.testHow__steps.is-visible .testHow__step[data-how-item]:nth-child(2) {
  transition-delay: 0.14s;
}
.testHow__steps.is-visible .testHow__step[data-how-item]:nth-child(3) {
  transition-delay: 0.24s;
}
.testHow__steps.is-visible .testHow__step[data-how-item]:nth-child(4) {
  transition-delay: 0.34s;
}

.testHow__num {
  opacity: 0.35;
  filter: saturate(0.7);
  transition:
    opacity 0.8s ease,
    filter 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform: translate3d(0, 10px, 0);
}

.testHow__steps.is-visible .testHow__num {
  opacity: 1;
  filter: none;
  transform: none;
}

.testHow__step:not(:first-child)::before {
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.testHow__steps.is-visible .testHow__step:not(:first-child)::before {
  transform: translateX(-50%) scaleY(1);
}

.testHow__steps.is-visible .testHow__step:nth-child(2)::before {
  transition-delay: 0.2s;
}
.testHow__steps.is-visible .testHow__step:nth-child(3)::before {
  transition-delay: 0.3s;
}
.testHow__steps.is-visible .testHow__step:nth-child(4)::before {
  transition-delay: 0.4s;
}

@media (hover: none) {
  .testHow__card[data-how-item]:hover,
  .testHow__cards.is-visible .testHow__card[data-how-item]:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--how-glass-border);
    background: var(--how-glass);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testHow__card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(20, 18, 16, 0.72);
  }

  .testHow__bgImg,
  .testHow__bgVeil,
  .testHow__intro .testHow__heading,
  .testHow__intro .testHow__lead,
  .testHow__card[data-how-item],
  .testHow__listItem,
  .testHow__star,
  .testHow__step[data-how-item],
  .testHow__num,
  .testHow__step:not(:first-child)::before {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }

  .testHow__intro .testHow__lead {
    opacity: 0.8 !important;
  }

  .testHow__card[data-how-item]:hover {
    transform: none;
    box-shadow: none;
  }
}
