/* =========================================================
   Recognise section — "You cannot change a pattern..."
   ========================================================= */
.recog {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(38% 60% at 78% 50%, rgba(120, 40, 230, .38), transparent 70%),
    radial-gradient(30% 50% at 10% 30%, rgba(90, 20, 170, .18), transparent 70%),
    #050307;
}
/* seamless joins with the sections around it */
.recog::before, .recog::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 140px;
  z-index: 0;
  pointer-events: none;
}
.recog::before { top: 0; background: linear-gradient(to bottom, #050307, rgba(5, 3, 7, 0)); }
.recog::after { bottom: 0; background: linear-gradient(to top, #050307, rgba(5, 3, 7, 0)); }

.recog__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(12px, 1.5vw, 24px) clamp(16px, 3vw, 40px) clamp(16px, 2vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

/* ---------- headline ---------- */
.recog__title {
  font-family: var(--sans, "Inter", sans-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: #f7f3fb;
}
.recog__title .rw {
  display: inline-block;
  opacity: 0;
  transform: translateY(.4em);
  transition: opacity .8s var(--ease, ease), transform .8s var(--ease, ease), color .4s, text-shadow .4s;   /* no blur in the reveal: a blur transition per element re-rasterises every frame and made reveals stutter */
  transition-delay: calc(var(--w) * 60ms);
}
.recog.is-in .recog__title .rw { opacity: 1; filter: none; transform: none; }
.recog__title .rw:hover { color: #ffe2ad; text-shadow: 0 0 18px rgba(247, 196, 124, .55); transition-delay: 0s; }
.recog__title .rw--key {
  background: linear-gradient(90deg, #f7f3fb 0%, #f7f3fb 40%, #ffd89a 50%, #f7f3fb 60%, #f7f3fb 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.recog.is-in .recog__title .rw--key { animation: rSweep 5s 1.6s ease-in-out infinite; }

/* ---------- pills ---------- */
.recog__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: 12px;
  font: 500 15px/1 var(--sans, "Inter", sans-serif);
  color: #f1ecf7;
  background: linear-gradient(180deg, rgba(150, 80, 255, .16), rgba(255, 255, 255, .03));
  border: 1px solid rgba(200, 160, 255, .26);
  box-shadow: inset 0 0 18px rgba(150, 80, 255, .12);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .7s var(--ease, ease) calc(var(--i) * 90ms + .5s),
    transform .7s var(--ease, ease) calc(var(--i) * 90ms + .5s),
    border-color .3s, box-shadow .3s, background .3s, color .3s;
}
.recog.is-in .pill { opacity: 1; transform: none; }
.pill svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: #d9b8ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s, transform .5s var(--ease, ease), filter .3s;
}
.pill:hover, .pill:focus-visible {
  outline: none;
  border-color: rgba(220, 180, 255, .6);
  box-shadow: inset 0 0 18px rgba(150, 80, 255, .25), 0 10px 28px -12px rgba(150, 80, 255, .9);
}
.recog.is-in .pill:hover { transform: translateY(-3px); transition-delay: 0s; }
.pill:hover svg { transform: scale(1.15) rotate(-6deg); filter: drop-shadow(0 0 6px rgba(200, 150, 255, .9)); }
.pill[aria-pressed="true"] {
  color: #fff3dc;
  border-color: rgba(247, 196, 124, .75);
  background: linear-gradient(180deg, rgba(247, 196, 124, .2), rgba(150, 80, 255, .12));
  box-shadow: inset 0 0 18px rgba(247, 196, 124, .2), 0 0 24px -6px rgba(247, 196, 124, .7);
}
.pill[aria-pressed="true"] svg { stroke: #ffd89a; filter: drop-shadow(0 0 6px rgba(247, 196, 124, .9)); }
.pill.is-pop { animation: rPop .5s var(--ease, ease); }

.recog__hint {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(228, 220, 236, .6);
  letter-spacing: .02em;
  min-height: 1.2em;
  transition: color .4s;
}
.recog__hint.is-on { color: #ffd89a; }

/* ---------- quotes: one row, each reveals the pattern behind it ---------- */
.recog__quotes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  align-items: start;
  margin: 36px 0 0;
  padding: 0;
  opacity: 0;
  transition: opacity 1s 1s;
}
.recog.is-in .recog__quotes { opacity: 1; }
.recog__quotes li { position: relative; }
.recog__quotes li + li::before {          /* divider */
  content: "";
  position: absolute;
  left: 0; top: 6px;
  height: 22px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(200, 160, 255, .55), transparent);
}
.quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 6px clamp(10px, 1.1vw, 20px);
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.recog__quotes li:first-child .quote { padding-left: 0; }
.quote__text {
  font-style: italic;
  font-size: clamp(12px, .95vw, 15px);
  line-height: 1.4;
  white-space: nowrap;                 /* one line per quote */
  color: rgba(228, 220, 236, .6);
  transition: color .45s, text-shadow .45s, transform .45s var(--ease, ease);
}
.quote__tag {
  font-size: 12px;
  letter-spacing: .04em;
  color: #ffd89a;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .4s, transform .45s var(--ease, ease);
  white-space: nowrap;
}
.quote:hover .quote__text, .quote:focus-visible .quote__text, .quote.is-lit .quote__text {
  color: #f7f3fb;
  text-shadow: 0 0 16px rgba(190, 130, 255, .75);
  transform: translateY(-2px);
}
.quote:hover .quote__tag, .quote:focus-visible .quote__tag, .quote.is-lit .quote__tag { opacity: 1; transform: none; }
.quote:focus-visible { outline: none; }
.quote.is-done .quote__tag { color: #ffe2ad; text-shadow: 0 0 10px rgba(247, 196, 124, .6); }

/* the pill a quote points to glows while that quote is lit */
.pill.is-hint {
  border-color: rgba(220, 180, 255, .75);
  box-shadow: inset 0 0 18px rgba(150, 80, 255, .3), 0 0 26px -6px rgba(190, 130, 255, .95);
}

/* ---------- visual ---------- */
.recog__visual { perspective: 1100px; }
.recog__stage {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  transform-style: preserve-3d;
  opacity: 0;
  scale: .92;
  transition: opacity 1.3s .2s var(--ease, ease), scale 1.5s .2s var(--ease, ease);
  will-change: transform;
}
.recog.is-in .recog__stage { opacity: 1; scale: 1; }
.recog__stage { animation: rFloat 7s ease-in-out infinite; }   /* image + overlays float together */
.recog__back, .recog__svg {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.recog__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 24px rgba(150, 80, 255, .35));
  transition: filter .6s var(--ease, ease);
}
.recog__visual:hover .recog__img { filter: brightness(1.1) drop-shadow(0 0 36px rgba(170, 100, 255, .6)); }
.recog__visual.is-surge .recog__img { filter: brightness(1.3) drop-shadow(0 0 44px rgba(247, 196, 124, .55)); transition-duration: .15s; }
.rg-chakras circle { mix-blend-mode: screen; animation: rChakra 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.rg-aura { transform-origin: 300px 190px; animation: rBreathe 6s ease-in-out infinite; }
.rg-sparks circle { fill: #f3e2ff; }
.rg-orb-new { animation: rOrbIn .9s var(--ease, ease); transform-box: fill-box; transform-origin: center; }

/* ---------- keyframes ---------- */
@keyframes rSweep    { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
@keyframes rPop      { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes rBreathe  { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes rChakra   { 0%, 100% { opacity: .5; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes rFloat    { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes rOrbIn    { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .recog__inner { grid-template-columns: minmax(0, 1fr); }
  .recog__visual { order: -1; }
  .recog__stage { width: min(100%, 440px); }
  .recog__title br { display: none; }       /* let the headline wrap naturally */
}
@media (max-width: 560px) {
  .recog__quotes { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .recog__quotes .quote { padding-left: 0; }
  .quote__text { white-space: normal; }
  .recog__quotes li + li::before { display: none; }
  .pill { font-size: 14px; padding: 10px 14px 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .recog__title .rw, .pill, .recog__quotes, .recog__stage { opacity: 1 !important; filter: none !important; transform: none !important; scale: 1 !important; }
}
